root = Card([header, draftsCard, publishedCard, mostReadCard, readershipChart, categorySelect, scheduleForm, commentsList, newDraftButton], "column", "m", "start", "start", false)
header = CardHeader("Editor Content Studio", null)
draftsHeader = CardHeader("Drafts", null)
draftsCard = Card([draftsHeader, draftsList], "column", "s", "start", "start", false)
draft1Header = CardHeader("Article A", null)
draft1Status = Tag("In Progress", null, null, "neutral")
draft1Card = Card([draft1Header, draft1Status])
draft2Header = CardHeader("Article B", null)
draft2Status = Tag("In Review", null, null, "neutral")
draft2Card = Card([draft2Header, draft2Status])
draft3Header = CardHeader("Article C", null)
draft3Status = Tag("On Hold", null, null, "neutral")
draft3Card = Card([draft3Header, draft3Status])
draftsList = ListBlock([draft1Card, draft2Card, draft3Card])
publishedHeader = CardHeader("Published Pieces", null)
published1Header = CardHeader("Article X", null)
published1Status = Tag("Published", null, null, "success")
published1Card = Card([published1Header, published1Status])
published2Header = CardHeader("Article Y", null)
published2Status = Tag("Published", null, null, "success")
published2Card = Card([published2Header, published2Status])
published3Header = CardHeader("Article Z", null)
published3Status = Tag("Scheduled", null, null, "neutral")
published3Card = Card([published3Header, published3Status])
publishedList = ListBlock([published1Card, published2Card, published3Card])
mostReadHeader = CardHeader("Most-Read Article This Month", null)
mostReadContent = TextContent("Top article: \"Deep Dive into AI\" – 12,500 reads", "large")
mostReadCard = Card([mostReadHeader, mostReadContent])
readershipDays = ["Day 1","Day 2","Day 3","Day 4","Day 5","Day 6","Day 7","Day 8","Day 8","Day 9","Day 10","Day 11","Day 12","Day 13","Day 14","Day 15","Day 16","Day 17","Day 18","Day 19","Day 20","Day 21","Day 22","Day 23","Day 23","Day 24","Day 25","Day 26","Day 27","Day 27","Day 28","Day 29","Day 30"]
readershipSeries = Series("Readers", [100,150,130,170,200,180,210,220,240,260,250,280,300,310,330,350,360,380,390,410,420,440,450,460,480,490,500,520,530,550])
readershipChart = LineChart(readershipDays, readershipSeries, "natural", "Day", "Readers")
categorySelect = Select("category_filter", [SelectItem("tech","Technology"), SelectItem("biz","Business"), SelectItem("ent","Entertainment")], "Choose a category", null, null, "medium")
titleInput = Input("title", "Draft Title", "text")
titleField = FormControl("Title", titleInput)
datePicker = DatePicker("publish_date", "single")
dateField = FormControl("Publish Date", datePicker)
formButtons = Buttons([submitBtn, cancelBtn], "column")
submitBtn = Button("Submit", null, "primary", "normal", "medium")
cancelBtn = Button("Cancel", null, "tertiary", "normal", "medium")
scheduleForm = Form("schedule_form", formButtons, "column")
commentsItem1 = ListItem("Hello world", "Awaiting reply")
commentsItem2 = ListItem("Testing the system", "Awaiting reply")
commentsItem3 = ListItem("Feedback request", "Awaiting reply")
commentsList = ListBlock([commentsItem1, commentsItem2, commentsItem3])
newDraftButton = Button("Start New Draft", null, "primary", "normal", "medium")