Freeframe

Documentation

Bincrest

v1.0.0Updated Dec 5, 2026A dark, industrial SaaS website for inventory software, with a live multi-channel stock board in the hero.

Overview#

Bincrest is a multi-page marketing website for an inventory and stock management app: one stock count for independent shops that sell in a storefront, an online shop, on marketplaces and wholesale. The fictional Bincrest, Inc. is based in Cedar Rapids, Iowa, and works in Central time. The site is plain HTML5 with Tailwind CSS v4 and vanilla JavaScript, with no dependencies and no build step needed to view it. This guide covers version 1.0.0. The template page, with a link to the live demo, is at freeframe.dev/templates/bincrest.

The look is dark and industrial, borrowed from a stockroom: a warm near-black page, hairline grids, cream shelf tags with a punched hole, bin-location eyebrows like A-01, corner crop marks and one bright signal-red accent. Headings are set in Bai Jamjuree, body text in Gantari and numbers, SKUs and bin codes in Kode Mono.

Quick start#

  1. Unzip the download.

  2. Open index.html in a browser, or serve the folder (any static server works):

    sh
    python3 -m http.server 8080

    Then visit http://localhost:8080.

  3. Edit the HTML pages and assets/js/data.js, then reload.

Requirements: a modern browser. Google Fonts load from the internet. Node 24 is needed only to rebuild the CSS after adding Tailwind classes (see Building and deploying).

Pages#

File Purpose Notable sections and features
index.html Home Live stock board with watchlist and activity feed, shop logos, six feature cards, how sync works diagram, testimonials and results, call to action
product.html Product tour Stock allocation breakdown, bin label maker, purchase order list, scanning steps, morning stock digest, reorder point calculator, report charts
pricing.html Pricing Monthly / yearly switch, four plans, plan estimator, comparison table, billing FAQ
customers.html Customer stories Results band, shop type filter, ten stories with drawn marks, quotes and before-and-after bars
integrations.html Integrations Search, category filters with counts, 19 integrations with drawn marks, detail dialog, API example
updates.html Product updates Monthly roundup subscribe form, type filter, 14 dated updates grouped by month
company.html Company Story and timeline, four values, team of seven, office map, support hours note, open roles
demo.html Book a demo Slot picker in Central time, validated request form, success panel with a BC-1234 style reference
404.html Not found Links to the main pages and a drawn empty shelf

Project structure#

bincrest/
  index.html, product.html, pricing.html, customers.html, integrations.html,
  updates.html, company.html, demo.html, 404.html
  assets/
    css/style.css      compiled Tailwind CSS (generated; do not edit by hand)
    js/data.js         content and settings: SKUs, orders, plans, customers, integrations, updates, demo times
    js/main.js         all interactions, in 15 numbered sections
    img/favicon.svg    the logo mark
    img/og-image.svg   social image source (1200×630)
    img/og-image.png   social image used by og:image
  src/input.css        Tailwind source: color tokens, fonts, small component layer
  package.json         npm scripts to rebuild the CSS
  README.md            short introduction
  DOCS.md              this guide
  CHANGELOG.md         version history

Customizing#

Brand and colors#

Colors are tokens in the @theme block at the top of src/input.css, so each one is also a Tailwind class (bg-panel, text-dust, border-signal-line):

Token Value Used for
--color-ink #121110 Page background
--color-panel / --color-panel-2 #1a1917 / #23211e Cards and tables / table heads, tracks
--color-line / --color-line-strong #2e2b27 / #6b655c Hairlines / inputs and chart axes
--color-bone, --color-dust, --color-ash #efe9df, #c3bcb1, #948d82 Text: headings and body, secondary, captions
--color-signal / --color-signal-strong #ff4d2e / #ff6f55 Buttons, focus outlines, links, "needs attention"
--color-signal-soft / --color-signal-line #2c1611 / #5e2516 Tinted backgrounds and borders behind the accent
--color-tag / --color-tag-ink #ede4cf / #1c1a17 Cream shelf tags and pressed filters, with dark text
--color-ok, --color-low (and -soft) #6fd39b, #f0c04f Stock status chips and bars

To change the accent, edit the four signal tokens and rebuild:

css
--color-signal: #3ec7c1;
--color-signal-strong: #6fdad5;
--color-signal-soft: #0f2827;
--color-signal-line: #1f514e;

