Skip to content

JoshTanashi/RED-Batch-Brand

Repository files navigation

RED-BATCH

Web storefront for RED-Batch — a controlled release apparel brand from South Africa. Each drop is a numbered batch. Once a batch closes, it's archived.

Live product categories: T-shirts and Hoodies only.

Live site: joshtanashi.github.io/RED-Batch-Brand


Stack

Layer Tech
UI React 18 (UMD via CDN)
JSX Babel Standalone (no build step)
Styles Inline React styles + styles.css
Fonts Space Grotesk · Space Mono (Google Fonts)
Effects Vanilla JS — film grain canvas, custom cursor

No bundler. No framework. No dependencies to install. Open index.html via a local server and it runs.


Structure

index.html       — Shell. Loads fonts, React, Babel, and the three source files.
styles.css       — Global styles: cursor, ticker, animations, scrollbar.
effects.js       — Film grain canvas + custom crosshair cursor (vanilla JS).
app.jsx          — Full React app: data, components, screens, routing.
config.js        — Store credentials (gitignored — never committed).
config.example.js — Template for config.js. Safe to commit.

Screens

  • DROP — Active batches available now. Stats bar shows units issued, season, and drop count.
  • PRODUCT — Detail view for a single batch: specs, sizing, price, origin.
  • ARCHIVE — All closed batches. Click any row to expand the record.
  • MANIFESTO — Brand principles.
  • QUEUE — Next batch preview with notification register.

Current Drop — SS26-A

ID Item Units Price
RB-001 Heavy Tee 120 R 850
RB-002 Pullover Hoodie 80 R 1 200
RB-003 Acid Wash Tee 60 R 950

All units manufactured in South Africa.


Deployment

The site deploys automatically to GitHub Pages on every push to main.

How it works:

  1. GitHub Actions runs .github/workflows/deploy.yml on push to main
  2. The workflow builds config.js from GitHub Secrets and copies all site files to the gh-pages branch
  3. GitHub Pages serves the gh-pages branch at the live URL above

Setting up credentials for production:

  1. Go to the repo on GitHub → Settings → Secrets and variables → Actions
  2. Add each secret key from config.example.js with your real values
  3. Push any change to main to trigger a redeploy with the new secrets

Running Locally

Babel Standalone requires HTTP — it won't load .jsx files over file://.

Step 1 — Copy config:

cp config.example.js config.js
# Fill in your real credentials in config.js

Option 1 — VS Code Live Server Install the Live Server extension, right-click index.htmlOpen with Live Server.

Option 2 — Python

python -m http.server 8000
# open http://localhost:8000

Option 3 — Node

npx serve .

Responsive

Mobile layout activates at ≤ 768px. Custom cursor and film grain are disabled on touch devices.


RED-BATCH · South Africa · SS26-A

About

Web storefront for RED-BATCH — a controlled release apparel brand from South Africa. Numbered batch drops. T-shirts and hoodies only.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors