docs: refine static demo experience

This commit is contained in:
3252a8
2026-05-28 00:55:11 +03:00
parent 2b8bcd10b8
commit 62e950f5c4
6 changed files with 87 additions and 42 deletions
-5
View File
@@ -52,9 +52,6 @@ function navIcon(href: string) {
return undefined
}
function isDemoHref(href: string) {
return href === '/demo/' || href === '/demo'
}
---
<div class="box-border flex h-full items-center gap-2">
@@ -74,14 +71,12 @@ function isDemoHref(href: string) {
const href = getI18nText(item.href, route)
const label = getI18nText(item.label, route)
const icon = navIcon(href)
const demo = isDemoHref(href)
return (
<a
class:list={[
'-m-1.5 rounded-md p-1.5 text-(--sl-color-gray-3) no-underline hover:text-(--sl-color-white) focus-visible:outline-offset-0',
icon && 'minishop-header-link inline-flex items-center',
demo && 'minishop-demo-nav-link',
]}
href={href}
>