Button text on the accent uses tag-ink, so keep the accent light enough for dark text. The logo mark in each page header and footer, favicon.svg, og-image.svg and a few drawings use #ff4d2e directly; change them too.

The component classes (.btn-signal, .tag, .binmark, .panel, .ticks, .chip, .filter-btn, .slot and the rest) are in the @layer components block of the same file.

Typography#

Headings use Bai Jamjuree, body text Gantari, and data (prices, counts, SKUs, bin codes, eyebrows) Kode Mono. They load from Google Fonts with a <link> in each page's <head>:

html
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@500;600;700&amp;family=Gantari:ital,wght@0,400;0,500;0,600;1,400&amp;family=Kode+Mono:wght@400;500;600&amp;display=swap" />

The families are set as --font-display, --font-sans and --font-mono in src/input.css. To swap fonts, change the link on every page and those three variables, then rebuild the CSS. Kode Mono draws its zero with a slash; that is the font's design.

Content#

Page text is in the HTML files. Everything interactive reads from assets/js/data.js, which sets one object, window.BINCREST. The main structures:

Constant What it holds
COMPANY Name, timeZone (America/Chicago), phone, email and supportHours (07:00 to 19:00, Central)
ART Small drawn products (48×48 SVG) used on the board, labels and customer stories
CHANNELS The four sales channels: store, web, market, wholesale
BOARD Stock board settings: shop name, tickMs: 2400, leadTicks: 6, first order and PO numbers, ordersToday: 31, open purchase orders
SKUS Board items: sku, name, art, bin, onHand, reorderAt, restock and units sold today per channel
ORDER_SCRIPT, FEED_START The 20 orders the board plays in a loop; the activity feed shown before the first order
REORDER_DEFAULTS, REORDER_LIMITS Reorder calculator example values and allowed ranges
BIN_ZONES, BIN_LIMITS, BIN_DEFAULT Bin label maker zones, highest aisle (24) and shelf (8), starting label
PLANS, ANNUAL_DISCOUNT, TRIAL_DAYS, ESTIMATE_LIMITS, DEFAULT_PRICING Pricing
SHOP_TYPES, CASES Customer story filters and stories
INT_CATEGORIES, INTEGRATIONS Integration categories and directory entries
UPDATE_TAGS, UPDATES Update types and the product updates log (fixed past dates)
DEMO_TIMES, DEMO_DAYS, DEMO_LENGTH_MIN, CLOSED_DAYS Demo slot picker

Example: add an integration. Give it a unique id, an existing category (a key of INT_CATEGORIES), a tile color and a mark drawn in white inside a 40×40 box:

js
{ id: 'tallyhook', name: 'Tallyhook', category: 'data', bg: '#4a5a2b', setup: '2 minutes', direction: 'One-way out',
  blurb: 'Send a stock snapshot to your bookkeeper every Friday.',
  syncs: ['On hand and value by location', 'Items below their reorder point'],
  mark: '<rect x="11" y="11" width="18" height="18" rx="2" fill="none" stroke="#fff" stroke-width="2.6"/>' }

Category counts, search and the detail dialog pick it up automatically. The filter buttons, the "19 integrations" line and the page's meta description are written into integrations.html so they read right before JavaScript runs; update them by hand.

Example: add a customer story to CASES with type set to a key of SHOP_TYPES. Each of the two metrics draws a before-and-after bar; add unit: '%' or unit: '$k' to format the numbers. The home page logo row and quotes were written into index.html from the same data; edit them there by hand if you change customers.

The comparison table, plan cards and FAQ on pricing.html are HTML. If you change a plan in PLANS, update the card and table rows to match.

Images and artwork#

All artwork is inline SVG drawn for this template: the product drawings in ART, the feature icons, the sync diagram, the scanning shelf, report charts, team avatars, the office map, the 404 shelf and the integration marks (in data.js, as mark strings). There are no photos. If you add photos, keep the aspect ratios: team avatars and product tiles are square, integration marks 40×40.

The social image is assets/img/og-image.png (1200×630), rendered from og-image.svg. After editing the SVG, regenerate the PNG with any SVG renderer. The favicon is assets/img/favicon.svg.

