Skip to content

Instantly share code, notes, and snippets.

@Mo45
Created August 28, 2019 08:38
Show Gist options
  • Save Mo45/fee60eabbd598c07b29a5967c7998146 to your computer and use it in GitHub Desktop.
Save Mo45/fee60eabbd598c07b29a5967c7998146 to your computer and use it in GitHub Desktop.
Rust-Server-Website-Template — Using image instead of text
<?php if(CONF_BGVID == "ON"){ ?>
<section class="face">
<!-- Specify the path to your video file, because this is video from Facepunch website :) -->
<div class="fullvideo">
<video preload="auto" autoplay="autoplay" muted="muted" loop="loop" playsinline="">
<source type="video/mp4" src="<?php echo SITE_URL; ?>/bg.mp4">
</video>
</div>
<?php ;}else{ ?>
<section class="face" style="background-image: url( '<?php echo SITE_URL; ?>/img/bg_0.jpg' );">
<?php ;};?>
<div class="face-body">
<div class="container text-center">
<!-- Create transparent PNG image (for example 500x200), and upload in img directory -->
<img src="<?php echo SITE_URL; ?>/img/top-logo.png">
<!-- h1 class="face-title one"><?php echo SRV_NAME; ?></h1>
<h2 class="face-subtitle"><?php echo SRV_SLOGAN; ?></h2 -->
</div>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment