From 397d7f41e8e1618a46f366604611dd15d3398e14 Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Sun, 26 Oct 2025 10:08:02 +0200 Subject: [PATCH 1/2] Update scrollview-fade syntax --- src/pages/community/events.mdx | 6 +++--- tailwind.config.ts | 27 ++++++++++++++++++++++----- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/pages/community/events.mdx b/src/pages/community/events.mdx index b067f311db..73c26075b1 100644 --- a/src/pages/community/events.mdx +++ b/src/pages/community/events.mdx @@ -32,7 +32,7 @@ export const { pastEvents, upcomingEvents } = events.reduce( export function EventsScrollview({ children }) { return ( -
+
{children}
) @@ -42,7 +42,7 @@ export function Events({ events }) { if (events.length === 0) return null; return ( -
+ {events.map(event => ( ))} -
+ ) } diff --git a/tailwind.config.ts b/tailwind.config.ts index b4b75c5392..0fa60628ec 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -316,15 +316,32 @@ function scrollStartPlugin() { } function scrollviewFadePlugin() { - return plugin(({ addComponents, addBase }) => { - addComponents({ - ".scrollview-x-fade": { + return plugin(({ addUtilities, matchUtilities, theme }) => { + matchUtilities( + { + "scrollview-fade-x": value => ({ + "--fade-angle": "90deg", + "--fade-size": value, + }), + "scrollview-fade-y": value => ({ + "--fade-angle": "180deg", + "--fade-size": value, + }), + }, + { + supportsNegativeValues: false, + values: theme("spacing"), + type: ["length", "percentage"], + }, + ) + addUtilities({ + ".scrollview-fade": { position: "relative", scrollTimeline: "--scroll-timeline-x inline", "--fade-start-opacity": "1", "--fade-end-opacity": "1", maskImage: ` - linear-gradient(to right, + linear-gradient(var(--fade-angle), hsl(0 0% 0% / var(--fade-start-opacity)), black var(--fade-size), black calc(100% - var(--fade-size)), @@ -332,7 +349,7 @@ function scrollviewFadePlugin() { ) `, WebkitMaskImage: ` - linear-gradient(to right, + linear-gradient(var(--fade-angle), hsl(0 0% 0% / var(--fade-start-opacity)), black var(--fade-size), black calc(100% - var(--fade-size)), From 1ffb0328d3e6f003f2d80de99842878c6bb59a0a Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Sun, 26 Oct 2025 10:56:18 +0200 Subject: [PATCH 2/2] Tweak event cards for small phone screens --- src/components/events/event-card.tsx | 29 +++++++++++++--------------- src/pages/community/events.mdx | 4 ++-- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/components/events/event-card.tsx b/src/components/events/event-card.tsx index f39d85e807..944f746ba1 100644 --- a/src/components/events/event-card.tsx +++ b/src/components/events/event-card.tsx @@ -72,7 +72,7 @@ export function EventCard({
{meta ? ( @@ -91,17 +91,19 @@ export function EventCard({ ) : ( Official GraphQL Local )} - {official && ( + {official ? ( Official + ) : meta ? null : ( +
)}
-
+
{name}
@@ -114,23 +116,18 @@ export function EventCard({ )} > {dateLabel && ( -
- +
+ {parsedDate ? ( - + ) : ( - {dateLabel} + {dateLabel} )}
)} {city && ( -
- +
+ {city}
)} diff --git a/src/pages/community/events.mdx b/src/pages/community/events.mdx index 73c26075b1..6cb4de8908 100644 --- a/src/pages/community/events.mdx +++ b/src/pages/community/events.mdx @@ -28,11 +28,11 @@ export const { pastEvents, upcomingEvents } = events.reduce( return acc }, { pastEvents: [], upcomingEvents: [] }, -) +) export function EventsScrollview({ children }) { return ( -
+
{children}
)