Skip to content

Commit 36e2ba6

Browse files
committed
Tweak tags for new data
1 parent a5b2ea5 commit 36e2ba6

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

src/app/conf/2025/components/session-tags.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ export function SessionTags({ session, className, ...rest }: SessionTagsProps) {
2121
{eventType && (
2222
<Tag color={eventsColors[session.event_type || ""]}>{eventType}</Tag>
2323
)}
24-
{session.audience && (
24+
{session.company && (
2525
<Tag
26-
color={eventsColors[session.audience] || "hsl(var(--color-neu-700))"}
26+
color={eventsColors[session.company] || "hsl(var(--color-neu-500))"}
2727
>
28-
{session.audience}
28+
{session.company}
2929
</Tag>
3030
)}
3131
{session.event_subtype && (
3232
<Tag
3333
color={
34-
eventsColors[session.event_subtype] || "hsl(var(--color-sec-base))"
34+
eventsColors[session.event_subtype] || "hsl(var(--color-sec-dark))"
3535
}
3636
>
3737
{session.event_subtype}

src/app/conf/2025/components/speaker-card.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import clsx from "clsx"
22
import Image from "next-image-export-optimizer"
33

4-
import { eventsColors } from "../utils"
5-
64
import { Anchor } from "../../_design-system/anchor"
7-
import { Tag } from "../../_design-system/tag"
85
import { SchedSpeaker } from "../../2023/types"
96
import { StripesDecoration } from "../../_design-system/stripes-decoration"
107

src/app/conf/2025/components/speaker-tags.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,17 @@ export function SpeakerTags({
1616
className?: string
1717
showEventType?: boolean
1818
}) {
19-
const eventType =
20-
showEventType && speakerSessions.get(speaker.username)?.[0]?.event_type
19+
const firstTalk = speakerSessions.get(speaker.username)?.[0]
20+
let tag = showEventType && firstTalk?.event_subtype
21+
22+
const tagColor = (tag && eventsColors[tag]) || "hsl(var(--color-sec-dark))"
23+
if (tag && tag.includes(" and ")) {
24+
tag = tag.replace(" and ", " & ")
25+
}
2126

2227
return (
2328
<div className={clsx("flex basis-0 flex-wrap gap-2", className)}>
24-
{eventType && (
25-
<Tag color={eventsColors[eventType] || "hsl(var(--color-sec-base))"}>
26-
{eventType === "Federation and Composite Schemas"
27-
? "Federation"
28-
: eventType}
29-
</Tag>
30-
)}
29+
{tag && <Tag color={tagColor}>{tag}</Tag>}
3130

3231
{speaker._years.length > 1 && (
3332
<Tag color="hsl(var(--color-neu-500))">

0 commit comments

Comments
 (0)