root = Card([header, countdown, agendaSection, speakersSection, ticketsSection, registerSection])
header = CardHeader("DevSummit 2025", "March 12-14, 2025 · Moscone Center, San Francisco")
countdown = Callout("info", "Time until the event", "47 days to go — early-bird pricing ends soon")
agendaSection = Card([agendaHeading, agendaTable], "sunk")
agendaHeading = Heading("Agenda", "h3")
agendaTable = Table([timeCol, sessionCol, roomCol])
timeCol = Col("Time", ["9:00 AM", "10:30 AM", "1:00 PM", "3:30 PM", "5:00 PM"])
sessionCol = Col("Session", ["Keynote: The Future of AI", "Breakout: Scaling Systems", "Lunch & Networking", "Workshop: Cloud Native", "Fireside Chat"])
roomCol = Col("Room", ["Main Hall", "Room A", "Atrium", "Room B", "Main Hall"])
speakersSection = Card([speakersHeading, speakerList])
speakersHeading = Heading("Speakers", "h3")
speakerList = ListBlock([speaker1, speaker2, speaker3])
speaker1 = ListItem("Dr. Maya Chen", "AI Research Lead at Northwind Labs", ["https://picsum.photos/seed/maya/100/100"])
speaker2 = ListItem("James Okafor", "Principal Engineer, Cloud Platforms", ["https://picsum.photos/seed/james/100/100"])
speaker3 = ListItem("Priya Natarajan", "VP of Developer Experience, Contoso", ["https://picsum.photos/seed/priya/100/100"])
ticketsSection = Card([ticketsHeading, ticketsTable], "sunk")
ticketsHeading = Heading("Tickets", "h3")
ticketsTable = Table([tierCol, priceCol, perksCol])
tierCol = Col("Tier", ["General", "Pro", "VIP"])
priceCol = Col("Price", ["$499", "$799", "$1,299"])
perksCol = Col("Includes", ["All sessions", "Sessions + workshops", "Everything + lounge access"])
registerSection = Card([registerHeading, registerForm])
registerHeading = Heading("Register", "h3")
registerForm = Form("registration", formButtons, [nameField, emailField, tierField])
nameField = FormControl("Full name", nameInput)
nameInput = Input("name", "Jane Doe")
emailField = FormControl("Email", emailInput, "We'll send your confirmation here")
emailInput = Input("email", "jane@example.com", "email")
tierField = FormControl("Ticket tier", tierSelect)
tierSelect = Select("tier", [tierGeneral, tierPro, tierVip], "Choose a tier")
tierGeneral = SelectItem("general", "General — $499")
tierPro = SelectItem("pro", "Pro — $799")
tierVip = SelectItem("vip", "VIP — $1,299")
formButtons = Buttons([registerBtn])
registerBtn = Button("Register now", null, "primary")