@tanstack/cta-framework-react-cra 0.44.3 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/{examples/tanchat/assets/src/components/example-AIAssistant.tsx → add-ons/ai/assets/src/components/demo-AIAssistant.tsx} +6 -8
  2. package/{examples/tanchat/assets/src/components/example-GuitarRecommendation.tsx → add-ons/ai/assets/src/components/demo-GuitarRecommendation.tsx} +2 -2
  3. package/{examples/tanchat/assets/src/lib/example.ai-hook.ts → add-ons/ai/assets/src/lib/demo-ai-hook.ts} +9 -9
  4. package/{examples/tanchat/assets/src/lib/example.guitar-tools.ts → add-ons/ai/assets/src/lib/demo-guitar-tools.ts} +1 -1
  5. package/{examples/tanchat/assets/src/routes/demo/tanchat.tsx → add-ons/ai/assets/src/routes/demo/ai-chat.tsx} +28 -148
  6. package/{examples/tanchat/assets/src/routes/demo/image.tsx → add-ons/ai/assets/src/routes/demo/ai-image.tsx} +2 -50
  7. package/add-ons/ai/assets/src/routes/demo/ai-structured.tsx +310 -0
  8. package/{examples/tanchat/assets/src/routes/demo/api.tanchat.ts → add-ons/ai/assets/src/routes/demo/api.ai.chat.ts} +16 -6
  9. package/{examples/tanchat/assets/src/routes/demo/api.image.ts → add-ons/ai/assets/src/routes/demo/api.ai.image.ts} +3 -5
  10. package/add-ons/ai/assets/src/routes/demo/api.ai.structured.ts +136 -0
  11. package/add-ons/ai/assets/src/routes/demo/api.ai.transcription.ts +89 -0
  12. package/{examples/tanchat/assets/src/routes/demo/api.tts.ts → add-ons/ai/assets/src/routes/demo/api.ai.tts.ts} +1 -1
  13. package/{examples/tanchat/assets/src/routes/example.guitars → add-ons/ai/assets/src/routes/demo/guitars}/$guitarId.tsx +3 -2
  14. package/{examples/tanchat/assets/src/routes/example.guitars → add-ons/ai/assets/src/routes/demo/guitars}/index.tsx +3 -2
  15. package/add-ons/ai/info.json +46 -0
  16. package/{examples/tanchat → add-ons/ai}/package.json +1 -1
  17. package/examples/events/README.md +110 -0
  18. package/examples/events/assets/content/speakers/andre-costa.md +22 -0
  19. package/examples/events/assets/content/speakers/hans-mueller.md +22 -0
  20. package/examples/events/assets/content/speakers/isabella-martinez.md +22 -0
  21. package/examples/events/assets/content/speakers/kenji-nakamura.md +22 -0
  22. package/examples/events/assets/content/speakers/marie-dubois.md +20 -0
  23. package/examples/events/assets/content/speakers/priya-sharma.md +22 -0
  24. package/examples/events/assets/content/talks/croissant-lamination-secrets.md +39 -0
  25. package/examples/events/assets/content/talks/french-macaron-mastery.md +39 -0
  26. package/examples/events/assets/content/talks/neapolitan-pizza-tradition-meets-innovation.md +39 -0
  27. package/examples/events/assets/content/talks/savory-breads-of-the-mediterranean.md +39 -0
  28. package/examples/events/assets/content/talks/sourdough-from-starter-to-masterpiece.md +36 -0
  29. package/examples/events/assets/content/talks/the-art-of-the-perfect-tart.md +32 -0
  30. package/examples/events/assets/content/talks/the-science-of-sugar.md +39 -0
  31. package/examples/events/assets/content/talks/umami-in-pastry-east-meets-west.md +39 -0
  32. package/examples/events/assets/content-collections.ts +56 -0
  33. package/examples/events/assets/public/background-1.jpg +0 -0
  34. package/examples/events/assets/public/background-2.jpg +0 -0
  35. package/examples/events/assets/public/background-3.jpg +0 -0
  36. package/examples/events/assets/public/background-4.jpg +0 -0
  37. package/examples/events/assets/public/conference-logo.png +0 -0
  38. package/examples/events/assets/public/favicon.ico +0 -0
  39. package/examples/events/assets/public/speakers/andre-costa.jpg +0 -0
  40. package/examples/events/assets/public/speakers/hans-mueller.jpg +0 -0
  41. package/examples/events/assets/public/speakers/isabella-martinez.jpg +0 -0
  42. package/examples/events/assets/public/speakers/kenji-nakamura.jpg +0 -0
  43. package/examples/events/assets/public/speakers/marie-dubois.jpg +0 -0
  44. package/examples/events/assets/public/speakers/priya-sharma.jpg +0 -0
  45. package/examples/events/assets/public/talks/croissant-lamination-secrets.jpg +0 -0
  46. package/examples/events/assets/public/talks/french-macaron-mastery.jpg +0 -0
  47. package/examples/events/assets/public/talks/neapolitan-pizza-tradition-meets-innovation.jpg +0 -0
  48. package/examples/events/assets/public/talks/savory-breads-of-the-mediterranean.jpg +0 -0
  49. package/examples/events/assets/public/talks/sourdough-from-starter-to-masterpiece.jpg +0 -0
  50. package/examples/events/assets/public/talks/the-art-of-the-perfect-tart.jpg +0 -0
  51. package/examples/events/assets/public/talks/the-science-of-sugar.jpg +0 -0
  52. package/examples/events/assets/public/talks/umami-in-pastry-east-meets-west.jpg +0 -0
  53. package/examples/events/assets/public/tanstack-circle-logo.png +0 -0
  54. package/examples/events/assets/public/tanstack-word-logo-white.svg +1 -0
  55. package/examples/events/assets/src/components/HeroCarousel.tsx +61 -0
  56. package/examples/events/assets/src/components/RemyAssistant.tsx +207 -0
  57. package/examples/events/assets/src/components/RemyButton.tsx +18 -0
  58. package/examples/events/assets/src/components/SpeakerCard.tsx +67 -0
  59. package/examples/events/assets/src/components/TalkCard.tsx +77 -0
  60. package/examples/events/assets/src/components/ui/card.tsx +92 -0
  61. package/examples/events/assets/src/lib/conference-ai-hook.ts +26 -0
  62. package/examples/events/assets/src/lib/conference-tools.ts +210 -0
  63. package/examples/events/assets/src/lib/utils.ts +6 -0
  64. package/examples/events/assets/src/routes/api.remy-chat.ts +121 -0
  65. package/examples/events/assets/src/routes/index.tsx +192 -0
  66. package/examples/events/assets/src/routes/schedule.index.tsx +274 -0
  67. package/examples/events/assets/src/routes/speakers.$slug.tsx +122 -0
  68. package/examples/events/assets/src/routes/speakers.index.tsx +40 -0
  69. package/examples/events/assets/src/routes/talks.$slug.tsx +116 -0
  70. package/examples/events/assets/src/routes/talks.index.tsx +40 -0
  71. package/examples/events/assets/src/styles.css +194 -0
  72. package/examples/events/info.json +63 -0
  73. package/examples/events/package.json +23 -0
  74. package/package.json +2 -2
  75. package/examples/tanchat/assets/src/lib/model-selection.ts +0 -78
  76. package/examples/tanchat/assets/src/lib/vendor-capabilities.ts +0 -55
  77. package/examples/tanchat/assets/src/routes/demo/api.available-providers.ts +0 -35
  78. package/examples/tanchat/assets/src/routes/demo/api.structured.ts +0 -168
  79. package/examples/tanchat/assets/src/routes/demo/api.transcription.ts +0 -89
  80. package/examples/tanchat/assets/src/routes/demo/structured.tsx +0 -460
  81. package/examples/tanchat/info.json +0 -46
  82. /package/{examples/tanchat → add-ons/ai}/README.md +0 -0
  83. /package/{examples/tanchat → add-ons/ai}/assets/_dot_env.local.append +0 -0
  84. /package/{examples/tanchat → add-ons/ai}/assets/public/example-guitar-flowers.jpg +0 -0
  85. /package/{examples/tanchat → add-ons/ai}/assets/public/example-guitar-motherboard.jpg +0 -0
  86. /package/{examples/tanchat → add-ons/ai}/assets/public/example-guitar-racing.jpg +0 -0
  87. /package/{examples/tanchat → add-ons/ai}/assets/public/example-guitar-steamer-trunk.jpg +0 -0
  88. /package/{examples/tanchat → add-ons/ai}/assets/public/example-guitar-superhero.jpg +0 -0
  89. /package/{examples/tanchat → add-ons/ai}/assets/public/example-guitar-traveling.jpg +0 -0
  90. /package/{examples/tanchat → add-ons/ai}/assets/public/example-guitar-video-games.jpg +0 -0
  91. /package/{examples/tanchat → add-ons/ai}/assets/public/example-ukelele-tanstack.jpg +0 -0
  92. /package/{examples/tanchat/assets/src/data/example-guitars.ts → add-ons/ai/assets/src/data/demo-guitars.ts} +0 -0
  93. /package/{examples/tanchat/assets/src/hooks/useAudioRecorder.ts → add-ons/ai/assets/src/hooks/demo-useAudioRecorder.ts} +0 -0
  94. /package/{examples/tanchat/assets/src/hooks/useTTS.ts → add-ons/ai/assets/src/hooks/demo-useTTS.ts} +0 -0
  95. /package/{examples/tanchat → add-ons/ai}/assets/src/lib/ai-devtools.tsx +0 -0
  96. /package/{examples/tanchat/assets/src/routes/demo/tanchat.css → add-ons/ai/assets/src/routes/demo/ai-chat.css} +0 -0
  97. /package/{examples/tanchat → add-ons/ai}/small-logo.svg +0 -0
