Build an Editable Monthly Budget Snapshot One-Pager in a Single HTML File
A one-page personal budget snapshot with editable income and spending figures that instantly update a donut chart, savings-rate meter and over-budget flags, and that prints cleanly.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior front-end developer and information designer. Build "Month at a Glance", a personal monthly budget snapshot one-pager for a fictional person, Maya Ortiz, for October. Show two income lines and eight spending categories: housing, groceries, transport, utilities, dining out, health, subscriptions, and fun and travel. Give each category a budget and an actual amount, using realistic sample figures. Every number is editable inline through contenteditable spans, with no form elements, and everything recalculates as you type.
Rules:
- Put a top row of KPI cards: income, spent, saved, savings rate and the number of over-budget categories.
- Add an SVG donut that shows each category's share of spending, with the total in the center and a legend with percentages.
- Add a horizontal savings-rate meter with an editable goal marker. Color it green at or above the goal, amber below it, and red at zero or less. Add a one-line plain-English verdict.
- In the category table, flag each row as On track, Near limit (90% or more) or Over by a dollar amount. Tint over-budget rows.
- Enter or Escape commits an edit, letters are ignored, and values reformat with thousands separators on blur. Include Reset sample and Print buttons.
- Use a warm off-white background, white cards, one blue accent, system fonts and tabular numerals. Make it responsive from 360 to 1280px. Turn off transitions under prefers-reduced-motion. Add a print stylesheet that hides the buttons and keeps cards unbroken.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Contenteditable spans give inline editing without form elements, and values reformat only on blur so the caret never jumps while typing.
- A single recalculation function drives the KPIs, donut, meter and badges, so every view always agrees.
- Stroke-dasharray donut segments and a print stylesheet keep it dependency-free and paper-ready.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as budget.html and open it in any browser, or view it in the chat's preview or canvas. Then replace the sample figures with your own.
Common edits
- Swap the categories, colors and sample figures for your own household, or add a third income line.
- Change the meter scale, the Near-limit threshold (90%) or the currency symbol to suit your budget.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Private Net Worth Snapshot Infographic in a Single HTML File
A one-page personal balance sheet with editable assets and debts, stacked balance bars, payoff progress rings and live totals that run fully offline.
Build a Budget Allocation Treemap Infographic in a Single HTML File
You get one HTML file that draws a squarified treemap of a city budget, hides labels on small blocks, and shows a details panel when you tap or click any block.
Build a Company Fact Sheet One-Pager with Animated Stats and a Location Map
You get a single HTML file laid out like an investor or press fact sheet, with animated stat counters, mission, leadership, milestones, an interactive SVG office map and a brand-color theme switch.
Build a Creator Media Kit One-Pager With Audience Stats in HTML
A pitch-ready creator media kit page with animated follower counts, platform tabs, audience demographic bars, engagement benchmarks and a clickable package quote builder.
Build a Monthly KPI Dashboard One-Pager with RAG Status and Sparklines in HTML
A single HTML file that shows six business KPIs as cards with targets, red/amber/green status, SVG sparklines, a month stepper and editable one-line commentary.
Build a Nonprofit Annual Impact Report One-Pager with Animated Counters
A donor-friendly impact report page in one HTML file, with count-up impact stats, an interactive where-each-dollar-goes donut, outcome bars, a beneficiary story and a gift-impact picker.