@@ -11,8 +11,7 @@ import { ScheduleSession } from "../../../2023/types"
11
11
import { findVideo , SessionVideo } from "./session-video"
12
12
import { NavbarPlaceholder } from "../../components/navbar"
13
13
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"
16
15
import { PinIcon } from "@/app/conf/_design-system/pixelarticons/pin-icon"
17
16
import { CalendarIcon } from "@/app/conf/_design-system/pixelarticons/calendar-icon"
18
17
import { SpeakerCard } from "../../components/speaker-card"
@@ -21,6 +20,7 @@ import { MarqueeRows } from "../../components/marquee-rows"
21
20
import { GET_TICKETS_LINK } from "../../links"
22
21
import { CtaCardSection } from "../../components/cta-card-section"
23
22
import { Button } from "@/app/conf/_design-system/button"
23
+ import { SessionTags } from "../../components/session-tags"
24
24
25
25
type SessionProps = { params : { id : string } }
26
26
@@ -90,22 +90,22 @@ export default function SessionPage({ params }: SessionProps) {
90
90
) }
91
91
92
92
< 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]" >
94
94
Session description
95
95
</ h3 >
96
96
< p className = "typography-body-lg" > { event . description } </ p >
97
97
</ div >
98
98
99
99
< Hr />
100
100
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" >
102
102
Session speakers
103
103
</ h3 >
104
104
< SessionSpeakers event = { event } className = "-mx-px -mb-px" />
105
105
106
106
< Hr />
107
107
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" >
109
109
Session resources
110
110
</ h3 >
111
111
< section >
@@ -142,36 +142,6 @@ export default function SessionPage({ params }: SessionProps) {
142
142
)
143
143
}
144
144
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
-
175
145
function SessionHeader ( {
176
146
event,
177
147
eventTitle,
@@ -206,9 +176,9 @@ function SessionHeader({
206
176
</ React . Fragment >
207
177
) ) }
208
178
</ p >
209
- < h1 className = "mb-6 mt-3 typography-h2 " > { eventTitle } </ h1 >
179
+ < h1 className = "typography-h2 mb-6 mt-3" > { eventTitle } </ h1 >
210
180
< 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" >
212
182
< div className = "flex items-center gap-2" >
213
183
< CalendarIcon className = "size-5 text-sec-darker dark:text-sec-light/90 sm:size-6" />
214
184
< time dateTime = "2025-09-08" > September 08</ time >
0 commit comments