Skip to content

Commit 9432bf4

Browse files
committed
Add background strips per section
1 parent e7b36c5 commit 9432bf4

File tree

5 files changed

+16
-21
lines changed

5 files changed

+16
-21
lines changed

src/app/conf/2025/components/hero/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ import blurBean from "./blur-bean-cropped.webp"
1111
import heroPhoto from "./hero-photo.jpeg"
1212

1313
export function Hero() {
14-
// gql-conf-navbar-strip dark:before:bg-[#000]/40 dark:before:bg-[#000]/40
1514
return (
16-
<article className="gql-conf-navbar-strip relative isolate flex flex-col justify-center bg-pri-base text-neu-0 before:bg-white/30 dark:bg-pri-darker dark:text-neu-900 dark:before:bg-[#000]/40">
15+
<article className="gql-conf-navbar-strip before:dark:bg-blk/40 relative isolate flex flex-col justify-center bg-pri-base text-neu-0 before:bg-white/30 dark:bg-pri-darker dark:text-neu-900">
1716
<article className="relative">
1817
<Stripes />
1918
<div className="gql-conf-container mx-auto flex max-w-full flex-col gap-12 overflow-hidden p-4 pt-6 sm:p-8 sm:pt-12 md:gap-12 md:bg-left md:p-12 lg:px-24 lg:pb-16 lg:pt-24">
@@ -43,7 +42,7 @@ export function Hero() {
4342
</div>
4443
</div>
4544
</article>
46-
<div className="bg-[#000]">
45+
<div className="bg-blk">
4746
<Image
4847
src={heroPhoto}
4948
width={1920}

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
"use client"
22

3-
import {
4-
ReactElement,
5-
ReactNode,
6-
useCallback,
7-
useEffect,
8-
useState,
9-
} from "react"
3+
import { ReactElement, useCallback, useEffect, useState } from "react"
104
import NextLink from "next/link"
115
import { clsx } from "clsx"
126
import { usePathname } from "next/navigation"

src/app/conf/2025/page.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ export default function Page() {
2222
return (
2323
<main className="gql-all-anchors-focusable antialiased">
2424
<Hero />
25-
<div className="gql-conf-container text-neu-900">
25+
<div className="gql-conf-container gql-conf-navbar-strip before:dark:bg-blk/30 text-neu-900 before:bg-white/40">
2626
<RegisterToday className="md:mb-8 md:mt-24" />
2727
<WhatToExpectSection className="md:mb-8 md:mt-24" />
2828
<TopMindsSection className="md:mb-8 md:mt-24" hasSpeakersPage={false} />
2929
</div>
30-
<GetYourTicket />
31-
<div className="gql-conf-container text-neu-900">
30+
<div className="gql-conf-navbar-strip before:bg-white/40 before:dark:bg-pri-dark/[0.45]">
31+
<GetYourTicket />
32+
</div>
33+
<div className="gql-conf-container gql-conf-navbar-strip before:dark:bg-blk/30 text-neu-900 before:bg-white/50">
3234
<RegisterSection />
3335
<Sponsors heading="Thanks to our 2024 sponsors!" />
3436
<CallForProposals />
35-
</div>
36-
<div className="container my-20 flex flex-col gap-20 md:my-32 md:gap-32 [.light_&_.text-white]:text-neu-900 [.light_&_[alt='Grafbase_logo']]:invert">
37-
<Sponsor />
38-
<Register />
39-
<Venue />
40-
</div>
41-
<div className="gql-conf-container text-neu-900">
37+
<div className="container my-20 flex flex-col gap-20 md:my-32 md:gap-32 [.light_&_.text-white]:text-neu-900 [.light_&_[alt='Grafbase_logo']]:invert">
38+
<Sponsor />
39+
<Register />
40+
<Venue />
41+
</div>
4242
<FAQ />
4343
</div>
4444
</main>

src/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ div[id^="headlessui-menu-items"] {
518518
}
519519

520520
.gql-conf-navbar-strip {
521-
@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-[''];
521+
@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-[''];
522522
}
523523

524524
:root {

tailwind.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ const config: Config = {
5555
"neu-700": "hsl(var(--color-neu-700) / <alpha-value>)",
5656
"neu-800": "hsl(var(--color-neu-800) / <alpha-value>)",
5757
"neu-900": "hsl(var(--color-neu-900) / <alpha-value>)",
58+
59+
blk: "#000",
5860
// #endregion new design system colors
5961
},
6062
backgroundImage: {

0 commit comments

Comments
 (0)