From fe0a572cba1959f6a9b36da29f03db8627539438 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Fri, 3 Jun 2022 12:53:34 -0500
Subject: Move files

---
 src/components/Sidebar.svelte | 56 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 src/components/Sidebar.svelte

(limited to 'src/components/Sidebar.svelte')

diff --git a/src/components/Sidebar.svelte b/src/components/Sidebar.svelte
new file mode 100644
index 0000000..eaea191
--- /dev/null
+++ b/src/components/Sidebar.svelte
@@ -0,0 +1,56 @@
+<script>
+    import DarkModeSwitch from "./components/DarkModeSwitch.svelte";
+    
+    let active_section : undefined;
+
+    let sections = [
+        'File Uploads',
+        'Peer Teachers',
+        'Labs',
+        'Active Peer Teachers',
+        'Stats',
+        'TAMU html output'
+    ]
+
+    let sections2 = [
+        {name: 'File Uploads', file: null, isActive: 'active'},
+        {name: 'Peer Teachers', file: null, isActive: 'active'}
+    ]
+
+    function chooseSection(sec) {
+        active_section = sec;
+        console.log('Chose section', active_section)
+    }
+</script>
+
+<!-- Entire Page -->
+<div class="flex flex-row h-screen">
+    <!-- SIDEBAR -->
+    <div class="w-2/12 flex flex-col border-r">
+        <!-- Header for sidebar sections -->
+        <div
+            class="font-serif flex-none text-center text-2xl text-neutral-900 p-4 border-b font-black"
+        >
+            <!-- Text -->
+            <div>Peer Teacher Manager</div>
+            <div>
+                <DarkModeSwitch />
+            </div>
+        </div>
+
+        <!-- Sidebar sections -->
+        <div class="flex-col overflow-y-auto">
+            <ul class="menu bg-base-100 w-full text-xl">
+                {#each sections as sec, i}
+                    <li><div class=""> {sec} </div></li>
+                {/each}
+                {#each sections2 as sec, i}
+                    <li><div class="" on:click={() => chooseSection(sec)}> {sec.name} </div></li>
+                {/each}
+            </ul>
+        </div>
+    </div>
+
+    <!-- Main content -->
+    <div class="flex-auto">Content</div>
+</div>
-- 
cgit v1.2.3

