Day 6 Task 01 Screen draft

Task 01. Make a Screen Draft Fast (Prototype Generation)

Quickly generate a draft HTML/CSS structure for a responsive dashboard from screen requirements written in natural language.

Task 01 Task 01 Screen Draft Lab Guide

📥 Lab input

  • • day6_meeting_notes.md (meeting notes)

💾 Lab output

  • • index.html

1. Story and lab background

A junior at a startup was told to build a booking management system. The plan showed a fancy calendar and list view by booking status, but opening a blank HTML file in the editor felt overwhelming. The day passed just wondering how to set up the layout grid and how to split the CSS files.

When starting development, setting up the initial structure (Boilerplate) and drawing the skeleton of component layouts by hand is very inefficient and draining. In this lab, you describe the screen plan (Figma layout) to Codex in text and generate a working responsive screen draft and component code in seconds, boosting your starting speed.

2. Learning goals

  • Use AI to automatically generate a screen draft (HTML/CSS) from a requirements spec.
  • Turn planning content and layout specs into a screen structure that works in a real browser.
  • Understand a project's basic boilerplate structure and start development quickly.

🛠️ Follow-along lab guide

  1. Create the lab file: press the download button below and save day6_meeting_notes.md in the automation/ folder.
  2. Hand the draft to Codex: copy the **Codex request prompt** below into the Codex Client prompt box and send it to build the source code.
  3. Review and save: check in a web browser that the HTML and CSS files are created properly and the dashboard's 3-card layout and navigation are set up correctly.

Download lab materials

Codex request prompt

Task 01 Prompt
Based on the provided layout spec, generate a draft of HTML markup and CSS grid styles for a responsive dashboard showing booking status. Suggest an initial project structure including pending/approved/done card components for booking status and a left navigation bar.

4. Example output

Codex analyzes the meeting notes and outputs a normalized data entity mapping and Mermaid ERD script like below.

FileExplanationMain componentsRelationships
index.htmlDashboard skeleton markupSidebar, Header, Stats CardsLinked to layout.css
layout.cssResponsive CSS grid stylesGrid Columns, Flex Box LayoutApplied to index.html

5. AI use points

  • Automatic boilerplate: gives a fitting basic HTML structure and responsive CSS Flexbox/Grid skeleton so you don't get worn out setting up.
  • Component abstraction: standardizes elements in the text, like 'status summary cards' or 'table lists', into class-based components.