From 8e875cb04987e9b9499b06d4df6f975d45f4b588 Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Fri, 15 Sep 2023 17:48:05 +0200 Subject: [PATCH] feat: add more pages --- index.php | 14 +++++++++++++- template/map.twig | 24 ++++++++++++++++++++++++ template/rules.twig | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 template/map.twig create mode 100644 template/rules.twig diff --git a/index.php b/index.php index 3abb618..72626aa 100644 --- a/index.php +++ b/index.php @@ -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() { diff --git a/template/map.twig b/template/map.twig new file mode 100644 index 0000000..3c91809 --- /dev/null +++ b/template/map.twig @@ -0,0 +1,24 @@ +{% include 'includes/head.twig' with {'pageTitle': 'Home'} %} + +
+
+
+

Clyde's Real Survival SMP

+ +
+ Online: / +
+
+
+
+ +{% include 'includes/nav.twig' with {'page': 'home',} %} + +
+
+

⚒️ Under Construction

+
+
+ +{% include 'includes/footer.twig' %} +{% include 'includes/foot.twig' %} \ No newline at end of file diff --git a/template/rules.twig b/template/rules.twig new file mode 100644 index 0000000..8214d8b --- /dev/null +++ b/template/rules.twig @@ -0,0 +1,35 @@ +{% include 'includes/head.twig' with {'pageTitle': 'Home'} %} + +
+
+
+

Clyde's Real Survival SMP

+ +
+ Online: / +
+
+
+
+ +{% include 'includes/nav.twig' with {'page': 'home',} %} + +
+
+

Rules

+ +
    +
  1. + The usage of modified clients that gives unfair advantage to players is not permitted. TL;DR Do not cheat. +
  2. +
  3. + Do not modify (or destroy) other players' constructions, or take their items, without their permission. TL;DR Do not grief or steal. +
  4. +
+ + Failing to follow these basic rules will result in a ban. +
+
+ +{% include 'includes/footer.twig' %} +{% include 'includes/foot.twig' %} \ No newline at end of file