shivamelectricalworks

Shivam Electrical Works (shivamelectricalworks.com)

Modern, production-grade website and interactive RFQ (Request for Quotation) engine for Shivam Electrical Works β€” a government-licensed electrical contracting and engineering firm delivering turnkey HT/LT power distribution, custom-fabricated control panels (PCC, MCC, APFC, VFD, AMF), captive DG installations, and statutory Electrical Inspectorate liaisoning across Maharashtra and Pan-India.

Built with Next.js 15 (App Router, Static HTML Export), Tailwind CSS, TypeScript, and Lucide Icons.


⚑ Architectural Highlights


🎨 Design System & Palette

Engineered specifically for an industrial B2B electrical engineering contractor:

Token Hex Role
Primary Slate #0F172A Primary brand canvas, top utility bar, sticky navigation, hero, and footer
Dark Surface #1E293B Secondary dark surfaces, cards, 10-Second Spec Builder, and BOQ Cart header
Copper CTA #D97706 Primary conversion CTAs, badges, accents, and interactive hover states
Copper Dark #92400E High-contrast text labels, section subheadings, and category badges
WhatsApp #059669 Dedicated WhatsApp direct chat and instant RFQ actions
Tech Gray #F8FAFC Alternating section canvases and subtle light surfaces

πŸ“ Complete Pages & Capabilities

  1. Home (/): Value proposition hero with trust metrics, Vision & Mission, 8 client value proposition pillars, workmanship gallery preview, client trust strip, and RFQ conversion banner.
  2. About Us & Safety (/about): Corporate profile, statutory liaisoning background, Leadership Desk, core values, team strength breakdown, calibrated testing instruments inventory, and zero-compromise safety protocol.
  3. Services & BOQ Catalog (/services):
    • 10-Second Spec Builder: Interactive package selector for rapid scope sizing (HT Substation, Industrial Electrification, Control Panels).
    • Interactive BOQ Catalog: 18 pre-configured BOQ items across HT systems, LT cabling, and custom panels with one-click additions to the live cart.
  4. Clients & Projects (/clients): Sectors served, client trust badges, detailed completed project portfolio (scope & location), and ongoing execution tracker.
  5. Project Gallery (/gallery): Filterable project gallery with category tabs (Substations, Panels, Cabling, Testing) and high-res lightbox modals.
  6. Contact & Commercial Desk (/contact): Commercial desk coordinates (phone, WhatsApp, email, office address, operating hours) + Quick Project Enquiry form with native email and WhatsApp dispatch.
  7. Privacy Policy (/privacy): Comprehensive Indian B2B statutory privacy disclosures, detailing client-side localStorage for the BOQ Cart and zero third-party tracking pixels.
  8. Terms of Use (/terms): Clarifies non-binding RFQ estimates, drawing approvals, IS/CEI standards, intellectual property, and Maharashtra legal jurisdiction.
  9. Global Live BOQ Builder Drawer: Slide-out drawer (localStorage persisted) with quantity steppers, execution scope selector, WhatsApp BOQ, Email Official BOQ, and Copy Formatted BOQ Text.
  10. Branded 404 Not Found (/_not-found): Custom branded error screen directing visitors back to the home page, services catalog, or commercial desk.

πŸ› οΈ Project Structure

