diff --git a/components/layouts/navbar.vue b/components/layouts/navbar.vue index f020266..80badb8 100644 --- a/components/layouts/navbar.vue +++ b/components/layouts/navbar.vue @@ -1,4 +1,6 @@ - + - import { theme } from "ant-design-vue"; + import { theme, Grid } from "ant-design-vue"; import navbar from "~/components/layouts/navbar.vue"; import cfooter from "~/components/layouts/footer.vue"; import sidebarThing from "~/components/layouts/sidebar.vue"; import icon from "~/components/icon.vue"; + const bp = Grid.useBreakpoint(); + const { useToken } = theme; const { token } = useToken(); @@ -15,6 +17,7 @@ } = await useApiFetch<{ stories: number; authors: number }>("/totals"); const collapsed = ref(true); + const nav = ref(false); collapsed.value = true; @@ -46,61 +49,68 @@ ¯\_(ツ)_/¯ Nothing here but crickets. - - - - - Rockfic - - - Band fiction that rocks - With {{ totals?.stories || 0 }} stories by {{ totals?.authors || 0 }} authors - + + + + Rockfic + + + Band fiction that rocks + With {{ totals?.stories || 0 }} stories by {{ totals?.authors || 0 }} authors - - + + + (nav = !nav)" v-if="!bp['md']"> + + + + + + + + - - - - - - - - (collapsed = !collapsed)"> - - + + + + (collapsed = !collapsed)"> + + + - - - + + + + + +