StealThis .dev
Pages Easy

Delivery — Driver Earnings

A mobile-first driver earnings and shift summary screen for a fictional food-delivery app. A bold orange hero shows net pay with a base, tips, and bonus breakdown plus trips, hours online, and per-hour stats, and toggles between today and the full week. A seven-day bar chart animates into place and reacts to taps, a recent-trips list flags delivered, in-progress, and failed runs with pay pills, and a sticky cash-out bar fires a confirmation toast — all in vanilla JS.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Driver Earnings

A phone-shaped earnings dashboard for a fictional delivery courier. A vivid orange hero card leads with the big net-earnings figure and a small period toggle: switch between Today and This week to swap the headline number, the base / tips / bonus breakdown, and the trips, hours-online, and dollars-per-hour stat tiles. Everything is driven by a small vanilla-JS data model — no frameworks, no build step.

Below the hero, a seven-day bar chart eases into place on load and highlights the current day. Tap any bar to read that day’s split in the hint line and pull the hero into a single-day view, or hit the toggle to clear the selection and return to the weekly total. A recent-trips list rounds out the screen with delivered, in-progress, and failed runs, each tagged with a coloured status pill and its own pay amount, including a zero-pay failed delivery.

A sticky footer shows the amount available to cash out and a Cash out button that fires a confirmation toast, drains the balance to zero, and locks itself afterward. Hover, active, and keyboard-focus states are wired throughout, and all motion respects prefers-reduced-motion.

Illustrative UI only — fictional brand, not a real delivery service.