Skip to content

Commit cbb9544

Browse files
committed
Get rid of dark blob, style dark mode
1 parent e4dcf59 commit cbb9544

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,25 @@ export function Venue(props: VenueProps) {
1212
<section
1313
{...props}
1414
style={{
15+
...({ "--photo": `url(${locationPhoto.src})` } as {}),
1516
...props.style,
16-
backgroundImage: `linear-gradient(0deg, hsl(var(--color-sec-light)) 0%, hsl(var(--color-sec-light)) 100%), url(${locationPhoto.src})`,
1717
backgroundBlendMode: "overlay, normal",
1818
backgroundSize: "cover",
1919
}}
20-
className={clsx("gql-conf-section relative", props.className)}
20+
className={clsx(
21+
"gql-conf-section relative bg-[linear-gradient(0deg,hsl(var(--color-sec-light))_0%,hsl(var(--color-sec-light))_100%),var(--photo)] dark:bg-[linear-gradient(0deg,#181f01_0%,#283502_100%),var(--photo)]",
22+
props.className,
23+
)}
2124
>
22-
<div className="flex gap-x-12 gap-y-10 bg-white/10 p-4 backdrop-blur-3xl dark:border-sec-darker max-lg:flex-col lg:p-16 xl:*:flex-1">
23-
<article className="flex shrink-0 flex-col gap-6 max-xl:max-w-[476px]">
25+
<div className="relative flex gap-x-12 gap-y-10 bg-white/10 p-4 dark:border-sec-darker max-lg:flex-col lg:p-16 xl:*:flex-1">
26+
<div
27+
className="absolute inset-0 backdrop-blur-3xl"
28+
style={{
29+
maskImage:
30+
"radial-gradient(circle at center, #fff 65%, rgb(255 0 0/.8) 99%)",
31+
}}
32+
/>
33+
<article className="relative flex shrink-0 flex-col gap-6 max-xl:max-w-[476px]">
2434
<h2 className="typography-h2">
2535
A place of innovation &&nbsp;creation
2636
</h2>
@@ -38,7 +48,7 @@ export function Venue(props: VenueProps) {
3848
Google Maps
3949
</Button>
4050
</article>
41-
<div className="flex-1">
51+
<div className="relative flex-1">
4252
<h3 className="mb-6 typography-h3">How to get to the venue?</h3>
4353
<Accordion
4454
className="[&_svg]:fill-neu-900"
Binary file not shown.

src/app/conf/_design-system/accordion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function Accordion({
3030
<details
3131
open={index === 0}
3232
key={index}
33-
className="group/q w-full border border-sec-darker @container"
33+
className="group/q w-full border border-sec-darker @container dark:border-sec-dark"
3434
onClick={event => {
3535
if (!multiple) {
3636
const allDetails =
@@ -50,7 +50,7 @@ export function Accordion({
5050
}
5151
}}
5252
>
53-
<summary className="flex cursor-pointer list-none items-center justify-between gap-2 border-sec-darker p-2 px-3 focus:outline-none group-open/q:border-b [&::-webkit-details-marker]:hidden">
53+
<summary className="flex cursor-pointer list-none items-center justify-between gap-2 border-sec-darker p-2 px-3 focus:outline-none group-open/q:border-b dark:border-sec-dark [&::-webkit-details-marker]:hidden">
5454
<span className="select-none typography-body-lg">{item.title}</span>
5555
<ArrowDown className="size-10 shrink-0 text-sec-darker group-open/q:rotate-180" />
5656
</summary>

0 commit comments

Comments
 (0)