root = Card([header, specialCallout, vegFilter, drinksSection, foodSection, hoursSection])
header = CardHeader("Morning Brew Cafe", "Fresh & Local Since 2019")
specialCallout = Callout("success", "Today's Special", "Avocado Toast with Poached Eggs & Chili Flakes — $12.00 (Vegetarian)")
vegFilter = SwitchGroup("diet-filter", [vegSwitch], "card")
vegSwitch = SwitchItem("Show vegetarian only", "Hide non-vegetarian items from the menu", "veg-only", false)
drinksSection = Card([drinksHeading, drinksTable], "sunk", "column", "m")
drinksHeading = Heading("Drinks", "h3")
drinksTable = Table([drinkName, drinkPrice, drinkVeg])
drinkName = Col("Drink", ["Espresso", "Cappuccino", "Latte", "Cold Brew", "Matcha Latte", "Chai Tea", "Fresh Orange Juice", "Sparkling Water"])
drinkPrice = Col("Price", ["$3.00", "$4.50", "$5.00", "$4.50", "$5.50", "$4.00", "$5.00", "$2.50"])
drinkVeg = Col("Vegetarian", ["Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes"])
foodSection = Card([foodHeading, foodTable], "sunk", "column", "m")
foodHeading = Heading("Food", "h3")
foodTable = Table([foodName, foodPrice, foodVeg])
foodName = Col("Item", ["Avocado Toast", "Bacon & Egg Sandwich", "Blueberry Muffin", "Greek Yogurt Bowl", "Turkey Club Sandwich", "Veggie Wrap", "Banana Bread", "Acai Bowl"])
foodPrice = Col("Price", ["$12.00", "$10.00", "$4.50", "$9.00", "$13.00", "$11.00", "$4.00", "$13.00"])
foodVeg = Col("Vegetarian", ["Yes", "No", "Yes", "Yes", "No", "Yes", "Yes", "Yes"])
hoursSection = Card([hoursHeading, hoursTable], "sunk", "column", "m")
hoursHeading = Heading("Opening Hours", "h3")
hoursTable = Table([dayCol, hoursCol])
dayCol = Col("Day", ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"])
hoursCol = Col("Hours", ["7:00 AM – 3:00 PM", "7:00 AM – 3:00 PM", "7:00 AM – 3:00 PM", "7:00 AM – 3:00 PM", "7:00 AM – 4:00 PM", "8:00 AM – 4:00 PM", "8:00 AM – 2:00 PM"])