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. This is the Nuxt version: Nuxt 4, Vue 3 single-file components, TypeScript and Tailwind CSS v4, generated as a fully static site. It has the same pages, design and interactions as the HTML version. 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#
-
Unzip the download and open a terminal in the folder.
-
Install and start the development server:
shpnpm install pnpm dev -
Visit
http://localhost:3000. Edit files inapp/and the page reloads.
Requirements: Node.js 24 and pnpm. pnpm install also runs nuxt prepare, which writes the types and the ESLint
config to .nuxt/. The fonts are bundled, so nothing loads from the internet.
| Command | What it does |
|---|---|
pnpm dev |
Development server with hot reload |
pnpm generate |
Static site in .output/public/ |
pnpm build |
Node.js server build in .output/ (pages still prerendered) |
pnpm preview |
Serve the last build locally |
pnpm lint |
ESLint |
pnpm typecheck |
nuxt prepare and vue-tsc |
Pages#
| Route | File | Purpose and notable features |
|---|---|---|
/ |
app/pages/index.vue |
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 |
app/pages/product.vue |
Product tour: stock allocation breakdown, bin label maker, purchase order list, scanning steps, morning stock digest, reorder point calculator, report charts |
/pricing |
app/pages/pricing.vue |
Monthly / yearly switch, four plans, plan estimator, comparison table, billing FAQ |
/customers |
app/pages/customers.vue |
Results band, shop type filter, ten stories with drawn marks, quotes and before-and-after bars |
/integrations |
app/pages/integrations.vue |
Search, category filters with counts, 19 integrations with drawn marks, detail dialog, API example |
/updates |
app/pages/updates.vue |
Monthly roundup subscribe form, type filter, 14 dated updates grouped by month |
/company |
app/pages/company.vue |
Story and timeline, four values, team of seven, office map, support hours note, open roles |
/demo |
app/pages/demo.vue |
Slot picker in Central time, validated request form, success panel with a BC-1234 style reference |
| 404 | app/error.vue |
Links to the main pages and a drawn empty shelf (generated as 404.html) |
Project structure#
bincrest/
app/
app.vue <NuxtLayout><NuxtPage /></NuxtLayout>, pages keyed by path and query
error.vue 404 page
router.options.ts writes query strings the way the HTML version does
layouts/default.vue skip link, header, page, footer, live region (#live-region)
pages/ one file per page (index, product, pricing, customers, integrations, updates, company, demo)
components/
SiteHeader.vue header, main menu, phone menu, header background on scroll
SiteFooter.vue footer columns, contact details, copyright year
LogoMark.vue, ArrowIcon.vue the logo mark and the arrow icon
StockBoard.vue hero stock board (orders, purchase orders, watchlist, feed)
ReorderCalculator.vue reorder point calculator and its chart (product)
BinLabel.vue bin label maker (product)
CaseCard.vue one customer story with its bars
SupportStatus.vue the support hours note (company and demo)
ArtSvg.vue, ChannelIcon.vue, IntTile.vue product drawings, channel icons, integration tiles
composables/
useForm.ts form validation and success panels
useAccordion.ts FAQ and open roles accordions
usePageSeo.ts per-page title, description, canonical and Open Graph tags
useCurrentPage.ts aria-current for menu links
useAfterRestore.ts puts controls back to their defaults after Back or a reload
data/
site.ts content and settings: SKUs, orders, plans, customers, integrations, updates, demo times
nav.ts main menu items
utils/
board.ts stock board state, one order (boardTick), stock status
time.ts Central "today", ?now= preview, federal holidays, business days, time zones
format.ts numbers, money, plurals, reference codes
safeStorage.ts localStorage with an in-memory fallback, storage keys (KEYS)
url.ts reading and writing URL parameters, reduced motion
announce.ts screen reader announcements
plugins/
reveal.client.ts scroll reveal animation
same-page.client.ts links to the page already showing start it afresh, like a page load
blur-after-navigation.client.ts no link stays focused after a navigation
stable-build.server.ts reproducible builds
assets/css/main.css Tailwind import, fonts, color tokens, component classes
assets/fonts/ Bai Jamjuree, Gantari and Kode Mono (Latin woff2) with their OFL license texts
public/img/ favicon.svg, og-image.png (social image), og-image.svg (its source)
nuxt.config.ts base path, head defaults, SITE_URL, prerendered routes, Tailwind
eslint.config.mjs, tsconfig.json, pnpm-workspace.yaml
package.json, README.md, DOCS.md, CHANGELOG.mdCustomizing#
Brand and colors#
Colors are tokens in the @theme block of app/assets/css/main.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:
--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
(app/components/LogoMark.vue), public/img/favicon.svg, og-image.svg, the theme-color in nuxt.config.ts
and a few drawings use #ff4d2e or #121110 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. All three are self-hosted: the @font-face rules at the top of app/assets/css/main.css load the
Latin woff2 files in app/assets/fonts/ under their real family names, and the @theme block sets them as
--font-display, --font-sans and --font-mono:
@font-face {
font-family: "Bai Jamjuree";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("../fonts/BaiJamjuree-600-latin.woff2") format("woff2");
}To swap a font, put its woff2 files in app/assets/fonts/, change the @font-face rules and the family name in
the matching --font-* variable. Kode Mono draws its zero with a slash; that is the font's design.
Content#
Page text is in the page files (app/pages/*.vue) and the components. Everything interactive reads from
app/data/site.ts. 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:
{ 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, the "19 integrations" line, search and the detail dialog pick it up automatically. The page's
meta description is written in app/pages/integrations.vue; update it 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 are written in app/pages/index.vue; edit them there by hand if you change customers.
The comparison table, plan features and FAQ in app/pages/pricing.vue are written in the page. Prices and notes on
the plan cards come from PLANS; if you change a plan's limits, 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 app/data/site.ts, 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. Files in public/ need the base path when you
link them from a template: :src="`${$config.app.baseURL}img/photo.jpg`".
The social image is public/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 public/img/favicon.svg.
Navigation, header and footer#
The main menu is NAV in app/data/nav.ts; app/components/SiteHeader.vue renders it in the desktop menu and the
phone menu, and marks the current page with aria-current="page" (useCurrentPage()). The footer columns are in
app/components/SiteFooter.vue. To add a page, create app/pages/<route>.vue with a <main id="main"> and a
usePageSeo({ title, description, page }) call, add the route to routes in nuxt.config.ts (so it is
prerendered), then add it to NAV and the footer. Internal links are <NuxtLink to="/pricing">, which adds the base
path.
The site is dark only. color-scheme: dark is set so form controls and scroll bars match.
Features#
Dates and the static build#
The generated pages can't know the visitor's date, time zone, URL parameters or saved choices, so everything that
depends on them is filled in once the page is mounted: components read window.location, Date and
localStorage in onMounted() or in event handlers, never while rendering. readNow() in app/utils/time.ts
gives the moment, today in Central time and the year. The generated HTML shows the written defaults, and the real
values follow without a hydration mismatch.
Live stock board#
app/components/StockBoard.vue, with the numbers in boardState and boardTick in app/utils/board.ts. 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 forrestockunits, numbered fromBOARD.firstPo. - Receiving: a drafted purchase order arrives
BOARD.leadTicks(6) orders later and addsrestockunits. Purchase orders open at load are inBOARD.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 asbincrest: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#reorder, app/components/ReorderCalculator.vue (reorderMath). 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#bins, app/components/BinLabel.vue. 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#
app/pages/pricing.vue. 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?plan=<id>&skus=<n>. The FAQ is an accordion
(app/composables/useAccordion.ts): each question is a button with aria-expanded that shows or hides its answer.
Customer stories#
app/pages/customers.vue. 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#
app/pages/integrations.vue. 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#
app/pages/updates.vue. 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#
app/components/SupportStatus.vue, on /company and /demo. 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#
app/pages/demo.vue (demoDays, slotTaken). 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.
Menu, header and motion#
The phone menu button (#menu-toggle) opens #mobile-menu (aria-expanded; Escape closes it and returns focus
to the button). The header gets a solid background once the page scrolls. Sections with reveal fade in once as
they scroll into view (app/plugins/reveal.client.ts); with reduced motion they show immediately, the board starts
paused and its count animations are off.
Links are client-side navigations. A link to the page already showing (the Pricing menu item on a pricing page
with ?billing=monthly, for example) starts that page afresh at the top, like a page load in the HTML version
(app/plugins/same-page.client.ts and the page key in app/app.vue).
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 in Central time | SiteFooter.vue |
Federal holidays are worked out for any year by rule (federalHolidays in app/utils/time.ts): 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?now=2026-12-23T10:00; turn it off with ALLOW_NOW_PARAM = false at the top of app/utils/time.ts.
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. The helper is useForm in
app/composables/useForm.ts. No form sends anything until you connect it.
| Form | Page | Checks | Success |
|---|---|---|---|
Demo request (data-demo-form) |
demo.vue |
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.vue |
Email format | "You’re on the list." |
/demo 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, send the request in the submit listener in
app/composables/useForm.ts (where it calls onSuccess) and show the success panel only when the service answers
OK:
const response = await fetch("https://formspree.io/f/your-id", {
method: "POST",
body: new FormData(form),
headers: { Accept: "application/json" },
});
if (!response.ok) return; // keep the form; show your own error message here
onSuccess(form);With pnpm build (a Node.js server build) you can post to a server route instead: add
server/api/demo.post.ts with export default defineEventHandler(async (event) => { const body = await readFormData(event); ... })
and pass the data to your CRM or email service.
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 app/utils/safeStorage.ts, which falls back to memory when the browser
blocks localStorage, so the page keeps working for the visit. The keys are in KEYS in the same file.
| 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 sets its title, description and Open Graph tags with usePageSeo() from app/composables/usePageSeo.ts,
which also adds a canonical link. URLs are absolute: set SITE_URL to your domain when you build
(SITE_URL=https://www.example.com pnpm generate), so og:image (/img/og-image.png) and the canonical links point
at your site, which most social sites require. The 404 page is marked noindex. Add a public/robots.txt and a
sitemap (by hand, or with a module such as @nuxtjs/sitemap) if you want them.
Accessibility#
- Skip link, landmarks, one
<h1>per page andaria-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-regionin the layout, written byannounce()inapp/utils/announce.ts). - Filters, the billing switch, watch stars and slot buttons use
aria-pressed; the integration dialog is a native<dialog>; FAQ buttons usearia-expanded. - The wide comparison table scrolls sideways inside a focusable region on small screens.
- Keep one
h1per page, label new inputs and keep the text labels on the board's status chips.
Building and deploying#
pnpm generate writes a static site to .output/public/, with every route listed in routes in nuxt.config.ts
prerendered to <route>.html (pricing.html, served at /pricing) and the 404 page to 404.html:
- Netlify / Cloudflare Pages / Vercel: build command
pnpm generate, publish directory.output/public. - Any static host: upload the contents of
.output/public/. The host should serve/pricingfrompricing.html(most do) and404.htmlfor unknown paths.
To serve from a sub-folder, build with DEMO_BASE_PATH=/stock pnpm generate; nuxt.config.ts turns it into
app.baseURL, which every link, script and asset uses. pnpm build:demo does this for the freeframe.dev demo
(demo/, which you can delete).
Tailwind scans the source files for class names; keep each class name whole (not built from pieces such as
`bg-${color}`), and keep class names in plain strings rather than right next to ${ in a template literal,
or they won't be generated.
TypeScript setup#
typescript is installed as an alias of @typescript/typescript6, the TypeScript 6 API that vue-tsc needs.
tsconfig.json only references the configs Nuxt writes to .nuxt/, so run pnpm install (or nuxt prepare)
before pnpm typecheck or pnpm lint.
Troubleshooting#
- New classes have no effect: class names built from pieces aren't generated; write them out in full.
- 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/pricingwithout 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.timeZoneinapp/data/site.tsfor another home zone, and the "Central" wording in the pages and components. - A new page shows the 404 page after
pnpm generate: add its route toroutesinnuxt.config.ts. - 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.
- A hydration warning after editing a component: values that depend on the clock, the URL or storage must be
read in
onMounted(), not while the component renders. pnpm lintcan't find.nuxt/eslint.config.mjs: runpnpm installorpnpm typecheckfirst.
License#
Freeframe Commercial License: use it in unlimited websites and apps for yourself and your clients; it may not
be resold or redistributed as a template. The full terms, with your licensee details, are in LICENSE.txt and
at https://freeframe.dev/license#commercial. Third-party components keep their own licenses. Bai Jamjuree,
Gantari and Kode Mono are included under the SIL Open Font License (see app/assets/fonts/). Bincrest, its
customers, integrations, suppliers and people are fictional.