UX/UI improvements.
This commit is contained in:
parent
418d3cc402
commit
4e6f5d36b8
14 changed files with 1964 additions and 924 deletions
|
|
@ -1,6 +1,10 @@
|
|||
<template>
|
||||
<div class="site">
|
||||
<a href="#main-content" class="sr-only focus:not-sr-only focus:absolute focus:z-[100] focus:p-3 focus:bg-[var(--bg)] focus:text-[var(--text)]">Skip to content</a>
|
||||
<a
|
||||
href="#main-content"
|
||||
class="sr-only focus:not-sr-only focus:absolute focus:z-[100] focus:p-3 focus:bg-[var(--bg)] focus:text-[var(--text)]"
|
||||
>Skip to content</a
|
||||
>
|
||||
<!-- Desktop Sidebar -->
|
||||
<AppNavigation class="sidebar-desktop" />
|
||||
|
||||
|
|
@ -24,20 +28,24 @@
|
|||
<AppNavigation :is-mobile="true" @navigate="isMobileMenuOpen = false" />
|
||||
</template>
|
||||
</USlideover>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const isMobileMenuOpen = ref(false)
|
||||
const route = useRoute()
|
||||
const isMobileMenuOpen = ref(false);
|
||||
const route = useRoute();
|
||||
|
||||
const pageBreadcrumbTitle = useState("pageBreadcrumbTitle", () => "");
|
||||
|
||||
const currentPageName = computed(() => {
|
||||
const path = route.path
|
||||
if (path === '/') return ''
|
||||
// Convert /member/dashboard → member / dashboard
|
||||
return path.slice(1).replace(/\//g, ' / ')
|
||||
})
|
||||
const path = route.path;
|
||||
if (path === "/") return "";
|
||||
const segments = path.slice(1).split("/");
|
||||
if (pageBreadcrumbTitle.value && segments.length > 1) {
|
||||
return [...segments.slice(0, -1), pageBreadcrumbTitle.value].join(" / ");
|
||||
}
|
||||
return segments.join(" / ");
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
@ -71,7 +79,7 @@ const currentPageName = computed(() => {
|
|||
}
|
||||
|
||||
.brand {
|
||||
font-family: 'Brygada 1918', serif;
|
||||
font-family: "Brygada 1918", serif;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--candle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue