root = Card([header, countdown, agendaSection, speakersSection, ticketsSection, registerSection])
header = CardHeader("DevSummit 2025", "June 12–14, 2025 · Moscone Center, San Francisco")
countdown = Progress(28, "Days until the event")
agendaSection = Card([agendaTitle, agendaTable], "sunk")
agendaTitle = Heading("Agenda", "h3")
agendaTable = Table([timeCol, sessionCol, speakerCol])
timeCol = Col("Time", ["9:00 AM", "10:30 AM", "1:00 PM", "3:00 PM"])
sessionCol = Col("Session", ["Keynote: The Future of AI", "Scaling Distributed Systems", "Designing for Accessibility", "Panel: Open Source in 2025"])
speakerCol = Col("Speaker", ["Ada Lovelace", "Alan Turing", "Grace Hopper", "Linus Torvalds"])
speakersSection = Card([speakersTitle, speakerList])
speakersTitle = Heading("Speakers", "h3")
speakerList = ListBlock([speaker1, speaker2, speaker3, speaker4], "number")
speaker1 = ListItem("Ada Lovelace", "Pioneer of computing and keynote speaker")
speaker2 = ListItem("Alan Turing", "Expert in distributed systems and cryptography")
speaker3 = ListItem("Grace Hopper", "Advocate for accessible and inclusive design")
speaker4 = ListItem("Linus Torvalds", "Open source visionary and kernel maintainer")
ticketsSection = Card([ticketsTitle, ticketTable])
ticketsTitle = Heading("Tickets", "h3")
ticketTable = Table([tierCol, priceCol, perksCol])
tierCol = Col("Tier", ["General", "Pro", "VIP"])
priceCol = Col("Price", ["$299", "$599", "$999"])
perksCol = Col("Perks", ["All sessions", "All sessions + workshops", "All sessions + workshops + lounge"])
registerSection = Card([registerTitle, registerForm])
registerTitle = Heading("Register", "h3")
registerForm = Form("registration", registerButtons, [nameField, emailField])
nameField = FormControl("Name", nameInput)
nameInput = Input("name", "Your full name")
emailField = FormControl("Email", emailInput, "We'll send your ticket confirmation here")
emailInput = Input("email", "you@example.com", "email")
registerButtons = Buttons([registerBtn])
registerBtn = Button("Register now", null, "primary")