forked from CRSS/Website
feat: add more pages
This commit is contained in:
parent
4e729bbc61
commit
8e875cb049
14
index.php
14
index.php
|
@ -25,7 +25,19 @@
|
||||||
$router->get('/nations', function() {
|
$router->get('/nations', function() {
|
||||||
global $twig;
|
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() {
|
$router->set404(function() {
|
||||||
|
|
24
template/map.twig
Normal file
24
template/map.twig
Normal 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
35
template/rules.twig
Normal 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' %}
|
Loading…
Reference in a new issue