Skip to content

Commit 657ea87

Browse files
committed
wip
1 parent 6da987d commit 657ea87

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
import { ScheduleSession } from "@/app/conf/2023/types"
2+
import clsx from "clsx"
23

34
export interface LongSessionCardProps
45
extends React.HTMLAttributes<HTMLDivElement> {
56
session: ScheduleSession
7+
year: `20${number}`
68
}
79

8-
export function LongSessionCard({ session, className }: LongSessionCardProps) {
9-
return <div>LongSessionCard</div>
10+
export function LongSessionCard({
11+
session,
12+
className,
13+
year,
14+
...rest
15+
}: LongSessionCardProps) {
16+
return (
17+
<div className={clsx(className)} {...rest}>
18+
LongSessionCard {year}
19+
</div>
20+
)
1021
}

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import { MarqueeRows } from "../../components/marquee-rows"
1616
import { GET_TICKETS_LINK } from "../../links"
1717
import { Anchor } from "@/app/conf/_design-system/anchor"
1818
import { SpeakerTags } from "../../components/speaker-tags"
19+
import { SpeakerLinks } from "../../components/speaker-links"
20+
import { LongSessionCard } from "./long-session-card"
1921

2022
type SpeakerProps = { params: { id: string } }
2123

@@ -42,8 +44,8 @@ export function generateStaticParams() {
4244
}
4345

4446
export default function SpeakerPage({ params }: SpeakerProps) {
45-
const event = speakers.find(s => s.username === params.id)
46-
if (!event) {
47+
const speaker = speakers.find(s => s.username === params.id)
48+
if (!speaker) {
4749
notFound()
4850
}
4951

@@ -55,28 +57,28 @@ export default function SpeakerPage({ params }: SpeakerProps) {
5557
<div className="gql-conf-container">
5658
<div className="gql-conf-section !py-0">
5759
<div className="border-x border-neu-200 pt-8 dark:border-neu-100 2xl:pt-16">
58-
<SpeakerHeader speaker={event} year="2025" />
60+
<SpeakerHeader speaker={speaker} year="2025" />
5961

6062
<div>
61-
63+
<SpeakerLinks size="lg" speaker={speaker} />
6264
</div>
6365
<p className="typography-body-lg mt-8 p-4 lg:p-8 xl:px-24 xl:pb-24 xl:pt-16 xl:text-[32px]">
64-
{event.about}
66+
{speaker.about}
6567
</p>
6668

6769
<Hr />
6870

6971
<h3 className="typography-h2 my-8 max-w-[408px] px-2 sm:px-3 lg:my-16">
7072
2025 Sessions
7173
</h3>
72-
<SpeakerSessions speaker={event} className="-mx-px -mb-px" />
74+
<SpeakerSessions speaker={speaker} className="-mx-px -mb-px" />
7375

7476
<Hr />
7577

7678
<h3 className="typography-h2 my-8 max-w-[408px] px-2 sm:px-3 lg:my-16">
7779
Sessions from previous editions
7880
</h3>
79-
<SpeakerSessions speaker={event} className="-mx-px -mb-px" />
81+
<SpeakerSessions speaker={speaker} className="-mx-px -mb-px" />
8082
</div>
8183
</div>
8284
</div>
@@ -161,7 +163,7 @@ function SpeakerSessions({
161163
{speakerSessions
162164
.get(speaker.username)
163165
?.map(session => (
164-
<SpeakerCard key={session.id} session={session} year="2025" />
166+
<LongSessionCard key={session.id} session={session} year="2025" />
165167
))}
166168
</div>
167169
)

0 commit comments

Comments
 (0)