initial
This commit is contained in:
parent
aa7c30950c
commit
72716e1c28
41 changed files with 15461 additions and 0 deletions
42
frontend/app/components/NavBar.vue
Normal file
42
frontend/app/components/NavBar.vue
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<template>
|
||||
<UNavigationMenu :items="items" class="w-full justify-start bg-neutral-50">
|
||||
<template #list-trailing>
|
||||
<div class="flex flex-1 justify-end mx-2">
|
||||
<UBadge
|
||||
icon="i-mdi-clock-outline"
|
||||
size="md"
|
||||
color="secondary"
|
||||
variant="solid"
|
||||
class="font-mono"
|
||||
>
|
||||
{{ currentTime }}
|
||||
</UBadge>
|
||||
</div>
|
||||
</template>
|
||||
</UNavigationMenu>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { NavigationMenuItem } from "@nuxt/ui";
|
||||
import { appState } from "#imports";
|
||||
|
||||
const state = appState();
|
||||
|
||||
const currentTime = computed(() => {
|
||||
return state.value.time.toLocaleTimeString();
|
||||
});
|
||||
|
||||
const items = ref<NavigationMenuItem[]>([
|
||||
{
|
||||
icon: "i-mdi-home",
|
||||
to: "/",
|
||||
active: false,
|
||||
},
|
||||
{
|
||||
label: "Data Structures",
|
||||
icon: "i-material-symbols-account-tree-outline-rounded",
|
||||
to: "/data",
|
||||
active: false,
|
||||
},
|
||||
]);
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue