An order confirmation thank you page built with pure CSS and a few lines of JavaScript: a check badge and personal greeting, a dashed "ticket" with the order number, the purchased items with product photos, a progress tracker and a paid summary with delivery details. Drop it in after checkout as the success page of a shop, booking flow or subscription signup.
How it works
The root main.oc-page paints a warm cream background with two soft radial shapes and holds .oc-wrap, which limits the width. .oc-hero is a grid with the .oc-check badge, the heading block and the .oc-ticket description list (.oc-order-no and the order date). On narrow screens everything stacks; from 720px the badge sits next to the text and from 960px the ticket moves to the right edge.
Below, .oc-grid places two .oc-card panels side by side on wide screens. .oc-items lists each product as an .oc-item grid row with an .oc-thumb image, name, variant and .oc-price. The .oc-steps list draws the delivery progress: every .oc-step gets a connector line through ::before, .is-done fills the dot and line with the brand color, and .is-current adds a highlighted ring. The .oc-summary aside shows the totals as a dl, the shipping address and arrival window in .oc-meta-grid, and two .oc-btn links. The checkmark draws itself once with a stroke-dashoffset animation. A small script fills .oc-placed with today's date and .oc-arrives with a window from data-oc-arrives.
Customization
--oc-brandand--oc-accenton.oc-page: the deep green used for the badge, buttons and finished steps, and the terracotta used for labels, the item count and the current step.--oc-bg,--oc-surfaceand--oc-line: page, card and divider colors for a cooler or darker theme.data-oc-arriveson.oc-arrives: the delivery window in days, e.g.2-3for express.- Move
.is-currentandaria-current="step"to another.oc-stepand add.is-doneto the earlier ones to show a later order status. grid-template-columns: 1.4fr 1fron.oc-grid(960px media query): change the ratio between the item list and the summary.- Replace the
.oc-btn--ghostlink with a second.oc-btn--primary, or remove it, to change the call to action.
The product photos come from Unsplash; replace them with your own product images in the same square format.
Use cases
- Online stores: an order number ticket confirms the purchase right after checkout
- Shipping updates: a delivery progress tracker shows the order's next steps
- Receipt pages: product photos and a paid order summary list what was bought
- Checkout flows: a clear final page with an order number reassures customers after paying
Accessibility
The page uses a single h1, labelled section and aside regions and h2/h3 headings. Totals, the order number and the delivery details use description lists, every product image has a descriptive alt text and fixed dimensions, and the badge SVG is aria-hidden. The progress list has an aria-label, marks the active step with aria-current="step" and adds a visually hidden "completed" note to finished steps. Buttons and links get a clear accent outline on :focus-visible, colors meet WCAG AA contrast, and the checkmark animation is turned off under prefers-reduced-motion.
Usage notes
Fill the order data on the server when rendering the page and delete script.js; the dates it writes are sample values. Without JavaScript the static "Today" and "In 4–6 days" text remains.