Skip to content

Commit 8498cff

Browse files
committed
Bump navbar opacities
1 parent 39730b7 commit 8498cff

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

src/app/conf/2025/components/navbar.tsx

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
3737
return (
3838
<>
3939
<div
40-
/* pink background "prelude" */ className={clsx(
40+
className={clsx(
4141
"top-0 w-full scale-y-105 bg-pri-base dark:bg-pri-darker",
4242
mobileDrawerOpen ? "static" : "absolute",
4343
)}
@@ -46,9 +46,8 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
4646
}}
4747
/>
4848
<header
49-
// todo: not white, but ALWAYS contrasting color, either white or black depending on background
5049
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",
5251
mobileDrawerOpen ? "fixed" : "sticky",
5352
)}
5453
style={
@@ -76,9 +75,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
7675
<nav
7776
className={clsx(
7877
"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",
8279
)}
8380
>
8481
<div className="flex w-full flex-col lg:mt-0 lg:block">
@@ -142,26 +139,15 @@ function GraphQLLogo(props: React.SVGProps<SVGSVGElement>) {
142139

143140
function BackdropBlur() {
144141
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)"
147142
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+
/>
166152
)
167153
}

0 commit comments

Comments
 (0)