|
1 | 1 | <script lang="ts"> |
2 | 2 | import * as Icon from "../icons/index.js"; |
3 | | - import { page } from "$app/stores"; |
| 3 | + import { page } from "$app/state"; |
4 | 4 | import { siteConfig } from "$lib/config/site.js"; |
5 | 5 | import { cn } from "$lib/utils.js"; |
6 | 6 | </script> |
|
17 | 17 | href="/docs" |
18 | 18 | class={cn( |
19 | 19 | "hover:text-foreground/80 transition-colors", |
20 | | - $page.url.pathname === "/docs" ? "text-foreground" : "text-foreground/60" |
| 20 | + page.url.pathname === "/docs" ? "text-foreground" : "text-foreground/60" |
21 | 21 | )} |
22 | 22 | > |
23 | 23 | Docs |
|
26 | 26 | href="/docs/components" |
27 | 27 | class={cn( |
28 | 28 | "hover:text-foreground/80 transition-colors", |
29 | | - $page.url.pathname.startsWith("/docs/components") |
| 29 | + page.url.pathname.startsWith("/docs/components") |
30 | 30 | ? "text-foreground" |
31 | 31 | : "text-foreground/60" |
32 | 32 | )} |
|
37 | 37 | href="/blocks" |
38 | 38 | class={cn( |
39 | 39 | "hover:text-foreground/80 transition-colors", |
40 | | - $page.url.pathname.startsWith("/blocks") ? "text-foreground" : "text-foreground/60" |
| 40 | + page.url.pathname.startsWith("/blocks") ? "text-foreground" : "text-foreground/60" |
41 | 41 | )} |
42 | 42 | > |
43 | 43 | Blocks |
|
46 | 46 | href="/themes" |
47 | 47 | class={cn( |
48 | 48 | "hover:text-foreground/80 transition-colors", |
49 | | - $page.url.pathname.startsWith("/themes") ? "text-foreground" : "text-foreground/60" |
| 49 | + page.url.pathname.startsWith("/themes") ? "text-foreground" : "text-foreground/60" |
50 | 50 | )} |
51 | 51 | > |
52 | 52 | Themes |
|
55 | 55 | href="/examples" |
56 | 56 | class={cn( |
57 | 57 | "hover:text-foreground/80 transition-colors", |
58 | | - $page.url.pathname.startsWith("/examples") |
59 | | - ? "text-foreground" |
60 | | - : "text-foreground/60" |
| 58 | + page.url.pathname.startsWith("/examples") ? "text-foreground" : "text-foreground/60" |
61 | 59 | )} |
62 | 60 | > |
63 | 61 | Examples |
|
67 | 65 | href="/colors" |
68 | 66 | class={cn( |
69 | 67 | "hover:text-foreground/80 transition-colors", |
70 | | - $page.url.pathname.startsWith("/colors") ? "text-foreground" : "text-foreground/60" |
| 68 | + page.url.pathname.startsWith("/colors") ? "text-foreground" : "text-foreground/60" |
71 | 69 | )} |
72 | 70 | > |
73 | 71 | Colors |
|
0 commit comments