|
4 | 4 | <m3-navigation-rail-toggle></m3-navigation-rail-toggle> |
5 | 5 |
|
6 | 6 | <app-seo-link href="home"> |
7 | | - <m3-navigation-rail-item label="Home" |
8 | | - [active]="currentRoute() === '/home'"> |
| 7 | + <m3-navigation-rail-item label="Home" [active]="currentRoute() === '/home'"> |
9 | 8 | <span slot="icon" class="material-symbols-outlined">home</span> |
10 | 9 | </m3-navigation-rail-item> |
11 | 10 | </app-seo-link> |
12 | 11 |
|
13 | 12 | <app-seo-link href="quick-start"> |
14 | | - <m3-navigation-rail-item label="Quick Start" |
15 | | - [active]="currentRoute() === '/quick-start'"> |
| 13 | + <m3-navigation-rail-item label="Quick Start" [active]="currentRoute() === '/quick-start'"> |
16 | 14 | <span slot="icon" class="material-symbols-outlined">rocket_launch</span> |
17 | 15 | </m3-navigation-rail-item> |
18 | 16 | </app-seo-link> |
19 | 17 |
|
20 | | - <div class="desktop-components-trigger" |
21 | | - (mouseenter)="onDesktopComponentsMouseEnter()" |
22 | | - (mouseleave)="onDesktopComponentsMouseLeave()" |
23 | | - (menu-item-select)="onComponentsMenuItemSelect($event)"> |
| 18 | + <div class="desktop-components-trigger" (mouseenter)="onDesktopComponentsMouseEnter()" |
| 19 | + (mouseleave)="onDesktopComponentsMouseLeave()" (menu-item-select)="onComponentsMenuItemSelect($event)"> |
24 | 20 | <app-seo-link href="components"> |
25 | | - <m3-navigation-rail-item label="Components" |
26 | | - [active]="isComponentsRoute()"> |
| 21 | + <m3-navigation-rail-item label="Components" [active]="isComponentsRoute()"> |
27 | 22 | <span slot="icon" class="material-symbols-outlined">browse</span> |
28 | 23 | </m3-navigation-rail-item> |
29 | 24 | </app-seo-link> |
30 | 25 |
|
31 | | - <m3-menu |
32 | | - placement="right-start" |
33 | | - [offset]="railExpanded() ? 24 : 8" |
34 | | - [open]="componentsMenuOpen()" |
35 | | - (mouseenter)="onDesktopComponentsMouseEnter()" |
36 | | - (mouseleave)="onDesktopComponentsMouseLeave()" |
37 | | - (menu-dismiss)="onComponentsMenuDismiss($event)" |
38 | | - style="--md-menu-max-height: calc(100vh - 200px);"> |
| 26 | + <m3-menu placement="right-start" [offset]="railExpanded() ? 24 : 8" [open]="componentsMenuOpen()" |
| 27 | + (mouseenter)="onDesktopComponentsMouseEnter()" (mouseleave)="onDesktopComponentsMouseLeave()" |
| 28 | + (menu-dismiss)="onComponentsMenuDismiss($event)" style="--md-menu-max-height: calc(100vh - 400px);"> |
39 | 29 | @for (item of componentMenuItems; track item.path) { |
40 | | - <app-seo-link [href]="item.path.substring(1)"> |
41 | | - <m3-menu-item [value]="item.path"> |
42 | | - <span slot="leading-icon" class="material-symbols-outlined">{{ item.icon }}</span> |
43 | | - {{ item.label }} |
44 | | - </m3-menu-item> |
45 | | - </app-seo-link> |
| 30 | + <app-seo-link [href]="item.path.substring(1)"> |
| 31 | + <m3-menu-item [value]="item.path"> |
| 32 | + <span slot="leading-icon" class="material-symbols-outlined">{{ item.icon }}</span> |
| 33 | + {{ item.label }} |
| 34 | + </m3-menu-item> |
| 35 | + </app-seo-link> |
46 | 36 | } |
47 | 37 | </m3-menu> |
48 | 38 | </div> |
49 | 39 |
|
50 | 40 | <app-seo-link href="contact"> |
51 | | - <m3-navigation-rail-item label="Contact" |
52 | | - [active]="currentRoute() === '/contact'"> |
| 41 | + <m3-navigation-rail-item label="Contact" [active]="currentRoute() === '/contact'"> |
53 | 42 | <span slot="icon" class="material-symbols-outlined">person</span> |
54 | 43 | </m3-navigation-rail-item> |
55 | 44 | </app-seo-link> |
56 | 45 |
|
57 | 46 | <m3-navigation-rail-item label="Theme" slot="bottom" (item-click)="toggleTheme()"> |
58 | 47 | @if(currentTheme !== 'dark') { |
59 | | - <span slot="icon" class="material-symbols-outlined">dark_mode</span> |
| 48 | + <span slot="icon" class="material-symbols-outlined">dark_mode</span> |
60 | 49 | } @else { |
61 | | - <span slot="icon" class="material-symbols-outlined">light_mode</span> |
| 50 | + <span slot="icon" class="material-symbols-outlined">light_mode</span> |
62 | 51 | } |
63 | 52 | </m3-navigation-rail-item> |
64 | 53 |
|
|
67 | 56 | </m3-navigation-rail-item> |
68 | 57 |
|
69 | 58 | <m3-navigation-rail-item label="GitHub" slot="bottom" (item-click)="openGitHub()"> |
70 | | - <svg slot="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"> |
| 59 | + <svg slot="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" |
| 60 | + fill="currentColor"> |
71 | 61 | <path |
72 | 62 | d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" /> |
73 | 63 | </svg> |
|
81 | 71 | </div> |
82 | 72 | </div> |
83 | 73 |
|
84 | | -<div class="mobile-nav-shell" |
85 | | - (menu-item-select)="onComponentsMenuItemSelect($event)"> |
| 74 | +<div class="mobile-nav-shell" (menu-item-select)="onComponentsMenuItemSelect($event)"> |
86 | 75 | <div class="mobile-components-anchor"> |
87 | | - <m3-menu |
88 | | - placement="top-center" |
89 | | - [offset]="12" |
90 | | - [open]="componentsMenuOpen()" |
91 | | - (menu-dismiss)="onComponentsMenuDismiss($event)" |
92 | | - style="--md-menu-max-height: calc(100dvh - 120px);"> |
| 76 | + <m3-menu placement="top-center" [offset]="12" [open]="componentsMenuOpen()" |
| 77 | + (menu-dismiss)="onComponentsMenuDismiss($event)" style="--md-menu-max-height: calc(100dvh - 200px);"> |
93 | 78 | @for (item of componentMenuItems; track item.path) { |
94 | | - <app-seo-link [href]="item.path.substring(1)"> |
95 | | - <m3-menu-item [value]="item.path"> |
96 | | - <span slot="leading-icon" class="material-symbols-outlined">{{ item.icon }}</span> |
97 | | - {{ item.label }} |
98 | | - </m3-menu-item> |
99 | | - </app-seo-link> |
| 79 | + <app-seo-link [href]="item.path.substring(1)"> |
| 80 | + <m3-menu-item [value]="item.path"> |
| 81 | + <span slot="leading-icon" class="material-symbols-outlined">{{ item.icon }}</span> |
| 82 | + {{ item.label }} |
| 83 | + </m3-menu-item> |
| 84 | + </app-seo-link> |
100 | 85 | } |
101 | 86 | </m3-menu> |
102 | 87 | </div> |
103 | 88 |
|
104 | 89 | <m3-navigation-bar class="mobile-nav" auto-layout> |
105 | 90 | <app-seo-link href="home"> |
106 | | - <m3-navigation-bar-item |
107 | | - label="Home" |
108 | | - [active]="currentRoute() === '/home'"> |
| 91 | + <m3-navigation-bar-item label="Home" [active]="currentRoute() === '/home'"> |
109 | 92 | <span slot="icon" class="material-symbols-outlined">home</span> |
110 | 93 | </m3-navigation-bar-item> |
111 | 94 | </app-seo-link> |
112 | 95 |
|
113 | 96 | <app-seo-link href="quick-start"> |
114 | | - <m3-navigation-bar-item |
115 | | - label="Quick Start" |
116 | | - [active]="currentRoute() === '/quick-start'"> |
| 97 | + <m3-navigation-bar-item label="Quick Start" [active]="currentRoute() === '/quick-start'"> |
117 | 98 | <span slot="icon" class="material-symbols-outlined">rocket_launch</span> |
118 | 99 | </m3-navigation-bar-item> |
119 | 100 | </app-seo-link> |
120 | 101 |
|
121 | 102 | <app-seo-link href="components"> |
122 | | - <m3-navigation-bar-item |
123 | | - id="mobile-components-trigger" |
124 | | - label="Components" |
125 | | - [active]="isComponentsRoute()" |
126 | | - (pointerdown)="onMobileComponentsPointerDown($event)" |
127 | | - (pointerup)="onMobileComponentsPointerUp($event)" |
128 | | - (pointercancel)="onMobileComponentsPointerCancel($event)" |
129 | | - (contextmenu)="onMobileComponentsContextMenu($event)"> |
| 103 | + <m3-navigation-bar-item id="mobile-components-trigger" label="Components" [active]="isComponentsRoute()" |
| 104 | + (pointerdown)="onMobileComponentsPointerDown($event)" (pointerup)="onMobileComponentsPointerUp($event)" |
| 105 | + (pointercancel)="onMobileComponentsPointerCancel($event)" (contextmenu)="onMobileComponentsContextMenu($event)"> |
130 | 106 | <span slot="icon" class="material-symbols-outlined">browse</span> |
131 | 107 | </m3-navigation-bar-item> |
132 | 108 | </app-seo-link> |
133 | 109 |
|
134 | 110 | <app-seo-link href="contact"> |
135 | | - <m3-navigation-bar-item |
136 | | - label="Contact" |
137 | | - [active]="currentRoute() === '/contact'"> |
| 111 | + <m3-navigation-bar-item label="Contact" [active]="currentRoute() === '/contact'"> |
138 | 112 | <span slot="icon" class="material-symbols-outlined">person</span> |
139 | 113 | </m3-navigation-bar-item> |
140 | 114 | </app-seo-link> |
141 | 115 |
|
142 | | - <m3-navigation-bar-item label="Settings" |
143 | | - (item-click)="openSettings()"> |
| 116 | + <m3-navigation-bar-item label="Settings" (item-click)="openSettings()"> |
144 | 117 | <span slot="icon" class="material-symbols-outlined">settings</span> |
145 | 118 | </m3-navigation-bar-item> |
146 | 119 | </m3-navigation-bar> |
|
0 commit comments