@@ -0,0 +1,26 @@
1
+ import {
2
+ fetchServerSentEvents,
3
+ useChat,
4
+ createChatClientOptions,
5
+ } from '@tanstack/ai-react'
6
+ import type { InferChatMessages } from '@tanstack/ai-react'
7
+
8
+ // Default chat options for type inference
9
+ const defaultChatOptions = createChatClientOptions({
10
+ connection: fetchServerSentEvents('/api/remy-chat'),
11
+ })
12
+
13
+ export type ConferenceChatMessages = InferChatMessages<typeof defaultChatOptions>
14
+
15
+ export const useConferenceChat = (speakerSlug?: string, talkSlug?: string) => {
16
+ const chatOptions = createChatClientOptions({
17
+ connection: fetchServerSentEvents('/api/remy-chat', {
18
+ body: {
19
+ speakerSlug,
20
+ talkSlug,
21
+ },
22
+ }),
23
+ })
24
+
25
+ return useChat(chatOptions)
26
+ }
@@ -0,0 +1,210 @@
1
+ import { toolDefinition } from '@tanstack/ai'
2
+ import { z } from 'zod'
3
+
4
+ import { allSpeakers, allTalks } from 'content-collections'
5
+
6
+ // Tool definition for getting a speaker by slug
7
+ export const getSpeakerBySlugToolDef = toolDefinition({
8
+ name: 'getSpeakerBySlug',
9
+ description:
10
+ 'Get the full profile and bio of a specific speaker. Use this when asked about a particular speaker.',
11
+ inputSchema: z.object({
12
+ slug: z.string().describe('The slug of the speaker'),
13
+ }),
14
+ outputSchema: z.object({
15
+ name: z.string(),
16
+ title: z.string(),
17
+ specialty: z.string(),
18
+ restaurant: z.string(),
19
+ location: z.string(),
20
+ bio: z.string(),
21
+ awards: z.array(z.string()),
22
+ }),
23
+ })
24
+
25
+ // Server implementation
26
+ export const getSpeakerBySlug = getSpeakerBySlugToolDef.server(({ slug }) => {
27
+ const speaker = allSpeakers.find((s) => s.slug === slug)
28
+ if (!speaker) {
29
+ return {
30
+ name: 'Speaker not found',
31
+ title: '',
32
+ specialty: '',
33
+ restaurant: '',
34
+ location: '',
35
+ bio: 'The requested speaker was not found.',
36
+ awards: [],
37
+ }
38
+ }
39
+ return {
40
+ name: speaker.name,
41
+ title: speaker.title,
42
+ specialty: speaker.specialty,
43
+ restaurant: speaker.restaurant,
44
+ location: speaker.location,
45
+ bio: speaker.content,
46
+ awards: speaker.awards || [],
47
+ }
48
+ })
49
+
50
+ // Tool definition for getting a talk by slug
51
+ export const getTalkBySlugToolDef = toolDefinition({
52
+ name: 'getTalkBySlug',
53
+ description:
54
+ 'Get the full details of a specific session/talk. Use this when asked about a particular session.',
55
+ inputSchema: z.object({
56
+ slug: z.string().describe('The slug of the talk'),
57
+ }),
58
+ outputSchema: z.object({
59
+ title: z.string(),
60
+ speaker: z.string(),
61
+ duration: z.string(),
62
+ topics: z.array(z.string()),
63
+ description: z.string(),
64
+ }),
65
+ })
66
+
67
+ // Server implementation
68
+ export const getTalkBySlug = getTalkBySlugToolDef.server(({ slug }) => {
69
+ const talk = allTalks.find((t) => t.slug === slug)
70
+ if (!talk) {
71
+ return {
72
+ title: 'Session not found',
73
+ speaker: '',
74
+ duration: '',
75
+ topics: [],
76
+ description: 'The requested session was not found.',
77
+ }
78
+ }
79
+ return {
80
+ title: talk.title,
81
+ speaker: talk.speaker,
82
+ duration: talk.duration,
83
+ topics: talk.topics,
84
+ description: talk.content,
85
+ }
86
+ })
87
+
88
+ // Tool definition for listing all speakers
89
+ export const getAllSpeakersToolDef = toolDefinition({
90
+ name: 'getAllSpeakers',
91
+ description:
92
+ 'Get a list of all speakers at the conference with their names, specialties, and restaurants.',
93
+ inputSchema: z.object({}),
94
+ outputSchema: z.array(
95
+ z.object({
96
+ slug: z.string(),
97
+ name: z.string(),
98
+ specialty: z.string(),
99
+ restaurant: z.string(),
100
+ location: z.string(),
101
+ }),
102
+ ),
103
+ })
104
+
105
+ // Server implementation
106
+ export const getAllSpeakers = getAllSpeakersToolDef.server(() => {
107
+ return allSpeakers.map((speaker) => ({
108
+ slug: speaker.slug,
109
+ name: speaker.name,
110
+ specialty: speaker.specialty,
111
+ restaurant: speaker.restaurant,
112
+ location: speaker.location,
113
+ }))
114
+ })
115
+
116
+ // Tool definition for listing all talks
117
+ export const getAllTalksToolDef = toolDefinition({
118
+ name: 'getAllTalks',
119
+ description:
120
+ 'Get a list of all sessions/talks at the conference with their titles, speakers, and topics.',
121
+ inputSchema: z.object({}),
122
+ outputSchema: z.array(
123
+ z.object({
124
+ slug: z.string(),
125
+ title: z.string(),
126
+ speaker: z.string(),
127
+ duration: z.string(),
128
+ topics: z.array(z.string()),
129
+ }),
130
+ ),
131
+ })
132
+
133
+ // Server implementation
134
+ export const getAllTalks = getAllTalksToolDef.server(() => {
135
+ return allTalks.map((talk) => ({
136
+ slug: talk.slug,
137
+ title: talk.title,
138
+ speaker: talk.speaker,
139
+ duration: talk.duration,
140
+ topics: talk.topics,
141
+ }))
142
+ })
143
+
144
+ // Tool definition for searching conference content
145
+ export const searchConferenceToolDef = toolDefinition({
146
+ name: 'searchConference',
147
+ description:
148
+ 'Search for speakers or sessions by keyword. Use this to find content matching user queries about topics, techniques, or names.',
149
+ inputSchema: z.object({
150
+ query: z.string().describe('The search query'),
151
+ }),
152
+ outputSchema: z.object({
153
+ speakers: z.array(
154
+ z.object({
155
+ slug: z.string(),
156
+ name: z.string(),
157
+ specialty: z.string(),
158
+ restaurant: z.string(),
159
+ }),
160
+ ),
161
+ talks: z.array(
162
+ z.object({
163
+ slug: z.string(),
164
+ title: z.string(),
165
+ speaker: z.string(),
166
+ topics: z.array(z.string()),
167
+ }),
168
+ ),
169
+ }),
170
+ })
171
+
172
+ // Server implementation
173
+ export const searchConference = searchConferenceToolDef.server(({ query }) => {
174
+ const queryLower = query.toLowerCase()
175
+
176
+ const matchingSpeakers = allSpeakers
177
+ .filter(
178
+ (speaker) =>
179
+ speaker.name.toLowerCase().includes(queryLower) ||
180
+ speaker.specialty.toLowerCase().includes(queryLower) ||
181
+ speaker.restaurant.toLowerCase().includes(queryLower) ||
182
+ speaker.content.toLowerCase().includes(queryLower),
183
+ )
184
+ .map((speaker) => ({
185
+ slug: speaker.slug,
186
+ name: speaker.name,
187
+ specialty: speaker.specialty,
188
+ restaurant: speaker.restaurant,
189
+ }))
190
+
191
+ const matchingTalks = allTalks
192
+ .filter(
193
+ (talk) =>
194
+ talk.title.toLowerCase().includes(queryLower) ||
195
+ talk.speaker.toLowerCase().includes(queryLower) ||
196
+ talk.topics.some((topic) => topic.toLowerCase().includes(queryLower)) ||
197
+ talk.content.toLowerCase().includes(queryLower),
198
+ )
199
+ .map((talk) => ({
200
+ slug: talk.slug,
201
+ title: talk.title,
202
+ speaker: talk.speaker,
203
+ topics: talk.topics,
204
+ }))
205
+
206
+ return {
207
+ speakers: matchingSpeakers,
208
+ talks: matchingTalks,
209
+ }
210
+ })
@@ -0,0 +1,6 @@
1
+ import { clsx, type ClassValue } from 'clsx'
2
+ import { twMerge } from 'tailwind-merge'
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs))
6
+ }
@@ -0,0 +1,121 @@
1
+ import { createFileRoute } from '@tanstack/react-router'
2
+ import { chat, maxIterations, toServerSentEventsResponse } from '@tanstack/ai'
3
+ import { anthropicText } from '@tanstack/ai-anthropic'
4
+ import { openaiText } from '@tanstack/ai-openai'
5
+ import { geminiText } from '@tanstack/ai-gemini'
6
+ import { ollamaText } from '@tanstack/ai-ollama'
7
+
8
+ import {
9
+ getSpeakerBySlug,
10
+ getTalkBySlug,
11
+ getAllSpeakers,
12
+ getAllTalks,
13
+ searchConference,
14
+ } from '@/lib/conference-tools'
15
+
16
+ export const Route = createFileRoute('/api/remy-chat')({
17
+ server: {
18
+ handlers: {
19
+ POST: async ({ request }) => {
20
+ const requestSignal = request.signal
21
+
22
+ if (requestSignal.aborted) {
23
+ return new Response(null, { status: 499 })
24
+ }
25
+
26
+ const abortController = new AbortController()
27
+
28
+ try {
29
+ const body = await request.json()
30
+ const { messages, speakerSlug, talkSlug } = body
31
+ const data = body.data || {}
32
+
33
+ const SYSTEM_PROMPT = `You are Remy, a charming and knowledgeable culinary assistant for the Haute Pâtisserie 2026 conference in Paris. You have a warm, enthusiastic personality and deep appreciation for the art of pastry and baking.
34
+
35
+ PERSONALITY:
36
+ - Speak with warmth and a touch of French flair (occasional "magnifique!", "c'est parfait!", etc.)
37
+ - Be genuinely passionate about pastry, bread, and culinary arts
38
+ - Knowledgeable about techniques, ingredients, and the history of baking
39
+ - Helpful and encouraging to both novices and professionals
40
+
41
+ CAPABILITIES:
42
+ 1. Use getSpeakerBySlug to get detailed information about a specific speaker
43
+ 2. Use getTalkBySlug to get detailed information about a specific session
44
+ 3. Use getAllSpeakers to see the complete speaker lineup
45
+ 4. Use getAllTalks to see all available sessions
46
+ 5. Use searchConference to find speakers or sessions matching a topic or keyword
47
+
48
+ INSTRUCTIONS:
49
+ - When asked about the conference, speakers, or sessions, use your tools to provide accurate information
50
+ - Help attendees find sessions that match their interests
51
+ - Share enthusiasm about the speakers and their expertise
52
+ - If asked about pastry techniques, you can provide general knowledge while recommending relevant sessions
53
+ - Keep responses conversational but informative
54
+ - When recommending sessions, explain why they might be interesting based on the user's query
55
+
56
+ ${speakerSlug ? `CONTEXT: The user is viewing the profile of the speaker with slug "${speakerSlug}".` : ''}
57
+ ${talkSlug ? `CONTEXT: The user is viewing the session with slug "${talkSlug}".` : ''}
58
+
59
+ Remember: You are the friendly face of Haute Pâtisserie 2026. Make every attendee feel welcome and excited about the culinary journey ahead!`
60
+
61
+ // Determine the best available provider
62
+ let provider: string = 'ollama'
63
+ let model: string = 'mistral:7b'
64
+ if (process.env.ANTHROPIC_API_KEY) {
65
+ provider = 'anthropic'
66
+ model = 'claude-haiku-4-5'
67
+ } else if (process.env.OPENAI_API_KEY) {
68
+ provider = 'openai'
69
+ model = 'gpt-4o'
70
+ } else if (process.env.GEMINI_API_KEY) {
71
+ provider = 'gemini'
72
+ model = 'gemini-2.0-flash-exp'
73
+ }
74
+
75
+ // Adapter factory pattern for multi-vendor support
76
+ const adapterConfig = {
77
+ anthropic: () =>
78
+ anthropicText((model || 'claude-haiku-4-5') as any),
79
+ openai: () => openaiText((model || 'gpt-4o') as any),
80
+ gemini: () => geminiText((model || 'gemini-2.0-flash-exp') as any),
81
+ ollama: () => ollamaText((model || 'mistral:7b') as any),
82
+ }
83
+
84
+ const adapter = adapterConfig[provider]()
85
+
86
+ const stream = chat({
87
+ adapter,
88
+ tools: [
89
+ getSpeakerBySlug,
90
+ getTalkBySlug,
91
+ getAllSpeakers,
92
+ getAllTalks,
93
+ searchConference,
94
+ ],
95
+ systemPrompts: [SYSTEM_PROMPT],
96
+ agentLoopStrategy: maxIterations(5),
97
+ messages,
98
+ abortController,
99
+ })
100
+
101
+ return toServerSentEventsResponse(stream, { abortController })
102
+ } catch (error: any) {
103
+ console.error('Remy chat error:', error)
104
+ if (error.name === 'AbortError' || abortController.signal.aborted) {
105
+ return new Response(null, { status: 499 })
106
+ }
107
+ return new Response(
108
+ JSON.stringify({
109
+ error: 'Failed to process chat request',
110
+ message: error.message,
111
+ }),
112
+ {
113
+ status: 500,
114
+ headers: { 'Content-Type': 'application/json' },
115
+ },
116
+ )
117
+ }
118
+ },
119
+ },
120
+ },
121
+ })
@@ -0,0 +1,192 @@
1
+ import { createFileRoute, Link } from '@tanstack/react-router'
2
+ import { ArrowRight, Calendar, MapPin, Users } from 'lucide-react'
3
+
4
+ import { allSpeakers, allTalks } from 'content-collections'
5
+
6
+ import SpeakerCard from '@/components/SpeakerCard'
7
+ import TalkCard from '@/components/TalkCard'
8
+ import RemyAssistant from '@/components/RemyAssistant'
9
+ import HeroCarousel from '@/components/HeroCarousel'
10
+
11
+ export const Route = createFileRoute('/')({
12
+ component: HomePage,
13
+ })
14
+
15
+ function HomePage() {
16
+ const featuredSpeakers = allSpeakers.slice(0, 3)
17
+ const featuredTalks = allTalks.slice(0, 4)
18
+
19
+ return (
20
+ <>
21
+ <RemyAssistant />
22
+
23
+ {/* Hero Section */}
24
+ <section className="relative min-h-[90vh] flex items-center justify-center px-6 overflow-hidden">
25
+ {/* Background carousel */}
26
+ <HeroCarousel />
27
+
28
+ <div className="relative max-w-5xl mx-auto text-center z-10">
29
+ {/* Event date badge */}
30
+ <div className="inline-flex items-center gap-2 px-4 py-2 mb-8 rounded-full bg-copper/10 border border-copper/30 text-copper-light text-sm font-medium">
31
+ <Calendar className="w-4 h-4" />
32
+ <span>March 15-17, 2026</span>
33
+ <span className="mx-2 text-copper/40">•</span>
34
+ <MapPin className="w-4 h-4" />
35
+ <span>Paris, France</span>
36
+ </div>
37
+
38
+ {/* Main title */}
39
+ <h1 className="font-display text-6xl md:text-8xl font-bold text-cream mb-6 leading-tight">
40
+ Haute
41
+ <span className="block text-gold italic">Pâtisserie</span>
42
+ </h1>
43
+
44
+ <p className="text-xl md:text-2xl text-cream/70 font-body max-w-3xl mx-auto mb-10 leading-relaxed">
45
+ Join the world's most celebrated pastry chefs and master bakers for three extraordinary days of masterclasses, demonstrations, and culinary inspiration.
46
+ </p>
47
+
48
+ {/* Stats */}
49
+ <div className="flex flex-wrap justify-center gap-8 mb-12">
50
+ <div className="text-center">
51
+ <div className="text-4xl font-display font-bold text-gold">{allSpeakers.length}</div>
52
+ <div className="text-cream/50 text-sm uppercase tracking-wider">Master Chefs</div>
53
+ </div>
54
+ <div className="text-center">
55
+ <div className="text-4xl font-display font-bold text-gold">{allTalks.length}</div>
56
+ <div className="text-cream/50 text-sm uppercase tracking-wider">Sessions</div>
57
+ </div>
58
+ <div className="text-center">
59
+ <div className="text-4xl font-display font-bold text-gold">3</div>
60
+ <div className="text-cream/50 text-sm uppercase tracking-wider">Days</div>
61
+ </div>
62
+ </div>
63
+
64
+ {/* CTA buttons */}
65
+ <div className="flex flex-wrap justify-center gap-4">
66
+ <Link
67
+ to="/speakers"
68
+ className="inline-flex items-center gap-2 px-8 py-4 rounded-full bg-gradient-to-r from-copper to-copper-dark text-charcoal font-semibold text-lg transition-all hover:shadow-lg hover:shadow-copper/30 hover:scale-[1.02]"
69
+ >
70
+ <Users className="w-5 h-5" />
71
+ Meet Our Speakers
72
+ </Link>
73
+ <Link
74
+ to="/talks"
75
+ className="inline-flex items-center gap-2 px-8 py-4 rounded-full border-2 border-gold/50 text-gold font-semibold text-lg transition-all hover:bg-gold/10 hover:border-gold"
76
+ >
77
+ View Sessions
78
+ <ArrowRight className="w-5 h-5" />
79
+ </Link>
80
+ </div>
81
+ </div>
82
+ </section>
83
+
84
+ {/* Featured Speakers Section */}
85
+ <section className="py-20 px-6">
86
+ <div className="max-w-7xl mx-auto">
87
+ <div className="flex items-end justify-between mb-12">
88
+ <div>
89
+ <h2 className="font-display text-4xl md:text-5xl font-bold text-cream mb-3">
90
+ Featured <span className="text-gold italic">Speakers</span>
91
+ </h2>
92
+ <p className="text-cream/60 text-lg font-body">
93
+ Learn from award-winning pastry chefs and master bakers
94
+ </p>
95
+ </div>
96
+ <Link
97
+ to="/speakers"
98
+ className="hidden md:inline-flex items-center gap-2 text-gold hover:text-gold/80 transition-colors font-medium"
99
+ >
100
+ View all speakers
101
+ <ArrowRight className="w-4 h-4" />
102
+ </Link>
103
+ </div>
104
+
105
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-8">
106
+ {featuredSpeakers.map((speaker) => (
107
+ <SpeakerCard key={speaker.slug} speaker={speaker} featured />
108
+ ))}
109
+ </div>
110
+
111
+ <div className="md:hidden mt-8 text-center">
112
+ <Link
113
+ to="/speakers"
114
+ className="inline-flex items-center gap-2 text-gold hover:text-gold/80 transition-colors font-medium"
115
+ >
116
+ View all speakers
117
+ <ArrowRight className="w-4 h-4" />
118
+ </Link>
119
+ </div>
120
+ </div>
121
+ </section>
122
+
123
+ {/* Divider */}
124
+ <div className="max-w-7xl mx-auto px-6">
125
+ <div className="h-px bg-gradient-to-r from-transparent via-border to-transparent" />
126
+ </div>
127
+
128
+ {/* Featured Sessions Section */}
129
+ <section className="py-20 px-6">
130
+ <div className="max-w-7xl mx-auto">
131
+ <div className="flex items-end justify-between mb-12">
132
+ <div>
133
+ <h2 className="font-display text-4xl md:text-5xl font-bold text-cream mb-3">
134
+ Featured <span className="text-gold italic">Sessions</span>
135
+ </h2>
136
+ <p className="text-cream/60 text-lg font-body">
137
+ Masterclasses and demonstrations to elevate your craft
138
+ </p>
139
+ </div>
140
+ <Link
141
+ to="/talks"
142
+ className="hidden md:inline-flex items-center gap-2 text-gold hover:text-gold/80 transition-colors font-medium"
143
+ >
144
+ View all sessions
145
+ <ArrowRight className="w-4 h-4" />
146
+ </Link>
147
+ </div>
148
+
149
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-8">
150
+ {featuredTalks.map((talk) => (
151
+ <TalkCard key={talk.slug} talk={talk} featured />
152
+ ))}
153
+ </div>
154
+
155
+ <div className="md:hidden mt-8 text-center">
156
+ <Link
157
+ to="/talks"
158
+ className="inline-flex items-center gap-2 text-gold hover:text-gold/80 transition-colors font-medium"
159
+ >
160
+ View all sessions
161
+ <ArrowRight className="w-4 h-4" />
162
+ </Link>
163
+ </div>
164
+ </div>
165
+ </section>
166
+
167
+ {/* CTA Section */}
168
+ <section className="py-20 px-6">
169
+ <div className="max-w-4xl mx-auto text-center">
170
+ <div className="relative p-12 rounded-3xl bg-gradient-to-br from-card to-charcoal border border-border/50 overflow-hidden">
171
+ {/* Decorative elements */}
172
+ <div className="absolute top-0 right-0 w-64 h-64 bg-copper/5 rounded-full blur-3xl" />
173
+ <div className="absolute bottom-0 left-0 w-48 h-48 bg-gold/5 rounded-full blur-3xl" />
174
+
175
+ <div className="relative">
176
+ <h2 className="font-display text-3xl md:text-4xl font-bold text-cream mb-4">
177
+ Ready to Elevate Your Craft?
178
+ </h2>
179
+ <p className="text-cream/60 text-lg font-body mb-8 max-w-2xl mx-auto">
180
+ Join us in Paris for an unforgettable experience with the world's finest pastry artisans.
181
+ </p>
182
+ <div className="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-gold/10 border border-gold/30 text-gold text-sm font-medium">
183
+ <span>🥐</span>
184
+ <span>Registration opens January 2026</span>
185
+ </div>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </section>
190
+ </>
191
+ )
192
+ }