update miletruth page and remove unwanted files

This commit is contained in:
2026-06-03 13:42:12 +05:30
parent 3bad62851c
commit 6eea5636fb
153 changed files with 6089 additions and 36024 deletions

View File

@@ -8,46 +8,50 @@ if (typeof window !== "undefined") {
gsap.registerPlugin(ScrollTrigger);
}
const PILLS: { value: string; label: string }[] = [
{ value: "100%", label: "Electric Fleet" },
{ value: "Live", label: "Route Sync" },
{ value: "Real-time", label: "Battery Monitoring" },
];
const MINI_STATS: { value: number; decimals?: number; suffix: string; label: string }[] = [
{ value: 94, suffix: "K+", label: "Routes Optimised" },
{ value: 23, suffix: "%", label: "Avg Battery Saved" },
{ value: 1.4, decimals: 1, suffix: "x", label: "Charging Stops Saved" },
];
const FEATURES: { icon: string; title: string; desc: string }[] = [
const FEATURES: { icon: React.ReactNode; title: string; desc: string }[] = [
{
icon: "⚡",
icon: (
<svg className="evnd-icon" viewBox="0 0 24 24" fill="none" stroke="#f59e0b" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2" />
</svg>
),
title: "Battery-Aware Routing",
desc: "Battery level, health, and degradation are first-class inputs to route optimization — not afterthoughts.",
},
{
icon: "🔌",
icon: (
<svg className="evnd-icon" viewBox="0 0 24 24" fill="none" stroke="#94a3b8" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<path d="M18 10h-1.28A6 6 0 0 0 12 5V3M12 5V3M6 10h1.28A6 6 0 0 0 12 5M12 18v2M12 18v2M8 10v6a4 4 0 0 0 8 0v-6" />
</svg>
),
title: "Charging Integration",
desc: "Seamlessly integrate charging stops without compromising delivery windows or SLA commitments.",
},
{
icon: "⛰",
icon: (
<svg className="evnd-icon" viewBox="0 0 24 24" fill="none" stroke="#ef4444" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<path d="m8 3 4 8 5-5 5 15H2L8 3z" />
</svg>
),
title: "Energy-Optimized Paths",
desc: "Factor in elevation, speed limits, payload weight, and live weather for maximum range efficiency.",
},
{
icon: "🛡",
icon: (
<svg className="evnd-icon" viewBox="0 0 24 24" fill="none" stroke="#ef4444" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />
</svg>
),
title: "Predictable Operations",
desc: "EVs become predictable assets, not operational risks. Full visibility from depot to doorstep.",
},
];
const BOTTOM_STATS: { value: number; decimals?: number; suffix: string; label: string }[] = [
{ value: 120, suffix: "K+", label: "Deliveries Completed" },
{ value: 98, suffix: "%", label: "On-Time Rate" },
{ value: 31, suffix: "%", label: "Range Efficiency Gain" },
{ value: 340, suffix: "ms", label: "Avg Route Calc Time" },
{ value: 99.9, decimals: 1, suffix: "%", label: "SLA Compliance" },
{ value: 42, suffix: "%", label: "Distance Saved" },
{ value: 37, suffix: "%", label: "Fewer Vehicles" },
{ value: 45, suffix: "ms", label: "Dispatch Latency" },
];
/** Count-up that fires once when scrolled ~20% into view (ease-out cubic). */
@@ -143,7 +147,7 @@ export default function EVSection() {
<style dangerouslySetInnerHTML={{ __html: `
/* ============================================================
EV-Native Design — redesigned section
bg #0d0d0d · red #dc2626 / #ef4444 · Syne + DM Sans
bg #080808 · red #ef4444 · Manrope
============================================================ */
#evnd, #evnd * { font-family: "Manrope", Sans-serif !important; }
@@ -152,12 +156,12 @@ export default function EVSection() {
position: relative;
isolation: isolate;
overflow: hidden;
background: #0d0d0d;
background: #080808;
/* flat top so it connects seamlessly to the banner above; rounded
bottom only, and no top margin so there is no white gap */
border-radius: 0 0 clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px);
margin: 0 0 clamp(28px, 5vw, 64px);
padding: 56px 48px 64px;
padding: 64px 48px clamp(48px, 6vw, 80px);
}
/* subtle diagonal light band for depth (matches reference) */
.evnd::before {
@@ -166,181 +170,206 @@ export default function EVSection() {
inset: 0;
z-index: 0;
pointer-events: none;
background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,0.025) 50%, transparent 72%);
}
.evnd__canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,0.015) 50%, transparent 72%);
}
.evnd__inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
/* ---- TOP ROW ---- */
.evnd__top {
/* ---- MAIN GRID ---- */
.evnd__grid {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 44px;
grid-template-columns: 1.15fr 1fr;
gap: clamp(32px, 4vw, 56px);
align-items: center;
margin-bottom: 48px;
}
.evnd__left {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.evnd__right {
display: flex;
flex-direction: column;
}
.evnd__eyebrow {
display: inline-flex;
align-items: center;
gap: 12px;
color: #dc2626 !important;
font-weight: 700;
color: #ef4444 !important;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.16em;
font-size: 13px;
margin-bottom: 16px;
margin-bottom: 20px;
}
.evnd__eyebrow::before { content: ''; width: 24px; height: 2px; background: #dc2626; }
.evnd__eyebrow::before {
content: '';
width: 16px;
height: 2px;
background: #ef4444;
}
.evnd__title {
color: #fff !important;
font-weight: 800 !important;
font-size: clamp(30px, 4.4vw, 56px) !important;
line-height: 1.04 !important;
font-size: clamp(32px, 3.8vw, 48px) !important;
line-height: 1.15 !important;
letter-spacing: -0.01em;
margin: 0;
margin: 0 0 36px 0;
}
.evnd__title .accent { color: #ef4444 !important; }
.evnd__pills { display: flex; flex-direction: column; gap: 12px; }
.evnd__pill {
display: flex;
align-items: center;
gap: 12px;
padding: 13px 20px;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 100px;
@media (min-width: 768px) {
.evnd__title {
white-space: nowrap;
}
}
.evnd__pill .dot {
flex: 0 0 auto;
width: 8px; height: 8px;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 8px #22c55e;
animation: evndBlink 1.4s ease-in-out infinite;
.evnd__title .accent {
color: #ef4444 !important;
}
.evnd__pill b { color: #ef4444 !important; font-weight: 800; font-size: 15px; }
.evnd__pill span { color: rgba(255,255,255,0.62) !important; font-size: 13px; }
/* ---- MAIN GRID ---- */
.evnd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.evnd__media { position: relative; }
.evnd__media {
position: relative;
width: 100%;
}
.evnd__glow {
position: absolute;
left: 50%; bottom: -4%;
width: 72%; height: 64px;
width: 80%; height: 80px;
transform: translateX(-50%);
background: radial-gradient(50% 50% at 50% 50%, rgba(220,38,38,0.5), transparent 72%);
filter: blur(30px);
background: radial-gradient(50% 50% at 50% 50%, rgba(239,68,68,0.3), transparent 72%);
filter: blur(35px);
z-index: 0;
animation: evndGlow 4s ease-in-out infinite;
}
.evnd__imgwrap { position: relative; z-index: 1; animation: evndFloat 7s ease-in-out infinite; will-change: transform; }
.evnd__imgwrap {
position: relative;
z-index: 1;
overflow: hidden;
border-radius: 16px;
border: 1px solid rgba(255,255,255,0.06);
box-shadow: 0 30px 60px -25px rgba(0,0,0,0.85);
}
.evnd__img {
display: block;
width: 100%;
height: auto;
border-radius: 14px;
box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
object-fit: cover;
transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.evnd__imgwrap:hover .evnd__img {
transform: scale(1.03);
}
/* Badge overlay styling */
.evnd__badge {
position: absolute;
z-index: 2;
display: flex;
flex-direction: column;
gap: 2px;
padding: 10px 14px;
background: rgba(10,10,10,0.88);
border: 1px solid rgba(255,255,255,0.1);
padding: 12px 16px;
background: rgba(13,13,13,0.72);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 8px;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.evnd__badge b { color: #ef4444 !important; font-weight: 800; font-size: 24px; line-height: 1; }
.evnd__badge span { color: rgba(255,255,255,0.55) !important; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.evnd__badge--tl { top: 14px; left: 14px; }
.evnd__badge--br { bottom: 14px; right: 14px; }
.evnd__ministats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.evnd__mini {
position: relative;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 10px;
padding: 18px 14px 14px;
overflow: hidden;
.evnd__badge b {
color: #ef4444 !important;
font-weight: 800;
font-size: 24px;
line-height: 1;
}
.evnd__mini::before {
content: '';
position: absolute; top: 0; left: 0; right: 0;
height: 2px;
background: linear-gradient(90deg, #dc2626, transparent);
.evnd__badge span {
color: rgba(255,255,255,0.7) !important;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.evnd__mini b { display: block; color: #fff !important; font-weight: 800; font-size: clamp(20px, 2.3vw, 28px); line-height: 1; margin-bottom: 6px; }
.evnd__mini span { color: rgba(255,255,255,0.5) !important; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; display: block; }
.evnd__badge--tl { top: 20px; left: 20px; }
.evnd__badge--br { bottom: 20px; right: 20px; }
/* ---- Feature cards ---- */
.evnd__features { display: flex; flex-direction: column; gap: 10px; }
.evnd__features {
display: flex;
flex-direction: column;
gap: 16px;
height: 100%;
justify-content: space-between;
}
.evnd-feature {
position: relative;
display: grid;
grid-template-columns: 40px 1fr auto;
gap: 16px;
grid-template-columns: 48px 1fr auto;
gap: 20px;
align-items: start;
background: rgba(255,255,255,0.028);
border: 1px solid rgba(255,255,255,0.07);
border-radius: 12px;
padding: 18px 20px;
background: rgba(255,255,255,0.02);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 16px;
padding: 24px;
overflow: hidden;
transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(.25,1,.5,1);
transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(.25,1,.5,1);
}
.evnd-feature::before {
content: '';
position: absolute;
left: 0; top: 0; bottom: 0;
width: 3px;
background: #dc2626;
background: #ef4444;
transform: scaleY(0);
transform-origin: bottom;
transition: transform 0.35s ease;
transition: transform 0.4s ease;
}
.evnd-feature:hover {
background: rgba(239,68,68,0.03);
border-color: rgba(239,68,68,0.2);
transform: translateY(-2px);
}
.evnd-feature:hover { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.25); transform: translateX(4px); }
.evnd-feature:hover::before { transform: scaleY(1); }
.evnd-feature__icon {
width: 40px; height: 40px;
.evnd-feature__icon-container {
width: 48px; height: 48px;
display: flex; align-items: center; justify-content: center;
background: rgba(220,38,38,0.1);
border: 1px solid rgba(220,38,38,0.2);
border-radius: 10px;
font-size: 18px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 12px;
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.evnd-feature:hover .evnd-feature__icon-container {
background: rgba(239,68,68,0.08);
border-color: rgba(239,68,68,0.25);
}
.evnd-icon {
width: 22px;
height: 22px;
display: block;
}
.evnd-feature__title {
color: #fff !important;
font-weight: 700;
font-size: 15px !important;
text-transform: uppercase;
letter-spacing: 0.04em;
margin: 3px 0 7px;
letter-spacing: 0.05em;
margin: 4px 0 8px;
transition: color 0.3s ease;
}
.evnd-feature:hover .evnd-feature__title { color: #ef4444 !important; }
.evnd-feature__desc {
color: rgba(255,255,255,0.75) !important;
color: rgba(255,255,255,0.65) !important;
font-weight: 400 !important;
font-size: 14.5px !important;
line-height: 1.65 !important;
font-size: 14px !important;
line-height: 1.6 !important;
margin: 0;
}
.evnd-feature__arrow {
color: rgba(255,255,255,0.2);
font-size: 14px;
color: rgba(255,255,255,0.25);
font-size: 16px;
align-self: flex-start;
margin-top: 4px;
transition: color 0.3s ease, transform 0.3s ease;
}
.evnd-feature:hover .evnd-feature__arrow { color: #ef4444; transform: translate(3px, -3px); }
@@ -349,47 +378,69 @@ export default function EVSection() {
.evnd__bar {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1px;
background: rgba(255,255,255,0.06);
border-radius: 12px;
background: rgba(255,255,255,0.02);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 16px;
overflow: hidden;
margin-top: 40px;
margin-top: 60px;
padding: 38px 0;
}
.evnd__bar-item {
background: #0d0d0d;
padding: 24px 22px;
position: relative;
display: flex;
flex-direction: column;
gap: 8px;
align-items: flex-start;
gap: 12px;
align-items: center;
justify-content: center;
text-align: center;
padding: 12px 24px;
}
.evnd__bar-item .dot {
width: 7px; height: 7px;
border-radius: 50%;
background: #dc2626;
box-shadow: 0 0 8px rgba(220,38,38,0.85);
animation: evndBlink 1.4s ease-in-out infinite;
.evnd__bar-item:not(:last-child)::after {
content: '';
position: absolute;
right: 0;
top: 15%;
height: 70%;
width: 1px;
background: rgba(255, 255, 255, 0.08);
}
.evnd__bar-val {
color: #ef4444 !important;
font-weight: 800;
font-size: clamp(32px, 4vw, 56px);
line-height: 1;
}
.evnd__bar-label {
color: #fff !important;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: none;
opacity: 0.9;
}
.evnd__bar-item b { color: #fff !important; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1; }
.evnd__bar-item span { color: rgba(255,255,255,0.45) !important; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
@keyframes evndFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes evndGlow { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes evndBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes evndGlow { 0%,100% { opacity: 0.75; } 50% { opacity: 1; } }
/* ---- Responsive ---- */
@media (max-width: 900px) {
.evnd { padding: 48px 28px 52px; }
.evnd__top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
.evnd__grid { grid-template-columns: 1fr; gap: 36px; }
@media (max-width: 991px) {
.evnd { padding: 48px 32px 56px; }
.evnd__grid { grid-template-columns: 1fr; gap: 40px; }
.evnd__title { margin-bottom: 28px; }
.evnd__features { gap: 14px; }
}
@media (max-width: 600px) {
.evnd { padding: 40px 18px 44px; }
.evnd__bar { grid-template-columns: repeat(2, 1fr); }
.evnd__pill { padding: 11px 16px; }
@media (max-width: 767px) {
.evnd__bar { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 24px 0; }
.evnd__bar-item:nth-child(even)::after { display: none; }
.evnd__bar-item:nth-child(2)::after { display: none; }
.evnd__bar-item { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
.evnd__imgwrap, .evnd__glow, .evnd__pill .dot, .evnd__bar-item .dot { animation: none !important; }
@media (max-width: 480px) {
.evnd { padding: 40px 16px 48px; }
.evnd__bar { grid-template-columns: 1fr; gap: 28px 0; }
.evnd__bar-item::after { display: none !important; }
.evnd__badge { padding: 8px 12px; }
.evnd__badge b { font-size: 20px; }
}
`}} />
@@ -441,24 +492,10 @@ export default function EVSection() {
{/* ===== EV-Native Design (redesigned) ===== */}
<section className="evnd" id="evnd" aria-label="EV-Native Design">
<div className="evnd__inner">
{/* TOP ROW */}
<div className="evnd__top">
<div className="evnd__head">
<span className="evnd__eyebrow">/ EV-Native Design /</span>
<div className="evnd__title">
BUILT FOR ELECTRIC. <span className="accent">NOT ADAPTED.</span>
</div>
</div>
<div className="evnd__pills">
{PILLS.map((p) => (
<div className="evnd__pill" key={p.label}>
<span className="dot" />
<b>{p.value}</b>
<span>{p.label}</span>
</div>
))}
</div>
</div>
<span className="evnd__eyebrow">/ EV-Native Design /</span>
<h2 className="evnd__title">
BUILT FOR ELECTRIC. <span className="accent">NOT ADAPTED.</span>
</h2>
{/* MAIN GRID */}
<div className="evnd__grid">
@@ -471,37 +508,32 @@ export default function EVSection() {
<img className="evnd__img" src="/images/premium-ev-van.png" alt="DoorMile electric delivery van" decoding="async" />
<div className="evnd__badge evnd__badge--tl">
<b>100%</b>
<span>Electric Fleet</span>
<span>ELECTRIC FLEET</span>
</div>
<div className="evnd__badge evnd__badge--br">
<b>&minus;40%</b>
<span>Cost / Mile</span>
<b>-40%</b>
<span>COST / MILE</span>
</div>
</div>
</div>
<div className="evnd__ministats">
{MINI_STATS.map((s) => (
<div className="evnd__mini" key={s.label}>
<CountUp value={s.value} decimals={s.decimals} suffix={s.suffix} />
<span>{s.label}</span>
</div>
))}
</div>
</div>
{/* Right column */}
<div className="evnd__features">
{FEATURES.map((f) => (
<div className="evnd-feature" key={f.title}>
<span className="evnd-feature__icon" aria-hidden="true">{f.icon}</span>
<div className="evnd-feature__body">
<div className="evnd-feature__title">{f.title}</div>
<p className="evnd-feature__desc">{f.desc}</p>
<div className="evnd__right">
<div className="evnd__features">
{FEATURES.map((f) => (
<div className="evnd-feature" key={f.title}>
<div className="evnd-feature__icon-container" aria-hidden="true">
{f.icon}
</div>
<div className="evnd-feature__body">
<div className="evnd-feature__title">{f.title}</div>
<p className="evnd-feature__desc">{f.desc}</p>
</div>
<span className="evnd-feature__arrow" aria-hidden="true"></span>
</div>
<span className="evnd-feature__arrow" aria-hidden="true"></span>
</div>
))}
))}
</div>
</div>
</div>
@@ -509,9 +541,8 @@ export default function EVSection() {
<div className="evnd__bar">
{BOTTOM_STATS.map((s) => (
<div className="evnd__bar-item" key={s.label}>
<span className="dot" />
<CountUp value={s.value} decimals={s.decimals} suffix={s.suffix} />
<span>{s.label}</span>
<span className="evnd__bar-label">{s.label}</span>
<CountUp value={s.value} decimals={s.decimals} suffix={s.suffix} className="evnd__bar-val" />
</div>
))}
</div>