summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php40
1 files changed, 39 insertions, 1 deletions
diff --git a/index.php b/index.php
index a6ba49e..4256099 100644
--- a/index.php
+++ b/index.php
@@ -1,12 +1,50 @@
+<?php
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/partials.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/utils.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/config.php';
+
+$user = $_SESSION['user'] ?: null;
+?>
<!DOCTYPE html>
<html>
<head>
<title>id system</title>
+ <link rel="stylesheet" href="/static/style.css">
</head>
<body>
- <h1>hello, world</h1>
+ <main>
+ <?php html_navbar(); ?>
+
+ <?php if (isset($user)): ?>
+ <h1>Hey, <?= $user['username'] ?></h1>
+ <?php else: ?>
+ <div class="row gap-16">
+ <section class="column gap-16 grow">
+ <h1>Your key to ilotterytea&apos;s software</h1>
+ <p>
+ The ilt.su identification system gives you an access
+ to all software developed by ilotterytea &amp; alright.party.
+ </p>
+ <p>
+ All your data is under one house. It sounds very unsecure, but
+ we don&apos;t store anything except your username and hashed password.
+ <p>
+ It&apos;s completely anonymous.
+ </p>
+ <div>
+ <a href="/register.php">
+ <button class="fancy">Register an account today!</button>
+ </a>
+ </div>
+ </section>
+ <section class="column align-center justify-center">
+ <img src="/static/img/promo/1.webp" alt="" width="384">
+ </section>
+ </div>
+ <?php endif; ?>
+ </main>
</body>
</html> \ No newline at end of file