Browse Source

templates

isundil 6 years ago
parent
commit
acfe8ee6d4
5 changed files with 64 additions and 12 deletions
  1. 10 12
      index.php
  2. 33 0
      style.css
  3. 1 0
      template/.htaccess
  4. 5 0
      template/footer.php
  5. 15 0
      template/header.php

+ 10 - 12
index.php

@@ -1,13 +1,11 @@
 <?php require("./stats.php"); ?>
-<!DOCTYPE html5>
-<html>
-  <head>
-    <script>
-      <?php if (!isset($_GET["PRERELEASE"])) echo 'document.location.href="/kiwi/";'; ?>
-    </script>
-  </head>
-  <body>
-    <a href="/kiwi">Kiwi service</a>
-<?php printNbUserPerChannelAsTable(); ?>
-  </body>
-</html>
+<?php require("./template/header.php"); generateHeader("Knacki IRC", "", "IRC,tchat,chat,tchate,rencontres,amitiés,messagerie,discussions,tchatche"); ?>
+      <div class="container">
+        <div class="block-1f2 block-1s1">
+          <a href="kiwi">Kiwi service</a>
+        </div>
+        <div class="block-1f2 block-1s1">
+  <?php printNbUserPerChannelAsTable(); ?>
+        </div>
+      </div>
+<?php require("./template/footer.php"); ?>

+ 33 - 0
style.css

@@ -0,0 +1,33 @@
+body { margin: 0; padding: 0; }
+.body { margin: 0 auto; padding: 0; width: 75% }
+.container { font-size: 0; }
+.container > div { display: inline-block; vertical-align: top; font-size: 1rem; padding: 1em; box-sizing: border-box; }
+.block-1f1{ width: 100%; }
+.block-1f2 { width: 50%; }
+.block-1f3 { width: 33.333%; }
+.block-2f3 { width: 66.666%; }
+.block-1f4 { width: 25%; }
+.block-3f4 { width: 75%; }
+.block-1f5 { width: 20%; }
+.block-2f5 { width: 40%; }
+.block-3f5 { width: 60%; }
+.block-4f5 { width: 80%; }
+.block-1f6 { width: 16.666%; }
+.block-5f6 { width: 83.333%; }
+
+@media screen and (max-width: 720px) {
+  .body { margin: 0; padding: 0; }
+  .block-1s1{ width: 100%; }
+  .block-1s2 { width: 50%; }
+  .block-1s3 { width: 33.333%; }
+  .block-2s3 { width: 66.666%; }
+  .block-1s4 { width: 25%; }
+  .block-3s4 { width: 75%; }
+  .block-1s5 { width: 20%; }
+  .block-2s5 { width: 40%; }
+  .block-3s5 { width: 60%; }
+  .block-4s5 { width: 80%; }
+  .block-1s6 { width: 16.666%; }
+  .block-5s6 { width: 83.333%; }
+}
+

+ 1 - 0
template/.htaccess

@@ -0,0 +1 @@
+Require all denied

+ 5 - 0
template/footer.php

@@ -0,0 +1,5 @@
+    </div>
+    <footer>
+    </footer>
+  </body>
+</html>

+ 15 - 0
template/header.php

@@ -0,0 +1,15 @@
+<?php function generateHeader($title, $description, $keywords) { ?><!DOCTYPE html5>
+<html>
+  <head>
+    <link href="style.css" rel="stylesheet" />
+    <title><?php echo $title; ?></title>
+    <meta name="description" content="<?php echo $description;?>" />
+    <meta name="keywords" content="<?php echo $keywords;?>" />
+    <script>
+      <?php if (!isset($_GET["PRERELEASE"])) echo 'document.location.href="/kiwi/";'; ?>
+    </script>
+  </head>
+  <body>
+    <header>
+    </header>
+    <div class="body"><?php } ?>