The header and footer are repeated in every HTML page. To add a page, copy an existing one, change its <title>, description, Open Graph tags, data-page on <body> and <main> content, and add a link to the desktop menu (nav[aria-label="Main"]), the mobile menu (#mobile-menu) and the footer in every page. Mark the current page with aria-current="page" on its menu links.

The site is dark only. color-scheme: dark is set on <html> so form controls and scroll bars match.

Features#

Live stock board#

index.html, section 5 of main.js (initBoard, with the numbers in boardState and boardTick). The board shows the shop in BOARD.shop with the eight SKUS. Every BOARD.tickMs (2.4 seconds) the next order in ORDER_SCRIPT arrives: it takes units off the shelf and counts toward its channel's total.

  • Low stock: an item is low when on hand is at or below its reorderAt. The row turns amber and a purchase order is drafted for restock units, numbered from BOARD.firstPo.
  • Receiving: a drafted purchase order arrives BOARD.leadTicks (6) orders later and adds restock units. Purchase orders open at load are in BOARD.openPos, with their age in orders.
  • Controls: "Play"/"Pause", "Next order" (one order, announced to screen readers) and the filters "All", "Low stock" and "Watching". The board starts paused with reduced motion, and rests while it is scrolled off screen or the tab is hidden.
  • Watchlist: the star on each row adds the item to the watchlist (aria-pressed), saved as bincrest:watchlist.

With the starting data: 280 units on hand, 31 orders today, 1 SKU low (the gravel tire, 9 on hand with a reorder point of 10) and 1 open purchase order (PO-1047). Channel totals: Storefront 21, Online shop 16, Marketplace 14, Wholesale 18. After five clicks on "Next order": 283 units, 36 orders, still 1 SKU low and 1 open purchase order; the newest feed lines are "PO-1048 drafted" (30 × Insulated bottle, 24 oz), "Storefront #4131", "PO-1047 received" (+20 gravel tires), "Wholesale #4130" (−12 chai) and "Marketplace #4129".

To show your own items, edit SKUS and ORDER_SCRIPT (every sku and channel must exist). A script that sells more than it restocks will run items out; the board then shows "Out" until the purchase order arrives.

Reorder point calculator#

product.html#reorder, section 6 (reorderMath, initReorder). Five inputs: average daily sales, supplier lead time in days, safety stock in units, days each order covers and the supplier's case pack.

Reorder point   = ceil(daily sales × lead time + safety stock)
Suggested order = ceil(daily sales × days of cover ÷ case pack) × case pack
Safety in days  = safety stock ÷ daily sales
Daily Lead Safety Cover Pack Reorder point Suggested order
3.5 10 12 30 6 (default) 47 108 (18 cases of 6, about 4.4 weeks)
2 14 5 30 12 33 60 (5 cases of 12)
0 14 5 30 12 5 0 ("No sales, no order")

With the defaults the explanation reads 35 units sold during lead time and 3.4 days of safety stock. The chart draws stock on hand over two order cycles with the reorder point and safety stock lines. Out-of-range values (REORDER_LIMITS) mark the field invalid with a message and dim the results. "Reset to the example" restores REORDER_DEFAULTS.

Bin label maker#

product.html#bins, section 7 (initBinLabel). Choose an item, a zone from BIN_ZONES, an aisle (1 to 24) and a shelf (1 to 8); the label shows a Zone-Aisle-Shelf code. The default is B-07-3; Zone W, aisle 12, shelf 5 gives W-12-5 and "Wholesale cage, aisle 12, shelf 5". The bars on the label are drawn from the code for the picture (barsFor) and are not a scannable barcode.

Pricing and plan estimator#

pricing.html, section 8 (initPricing). Monthly prices are in PLANS (Stockroom $50, Shopfloor $125, Multistore $275, Warehouse custom). Yearly billing takes ANNUAL_DISCOUNT (20%) off: $40, $100 and $220. The free trial line shows today plus TRIAL_DAYS (14): on Saturday, December 5, 2026 it reads "Saturday, December 19".

The estimator takes SKUs, locations and sales channels and recommends the first plan whose limits fit, with the reason the plan before it doesn't:

SKUs / locations / channels Billing Result
1,800 / 2 / 3 (default) Yearly Shopfloor, $100 a month, $1,200 billed yearly, saves $300; "Stockroom tops out at 1,000 SKUs."
1,800 / 2 / 3 Monthly Shopfloor, $125 a month, $1,500 a year
400 / 1 / 2 Yearly Stockroom, $40 a month, $480 a year
400 / 1 / 3 Yearly Shopfloor, $100; "Stockroom connects 2 sales channels."
12,000 / 4 / 5 Yearly Multistore, $220 a month, $2,640 a year, saves $660
30,000 / any / any Any Warehouse, Custom

The estimate is saved (bincrest:pricing). URL parameters override it: ?billing=monthly|annual, ?skus=1–200000, ?locations=1–99, ?channels=1–12. The page writes only billing back to the address bar. "Book a demo with this estimate" links to demo.html?plan=<id>&skus=<n>. The FAQ is an accordion: each question is a button with aria-expanded that shows or hides its answer.

Customer stories#

customers.html, section 9 (initCustomers). Shop type buttons filter CASES; the URL keeps the choice as ?type= (a key of SHOP_TYPES: bike, beverage, outdoor, gifts, apparel). Each type has 2 of the 10 stories. Unknown values show all stories.

Integrations directory#

integrations.html, section 10 (initIntegrations). Search matches the name, description, category and what syncs; category buttons show counts (Online storefronts 2, Marketplaces 3, Point of sale 2, Accounting 2, Shipping 2, Wholesale 3, Scanners and labels 2, Data and alerts 3). Searching "label" finds 3. The URL keeps ?category= and ?q=. Each card opens a native <dialog> with the setup time, direction and what syncs; Escape or "Close" returns focus to the card.

Product updates#

updates.html, section 11 (initUpdates, initSubscribe). UPDATES are listed newest first and grouped by month; filter buttons (All 14, New 7, Improved 4, Fixed 3) keep the choice as ?tag=new|improved|fixed. Updates keep their real past dates. The subscribe form checks the email address.

Support hours note#

company.html and demo.html, section 12 (initSupportStatus). Using COMPANY.supportHours and Central time, it reads "Support is open now, until 7:00 p.m. Central." on business days from 7:00 a.m. to 7:00 p.m., and otherwise "Support opens today/tomorrow/Monday at 7:00 a.m. Central.", skipping weekends and federal holidays.

Demo slot picker#

demo.html, section 14 (demoDays, initDemo). Days are the next DEMO_DAYS (5) business days strictly after today in Central time: never today, never a Saturday or Sunday, a US federal holiday or a date in CLOSED_DAYS. Each day offers DEMO_TIMES (9:00, 10:00 and 11:00 a.m., 1:00, 2:00, 3:00 and 4:00 p.m. Central). Some times show as taken by a fixed pattern per date (slotTaken), and every day keeps at least three open. Below the slots, a note gives the first time in the visitor's own zone when it isn't Central.

Examples: on Saturday, December 5, 2026 the days are Monday, December 7 to Friday, December 11. On Wednesday, December 23, 2026 they are December 24, 28, 29, 30 and 31 (Christmas Day is skipped). On Thursday, December 31, 2026 they start on Monday, January 4, 2027, because New Year's Day falls on a Friday.

Day and time buttons use aria-pressed; each day button tells screen readers how many times are open, and picking a time is announced.

The mobile menu button toggles #mobile-menu (aria-expanded, Escape closes). Sections with reveal fade in once as they scroll into view; with reduced motion they show immediately, the board starts paused and its count animations are off.

Keeping the demo current#

Nothing dated goes stale. Everything "upcoming" is computed from today in Central time (COMPANY.timeZone):

Content Rule Switch
Demo days Next 5 business days after today, skipping weekends, federal holidays and CLOSED_DAYS DEMO_DAYS, DEMO_TIMES, CLOSED_DAYS
Trial end date Today plus 14 days TRIAL_DAYS
Support note Open now, or the next business day's opening time COMPANY.supportHours
Copyright year Current year [data-year]

Federal holidays are worked out for any year by rule (federalHolidays in section 3): New Year's Day, Martin Luther King Jr. Day, Washington's Birthday, Memorial Day, Juneteenth, Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving and Christmas Day. A holiday on a Saturday is observed the Friday before, one on a Sunday the Monday after. Add office closures as 'YYYY-MM-DD' strings in CLOSED_DAYS.

Product updates, the company timeline and customer "since" years keep their fixed past dates. For reviews and screenshots, ?now=YYYY-MM-DDTHH:MM (read as Central time) pretends it is another moment, for example demo.html?now=2026-12-23T10:00; turn it off with ALLOW_NOW_PARAM = false at the top of main.js.

Forms#

All forms validate in the browser with inline messages linked by aria-describedby, focus the first problem and then show a success panel. A message clears as soon as the field is fixed. No form sends anything until you connect it.

Form Page Checks Success
Demo request (data-demo-form) demo.html A day and time, first and last name, email format, shop name, type of shop, SKU range, at least one sales channel "Thanks, {name}. Your demo request is in.", the time in Central, a reference like BC-4821, email, channels and next steps
Subscribe (data-subscribe-form) updates.html Email format "You’re on the list."

demo.html reads ?plan=stockroom|shopfloor|multistore|warehouse to show "From your estimate: the Shopfloor plan." and ?skus= to preselect the SKU range: under 500, 500 to 2,000 (?skus=1800), 2,000 to 10,000 or more than 10,000. The optional message counts characters up to 600.

To connect a form service such as Formspree, add the request inside setupForm in main.js (section 13, "Form helper"), where it calls onSuccess, and show the success panel only when the service answers OK:

js
fetch('https://formspree.io/f/your-id', { method: 'POST', body: new FormData(form), headers: { Accept: 'application/json' } })
  .then(function (r) { if (r.ok) onSuccess(form); else showError(); });

The demo form's chosen slot is in the hidden slot field as YYYY-MM-DDTHH:MM in Central time, and the plan from the pricing page in the hidden plan field.

Saved data (localStorage)#

All storage goes through safeStorage in main.js, which falls back to memory when the browser blocks localStorage, so the page keeps working for the visit.

Key Shape Validation
bincrest:watchlist ["CF-LNT-204", "CF-TIR-650"] Only SKUs that exist in SKUS, without repeats
bincrest:pricing { "billing": "annual", "skus": 1800, "locations": 2, "channels": 3 } billing must be monthly or annual; each number a whole number inside ESTIMATE_LIMITS

Clear the watchlist by unstarring items, or remove either key from the browser's developer tools (Application → Local Storage).

SEO and sharing#

Each page has its own <title>, meta description and Open Graph tags in its <head>. og:image points at assets/img/og-image.png with a relative URL; set it to an absolute URL on your domain when you deploy (https://www.example.com/assets/img/og-image.png), since most social sites require that. Add a sitemap.xml and robots.txt at your site root if your host doesn't create them.

Accessibility#

  • Skip link, landmarks, one <h1> per page and aria-current="page" in the menus.
  • Visible signal-red focus outlines, AA contrast on the dark surfaces, and reduced motion respected.
  • Board changes, filter results and calculator resets are announced in a polite live region (#live-region).
  • Filters, the billing switch, watch stars and slot buttons use aria-pressed; the integration dialog is a native <dialog>; FAQ buttons use aria-expanded.
  • The wide comparison table scrolls sideways inside a focusable region on small screens.
  • Keep one h1 per page, label new inputs and keep the text labels on the board's status chips.

Building and deploying#

The compiled CSS is included. After adding Tailwind classes, rebuild it (Node 24):

sh
npm install
npm run build    # or: npm run watch

Classes used only inside JavaScript strings must appear in a file Tailwind scans (the HTML pages and assets/js/*.js are scanned automatically; the Markdown and JSON files are excluded).

To deploy, upload the folder to any static host: Netlify Drop, GitHub Pages, Cloudflare Pages or your own server. There is no server code.

Troubleshooting#

  • New classes have no effect: rebuild the CSS with npm run build.
  • The board doesn't move: it starts paused when the system asks for reduced motion, and rests while scrolled off screen or in a background tab. Click "Play" or "Next order".
  • The pricing estimate isn't the default: it's saved in bincrest:pricing, and URL parameters override it. Remove the key or open pricing.html without parameters.
  • A demo day is missing: it is a weekend, a federal holiday (or its observed day) or in CLOSED_DAYS.
  • Dates look a day off: dates are computed in Central time. Change COMPANY.timeZone in data.js for another home zone, and the "Central" wording in main.js and the pages.
  • Fonts look different offline: Bai Jamjuree, Gantari and Kode Mono come from Google Fonts and need a connection.
  • Saved choices don't persist in a preview frame: some sandboxed frames block storage; the site then keeps state in memory for the visit only.

License#

MIT. The code and all included artwork are free for personal and commercial use; see LICENSE.txt in the download.

Bai Jamjuree, Gantari and Kode Mono are provided by Google Fonts under the SIL Open Font License.

Bincrest, its customers, integrations, suppliers and people are fictional; the integration marks and product drawings are original, not real logos.

Search documentation

Search the guides and every template's documentation