1
0
Fork 0
forked from CRSS/Website

feat: add more pages

This commit is contained in:
TheClashFruit 2023-09-15 17:48:05 +02:00
parent 4e729bbc61
commit 8e875cb049
Signed by: TheClashFruit
GPG key ID: CF4A319B9A73290C
3 changed files with 72 additions and 1 deletions

View file

@ -25,7 +25,19 @@
$router->get('/nations', function() {
global $twig;
echo $twig->render('index.twig');
echo $twig->render('nations.twig');
});
$router->get('/rules', function() {
global $twig;
echo $twig->render('rules.twig');
});
$router->get('/map', function() {
global $twig;
echo $twig->render('map.twig');
});
$router->set404(function() {

24
template/map.twig Normal file
View file

@ -0,0 +1,24 @@
{% include 'includes/head.twig' with {'pageTitle': 'Home'} %}
<div class="pageHero" id="hero">
<div class="blurFiler">
<div class="container">
<h1>Clyde's Real Survival SMP</h1>
<div class="serverInfo">
Online: <label>0</label> / <label>20</label>
</div>
</div>
</div>
</div>
{% include 'includes/nav.twig' with {'page': 'home',} %}
<main class="pageContent" id="content">
<div class="container">
<p>⚒️ Under Construction</p>
</div>
</main>
{% include 'includes/footer.twig' %}
{% include 'includes/foot.twig' %}

35
template/rules.twig Normal file
View file

@ -0,0 +1,35 @@
{% include 'includes/head.twig' with {'pageTitle': 'Home'} %}
<div class="pageHero" id="hero">
<div class="blurFiler">
<div class="container">
<h1>Clyde's Real Survival SMP</h1>
<div class="serverInfo">
Online: <label>0</label> / <label>20</label>
</div>
</div>
</div>
</div>
{% include 'includes/nav.twig' with {'page': 'home',} %}
<main class="pageContent" id="content">
<div class="container">
<h2>Rules</h2>
<ol>
<li>
The usage of modified clients that gives unfair advantage to players is not permitted. <b>TL;DR Do not cheat.</b>
</li>
<li>
Do not modify (or destroy) other players' constructions, or take their items, without their permission. <b>TL;DR Do not grief or steal.</b>
</li>
</ol>
<b>Failing to follow these basic rules will result in a ban.</b>
</div>
</main>
{% include 'includes/footer.twig' %}
{% include 'includes/foot.twig' %}