ARSNL is the perfect template for independent developers and studios to showcase their games in a sleek, professional and eye-catching manner.
Built for efficiency and smoothness with HTML5, CSS3, PHP and Javascript on the Bootstrap 4 framework.
You can edit the template files using any text editor, I personally use Visual Studio Code.
8 fully functional HTML templates;
Terms & Conditions and Privacy Policy Pages included in every template;
FontAwesome icon pack included (Free Tier);
The main template folder contains the following:
ARSNL Mobile and ARSNL General folders each contain 2 template Styles with Video variants for a total of 4 templates each;
Each template folder contains and index.html file, Privacy Policy html file and Terms & Conditions html file along with the following folders:
CSS - Bootstrap, the main template stylesheet and other css files.
Images - Image files and favicons.
Js - Javascript files for bootstrap, smoothscroll, contact-form, animations, lightbox and template custom javascript file arsnl.js
Php - Php scripts for contact and newsletter forms.
Documentation is where you found this help file.
The template contains two types of images: Embedded and imported with CSS
For embedded images copy your custom images into the images folder and add them to the template by editing the img link inside the template.
An image link looks like this in the code:
<img src="imgages/yourimage.jpg" class="img-fluid" alt=" ">
For these images you simply have to copy your custom image inside the "images" folder and change "url(../images/bg1.jpg)" to your image name.
There are also background images imported with CSS like this:
background-image: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%), url(../images/bg1.jpg);
As you can see the image has a gradient applied to it that you can change the color [rgba(0,0,0)], angle (90deg) or opacity (0.9, 0.7 etc) of as you wish.
The video included in the template is an mp4 video with 1280x720 resolution at 29fps. The supported video formats are mp4 , WebM and ogg.
When using video, loading times are very important so try to find a ballance between quality and size and limit your video to under 30mb in size.
Place your video file inside the images folder. Open index.html with a text editor and navigate to the hero section, here you will find the following lines of code:
<video autoplay loop poster="images/poster.jpg" id="bgvid" class="img-fluid">
<source src="images/bgvid.mp4" type="video/mp4">
</video>
Now replace bgvid.mp4 with the name of your video file and also change "mp4" in the line type="video/mp4" with ogg or webm if you are using one of those formats.
If the video cannot be loaded the template will load a poster image instead. So create a .jpg image file and name it poster.jpg and paste it in the images folder.
By default the video will autoplay and loop, defined by the autoplay and loop parameters inside the video tag.
To receive emails from the privacy form change the line $EmailTo = "youremail@domain.com" to your desired email address in the privacyform-process.php file.
In order to receive emails from the newsletter form simply repeat the process inside the newsletter-process.php file this time.
If you want to change the input filed names you will have to update them in the following files:
<!DOCTYPE html>
<html>
<head>
...
</head>
<body>
<!-- Loading Screen -->
<div id="loader-wrapper">
<div id="loader"></div>
</div>
<!-- HEADER -->
<header id="main-header">
...
</header>
<section id="...section">
...
</section>
<!-- FOOTER -->
<footer id="main-footer">
...
</footer>
</body>
</html>
Each template is divided into the following sections and subsections:
Hero Section
About Section
Media Section
Features Section
CTA Section
- Newsletter
<div id="about-section" class="large-margin">
...
...
...
</div>
The "large-margin" class sets the bottom margin of the section.
You can customize section margins individually, these margin classes can be used to modify the bottom margin of each section:
The value for each class varies by template and you can change the value of each margin class by going into the style.css file.
!Note that the em and rem values in this template are calculated for a 16px base font-size!
You can change the base font-size of the template by opening style.css and navigating to the "body" class.
The easiest way to change the main color of the template is this:
Open style.css with your preferred text editor;
Press Ctrl+F (Cmd + F on mac) on your keyboard to bring up the search bar;
Type "highlight" into the search bar, it should take you to a line with a color code like so:
.highlight {
color: #d71414;
}
Copy the color code (in this case #d71414;), press Ctrl+F once again to bring up the search bar and paste the color code in there;
This should highlight all the instances of that color inside the style.css file.
Now you can just replace the color codes with your preferred hex color.
Alternatively in some text editor programs you can press Ctrl+H to bring up a search & replace bar in which you can paste and replace the hex color codes.
The template features a notification pop up that informs users if your site uses cookies.
The pop-up is enabled by default in every template.
In order to disable the notification we simply need to open the arsnl.js file inside the js folder and look for the following lines:
Now simply delete or comment out the code (by adding // in front of each line).
As of version 1.1 ARSNL Also features a discount bar notification pop up, It can be disabled the same way as the cookie notification pop up by finding and commenting out the following line of code inside arnsl.js like so:
//showDiscountBanner();
The template also uses embedded videos in some places, the linked video code can look like this:
<a href="https://www.youtube.com/watch?v=JaWnEbAsFmc" class="glightbox play-button" aria-label="Watch the ghost modem trailer"> <!-- Your video goes here -->
<img src="images/play-button.svg" class="img-fluid" alt="Play Video">
<h2>WATCH TRAILER</h2>
</a>
You simply need to change the link inside the href to you youtube link.
NOTE: YouTube has actively disabled the ability to embed age-restricted videos on external sites!
If your linked video is age restricted use this code instead:
<a href="https://www.youtube.com/watch?v=JaWnEbAsFmc" class="play-button" target="_blank" rel="noopener" aria-label="Watch the ghost modem trailer"> <!-- Your video goes here -->
<img src="images/play-button.svg" class="img-fluid" alt="Play Video">
<h2>WATCH TRAILER</h2>
</a>
This will open the video in a new tab allowing it to play.
If you want to control the way the posts look like when you share the landing page on social media don't forget to update the Meta Tags at the top of the index.html
To add more social icons in the footer please the footer section in the index.html file accordingly and add your preferred icons from the FontAwesome library.
Certain background images in every template (including the video) have an opacity filter over then to improve readability.
To change the value of this filter look for the background-image property of each image in style.css and edit the linear gradient value (it can range from 0.1 to 1)
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url(../images/hero.jpg);
Example:
0.2 Opacity
0.8 Opacity
Media galleries and some other images in the template are powered by Lightbox (specifically GLightbox javascript plugin), a lightbox element looks like this:
<a href="images/game-large.webp" data-title="Mountain Castle" class="glightbox" data-gallery="games_gallery">
<img src="images/game-cover.webp" loading="lazy" alt="Asian style castle on a green mountain top">
</a>
Here we have two images being displayed, game-cover and game-large, as the name implies game-cover represents the image thumbnail and game-large is the full size image.
So keep in mind that the full size image is always inside the a tags and the thumbnail / cover image is inside the img tags.
data-title is used to add a title or caption the full size image.
data-gallery is used to group multiple images together in a gallery like so:
<!-- Game thumbnail with gallery -->
<a href="images/media1.webp" class="glightbox" data-gallery="game-1">
<img src="images/media1.webp" class="img-fluid" loading="lazy" alt="Game cover art with a crouching warrior and a dragon in the background">
</a>
<!-- Gallery Images -->
<a href="images/media1_large.webp" class="glightbox" data-gallery="game-1" aria-label="Angry dragon growls at ironclad warrior"></a>
<a href="images/media1_large2.webp" class="glightbox" data-gallery="game-1" aria-label="Horned helmet warrior calls his dragon to attack with fire"></a>
Here we have a lightbox gallery with multiple images, notice that all the images have the same data-gallery value.
More info on GLightbox can be found here.
ARSNL is an accessibility tested and friendly template using different features to be as accessible as possible.
Different images, links and elements of the template have an alt or aria-label attribute attached to them.
The text inside these attributes serves the purpose of describing images or elements for screen readers, you will have to edit some of this text to fit you use case. (for example game images, social media links, links to game pages etc)
The easiest way to find alt and aria-label elements is using the search function of your text editor on your HTML files by pressing Ctrl + F or Cmd + F on mac.
Best practices for alt text are as follows:
More info can be found here.
You can test your page for accessibility here.
Fonts - Montserrat, Mulish, Quicksand, Noto Sans and Anurati Free Font by Emmeran Richard
Icons - FontAwesome
For any support questions or suggestions please feel free to email us at support@atypicalthemes.com
ARSNL Game Stuio Template by AtypicalThemes