diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-20 03:35:39 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-20 03:35:39 +0500 |
| commit | 16673ae810cb8f84b98187370c87d5ee2fff481d (patch) | |
| tree | 93931295f2f6ee10d2fa8ce0446ae11288ae654d /public | |
| parent | cb345c3415b6a09a12b794904bbd85ef7c67af7e (diff) | |
feat: new main page
Diffstat (limited to 'public')
| -rw-r--r-- | public/index.php | 41 | ||||
| -rw-r--r-- | public/static/img/brand/big.webp | bin | 0 -> 202428 bytes | |||
| -rw-r--r-- | public/static/img/brand/mini.webp | bin | 0 -> 93392 bytes | |||
| -rw-r--r-- | public/static/img/counter/0.png | bin | 0 -> 37146 bytes | |||
| -rw-r--r-- | public/static/img/counter/1.png | bin | 0 -> 32791 bytes | |||
| -rw-r--r-- | public/static/img/counter/2.png | bin | 0 -> 37615 bytes | |||
| -rw-r--r-- | public/static/img/counter/3.png | bin | 0 -> 22557 bytes | |||
| -rw-r--r-- | public/static/img/counter/4.png | bin | 0 -> 35197 bytes | |||
| -rw-r--r-- | public/static/img/counter/5.png | bin | 0 -> 20349 bytes | |||
| -rw-r--r-- | public/static/img/counter/6.png | bin | 0 -> 32075 bytes | |||
| -rw-r--r-- | public/static/img/counter/7.png | bin | 0 -> 22028 bytes | |||
| -rw-r--r-- | public/static/img/counter/8.png | bin | 0 -> 34637 bytes | |||
| -rw-r--r-- | public/static/img/counter/9.png | bin | 0 -> 142919 bytes | |||
| -rw-r--r-- | public/static/style.css | 46 |
14 files changed, 86 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index 29daf30..666500e 100644 --- a/public/index.php +++ b/public/index.php @@ -1,7 +1,46 @@ <html> +<head> + <title>alright.party</title> + <link rel="stylesheet" href="/static/style.css"> +</head> + <body> - <p>vi von ZULUL</p> + <div class="container"> + <div class="wrapper center big-gap"> + <h1><img src="/static/img/brand/big.webp" alt="<?php echo $_SERVER['HTTP_HOST']; ?>"></h1> + + <div class="items row" style="gap:32px;"> + <a href="/emotes">Emotes</a> + <a href="/users">Users</a> + <a href="/emotes/upload.php">Upload</a> + <a href="/account">Account</a> + <a href="/software">Chat clients</a> + </div> + + <form action="/emotes/search.php" method="get"> + <input type="text" name="q"> + <button type="submit">Search</button> + </form> + + <div class="counter"> + <?php + $db = new SQLite3("../database.db"); + $results = $db->query("SELECT COUNT(*) FROM emotes"); + $count = $results->fetchArray()[0]; + + $db->close(); + + foreach (str_split($count) as $c) { + echo "<img src=\"/static/img/counter/$c.png\" alt=\"\" />"; + } + ?> + </div> + + <p style="font-size:12px;">Serving <?php echo $count ?> gorillion emotes - Running <a + href="https://github.com/ilotterytea/alrighttv">AlrightTV v0.1</a></p> + </div> + </div> </body> </html>
\ No newline at end of file diff --git a/public/static/img/brand/big.webp b/public/static/img/brand/big.webp Binary files differnew file mode 100644 index 0000000..8886e80 --- /dev/null +++ b/public/static/img/brand/big.webp diff --git a/public/static/img/brand/mini.webp b/public/static/img/brand/mini.webp Binary files differnew file mode 100644 index 0000000..1613eba --- /dev/null +++ b/public/static/img/brand/mini.webp diff --git a/public/static/img/counter/0.png b/public/static/img/counter/0.png Binary files differnew file mode 100644 index 0000000..929946c --- /dev/null +++ b/public/static/img/counter/0.png diff --git a/public/static/img/counter/1.png b/public/static/img/counter/1.png Binary files differnew file mode 100644 index 0000000..f1c151d --- /dev/null +++ b/public/static/img/counter/1.png diff --git a/public/static/img/counter/2.png b/public/static/img/counter/2.png Binary files differnew file mode 100644 index 0000000..7a5a2af --- /dev/null +++ b/public/static/img/counter/2.png diff --git a/public/static/img/counter/3.png b/public/static/img/counter/3.png Binary files differnew file mode 100644 index 0000000..c7c7598 --- /dev/null +++ b/public/static/img/counter/3.png diff --git a/public/static/img/counter/4.png b/public/static/img/counter/4.png Binary files differnew file mode 100644 index 0000000..cd5b8b9 --- /dev/null +++ b/public/static/img/counter/4.png diff --git a/public/static/img/counter/5.png b/public/static/img/counter/5.png Binary files differnew file mode 100644 index 0000000..3455958 --- /dev/null +++ b/public/static/img/counter/5.png diff --git a/public/static/img/counter/6.png b/public/static/img/counter/6.png Binary files differnew file mode 100644 index 0000000..c7f795d --- /dev/null +++ b/public/static/img/counter/6.png diff --git a/public/static/img/counter/7.png b/public/static/img/counter/7.png Binary files differnew file mode 100644 index 0000000..925bb68 --- /dev/null +++ b/public/static/img/counter/7.png diff --git a/public/static/img/counter/8.png b/public/static/img/counter/8.png Binary files differnew file mode 100644 index 0000000..7cb611e --- /dev/null +++ b/public/static/img/counter/8.png diff --git a/public/static/img/counter/9.png b/public/static/img/counter/9.png Binary files differnew file mode 100644 index 0000000..f8ff704 --- /dev/null +++ b/public/static/img/counter/9.png diff --git a/public/static/style.css b/public/static/style.css index 8f4c95b..562e87a 100644 --- a/public/static/style.css +++ b/public/static/style.css @@ -3,6 +3,9 @@ --background-color-hover: #e4eed8; --background-color-disabled: #bec6b3; --border-color: #b0b9a5; + + --foreground-color: #7f9c3c; + --foreground-color-hover: #4b5632; } * { @@ -25,6 +28,22 @@ table.vertical td { padding: 2px; } +a { + color: var(--foreground-color); + text-decoration: none; +} + +a:hover { + color: var(--foreground-color-hover); + text-decoration: underline; +} + +input { + padding: 2px; + border-radius: 4px; + border: 1px solid gray; +} + .container { width: 100%; min-height: 100vh; @@ -50,6 +69,25 @@ section.content { flex-direction: row; } +.big-gap { + gap: 32px; +} + +.center { + justify-content: center; + align-items: center; +} + +/** +------------ + COUNTER +------------ +*/ +.counter img:not(:first-child) { + margin-left: 32px; +} + + /** ----------- NAVBAR @@ -60,6 +98,8 @@ section.content { display: flex; flex-direction: row; padding: 4px; + + gap: 16px; } .navbar .links { @@ -68,6 +108,12 @@ section.content { gap: 4px; } +.navbar .brand { + display: flex; + flex-direction: row; + align-items: end; +} + /** ------------- BUTTONS |
