import { useState, useEffect, useRef } from "react";
/* ─── Google Fonts injected once ─── */
const FontLink = () => (
);
/* ─── Design tokens ─── */
const T = {
black: "#07080d",
deep: "#0d0f18",
panel: "#121420",
card: "#161825",
border: "#1e2235",
accent: "#e8401c",
amber: "#f5a623",
teal: "#00c2a8",
text: "#dde0ee",
muted: "#5a5f7a",
success: "#22c55e",
};
/* ─── Inline styles helpers ─── */
const css = (obj) => obj;
/* ══════════════════════════════════════════════
DATA
══════════════════════════════════════════════ */
const features = [
{
icon: "🚗",
title: "Vehicle Inventory",
desc: "Real-time tracking of every vehicle across all lots — stock levels, VINs, specs, pricing, and photos in one place.",
tag: "Core Module",
color: T.accent,
},
{
icon: "📊",
title: "Sales Pipeline",
desc: "Manage leads, test drives, negotiations and closings. Full CRM built for dealerships with commission tracking.",
tag: "Sales",
color: T.amber,
},
{
icon: "🔧",
title: "Service & Repairs",
desc: "Workshop scheduling, job cards, parts requisition and technician assignment all from a single dashboard.",
tag: "Workshop",
color: T.teal,
},
{
icon: "📦",
title: "Parts Management",
desc: "Smart parts inventory with auto-reorder thresholds, supplier management and compatibility cross-references.",
tag: "Inventory",
color: "#a855f7",
},
{
icon: "💰",
title: "Finance & F&I",
desc: "Loan applications, insurance products, warranty upsells and deal structuring — integrated with major lenders.",
tag: "Finance",
color: T.success,
},
{
icon: "📈",
title: "Analytics & Reports",
desc: "Live KPI dashboards, profit margins per unit, sales-rep leaderboards and exportable board-level reports.",
tag: "Insights",
color: "#38bdf8",
},
];
const inventorySamples = [
{ make: "Toyota", model: "Camry XSE", year: 2024, price: "₹28,50,000", km: "0 km", status: "Available", color: "#e8401c", badge: "New" },
{ make: "Hyundai", model: "Creta SX+", year: 2023, price: "₹18,90,000", km: "12,400 km", status: "Available", color: T.success, badge: "Used" },
{ make: "Mahindra", model: "Thar 4×4", year: 2024, price: "₹16,20,000", km: "0 km", status: "Reserved", color: T.amber, badge: "New" },
{ make: "Maruti", model: "Brezza ZXi", year: 2023, price: "₹13,45,000", km: "8,200 km", status: "Available", color: T.success, badge: "Used" },
{ make: "Kia", model: "Seltos HTX", year: 2024, price: "₹19,80,000", km: "0 km", status: "Available", color: T.accent, badge: "New" },
{ make: "Tata", model: "Nexon EV MAX", year: 2024, price: "₹22,00,000", km: "0 km", status: "Sold", color: T.muted, badge: "EV" },
];
const stats = [
{ num: "12,000+", label: "Vehicles Managed" },
{ num: "340+", label: "Dealerships" },
{ num: "98.6%", label: "Uptime SLA" },
{ num: "₹2,400Cr", label: "Inventory Value Tracked" },
];
const testimonials = [
{
quote: "AllInOne DMS transformed how we manage our 3 showrooms. Inventory updates are instant, and the pipeline view is a game-changer.",
name: "Rajesh Sharma",
role: "GM, Sharma Motors — Bhiwani",
avatar: "RS",
},
{
quote: "Before this, we had Excel sheets everywhere. Now everything — sales, service, finance — lives in one place. Our team loves it.",
name: "Priya Verma",
role: "Dealer Principal, Verma Auto Group",
avatar: "PV",
},
{
quote: "The vehicle inventory module alone saved us 4 hours a day. Stock-outs haven't happened since we switched.",
name: "Anil Kapoor",
role: "Operations Head, Capital Cars Delhi",
avatar: "AK",
},
];
/* ══════════════════════════════════════════════
COMPONENTS
══════════════════════════════════════════════ */
function CarIcon({ size = 28 }) {
return (
);
}
/* ── Header ── */
function Header({ onLogin }) {
const [scrolled, setScrolled] = useState(false);
const [menuOpen, setMenuOpen] = useState(false);
useEffect(() => {
const fn = () => setScrolled(window.scrollY > 30);
window.addEventListener("scroll", fn);
return () => window.removeEventListener("scroll", fn);
}, []);
const navLinks = ["Features", "Inventory", "Pricing", "About"];
return (
{/* Logo */}
{/* Desktop nav */}
{navLinks.map(l => (
e.target.style.color = T.text}
onMouseLeave={e => e.target.style.color = T.muted}>
{l}
))}
{/* CTA */}
{ e.target.style.borderColor = T.accent; e.target.style.color = T.accent; }}
onMouseLeave={e => { e.target.style.borderColor = T.border; e.target.style.color = T.text; }}>
Login
{ e.target.style.background = "#c93315"; e.target.style.transform = "translateY(-1px)"; }}
onMouseLeave={e => { e.target.style.background = T.accent; e.target.style.transform = ""; }}>
Get Demo
{/* Hamburger */}
setMenuOpen(o => !o)} style={css({ display: "none", background: "none", border: "none", cursor: "pointer", color: T.text, fontSize: 22, padding: 4 })} className="hamburger">
{menuOpen ? "✕" : "☰"}
{/* Mobile menu */}
{menuOpen && (
{navLinks.map(l => (
setMenuOpen(false)}
style={css({ display: "block", padding: "10px 0", color: T.text, fontFamily: "'Syne', sans-serif", fontWeight: 600, fontSize: 15, textDecoration: "none", borderBottom: `1px solid ${T.border}` })}>
{l}
))}
{ setMenuOpen(false); onLogin(); }} style={css({ flex: 1, padding: "10px", background: "transparent", border: `1px solid ${T.border}`, borderRadius: 8, color: T.text, fontFamily: "'Syne', sans-serif", fontWeight: 600, fontSize: 14, cursor: "pointer" })}>Login
Get Demo
)}
);
}
/* ── Hero ── */
function Hero({ onLogin }) {
return (
{/* BG grid */}
{/* Glow orbs */}
{/* Left copy */}
LIVE PLATFORM — allinonedms.com
THE COMPLETE
DEALER
MANAGEMENT
SYSTEM
AllInOne DMS unifies your vehicle inventory, sales pipeline, service workshop, parts store, and F&I — all on one powerful platform built for modern Indian dealerships.
{ e.target.style.transform = "translateY(-2px)"; e.target.style.boxShadow = `0 8px 28px rgba(232,64,28,.4)`; }}
onMouseLeave={e => { e.target.style.transform = ""; e.target.style.boxShadow = ""; }}>
START FREE TRIAL
{ e.target.style.borderColor = T.accent; e.target.style.color = T.accent; }}
onMouseLeave={e => { e.target.style.borderColor = T.border; e.target.style.color = T.text; }}>
DEALER LOGIN →
{/* trust badges */}
{["ISO 27001 Certified", "SOC 2 Compliant", "GDPR Ready"].map(b => (
✓ {b}
))}
{/* Right — floating dashboard mockup */}
);
}
/* ── Dashboard Mockup ── */
function DashboardMockup() {
return (
{/* Topbar */}
{["#ff5f57","#febc2e","#28c840"].map(c =>
)}
allinonedms.com/dashboard
{/* Content */}
{/* Mini stats */}
{[["847", "In Stock", T.accent], ["124", "Sold/Mo", T.success], ["32", "Pending", T.amber]].map(([n, l, c]) => (
))}
{/* Mini inventory rows */}
{[
["2024 Toyota Camry", "₹28.5L", T.accent, "New"],
["2023 Hyundai Creta", "₹18.9L", T.success, "Used"],
["2024 Mahindra Thar", "₹16.2L", T.amber, "Reserved"],
].map(([name, price, c, status]) => (
))}
{/* Mini bar chart */}
MONTHLY SALES TREND
{[45, 62, 55, 78, 90, 84, 95, 88, 100, 92, 110, 124].map((v, i) => (
))}
);
}
/* ── Stats ── */
function StatsBar() {
return (
{stats.map(({ num, label }, i) => (
))}
);
}
/* ── Features ── */
function Features() {
return (
EVERYTHING YOU NEED
ONE PLATFORM.EVERY FUNCTION.
From the moment a vehicle arrives on your lot to the day it drives off — and everything in between.
{features.map((f, i) => (
{ e.currentTarget.style.borderColor = f.color; e.currentTarget.style.transform = "translateY(-4px)"; e.currentTarget.style.boxShadow = `0 12px 32px ${f.color}22`; }}
onMouseLeave={e => { e.currentTarget.style.borderColor = T.border; e.currentTarget.style.transform = ""; e.currentTarget.style.boxShadow = ""; }}>
{f.icon}
{f.tag}
{f.title}
{f.desc}
))}
);
}
/* ── Inventory Section ── */
function InventorySection() {
const [filter, setFilter] = useState("All");
const filters = ["All", "New", "Used", "EV", "Reserved"];
const filtered = filter === "All" ? inventorySamples : inventorySamples.filter(v => v.badge === filter);
return (
LIVE PREVIEW
VEHICLE INVENTORYMANAGEMENT
{/* Filter pills */}
{filters.map(f => (
setFilter(f)} style={css({
padding: "7px 16px", borderRadius: 100, border: `1px solid ${filter === f ? T.teal : T.border}`,
background: filter === f ? `${T.teal}18` : "transparent",
color: filter === f ? T.teal : T.muted,
fontFamily: "'Syne', sans-serif", fontWeight: 600, fontSize: 12, cursor: "pointer",
transition: "all .2s",
})}>
{f}
))}
{/* Table header */}
{["Vehicle", "Year", "Price", "Mileage", "Status"].map(h => (
{h}
))}
{filtered.map((v, i) => (
e.currentTarget.style.background = T.card}
onMouseLeave={e => e.currentTarget.style.background = ""}>
🚗
{v.make} {v.model}
{v.badge}
{v.year}
{v.price}
{v.km}
{v.status}
))}
{/* CTA below table */}
Showing sample inventory preview
Your full inventory syncs live across all lots and devices after login.
Live sync active — last updated 2 min ago
);
}
/* ── How It Works ── */
function HowItWorks() {
const steps = [
{ num: "01", title: "Onboard Your Dealership", desc: "Set up your lots, teams, roles and vehicle catalog in under 30 minutes with guided onboarding.", color: T.accent },
{ num: "02", title: "Import Your Inventory", desc: "Bulk import existing stock via CSV, scan VINs, or connect directly to OEM inventory feeds.", color: T.amber },
{ num: "03", title: "Go Live", desc: "Your team logs in, assigns vehicles, processes deals and runs reports — from day one.", color: T.teal },
];
return (
GET STARTED IN MINUTES
HOW IT WORKS
{steps.map((s, i) => (
{s.num}
{s.num}
{s.title}
{s.desc}
))}
);
}
/* ── Testimonials ── */
function Testimonials() {
return (
TRUSTED BY DEALERS
WHAT DEALERS SAY
{testimonials.map((t, i) => (
))}
);
}
/* ── CTA Banner ── */
function CTABanner({ onLogin }) {
return (
READY TO TRANSFORM YOUR DEALERSHIP?
JOIN 340+ DEALERSON ALLINONEDMS.COM
Start your 14-day free trial. No credit card required. Full access to all modules.
START FREE TRIAL
EXISTING DEALER LOGIN
);
}
/* ── Footer ── */
function Footer() {
return (
The complete dealer management system for modern Indian dealerships. Built for scale, designed for simplicity.
allinonedms.com
{[
{ title: "Product", links: ["Features", "Pricing", "Changelog", "Roadmap"] },
{ title: "Company", links: ["About", "Careers", "Blog", "Press"] },
{ title: "Support", links: ["Documentation", "Help Center", "Contact", "Status"] },
].map(col => (
))}
© 2026 allinonedms.com — All rights reserved.
{["Privacy Policy", "Terms of Service", "Cookie Policy"].map(l => (
{l}
))}
);
}
/* ── Login Modal ── */
function LoginModal({ onClose }) {
const [role, setRole] = useState(0);
const [status, setStatus] = useState("idle");
const roles = ["Dealer Admin", "Sales Rep", "Manager"];
const handleLogin = () => {
setStatus("loading");
setTimeout(() => setStatus("success"), 1400);
setTimeout(() => { setStatus("idle"); }, 4000);
};
return (
e.stopPropagation()}>
✕
allinonedms.com · Dealer Portal
Welcome Back.
Sign in to manage your vehicle inventory & dealership.
{/* Role tabs */}
{roles.map((r, i) => (
setRole(i)} style={css({
flex: 1, padding: "8px 4px", border: "none", borderRadius: 7, cursor: "pointer",
background: role === i ? T.accent : "transparent",
color: role === i ? "white" : T.muted,
fontFamily: "'Syne', sans-serif", fontWeight: 600, fontSize: 12, transition: "all .2s",
})}>{r}
))}
{/* Email */}
Email Address
{/* Password */}
Password
{status === "loading" ? "AUTHENTICATING..." : status === "success" ? "✓ ACCESS GRANTED" : "ACCESS DASHBOARD"}
{/* Live inventory badge */}
Live Inventory Sync — 847 vehicles, last sync 2 min ago
);
}
/* ══════════════════════════════════════════════
ROOT APP
══════════════════════════════════════════════ */
export default function App() {
const [showLogin, setShowLogin] = useState(false);
return (
setShowLogin(true)} />
setShowLogin(true)} />
setShowLogin(true)} />
{showLogin && setShowLogin(false)} />}
);
}