From 3396c4949ec6f1a16957b6e004cae176126ad5f4 Mon Sep 17 00:00:00 2001 From: Noel Sabia Date: Fri, 23 Oct 2026 20:10:52 +0200 Subject: [PATCH] feat(ui): mobile bottom nav on Nuxt Icon, footer hidden on phones - AppBottomNav: fixed bar below md with Overview, Life Map and Dev View - default.vue mounts it and carries pb-16 md:pb-0 so the footer stays clear - AppFooter is hidden below md, where the bar takes over - icons come from @nuxt/icon (mode svg, scanned client bundle) with the Material Symbols collection installed locally, replacing the webfont - deletes the 3.9 MiB Material Symbols woff2 and its @font-face --- app/assets/css/main.css | 24 ---- app/components/AppBottomNav.vue | 31 ++++++ app/components/AppFooter.vue | 2 +- app/layouts/default.vue | 3 +- nuxt.config.ts | 10 +- package.json | 2 + pnpm-lock.yaml | 103 ++++++++++++++++++ pnpm-workspace.yaml | 1 + .../fonts/material-symbols-outlined-var.woff2 | Bin 4001276 -> 0 bytes 9 files changed, 149 insertions(+), 27 deletions(-) create mode 100644 app/components/AppBottomNav.vue delete mode 100644 public/fonts/material-symbols-outlined-var.woff2 diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 49cef53..bd8370c 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -27,13 +27,6 @@ font-display: swap; src: url('/fonts/jetbrains-mono-var.woff2') format('woff2'); } -@font-face { - font-family: 'Material Symbols Outlined'; - font-style: normal; - font-weight: 100 700; - font-display: block; - src: url('/fonts/material-symbols-outlined-var.woff2') format('woff2'); -} @tailwind base; @tailwind components; @@ -50,20 +43,3 @@ margin-bottom: 0 !important; } } - -@layer components { - .material-symbols-outlined { - font-family: 'Material Symbols Outlined'; - font-weight: normal; - font-style: normal; - line-height: 1; - letter-spacing: normal; - text-transform: none; - white-space: nowrap; - word-wrap: normal; - direction: ltr; - display: inline-block; - font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; - -webkit-font-smoothing: antialiased; - } -} diff --git a/app/components/AppBottomNav.vue b/app/components/AppBottomNav.vue new file mode 100644 index 0000000..f0f174c --- /dev/null +++ b/app/components/AppBottomNav.vue @@ -0,0 +1,31 @@ + diff --git a/app/components/AppFooter.vue b/app/components/AppFooter.vue index 227bd80..3b2c45e 100644 --- a/app/components/AppFooter.vue +++ b/app/components/AppFooter.vue @@ -1,5 +1,5 @@