@@ -37,7 +37,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
37
37
return (
38
38
< >
39
39
< div
40
- /* pink background "prelude" */ className = { clsx (
40
+ className = { clsx (
41
41
"top-0 w-full scale-y-105 bg-pri-base dark:bg-pri-darker" ,
42
42
mobileDrawerOpen ? "static" : "absolute" ,
43
43
) }
@@ -46,9 +46,8 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
46
46
} }
47
47
/>
48
48
< header
49
- // todo: not white, but ALWAYS contrasting color, either white or black depending on background
50
49
className = { clsx (
51
- "top-0 z-10 w-full bg-white/20 font-mono text-white antialiased" ,
50
+ "top-0 z-10 w-full border-b border-black/60 bg-white/40 font-mono text-neu-900 antialiased dark:border-white/80 dark:bg-black/40 " ,
52
51
mobileDrawerOpen ? "fixed" : "sticky" ,
53
52
) }
54
53
style = {
@@ -76,9 +75,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
76
75
< nav
77
76
className = { clsx (
78
77
"inset-0 z-20 flex gap-7 typography-menu max-lg:fixed max-lg:mt-[calc(var(--navbar-h)+1px)] max-lg:flex-col max-md:min-w-[50%] sm:max-lg:p-4 lg:items-end" ,
79
- mobileDrawerOpen
80
- ? "translate-x-0 text-neu-900"
81
- : "text-white max-lg:translate-x-full" ,
78
+ mobileDrawerOpen ? "translate-x-0" : "max-lg:translate-x-full" ,
82
79
) }
83
80
>
84
81
< div className = "flex w-full flex-col lg:mt-0 lg:block" >
@@ -142,26 +139,15 @@ function GraphQLLogo(props: React.SVGProps<SVGSVGElement>) {
142
139
143
140
function BackdropBlur ( ) {
144
141
const mask = "linear-gradient(to bottom, #000 0% 50%, transparent 50% 100%)"
145
- const edgeMask =
146
- "linear-gradient(to bottom, black 0, black 1.1px, transparent 1.1px)"
147
142
return (
148
- < >
149
- < div
150
- // note: we can't use the background trick to reduce flickering, because we have many section
151
- // background colors and big images, so we'd have to change the --bg var with javascript
152
- className = "pointer-events-none absolute inset-0 -z-10 h-[200%] backdrop-blur-[6.4px]"
153
- style = { {
154
- maskImage : mask ,
155
- WebkitMaskImage : mask ,
156
- } }
157
- />
158
- < div
159
- className = "pointer-events-none absolute inset-0 -z-10 h-full translate-y-full bg-white/50 backdrop-blur-sm backdrop-brightness-200 backdrop-grayscale-[50%]"
160
- style = { {
161
- maskImage : edgeMask ,
162
- WebkitMaskImage : edgeMask ,
163
- } }
164
- />
165
- </ >
143
+ < div
144
+ // note: we can't use the background trick to reduce flickering, because we have many section
145
+ // background colors and big images, so we'd have to change the --bg var with javascript
146
+ className = "pointer-events-none absolute inset-0 -z-10 h-[200%] backdrop-blur-[6.4px]"
147
+ style = { {
148
+ maskImage : mask ,
149
+ WebkitMaskImage : mask ,
150
+ } }
151
+ />
166
152
)
167
153
}
0 commit comments