Rewrite page in Svelte 5 #49
2 changed files with 5 additions and 1 deletions
|
@ -11,3 +11,5 @@ node_modules
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|
||||||
|
/src/lib/components/ui
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
href="/"
|
href="/"
|
||||||
class="{button} + {$page.url.pathname === '/' ? 'border-primary text-primary' : 'text-accent'}"
|
class="{button} + {$page.url.pathname === '/'
|
||||||
|
? 'border-primary text-primary'
|
||||||
|
: 'text-accent'}"
|
||||||
>
|
>
|
||||||
Home
|
Home
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Reference in a new issue