Kajetan Johannes Hammerle 4 years ago
commit
eb3f689377

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+/Backup
+/wiki
+/wiki_old

+ 16 - 0
contact.php

@@ -0,0 +1,16 @@
+<div class="container mt-4">
+    <h4>
+        Legal owner of Mundus Crassus
+    </h4>
+    <p>
+        Name: Kajetan Johannes Hammerle<br>
+        Address: Vienna, Austria<br>
+        Email: <img src="images/mail.png" height="22">
+    </p>
+    <h4>
+        Disclaimer
+    </h4>
+    <p>
+        Much Disclaimer so wow.
+    </p>
+</div>

+ 13 - 0
css/style.css

@@ -0,0 +1,13 @@
+body {
+    padding-top: 3rem;
+    color: #5a5a5a;
+}
+
+.carousel-item {
+    max-height: 30rem;
+}
+
+.vertical-center {
+    margin-top: auto;
+    margin-bottom: auto;
+}

+ 3 - 0
error.php

@@ -0,0 +1,3 @@
+<div class="container mt-4">
+    This site does not exist.
+</div>

BIN
favicon.ico


+ 3 - 0
games.php

@@ -0,0 +1,3 @@
+<div class="container mt-4">
+    Much information about minigames so wow.
+</div>

+ 3 - 0
gpvp.php

@@ -0,0 +1,3 @@
+<div class="container mt-4">
+    Gr8 content. Much wow.
+</div>

+ 12 - 0
home.php

@@ -0,0 +1,12 @@
+<?php
+
+$carouselData = [
+    ["path" => "survival_tavern.png", "alt" => "Survival", "title" => "Survival", "class" => "active", "text" =>
+        "Play classic Minecraft survival extended by our mod."],
+    ["path" => "bedwars.png", "alt" => "Minigames", "title" => "Minigames", "class" => "", "text" =>
+        "Mundus Crassus features own creations like Chinese Checkers and Parcours but also well-known minigames like BedWars and Spleef."],
+    ["path" => "gpvp.png", "alt" => "Guild PVP", "title" => "Guild PVP", "class" => "", "text" =>
+        "Create a guild, build a base and fight together with your friends."]
+];
+
+include "home.view.php";

+ 73 - 0
home.view.php

@@ -0,0 +1,73 @@
+<div id="gamemodeCarousel" class="carousel slide mb-3" data-ride="carousel">
+    <ol class="carousel-indicators">
+        <?php for($i = 0; $i < count($carouselData); $i++) : ?>
+            <li data-target="#gamemodeCarousel" data-slide-to="<?= $i ?>" class="<?= $i == 0 ? "active" : "" ?>"></li>
+        <?php endfor; ?>
+    </ol>
+    <div class="carousel-inner">
+        <?php foreach($carouselData as $data) : ?>
+            <div class="carousel-item <?= $data["class"] ?>">
+                <img class="d-block w-100" src="images/<?= $data["path"] ?>" alt="<?= $data["alt"] ?>">
+                    <div class="carousel-caption d-md-block text-left">
+                        <h1><?= $data["title"] ?></h1>
+                        <p class="lead"><?= $data["text"] ?></p>
+                    </div>
+            </div>
+        <?php endforeach; ?>
+    </div>
+    <a class="carousel-control-prev" href="#gamemodeCarousel" role="button" data-slide="prev">
+        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
+        <span class="sr-only">Previous</span>
+    </a>
+    <a class="carousel-control-next" href="#gamemodeCarousel" role="button" data-slide="next">
+        <span class="carousel-control-next-icon" aria-hidden="true"></span>
+        <span class="sr-only">Next</span>
+    </a>
+</div>
+
+<div class="container">
+    <div class="row featurette">
+        <div class="col-lg-7 vertical-center">
+            <h2 class="featurette-heading">Survival</h2>
+            <p class="lead">
+                Mundus Crassus offers a unique survival feeling by our mod. The mod features many new blocks and items.
+                All additions were made with care to fit into Vanilla Minecraft. The system also provides protections to
+                secure your land from others.
+            </p>
+            <a class="btn btn-secondary" href="?site=survival">Learn more</a>
+        </div>
+        <div class="col-lg-5">
+            <img class="img-fluid rounded" src="images/survival.png" alt="Survival Spawn">
+        </div>
+    </div>
+
+    <hr class="featurette-divider"/>
+    <div class="row featurette">
+        <div class="col-lg-7 order-lg-2 vertical-center">
+            <h2 class="featurette-heading">Minigames</h2>
+            <p class="lead">
+                Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. 
+                Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
+            </p>
+            <a class="btn btn-secondary" href="?site=games">Learn more</a>
+        </div>
+        <div class="col-lg-5 order-lg-1">
+            <img class="img-fluid rounded" src="images/dame.png" alt="Games Spawn">
+        </div>
+    </div>
+
+    <hr class="featurette-divider"/>
+    <div class="row featurette">
+        <div class="col-lg-7 vertical-center">
+            <h2 class="featurette-heading">Guild PVP</h2>
+            <p class="lead">
+                Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. 
+                Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
+            </p>
+            <a class="btn btn-secondary" href="?site=gpvp">Learn more</a>
+        </div>
+        <div class="col-lg-5">
+            <img class="img-fluid rounded" src="images/gpvp_dungeon.png" alt="Guild PVP Dungeon">
+        </div>
+    </div>
+</div>

BIN
images/bedwars.png


BIN
images/dame.png


BIN
images/gpvp.png


BIN
images/gpvp_dungeon.png


BIN
images/mail.png


BIN
images/survival.png


BIN
images/survival_tavern.png


