Live preview · sample content
54 pages in this template
- Home/
- Catalogue/products
- Collections/collections
- Cart/cart
- Checkout/checkout
- Account/account
- Sign in/login
- About us/about
- Our process/process
- Contact/contact
- FAQ/faq
- Trade terms/terms
- Request a quote/quote
- Quotes/quotes
- Journal/journal
- Collection page/collections/beams
- Collection page/collections/hollow
- Collection page/collections/bar
- Collection page/collections/plate
- Collection page/collections/reinforcement
- Product page/products/cut-to-length
- Product page/products/ub-203x133x25
- Product page/products/ub-254x146x31
- Product page/products/ub-305x165x40
- Product page/products/uc-152x152x23
- Product page/products/uc-203x203x46
- Product page/products/pfc-150x75x18
- Product page/products/shs-50x50x3
- Product page/products/shs-100x100x5
- Product page/products/rhs-100x50x4
- Product page/products/rhs-150x100x5
- Product page/products/chs-48x3
- Product page/products/chs-114x3
- Product page/products/flat-50x6
- Product page/products/flat-100x10
- Product page/products/angle-50x50x6
- Product page/products/angle-100x75x8
- Product page/products/round-20
- Product page/products/square-25
- Product page/products/sheet-2mm
- Product page/products/plate-6mm
- Product page/products/plate-10mm
- Product page/products/durbar-4mm
- Product page/products/galv-sheet
- Product page/products/rebar-h12
- Product page/products/mesh-a193
- Product page/products/mesh-a393
- Product page/products/tying-wire
- Journal article/journal/s275-or-s355
- Journal article/journal/nesting-saves
- Journal article/journal/certificates-online
- Quote/quotes/q-9164
- Quote/quotes/q-9140
- Quote/quotes/q-9077
The prompt
Paste it into Claude Code, Codex or Cursor.
Prompt · Millrun
Read storefront/AGENTS.md and the "Folders and the storefront rule" and "Styling" sections of docs/code.md first. Rebuild the storefront as the "Millrun" design. The finished store must look and behave like the preview at https://openb2bshop.com/preview/millrun: open it, take screenshots at 1440px and 390px, and use them with the description below as the reference. Millrun is a steel stockholder for fabricators and builders, with a stock list as a dense table by part number, a search field as the widest thing in the header, and a cut-to-length page that draws the section at its length and prices it by weight. ## Colours Set these as the storefront's colour tokens in storefront/styles.css, and give the dark theme the same values so the store looks the same in both: - Page background (--color-background): #ffffff - Text (--color-foreground): #14202b - Secondary text (--color-muted-foreground): #5b6772 - Surfaces such as cards, fields and the trade terms band (--color-card, --color-muted): #ffffff - Main buttons, icons and active pills (--color-primary): #1d4f7c, with text in #ffffff (--color-primary-foreground) - Hairlines, where the design draws one: #d7dde3 ## Type - Use IBM Plex Sans from Google Fonts for titles and text. - Load the fonts in storefront/fonts.ts and point --font-display and --font-sans at them. - Titles keep tight letter-spacing (about -0.02em). - Keep the type scale's token names; change only the faces. ## Shape - Buttons, pills and the header's login button: 3px corners. - Cards, panels and pictures: 3px corners. ## Home page, top to bottom The home page tells the buyer these things in order, one per section: 1. Millrun stocks sections, plate and reinforcement in Rotherham and finds them by size or part number. 2. The yard delivers next day, saws to 2 mm, primes or galvanises, and certifies every length. 3. These are the lengths in the racks today. 4. A cut piece is priced by its weight, from the section and the length. 5. Five collections, the steps of an order and the terms follow. 6. Stock ordered by 4 pm is on tomorrow's wagons, and the order starts in the stock list. The main action is 'Open the stock list', a filled blue button in the hero and in the closing band. 'Cut a section to length' is the blue text link beside it. The search field, table rows and collection lines are controls or links. 1. Colours: the page is #ffffff, text #14202b with secondary text #5b6772, cards #ffffff, alternate sections #f0f3f6, hairlines #d7dde3. #1d4f7c is the only brand colour (buttons, the chosen option's 2px border, links), with #e3edf6 as its tint for the current price break and chips; the dark band is #14202b. Titles are IBM Plex Sans at weight 600 in sentence case, at most 58px in a hero and 42px on a page; text is IBM Plex Sans at 15px. Corners are 3px on cards and 3px on buttons. 2. Header on every page: three rows: a thin dark strip with the notice and the sales desk's number, a row 64px tall with the wordmark, a wide search field, the buyer's company and the cart, and a row of the collections as small links. The pages are Stock list, Cut to length, Collections, Our process, About us, Contact. Below 1024px a menu button opens them as a list. 3. Footer on every page: a dense directory in five columns: every collection, ordering, company, the departments with their numbers, and the counter hours with the certificates. 4. Drawings: each section is its true cross-section pushed back along one axis, with the upward faces lit, the right-hand faces in shade and the sawn end palest; plate is a thin slab, mesh a grid of bars and reinforcing bar a bundle of three ribbed rounds. The finish option repaints a section in mill grey, red oxide primer or pale galvanised grey. 5. Hero (kit: HeroSearch) on pale grey: the title, one paragraph, a wide search field with an example part number, the five collections as underlined links, then the button and the text link; on the right a bordered frame with a universal beam. 6. Service cells (kit: ServiceCells): next-day delivery, sawn to 2 mm, primed or galvanised, 3.1 certificates. 7. 'In the racks today' (kit: FeaturedRows): six rows of the stock table with thumbnail, part number, description, stock, pack, price, stepper and add button. 8. Piece calculator (bespoke): six section buttons, the sizes of the chosen section in the monospaced face and a length slider on the left; on the right a bordered sheet with the section drawn at that length and rows for the mass per metre, the mass of the piece, the steel at 1.12 a kilogram and one saw cut, the price in large monospaced figures and a link to the cut-to-length page. 9. 'Five collections, from universal beams to tying wire' (kit: CollectionList): the title pinned on the left and a numbered list with a small drawing per collection. 10. Four figures on the dark band (kit: NumbersBand), the first four steps of an order (kit: ProcessTimeline), the terms as four rows (kit: TradeTerms), customers as text (kit: LogoWall), five questions (kit: FaqTeaser) and the closing band (kit: CtaBand). ## The other pages The preview is a whole storefront. Open each page at https://openb2bshop.com/preview/millrun/<path>, take screenshots at 1440px and 390px, and build the store's page to match. Every page tells the buyer a few things in a fixed order, one per section, and has one main action. Don't add a section that isn't in the page's list, and don't add a second filled button beside the main action. ### Stock list (/products) 1. Millrun Steel lists 28 products in 5 collections at the buyer's trade price. 2. A buyer narrows the list by collection, by stock or by a search from the header. 3. A line of 5 or more costs 4% less, and each product shows its own breaks. The main action is 'Add' on a product, an outlined button that puts the product's minimum quantity in the order and reads 'Added' for two seconds. Collection tabs with counts above a dense table grouped by collection: thumbnail, part number in the monospaced face, description with the key fact, stock and lead time, pack, trade price and a quantity stepper with an add button on every row. ### Product page (/products/ub-203x133x25) 1. Universal beam 203 × 133 × 25: A light universal beam for lintels over openings up to about 4 metres and for domestic floor beams. 2. Every option group has a label with its current value, and the drawing follows the choice. 3. The quantity shows its price breaks, and the total follows it. 4. The specification, the delivery facts and the products that go with it come under the first screen. The main action is 'Add', the filled button in the pinned buy area. After a click it reads 'Added' and a link to the order appears beside the total. A data sheet in three columns: the drawing in a bordered frame above three key figures, the name with the option groups in the middle (scrolling on their own), and a bordered buy box on the right with the price of one in the monospaced face, pack, minimum, dispatch and delivery rows, the total and the add button. On a phone the drawing is pinned at the top at 36% of the height, the options scroll under it and the buy bar is pinned at the bottom. Below: specification rows beside the description, three delivery facts, related products. ### Cut to length (/products/cut-to-length) 1. Any section in the yard is sawn to the length the buyer gives, within 2 mm. 2. The buyer picks one of six sections and its size, with the mass per metre beside each size. 3. The length and the ends come next: square, or mitred at 45 degrees at one or both ends. 4. The finish is mill, shot-blasted and primed, or galvanised, and the price of a piece follows its weight. The main action is 'Add' in the pinned bar under the steps, beside a small quantity stepper and the total. Two columns that fill the window below the header: the section drawn at its length on a soft ground with a dimension line under it and the mass as a caption; on the right three step tabs (Section, Length, Finish) with one step visible at a time. Section has six section buttons and up to four sizes with their mass per metre; Length has a slider with a number field and three choices for the ends; Finish has three labelled swatches and, for flats and angles, two grades. A tinted line states the rule that applies. The pinned bar has a piece stepper, the total, the price of one and the add button. Below: the choices as rows and three stock beams. ### Collections (/collections) 1. Millrun Steel groups its catalogue into 5 collections. 2. Each collection has a page with its own text and its products. The main action is 'Browse the catalogue' in the page head; each collection is a link. Cards two in a row: the collection's drawing in a frame, its number and name, one sentence and its product count. ### Collection page (/collections/beams) 1. Universal beams and columns and parallel flange channels in S355. 2. Millrun holds 86 sizes of universal beam, 31 of universal column and 18 channels, all in S355JR with 3.1 certificates. The sizes on this page are the ones that builders and small fabricators order most, and our sales office has the rest. 3. We stock beams in 6.1, 8, 10 and 12.2 metre lengths. Most leave the yard cut to length, and the cut-to-length page prices a piece as you set it up. For a beam that will be built into masonry, the shot-blast and primer finish saves a day on site. The main action is 'Add' on a product. A soft band with the name, one sentence and three figures (products, in stock, dispatch from) beside the collection's drawing; the collection's paragraphs beside a small title; its products in the catalogue's card or table shape; a link to the next collection. ### The order (/cart) 1. The order lists each line with its options and the break it has reached. 2. Delivery costs £55.00 and is free over £750.00; the smallest order is £50.00. 3. A buyer who needs a price on paper sends the lines as a quote request. The main action is 'Check out', a full-width filled button in the summary. 'Request a quote' is the text link under it. Two columns from 1024px: the lines as a table with one row per line (drawing, name, part number, options, the break it has reached, price of one, stepper, line total, remove), and a pinned summary with goods, quantity breaks, delivery, VAT and the total. Empty, the page says so, links to the catalogue and shows three products. ### Checkout (/checkout) 1. The buyer chooses the delivery address and the day. 2. Payment is on account (30 days from the end of the invoice month), by card or by bank transfer, with a purchase order number. 3. Placing the order shows its number and puts it first on the account page. The main action is 'Place the order'. Four numbered blocks on one page (delivery address, delivery day, payment, reference), each with its current value beside its title, and the order summary pinned on the right with 'Place the order'. ### Account (/account) 1. Hallam Structures Ltd sees its orders, quotes, invoices and saved lists. 2. An order opens to its lines, a quote row opens the quote's page and an invoice can be paid. 3. The Messages tab lists the threads with the supplier about an order, a quote or a general question; a reply typed in the box joins the thread. 4. A saved list goes into the order in one click. The main action is 'Start a new order' in the page head. A row of four figures (open balance, free credit, terms, orders this year), then tabs for orders, quotes, invoices, saved lists and company. ### Quotes (/quotes) 1. Hallam Structures Ltd sees every quote the supplier has prepared. 2. A row shows the number, the title, the date until which the prices are valid, the status and the total, and opens the quote. The main action is 'Request a quote' in the page head. The quotes as rows under hairlines; each row is a link to the quote's page. ### Quote (/quotes/q-9164) 1. Portal frame, Unit 7: 14.2 t sections cut and primed. 2. The buyer reads the lines with quantity, price of one and line total, and the date until which the prices are valid. 3. Accepting the quote turns it into an order. 4. The buyer can write to the supplier about the quote, and the reply joins the thread. The main action is 'Accept and convert to order' in the summary box. Two columns from 1024px: on the left the number with a status chip, the title, the lines as a table and under it the messages about the quote with a reply box; on the right a pinned bordered box with goods, tax and total, the validity and payment terms, the accept button and a link to request a changed quote. After accepting, the button is replaced by a tinted note with the new order number. ### Sign in (/login) 1. Millrun Steel sells to trade customers. 2. A buyer signs in, or applies for an account in the second tab. The main action is 'Sign in', and 'Send the application' in the second tab. Two columns: the title, one sentence, a picture and four rows of terms on the left; a card with the two tabs and their forms on the right. ### About us (/about) 1. Millrun began in 1972 in the dispatch bay of a former rolling mill, with 300 tons of flats and angles bought from the mill next door. 2. Derek Platts had worked as a dispatch clerk at that mill. He saw small fabricators turned away because they wanted one bundle and the mill sold by the lorry load. He rented the bay, bought bundles and sold single lengths, and the local fabricators came with their own pick-up trucks. 3. The first band saw arrived in 1981, after a customer asked for forty beams all 4.2 metres long. Cutting to length turned out to be worth more to customers than the steel, and by 1990 half of all orders left the yard sawn. 4. Derek's son Stephen moved the company to the present 3.2 hectare yard in 1998, with overhead cranes over every rack. The CNC saw lines followed in 2012, a shot-blast and primer line in 2016, and CARES approval for reinforcement in 2019. The main action is 'Browse the catalogue' in the closing band. A wide picture, the history in one reading column with the dated events beside it, four figures between hairlines, the people as cards with initials, the certificates as four boxes. ### Our process (/process) 1. You order from the stock list or send a cutting list: The stock list shows what is in the racks now. For cut pieces, set up each piece online or send your own cutting list, and our sales office checks it against the stock lengths to keep offcuts small. 2. We pick the steel by cast number: A crane driver picks each length from its rack. We scan the cast number on the steel, which links the piece to its mill certificate. 3. We cut the steel to length: Two CNC band saws cut square or mitred to ±2 mm and mark each piece with your reference. The saw places several pieces in one stock length where it can. 4. We shot-blast and prime the steel, if you chose it: Pieces pass through the shot-blast to Sa 2½ and receive 75 microns of zinc phosphate primer. Our partner in Derby does the galvanising, which adds five working days. 5. We check the order and load it in delivery order: A checker measures one piece in ten and counts every line against the delivery note. We load the lorry so that the first delivery is on top. 6. We deliver before noon: Lorries leave before 6 a.m. Each has a crane, and the driver offloads within 8 metres of the lorry onto timbers you provide. The main action is 'Browse the catalogue' in the closing band. One line down the page with a numbered round stop for each step, its title, text and a chip with its figure. A picture above, and the lead times as rows below. ### Contact (/contact) 1. Each department has its own number and address. 2. A message goes to the chosen department and is answered within one working day. The main action is 'Send the message'. The departments as selectable rows with the address and the opening hours under them on the left; the form on the right, whose title names the chosen department. ### Questions and answers (/faq) 1. Is the stock list live? 2. Do you sell single lengths? 3. How are the quantity breaks worked out? 4. How accurate is cutting to length? The main action is 'Contact the sales desk' in the box under the questions. The questions grouped by subject, each group with its name on the left and an accordion on the right in which one answer is open at a time. ### Delivery and terms (/terms) 1. Prices and weights: Prices are per stock length, sheet or cut piece and are held for the day. We invoice steel at the theoretical mass in the relevant British Standard, which is the figure on each product page. A quote holds its prices for seven days, because mill prices change. An accepted quote fixes them for delivery within 30 days. 2. Cutting and tolerances: Sawn lengths are within ±2 mm and mitres within ±1°. The cutting charge is £4.50 a cut and £6.00 more for a mitre. Offcuts longer than 500 mm are delivered with the order unless you ask us to keep them. We cannot accept returns of steel cut to your length unless it is outside those tolerances. 3. Delivery and offloading: The driver offloads by crane within 8 metres of the lorry onto timbers you provide. The site must give the lorry a hard road and 4.5 metres of clear height. Check the delivery against the note and sign for it. We correct shortages and damage reported within two working days on the next lorry. 4. Certificates and traceability: We supply structural steel with a 3.1 mill certificate to BS EN 10204, which you can download from the order on your account page. Every length carries its cast number. We supply reinforcement under our CARES approval, with bundle labels that show the cast and the schedule reference. 5. Returns: You can return uncut stock lengths in their delivered condition within 14 days for a credit, less a 15% handling charge and the haulage. The main action is 'Browse the catalogue' at the end. Four figures in a box, the delivery zones as a table beside the quantity breaks and lead times, then the numbered sections of the terms. ### Quote request (/quote) 1. A buyer describes the job or sends the lines already in the cart. 2. The sales desk replies within one working day, and an accepted quote becomes an order. The main action is 'Send the quote request'. The form on the left (project name, needed by, description) and the cart's lines with their total on the right. ### Journal (/journal) 1. S275 or S355: why most of our sections are now S355: The mills now roll structural sections almost only in S355. This article explains what that means for a job specified in S275. 2. How cutting lists saved customers 212 tonnes of steel last year: Placing several cut pieces in one stock length reduces the steel that a customer pays for. These are the figures from a year of cutting lists. 3. Mill certificates are now attached to every online order: Fabricators working to EN 1090 need the 3.1 certificate for every piece. They no longer have to ask for it. Each entry is a link; an entry page ends in 'Browse the catalogue'. Three entries in a row with a drawing, the date and author, the title and the excerpt; an entry page is one reading column. ## Interactions - A product added on any page is in the order on the next page, and the header's count follows it. The order starts empty. - Product page: an option changes the price of one, a colour repaints the drawing and a size reshapes it. The stepper follows the product's minimum and step, the current break cell is tinted and the total rolls to its new value. - Cart: a stepper changes the line total, the break note under the line, the delivery charge and the total. Under the minimum order the page says how much is missing and 'Check out' is disabled. - Checkout: choosing an address, a day or a payment moves the accent border. 'Place the order' empties the cart and shows the confirmation; the order is then the first row on the account page. - Account: the tabs swap the section; an order row opens and closes its lines; accepting a quote and paying an invoice change the row's chip; a saved list adds its lines to the cart. - The search field in the header (where the header has one) opens the catalogue with the matching products and a line that clears the search. - Contact, quote request and the trade application show a confirmation in place of the form after sending. - Motion is limited to transform and opacity: sections and cards rise in once, amounts roll, and no page has an idle loop. - Cut to length: choosing a section resets the size to its first one and redraws the cross-section. The slider lengthens the drawn piece and its dimension line. A length above the section's stock length, or above 7,000 mm with galvanising, is set to the limit and the tinted line says why. The finish repaints the piece and changes the lead time from 2 to 3 or 7 working days. - Piece calculator: section, size and length recalculate the four rows and the price and redraw the section. - Header search: sending the field opens the stock list with the matching rows. Build each part as a component in storefront/home or storefront/pages, and read every product, price, category and stock figure from kit/ in the route file. The names, products and numbers in the preview are sample content. ## The rest of the storefront Carry the design through the category, product, cart, checkout, quote and account pages: the same colours, fonts, corners, buttons, cards and motion, so every page belongs to the same store. ## How to build it This is how earlier redesigns of this storefront were done (see `git log` for "The homepage follows the Horizone template" and "The storefront moves like the template"). Do it the same way. - Home page sections are blocks staff edit. The home route renders `<PageBlocks pageKey="home" />` (storefront/page-blocks.tsx), which draws the blocks arranged under Marketing → Page layout. Restyle the existing blocks to this design. For a section the store has no block for, add a section layout or a block: its schema in lib/homepage-blocks.ts, its component in storefront/home, its case in storefront/page-blocks.tsx, its form in admin/marketing (home-section-form.tsx, blocks.tsx, block-thumbnail.tsx), its labels in messages/en and messages/zh-CN, and its cases in lib/homepage-blocks.test.ts. Anything it reads from the store comes through kit/. - The store starts with this design. Put the homepage's blocks, texts and pictures into prisma/seed-store.ts and public/seed, so a new store opens with this homepage, and set the same homepage on the local store. - Restyle the whole storefront: the header and footer (storefront/site, storefront/layout), the product card, catalog, cart, checkout and account components (storefront/store), and the page bodies (storefront/pages). - Colours, fonts, corners and the type and spacing scale are tokens in storefront/styles.css. Set them for the light theme and for `.dark`. When you change the scale, change its lists in scripts/lint/styling.mjs with it. - Keep the store light. Motion is an accent: a short entrance, sections rising in, quick state changes and at most two small idle loops per page. Animate only opacity, translate and scale. No blur or backdrop filters on large areas, no SVG filters, no canvas, no video backgrounds, no parallax and no scroll or pointer handlers that re-render the page. Don't add an animation library. - Motion is CSS in storefront/motion.css: entrances on load, sections and cards rising in on scroll with a stagger, hover lifts and state changes, with opacity, translate and scale only, and nothing under reduced motion. Keep the state itself in React. - Icons are files in ui/store-icons, one per icon. Product and category pictures come from the catalog; a scene or a diagram is an SVG component in storefront/. - If you change a shared ui/ component's markup, delete its entry in tests/ui-markup/fixtures and run `WRITE_MARKUP=1 bun test tests/ui-markup`. - If the store has a design published through the MCP design tools, clear its colour, font and radius tokens, because they override storefront/styles.css. ## Rules A storefront file reaches the rest of the app only through kit/: don't import from server/, admin/, services/ or lib/auth, and don't send or calculate a price in the browser. Show `yourPrice` and the totals the kit returns. Keep these working: add to cart stays on the page and shows the "Added" notice, checkout asks for the address before it shows shipping methods, and a guest can check out. Nothing scrolls sideways at 390px or 1440px. ## Finish Run `bun run lint`, `bun test ./tests/architecture`, `bun test ./storefront ./lib/homepage-blocks.test.ts` and `bun test tests/ui-markup`, and fix what they report. Start the store with `bun run dev`, take screenshots of your home, catalog, product and checkout pages at 1440px and 390px, and compare the home page with the preview's screenshots section by section: layout, colours, fonts, spacing, corners and motion. Keep changing the storefront until they match. Then write the commit message the way this repository does, as sentences that say what the storefront now shows, and list the files you changed.
Use it
- 1
Open the openb2b repository
Start a coding agent in the repository.
- 2
Paste the prompt or add the skill
Paste it, or save the SKILL.md in .claude/skills/.
- 3
Review the result
Open the result beside the preview and compare.



