Single-page marketing site for Rubricks, built with React and Vite.
npm install
npm run dev # local dev server with hot reload
npm test # run the test suite once
npm run build # production build into dist/
npm run preview # serve the production build locallyindex.html Vite entry: meta tags, font links, #root
public/favicon.svg brick-mark favicon
src/main.jsx mounts <App /> into #root
src/App.jsx page composition
src/index.css global styles (unchanged from the original site)
src/lib/wall.js running-bond brick-wall generator (pure function)
src/components/ Header, Hero, BrickWall, Divisions, Process, Community, Contact, Footer
src/__tests__/ rendering tests (Vitest + Testing Library)
Vercel detects Vite automatically. No vercel.json is needed.
- Push this folder to a GitHub repository:
git init git add . git commit -m "Rubricks website in React" git branch -M main git remote add origin git@github.com:<you>/<repo>.git git push -u origin main
- Go to https://vercel.com/new, import the repository.
- Framework preset: Vite. Build command
npm run build, output directorydist(both are auto-filled). - Click Deploy. Every push to
mainwill redeploy production; every other branch gets a preview URL.
npm i -g vercel # already installed on this machine
vercel login
vercel # first run links the folder to a new project and creates a preview deployment
vercel --prod # deploy to productionVercel Web Analytics is enabled on the project. The <Analytics /> component from @vercel/analytics/react is mounted in src/App.jsx; it loads /_vercel/insights/script.js in production and a no-op debug script locally.
-
In the Vercel dashboard open the project, then Settings → Domains.
-
Add
rubricks.inandwww.rubricks.in. Vercel will show the DNS records it needs. -
At your DNS provider (wherever
rubricks.inis registered), add:Arecord for@pointing to76.76.21.21CNAMErecord forwwwpointing tocname.vercel-dns.com
If you prefer, change the domain's nameservers to
ns1.vercel-dns.comandns2.vercel-dns.comand Vercel will manage all records. -
Wait for DNS to propagate (usually minutes, up to 48 hours). Vercel issues the HTTPS certificate automatically.
-
In Settings → Domains, mark one of the two (
rubricks.inorwww.rubricks.in) as the primary so the other redirects to it.
The same can be done from the CLI:
vercel domains add rubricks.in
vercel domains add www.rubricks.inMIT. See LICENSE.