-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: home page layout + fix navbar links
- Loading branch information
1 parent
b16a3d4
commit 83b9656
Showing
6 changed files
with
91 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<v-app> | ||
<Navbar></Navbar> | ||
<v-main class="d-flex justify-center"> | ||
<v-navigation-drawer | ||
v-model="drawer" | ||
:rail="rail" | ||
@click="rail = !rail" | ||
elevation="2" | ||
width="20%" | ||
app | ||
> | ||
<v-list> | ||
<v-list-item title="Users" nav></v-list-item> | ||
</v-list> | ||
</v-navigation-drawer> | ||
<v-btn icon @click.stop="drawer = !drawer" class="rounded-1"> | ||
<v-icon>{{ | ||
drawer ? "mdi-chevron-left" : "mdi-chevron-right" | ||
}}</v-icon> | ||
</v-btn> | ||
<v-container class="elevation-2 mt-5 mb-5"> | ||
<v-row> | ||
<v-col cols="3"> </v-col> | ||
<v-col cols="9"> </v-col> | ||
</v-row> | ||
</v-container> | ||
</v-main> | ||
<Footer></Footer> | ||
</v-app> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { onMounted, ref } from "vue"; | ||
import axios from "axios"; | ||
import Navbar from "./Navbar.vue"; | ||
import Footer from "./Footer.vue"; | ||
const drawer = ref<boolean>(true); | ||
const rail = ref<boolean>(true); | ||
const api = axios.create({ | ||
baseURL: "http://localhost:4000", | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
}); | ||
const flists: any = ref(""); | ||
onMounted(async () => { | ||
try { | ||
flists.value = await api.get("/v1/api/fl"); | ||
} catch (error) { | ||
console.error("Failed to fetch flists", error); | ||
} | ||
}); | ||
</script> | ||
|
||
<style></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<template> | ||
<v-app-bar class="bg-purple-darken-1"> | ||
<v-app-bar-nav-icon class="ml-8"> | ||
<v-app-bar-nav-icon to="Home" class="ml-8"> | ||
<v-img :src="whiteLogo" contain height="50px" width="50px"></v-img> | ||
</v-app-bar-nav-icon> | ||
<v-spacer> </v-spacer> | ||
<v-btn to="Create">Create flist</v-btn> | ||
<v-btn to="Flists">View List</v-btn> | ||
<div class="mr-5" v-if="auth === null || auth?.length === 0"> | ||
<v-btn to="Login">Login</v-btn> | ||
</div> | ||
<div class="mr-5" v-else> | ||
<v-btn to="Create">Create flist</v-btn> | ||
<v-btn to="Flists">View List</v-btn> | ||
</div> | ||
</v-app-bar> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import whiteLogo from "../assets/logo_white.png"; | ||
const auth: string | null = sessionStorage.getItem("token"); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<v-app> | ||
<Navbar /> | ||
<v-main> </v-main> | ||
<Footer /> | ||
</v-app> | ||
</template> | ||
<script setup lang="ts"> | ||
import Navbar from "./Navbar.vue"; | ||
import Footer from "./Footer.vue"; | ||
</script> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters