another stage of client authentication

This commit is contained in:
DecDuck
2024-10-08 16:13:46 +11:00
parent 1c63d62e3d
commit 57b6fa872e
10 changed files with 345 additions and 82 deletions
+63 -57
View File
@@ -1,66 +1,72 @@
<template>
<div class="bg-gray-950 flex flex-row px-48 py-5">
<div class="grow inline-flex items-center gap-x-20">
<Wordmark class="h-8" />
<nav class="inline-flex items-center">
<ol class="inline-flex items-center gap-x-12">
<li class="transition text-gray-300 hover:text-gray-100 uppercase font-display font-semibold text-md"
v-for="(nav, navIdx) in navigation">
{{ nav.label }}
</li>
</ol>
</nav>
</div>
<div class="inline-flex items-center">
<ol class="inline-flex gap-3">
<li v-for="(item, itemIdx) in quickActions">
<HeaderWidget @click="item.action" :notifications="item.notifications">
<component class="h-5" :is="item.icon" />
</HeaderWidget>
</li>
<HeaderUserWidget />
</ol>
</div>
<div class="hidden lg:flex bg-zinc-950 flex-row px-12 xl:px-48 py-5">
<div class="grow inline-flex items-center gap-x-20">
<NuxtLink to="/">
<Wordmark class="h-8" />
</NuxtLink>
<nav class="inline-flex items-center">
<ol class="inline-flex items-center gap-x-12">
<li
class="transition text-zinc-300 hover:text-zinc-100 uppercase font-display font-semibold text-md"
v-for="(nav, navIdx) in navigation"
>
{{ nav.label }}
</li>
</ol>
</nav>
</div>
<div class="inline-flex items-center">
<ol class="inline-flex gap-3">
<li v-for="(item, itemIdx) in quickActions">
<HeaderWidget
@click="item.action"
:notifications="item.notifications"
>
<component class="h-5" :is="item.icon" />
</HeaderWidget>
</li>
<HeaderUserWidget />
</ol>
</div>
</div>
</template>
<script setup lang="ts">
import { BellIcon, UserGroupIcon } from '@heroicons/vue/16/solid';
import type { NavigationItem, QuickActionNav } from '../composables/types';
import HeaderWidget from './HeaderWidget.vue';
import { BellIcon, UserGroupIcon } from "@heroicons/vue/16/solid";
import type { NavigationItem, QuickActionNav } from "../composables/types";
import HeaderWidget from "./HeaderWidget.vue";
const navigation: Array<NavigationItem> = [
{
prefix: '/store',
route: '/store',
label: "Store"
},
{
prefix: "/library",
route: "/library",
label: "Library"
},
{
prefix: "/community",
route: "/community",
label: "Community"
},
{
prefix: "/news",
route: "/news",
label: "News"
}
]
{
prefix: "/store",
route: "/store",
label: "Store",
},
{
prefix: "/library",
route: "/library",
label: "Library",
},
{
prefix: "/community",
route: "/community",
label: "Community",
},
{
prefix: "/news",
route: "/news",
label: "News",
},
];
const quickActions: Array<QuickActionNav> = [
{
icon: UserGroupIcon,
action: async () => { }
},
{
icon: BellIcon,
action: async () => { }
}
]
</script>
{
icon: UserGroupIcon,
action: async () => {},
},
{
icon: BellIcon,
action: async () => {},
},
];
</script>