File tree Expand file tree Collapse file tree 3 files changed +19
-15
lines changed
apps/website/src/components Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export default component$(
27
27
( { showVersion = false , showBottomBorder = false } : HeaderProps ) => {
28
28
const location = useLocation ( ) ;
29
29
const appState = useContext ( APP_STATE_CONTEXT_ID ) ;
30
+
30
31
const menuOpenSignal = useSignal ( false ) ;
31
32
32
33
const kitSignal = useComputed$ ( ( ) => {
@@ -61,18 +62,13 @@ export default component$(
61
62
: `` ,
62
63
] }
63
64
>
64
- < button
65
- type = "button"
66
- aria-label = "Toggle navigation"
67
- onClick$ = { toggleMenu$ }
68
- class = "block lg:hidden"
69
- >
70
- { menuOpenSignal . value ? < CloseIcon /> : < MenuIcon /> }
71
- </ button >
72
65
{ menuOpenSignal . value && (
73
- < aside class = "fixed top-0 left-0" >
74
- < div class = "fixed h-screen w-screen bg-gray-900/20 backdrop-blur-sm" > </ div >
75
- < div class = "fixed h-screen w-80 overflow-y-scroll bg-white" >
66
+ < aside class = "fixed top-20 left-0 lg:hidden" >
67
+ < div
68
+ onClick$ = { toggleMenu$ }
69
+ class = "fixed h-screen w-screen bg-gray-900/20 backdrop-blur-sm"
70
+ > </ div >
71
+ < div class = "fixed h-screen w-screen sm:w-80 overflow-y-scroll bg-white dark:bg-[var(--color-bg)]" >
76
72
< Menu onClose$ = { toggleMenu$ } />
77
73
</ div >
78
74
</ aside >
@@ -114,6 +110,14 @@ export default component$(
114
110
>
115
111
< GitHubIcon />
116
112
</ a >
113
+ < button
114
+ type = "button"
115
+ aria-label = "Toggle navigation"
116
+ onClick$ = { toggleMenu$ }
117
+ class = "block lg:hidden"
118
+ >
119
+ { menuOpenSignal . value ? < CloseIcon /> : < MenuIcon /> }
120
+ </ button >
117
121
</ header >
118
122
) ;
119
123
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default component$(({ kit }: Kit) => {
11
11
hover:-outline-offset-4 hover:outline-4 hover:outline hover:outline-[var(--qwik-light-blue)] hover:scale-[1.025]
12
12
focus:-outline-offset-4 focus:outline-4 focus:outline focus:outline-[var(--qwik-light-blue)] focus:scale-[1.025] duration-150"
13
13
>
14
- < Card class = { `max-w-md` } >
14
+ < Card >
15
15
< CardImage
16
16
src = { `/images/kit-cta-${ kit } .png` }
17
17
alt = { `${ kit } kit` }
Original file line number Diff line number Diff line change @@ -113,15 +113,15 @@ export const Menu = component$<Props>(({ onClose$ }) => {
113
113
} ) ;
114
114
115
115
return (
116
- < div class = "px-4 py-4" >
116
+ < div class = "px-4 py-4 " >
117
117
< div class = "flex items-center justify-between" >
118
118
< h4 class = "text-2xl" > Documentation</ h4 >
119
- { onClose$ && (
119
+ { /* { onClose$ && (
120
120
// eslint-disable-next-line qwik/valid-lexical-scope
121
121
<h5 onClick$={onClose$}>
122
122
<CloseIcon />
123
123
</h5>
124
- ) }
124
+ )} */ }
125
125
</ div >
126
126
< div class = "mt-4" >
127
127
< div class = "mt-8 flex items-center" >
You can’t perform that action at this time.
0 commit comments