BIN
images/team/MentorMentos.png


BIN
images/team/SirTerence7.png


BIN
images/team/eropster.png


BIN
images/team/kajetanjohannes.png


BIN
images/team/marvinius.png


BIN
images/team/wertibaldi.png


+ 25 - 0
index.php

@@ -0,0 +1,25 @@
+<?php
+
+$navData = [
+    "home" => ["name" => "Home", "class" => "", "show" => true],
+    "survival" => ["name" => "Survival", "class" => "", "show" => true],
+    "games" => ["name" => "Minigames", "class" => "", "show" => true],
+    "gpvp" => ["name" => "Guild PVP", "class" => "", "show" => true],
+    "team" => ["name" => "Our Team", "class" => "", "show" => true],
+    "contact" => ["name" => "Wusi", "class" => "", "show" => false],
+];
+
+$includePath = "error.php";
+
+if(isset($_GET["site"])) {
+    $name = $_GET["site"];
+    if(array_key_exists($name, $navData)) {
+        $includePath = "$name.php";
+        $navData[$name]["class"] = "active";
+    }
+} else {
+    $includePath = "home.php";
+    $navData["home"]["class"] = "active";
+}
+
+include "index.view.php";

+ 47 - 0
index.view.php

@@ -0,0 +1,47 @@
+<!doctype html>
+<html lang="en">
+    <head>
+        <meta charset="utf-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+        <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
+        <title>Mundus Crassus</title>
+        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
+        <link href="css/style.css" rel="stylesheet">
+    </head>
+    <body>
+        <header>
+            <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
+                <a class="navbar-brand" href="#">Mundus Crassus</a>
+                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
+                    <span class="navbar-toggler-icon"></span>
+                </button>
+                <div class="collapse navbar-collapse" id="navbarCollapse">
+                    <ul class="navbar-nav mr-auto">
+                        <?php foreach($navData as $name => $data) : ?>
+                            <?php if($data["show"]) : ?>
+                                <li class='nav-item <?= $data["class"] ?>'>
+                                    <a class='nav-link' href='?site=<?= $name ?>'><?= $data["name"] ?></a>
+                                </li>
+                            <?php endif; ?>
+                        <?php endforeach; ?>
+                    </ul>
+                </div>
+            </nav>
+        </header>
+        <main role="main">
+            <?php include $includePath; ?>
+        </main>
+        <footer class="container">
+            <hr class="featurette-divider"/>
+            <p class="float-right"><a href="#">Back to top</a></p>
+            <p>
+                Made by Kajetan &middot; 
+                <a href="?site=contact">Contact / Disclaimer</a> &middot; 
+                <a href="wiki/index.php">Wiki</a>
+            </p>
+        </footer>
+        <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
+        <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
+        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
+    </body>
+</html>

+ 26 - 0
showtext.php

@@ -0,0 +1,26 @@
+<html>
+    <head>
+        <meta http-equiv="content-type" content="text/html; utf-8">
+        <link rel="stylesheet" type="text/css" href="style.css" />
+        <title>Mundus Crassus</title>
+        
+        <?php
+            header('Content-Type: text/html; charset=utf-8');
+        ?>
+    </head>
+            
+    <body>
+        <form action="showtext.php" method="get">
+            <?php
+                $text = $_GET["text"];
+                $text = str_replace("Ɛ", "{", $text);
+                $text = str_replace("Ƒ", "}", $text);
+                $text = str_replace("ƒ", "[", $text);
+                $text = str_replace("Ɠ", "]", $text);
+		$text = str_replace("Ɣ", "(", $text);
+		$text = str_replace("ƕ", ")", $text);
+		$text = str_replace("Ɩ", "'", $text);
+		echo $text;
+            ?>          
+    </body>
+</html>

+ 3 - 0
survival.php

@@ -0,0 +1,3 @@
+<div class="container mt-4">
+    Super fancy survival stuff. Wow. So great.
+</div>

+ 12 - 0
team.php

@@ -0,0 +1,12 @@
+<?php
+
+$teamData = [
+    ["name" => "Kajetan", "age" => "23", "ingame" => "kajetanjohannes", "text" => "Developer, Founder, Builder"],
+    ["name" => "Marvin", "age" => "22", "ingame" => "marvinius", "text" => "Developer, Head of Survival and Minigames"],
+    ["name" => "Luca", "age" => "22", "ingame" => "eropster", "text" => "Head of Guild PVP, Builder"],
+    ["name" => "Fabio", "age" => "22", "ingame" => "wertibaldi", "text" => "Admin Guild PVP, Builder"],
+    ["name" => "Jan", "age" => "17", "ingame" => "SirTerence7", "text" => "Moderator, Builder"],
+    ["name" => "Lucas", "age" => "17", "ingame" => "MentorMentos", "text" => "Moderator"]
+];
+
+include "team.view.php";

+ 14 - 0
team.view.php

@@ -0,0 +1,14 @@
+<div class="container mt-3">
+    <h1 class="text-center">Our team</h1>
+    <hr class="featurette-divide mt-n1"/>
+    <div class="row">
+        <?php foreach($teamData as $data) : ?>
+            <div class="col-md-6 col-lg-4 text-center">
+                <img src="images/team/<?= $data["ingame"] ?>.png" width="200" height="270" alt="<?= $data["name"] ?>">
+                <h3><?= $data["name"] ?> (<?= $data["age"] ?>)</h3>
+                <h6 class="text-muted"><?= $data["ingame"] ?></h6>
+                <p><?= $data["text"] ?></p>
+            </div>
+        <?php endforeach; ?>
+    </div>
+</div>