β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── deploy.yml          # GitHub Pages CI/CD automated deployment
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ images/
β”‚   β”‚   β”œβ”€β”€ gallery/            # Project execution diagrams & photos (.svg / .webp)
β”‚   β”‚   └── logo.png            # Official SEW high-resolution logo
β”‚   └── .nojekyll               # Prevents GitHub Pages Jekyll processing
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ about/              # About Us & safety credentials page
β”‚   β”‚   β”œβ”€β”€ clients/            # Client portfolio & project tracker
β”‚   β”‚   β”œβ”€β”€ contact/            # Commercial desk & quick RFQ page
β”‚   β”‚   β”œβ”€β”€ gallery/            # Filterable project gallery with lightbox
β”‚   β”‚   β”œβ”€β”€ privacy/            # Privacy Policy statutory page
β”‚   β”‚   β”œβ”€β”€ services/           # Services catalog & 10-Second Spec Builder
β”‚   β”‚   β”œβ”€β”€ terms/              # Terms of Use page
β”‚   β”‚   β”œβ”€β”€ globals.css         # Tailwind utility imports & base styling
β”‚   β”‚   β”œβ”€β”€ icon.png            # App Router auto-generated favicon & tab icon
β”‚   β”‚   β”œβ”€β”€ layout.tsx          # Root layout, Google Fonts, SEO metadataBase
β”‚   β”‚   β”œβ”€β”€ not-found.tsx       # Branded 404 page
β”‚   β”‚   β”œβ”€β”€ page.tsx            # High-conversion homepage
β”‚   β”‚   β”œβ”€β”€ robots.ts           # Static /robots.txt generator
β”‚   β”‚   └── sitemap.ts          # Static /sitemap.xml generator
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ layout/
β”‚   β”‚   β”‚   β”œβ”€β”€ Navbar.tsx      # Responsive navigation with compact mobile branding
β”‚   β”‚   β”‚   └── Footer.tsx      # Multi-column footer with legal & contact links
β”‚   β”‚   └── rfq/
β”‚   β”‚       β”œβ”€β”€ BoqCartDrawer.tsx      # Slide-out interactive BOQ cart
β”‚   β”‚       β”œβ”€β”€ DirectRfqForm.tsx      # Direct contact enquiry form
β”‚   β”‚       β”œβ”€β”€ FloatingBoqButton.tsx  # Persistent bottom-right floating cart pill
β”‚   β”‚       └── SpecBuilder.tsx        # 10-Second package selector
β”‚   β”œβ”€β”€ context/
β”‚   β”‚   └── BoqCartContext.tsx  # React Context & localStorage cart state manager
β”‚   └── data/                   # Zero-code business configuration files
β”‚       β”œβ”€β”€ catalog.json        # 18 BOQ specifications & scope packages
β”‚       β”œβ”€β”€ clients.json        # Completed & ongoing project listings
β”‚       β”œβ”€β”€ company.json        # Company metadata, contact, address, & credentials
β”‚       └── gallery.json        # Project photographs, locations & categories
β”œβ”€β”€ .eslintrc.json              # Next.js core-web-vitals linter configuration
β”œβ”€β”€ next.config.ts              # Next.js static HTML export configuration
β”œβ”€β”€ package.json                # Project dependencies & scripts
β”œβ”€β”€ postcss.config.mjs          # PostCSS configuration
β”œβ”€β”€ tailwind.config.ts          # Brand colors, typography & breakpoints
└── tsconfig.json               # TypeScript strict configuration

πŸ’» Local Development

1. Installation

npm install

2. Run Development Server

npm run dev

Open http://localhost:3000 in your browser.

3. Linting & Type-Checking

npm run lint
npx tsc --noEmit

4. Production Static Build

npm run build

This generates the optimized static export in the ./out/ directory.


πŸ“ Updating Business Content (Zero Layout Code Changes)

All business details, credentials, and offerings are decoupled from the UI and managed via JSON files in src/data/:


πŸš€ Deployment

Option A: GitHub Pages (Pre-Configured Automated Workflow)

This repository includes .github/workflows/deploy.yml:

  1. Push your code to the main branch on GitHub.
  2. Go to Repository Settings -> Pages:
    • Source: Set to GitHub Actions.
  3. Under Custom domain, enter shivamelectricalworks.com (ensure Enforce HTTPS is checked).
  4. The workflow will automatically compile the static build and deploy to GitHub Pages.

Option B: Cloudflare Pages / Vercel / Netlify

This project compiles into standard static HTML/CSS/JS: