feat(header): frosted-glass mobile sheet
Match the desktop nav's frosted aesthetic on the mobile menu: - SheetContent in SiteHeader overrides the default bg-background with bg-background/65 + backdrop-blur-xl + backdrop-saturate-150 (same recipe the sticky <header> uses), plus a translucent white/10 border so the slide-in panel reads as glass rather than a solid green block. - SheetContent.vue (shared primitive): drop the overlay opacity from bg-black/80 to bg-black/30 so the page behind the sheet dims enough to indicate focus, but the pinned landscape still shows through. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ba009ed4b7
commit
35bec04fd2
2 changed files with 5 additions and 2 deletions
|
|
@ -163,7 +163,10 @@ watch(() => route.path, closeMobile)
|
|||
<span class="block h-0.5 w-6 bg-foreground"></span>
|
||||
</button>
|
||||
</SheetTrigger>
|
||||
<SheetContent side="right" class="w-full overflow-y-auto sm:max-w-sm">
|
||||
<SheetContent
|
||||
side="right"
|
||||
class="w-full overflow-y-auto border-white/10 bg-background/65 backdrop-blur-xl backdrop-saturate-150 sm:max-w-sm"
|
||||
>
|
||||
<SheetHeader>
|
||||
<SheetTitle class="font-display uppercase tracking-wider">
|
||||
{{ t('nav.menu') }}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|||
<template>
|
||||
<DialogPortal>
|
||||
<DialogOverlay
|
||||
class="fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
||||
class="fixed inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
||||
/>
|
||||
<DialogContent
|
||||
:class="cn(sheetVariants({ side }), props.class)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue