diff --git a/.env.example b/.env.example index 691cafb..3d26df2 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ DISCORD_CLIENT= DISCORD_SECRET= -DISCORD_REDIRECT= \ No newline at end of file +DISCORD_REDIRECT= +DISCORD_OAUTH= \ No newline at end of file diff --git a/_config.php b/_config.php index 3bc7e30..4f67157 100644 --- a/_config.php +++ b/_config.php @@ -13,6 +13,8 @@ $loader = new FilesystemLoader('template'); $twig = new Twig\Environment($loader); + + $twig->addGlobal('discord_auth', $_ENV['DISCORD_OAUTH']); $discord = new Discord( $_ENV['DISCORD_CLIENT'], diff --git a/img/icon.png b/img/icon.png new file mode 100644 index 0000000..941fd9a Binary files /dev/null and b/img/icon.png differ diff --git a/img/spawn.jpg b/img/spawn.jpg new file mode 100644 index 0000000..2abf939 Binary files /dev/null and b/img/spawn.jpg differ diff --git a/index.php b/index.php index eec482b..f4a26c1 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,6 @@ render('index.html'); \ No newline at end of file + echo $twig->render('index.html', [ + 'user' => null + ]); \ No newline at end of file diff --git a/template/index.html b/template/index.html index 2691d02..59d1135 100644 --- a/template/index.html +++ b/template/index.html @@ -1 +1,88 @@ -tba \ No newline at end of file + + + + + + + + CRSS + + + + + +
+
+
+

Clyde's Real Survival SMP

+ +
+ Online: / +
+
+
+
+ + + +
+
+ this is the home page +
+
+ + + + \ No newline at end of file