From 201f76863208519fc743bd588d5564c0e071173f Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Wed, 7 May 2025 14:47:54 +0200 Subject: [PATCH 1/6] Bump navbar opacities --- src/app/conf/2025/components/navbar.tsx | 38 ++++++++----------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/src/app/conf/2025/components/navbar.tsx b/src/app/conf/2025/components/navbar.tsx index 9dbf79ed41..f4056d6bfe 100644 --- a/src/app/conf/2025/components/navbar.tsx +++ b/src/app/conf/2025/components/navbar.tsx @@ -37,7 +37,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement { return ( <>
@@ -142,26 +139,15 @@ function GraphQLLogo(props: React.SVGProps) { function BackdropBlur() { const mask = "linear-gradient(to bottom, #000 0% 50%, transparent 50% 100%)" - const edgeMask = - "linear-gradient(to bottom, black 0, black 1.1px, transparent 1.1px)" return ( - <> -
-
- +
) } From 5214190b15644f900c0f99de7bd63024640f0a8a Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Wed, 7 May 2025 16:06:10 +0200 Subject: [PATCH 2/6] Make the Navbar okay --- src/app/conf/2025/components/hero/index.tsx | 3 +- src/app/conf/2025/components/navbar.tsx | 33 ++++++++++++--------- src/app/conf/2025/layout.tsx | 2 +- src/globals.css | 8 +++++ 4 files changed, 30 insertions(+), 16 deletions(-) diff --git a/src/app/conf/2025/components/hero/index.tsx b/src/app/conf/2025/components/hero/index.tsx index b2bb824827..12629dd12c 100644 --- a/src/app/conf/2025/components/hero/index.tsx +++ b/src/app/conf/2025/components/hero/index.tsx @@ -11,8 +11,9 @@ import blurBean from "./blur-bean-cropped.webp" import heroPhoto from "./hero-photo.jpeg" export function Hero() { + // gql-conf-navbar-strip dark:before:bg-[#000]/40 dark:before:bg-[#000]/40 return ( -
+
diff --git a/src/app/conf/2025/components/navbar.tsx b/src/app/conf/2025/components/navbar.tsx index f4056d6bfe..74e19c5a6c 100644 --- a/src/app/conf/2025/components/navbar.tsx +++ b/src/app/conf/2025/components/navbar.tsx @@ -32,8 +32,6 @@ export function Navbar({ links, year }: NavbarProps): ReactElement { setMobileDrawerOpen(false) }, [pathname]) - const navbarHeight = "70px" - return ( <>
+
-
+
@@ -65,10 +59,21 @@ export function Navbar({ links, year }: NavbarProps): ReactElement { / GraphQLConf {year}
+
+

+ + - + +

+
+ Amsterdam, Netherlands +
+
+ {mobileDrawerOpen && (
)} @@ -138,7 +143,7 @@ function GraphQLLogo(props: React.SVGProps) { } function BackdropBlur() { - const mask = "linear-gradient(to bottom, #000 0% 50%, transparent 50% 100%)" + const mask = "linear-gradient(to bottom,#000 0% 50%, transparent 50% 100%)" return (
Date: Wed, 7 May 2025 17:10:36 +0200 Subject: [PATCH 3/6] Add background strips per section --- src/app/conf/2025/components/hero/index.tsx | 5 ++--- src/app/conf/2025/components/navbar.tsx | 8 +------- src/app/conf/2025/page.tsx | 20 ++++++++++---------- src/globals.css | 2 +- tailwind.config.ts | 2 ++ 5 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/app/conf/2025/components/hero/index.tsx b/src/app/conf/2025/components/hero/index.tsx index 12629dd12c..2c8f990701 100644 --- a/src/app/conf/2025/components/hero/index.tsx +++ b/src/app/conf/2025/components/hero/index.tsx @@ -11,9 +11,8 @@ import blurBean from "./blur-bean-cropped.webp" import heroPhoto from "./hero-photo.jpeg" export function Hero() { - // gql-conf-navbar-strip dark:before:bg-[#000]/40 dark:before:bg-[#000]/40 return ( -
+
@@ -43,7 +42,7 @@ export function Hero() {
-
+
-
+
- -
+
+ +
+
-
-
- - - -
-
+
+ + + +
diff --git a/src/globals.css b/src/globals.css index 1b60c971de..efca847c5b 100644 --- a/src/globals.css +++ b/src/globals.css @@ -518,7 +518,7 @@ div[id^="headlessui-menu-items"] { } .gql-conf-navbar-strip { - @apply relative before:sticky before:top-0 before:z-[9] before:-mt-[var(--navbar-h)] before:block before:h-[var(--navbar-h)] before:w-full before:content-['']; + @apply relative [contain:paint] before:sticky before:top-0 before:z-[9] before:-mt-[var(--navbar-h)] before:block before:h-[var(--navbar-h)] before:w-full before:content-['']; } :root { diff --git a/tailwind.config.ts b/tailwind.config.ts index fdb8460ae9..540330efc9 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -55,6 +55,8 @@ const config: Config = { "neu-700": "hsl(var(--color-neu-700) / )", "neu-800": "hsl(var(--color-neu-800) / )", "neu-900": "hsl(var(--color-neu-900) / )", + + blk: "#000", // #endregion new design system colors }, backgroundImage: { From 6abca31849010203c30ad7ec2acd68511a77d2dd Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Wed, 7 May 2025 17:25:35 +0200 Subject: [PATCH 4/6] Remove unused import --- src/app/conf/2025/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/conf/2025/layout.tsx b/src/app/conf/2025/layout.tsx index f735b8e507..271ae1807c 100644 --- a/src/app/conf/2025/layout.tsx +++ b/src/app/conf/2025/layout.tsx @@ -5,7 +5,7 @@ import { GraphQLConf, HostedByGraphQLFoundation } from "@/icons" import NextLink from "next/link" import { NewFontsStyleTag } from "../../fonts" import "../../colors.css" -import { Navbar, NavbarBackgroundStrip } from "./components/navbar" +import { Navbar } from "./components/navbar" // @ts-expect-error: we want to import the same version as Nextra for the main page import { ThemeProvider } from "next-themes" From 9e668893e40685c5a9e95086accde7b4e26222c4 Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Thu, 8 May 2025 01:21:04 +0200 Subject: [PATCH 5/6] Make the navbar more mobile friendly --- src/app/conf/2025/components/navbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/conf/2025/components/navbar.tsx b/src/app/conf/2025/components/navbar.tsx index 7b13e80760..030b115edd 100644 --- a/src/app/conf/2025/components/navbar.tsx +++ b/src/app/conf/2025/components/navbar.tsx @@ -45,7 +45,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement { )} > -
+
@@ -53,7 +53,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement { / GraphQLConf {year}
-
+

- From 5173e22367e352e0e900b9ed4bae487cb2697087 Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Thu, 8 May 2025 11:40:38 +0200 Subject: [PATCH 6/6] Make the navbar consistent color at the top --- src/app/conf/2025/components/navbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/conf/2025/components/navbar.tsx b/src/app/conf/2025/components/navbar.tsx index 030b115edd..673ab017cc 100644 --- a/src/app/conf/2025/components/navbar.tsx +++ b/src/app/conf/2025/components/navbar.tsx @@ -35,8 +35,8 @@ export function Navbar({ links, year }: NavbarProps): ReactElement { )} />