summaryrefslogtreecommitdiff
path: root/src/partials.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-19 21:13:24 +0500
committerilotterytea <iltsu@alright.party>2025-04-19 21:13:24 +0500
commitcb345c3415b6a09a12b794904bbd85ef7c67af7e (patch)
tree7f0b497653ed5b17c56a495c9d09a46bf29cee84 /src/partials.php
parenta7e961bcd2f1e8d98f2ffbb5ff37c2e7f9b981d1 (diff)
feat: navigation bar and sidebar
Diffstat (limited to 'src/partials.php')
-rw-r--r--src/partials.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/partials.php b/src/partials.php
new file mode 100644
index 0000000..c5170af
--- /dev/null
+++ b/src/partials.php
@@ -0,0 +1,31 @@
+<?php
+function html_navigation_bar()
+{
+ echo '' ?>
+ <section class="navbar">
+ <h1>AlrightTV</h1>
+ <div class="links">
+ <a href="/emotes" class="button">Emotes</a>
+ <a href="/emotes/upload.php" class="button">Upload</a>
+ <a href="/login" class="button">Log in...</a>
+ </div>
+ </section>
+ <?php ;
+}
+
+function html_navigation_search()
+{
+ echo '' ?>
+ <section class="box">
+ <div class="box navtab">
+ Search...
+ </div>
+ <div class="box content">
+ <form action="/emotes/search.php" method="get">
+ <input type="text" name="q" style="padding:4px;"><br>
+ <button type="submit" style="width:100%;margin-top:6px;">Find</button>
+ </form>
+ </div>
+ </section>
+ <?php ;
+} \ No newline at end of file