Skip to content

Commit f5ecee9

Browse files
committed
wip
1 parent 657ea87 commit f5ecee9

File tree

1 file changed

+7
-37
lines changed

1 file changed

+7
-37
lines changed

src/app/conf/2025/schedule/[id]/page.tsx

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import { ScheduleSession } from "../../../2023/types"
1111
import { findVideo, SessionVideo } from "./session-video"
1212
import { NavbarPlaceholder } from "../../components/navbar"
1313
import { BackLink } from "../_components/back-link"
14-
import { Tag } from "@/app/conf/_design-system/tag"
15-
import { eventsColors, getEventTitle, HERO_MARQUEE_ITEMS } from "../../utils"
14+
import { getEventTitle, HERO_MARQUEE_ITEMS } from "../../utils"
1615
import { PinIcon } from "@/app/conf/_design-system/pixelarticons/pin-icon"
1716
import { CalendarIcon } from "@/app/conf/_design-system/pixelarticons/calendar-icon"
1817
import { SpeakerCard } from "../../components/speaker-card"
@@ -21,6 +20,7 @@ import { MarqueeRows } from "../../components/marquee-rows"
2120
import { GET_TICKETS_LINK } from "../../links"
2221
import { CtaCardSection } from "../../components/cta-card-section"
2322
import { Button } from "@/app/conf/_design-system/button"
23+
import { SessionTags } from "../../components/session-tags"
2424

2525
type SessionProps = { params: { id: string } }
2626

@@ -90,22 +90,22 @@ export default function SessionPage({ params }: SessionProps) {
9090
)}
9191

9292
<div className="mt-8 flex gap-4 px-2 pb-8 max-lg:flex-col sm:px-3 lg:mt-16 lg:gap-8 xl:pb-16">
93-
<h3 className="min-w-[320px] typography-h2">
93+
<h3 className="typography-h2 min-w-[320px]">
9494
Session description
9595
</h3>
9696
<p className="typography-body-lg">{event.description}</p>
9797
</div>
9898

9999
<Hr />
100100

101-
<h3 className="my-8 max-w-[408px] px-2 typography-h2 sm:px-3 lg:my-16">
101+
<h3 className="typography-h2 my-8 max-w-[408px] px-2 sm:px-3 lg:my-16">
102102
Session speakers
103103
</h3>
104104
<SessionSpeakers event={event} className="-mx-px -mb-px" />
105105

106106
<Hr />
107107

108-
<h3 className="my-8 px-2 typography-h2 sm:px-3 lg:my-16">
108+
<h3 className="typography-h2 my-8 px-2 sm:px-3 lg:my-16">
109109
Session resources
110110
</h3>
111111
<section>
@@ -142,36 +142,6 @@ export default function SessionPage({ params }: SessionProps) {
142142
)
143143
}
144144

145-
function SessionTags({ session }: { session: ScheduleSession }) {
146-
const eventType = session.event_type.endsWith("s")
147-
? session.event_type.slice(0, -1)
148-
: session.event_type
149-
150-
return (
151-
<div className="flex flex-wrap gap-3">
152-
{eventType && (
153-
<Tag color={eventsColors[session.event_type]}>{eventType}</Tag>
154-
)}
155-
{session.audience && (
156-
<Tag
157-
color={eventsColors[session.audience] || "hsl(var(--color-neu-700))"}
158-
>
159-
{session.audience}
160-
</Tag>
161-
)}
162-
{session.event_subtype && (
163-
<Tag
164-
color={
165-
eventsColors[session.event_subtype] || "hsl(var(--color-sec-base))"
166-
}
167-
>
168-
{session.event_subtype}
169-
</Tag>
170-
)}
171-
</div>
172-
)
173-
}
174-
175145
function SessionHeader({
176146
event,
177147
eventTitle,
@@ -206,9 +176,9 @@ function SessionHeader({
206176
</React.Fragment>
207177
))}
208178
</p>
209-
<h1 className="mb-6 mt-3 typography-h2">{eventTitle}</h1>
179+
<h1 className="typography-h2 mb-6 mt-3">{eventTitle}</h1>
210180
<div className="flex flex-wrap items-center justify-between gap-2">
211-
<div className="flex flex-col gap-4 typography-body-md md:flex-row md:gap-6">
181+
<div className="typography-body-md flex flex-col gap-4 md:flex-row md:gap-6">
212182
<div className="flex items-center gap-2">
213183
<CalendarIcon className="size-5 text-sec-darker dark:text-sec-light/90 sm:size-6" />
214184
<time dateTime="2025-09-08">September 08</time>

0 commit comments

Comments
 (0)