Files
doormile-site/includes/fleet.php
2026-04-18 17:20:24 +05:30

371 lines
11 KiB
PHP

<!-- Fleet Status - Senior UI/UX Redesign -->
<link rel="stylesheet" href="assets/css/ev-section.css">
<link rel="stylesheet" href="assets/css/ev-premium.css">
<link rel="stylesheet" href="assets/css/theme.css">
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
/* ─── BASE SECTION STYLES ─── */
.fleet-section {
padding: 100px 0;
background-color: #FDFDFD;
font-family: 'Public Sans', sans-serif;
overflow: hidden;
}
.fleet-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 40px;
display: flex; /* Fix for stacking issues */
align-items: center;
justify-content: space-between;
gap: 60px; /* Precise gap as requested */
}
/* ─── LEFT CONTENT: Heading & Features ─── */
.fleet-content-left {
flex: 1;
max-width: 620px;
}
.fleet-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
background: #FEE2E2;
color: #B91C1C;
border-radius: 100px;
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 24px;
}
.fleet-title {
font-size: clamp(36px, 4.5vw, 56px);
font-weight: 800;
line-height: 1.1;
color: #111827;
margin-bottom: 24px;
}
.fleet-title span {
color: #DC2626;
display: block;
}
.fleet-desc {
font-size: 18px;
color: #4B5563;
line-height: 1.6;
margin-bottom: 40px;
}
/* Feature Cards */
.fleet-feature-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.fleet-feature-card {
padding: 24px;
background: #fff;
border: 1px solid #F1F5F9;
border-radius: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
transition: transform 0.3s ease, border-color 0.3s ease;
}
.fleet-feature-card:hover {
transform: translateY(-5px);
border-color: #FECACA;
}
.fleet-feature-card h3 {
font-size: 16px;
font-weight: 700;
color: #111827;
margin-bottom: 10px;
}
.fleet-feature-card p {
font-size: 14px;
color: #6B7280;
line-height: 1.5;
margin: 0;
}
/* ─── RIGHT CONTENT: Fleet Status Dashboard ─── */
.fleet-status-right {
flex: 1;
display: flex;
justify-content: flex-end;
align-items: center;
}
.fleet-status-card {
width: 100%;
max-width: 580px;
background: #FFFFFF;
border-radius: 32px;
padding: 40px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
border: 1px solid #F1F5F9;
position: relative;
}
.fs-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.fs-title {
font-size: 20px;
font-weight: 700;
color: #111827;
margin: 0;
}
.fs-indicator {
font-size: 12px;
font-weight: 600;
color: #64748B;
background: #F1F5F9;
padding: 6px 14px;
border-radius: 100px;
display: flex;
align-items: center;
gap: 6px;
}
.fs-indicator::before {
content: '';
width: 8px;
height: 8px;
background: #10B981;
border-radius: 50%;
}
/* Center Visual */
.fs-v-center {
position: relative;
padding: 20px 0;
background-image:
radial-gradient(#E2E8F0 1px, transparent 1px);
background-size: 24px 24px; /* Subtle grid texture */
border-radius: 24px;
margin-bottom: 30px;
}
.van-hero {
width: 100%;
height: auto;
display: block;
margin: 0 auto;
max-width: 420px;
filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
/* ─── FLOATING OVERLAY CARDS ─── */
.fs-overlay {
position: absolute;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(8px);
padding: 12px 16px;
border-radius: 18px;
border: 1px solid rgba(255, 255, 255, 0.4);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
display: flex;
align-items: center;
gap: 12px;
z-index: 5;
}
.fs-o-1 { top: 10%; right: -10px; }
.fs-o-2 { top: 40%; left: -20px; }
.fs-o-3 { bottom: 15%; right: -5px; }
/* Battery Progress Style */
.battery-circle {
width: 42px;
height: 42px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 700;
position: relative;
}
.circle-bg {
fill: none;
stroke: #F1F5F9;
stroke-width: 3;
}
.circle-progress {
fill: none;
stroke: #E31E24;
stroke-width: 3;
stroke-linecap: round;
transition: stroke-dashoffset 0.5s ease;
}
.fs-info h4 {
margin: 0;
font-size: 13px;
font-weight: 700;
color: #111827;
}
.fs-info p {
margin: 2px 0 0 0;
font-size: 11px;
color: #64748B;
font-weight: 500;
}
/* ─── RESPONSIVENESS ─── */
@media (max-width: 1200px) {
.fleet-container {
flex-direction: column; /* Stack on smaller screens */
padding: 0 30px;
gap: 80px;
}
.fleet-content-left, .fleet-status-right {
max-width: 100%;
text-align: center;
}
.fleet-status-right {
justify-content: center;
}
.fleet-feature-grid {
margin: 0 auto;
max-width: 700px;
}
}
@media (max-width: 640px) {
.fleet-feature-grid {
grid-template-columns: 1fr;
}
.fs-overlay {
display: none; /* Hide complex overlays on small mobile */
}
.fleet-status-card {
padding: 25px;
}
}
</style>
<section class="fleet-section">
<div class="fleet-container">
<!-- LEFT: Content & Features -->
<div class="fleet-content-left">
<div class="fleet-badge">Enterprise Fleet Dashboard</div>
<h2 class="fleet-title">
Built for Electric.<br>
<span>Not Adapted.</span>
</h2>
<p class="fleet-desc">
Deploy a high-performance logistics command center. Doormile orchestrates complex electric fleets with sub-second precision and predictive intelligence.
</p>
<div class="fleet-feature-grid">
<div class="fleet-feature-card">
<h4>Adaptive Routing</h4>
<p>Dynamic route recalibration based on real-time traffic and conditions.</p>
</div>
<div class="fleet-feature-card">
<h4>Live Telemetry</h4>
<p>Sub-second updates from every asset in your connected logistics network.</p>
</div>
<div class="fleet-feature-card">
<h4>Energy Oversight</h4>
<p>Centralized monitoring of battery health and charging station efficiency.</p>
</div>
<div class="fleet-feature-card">
<h4>Service Integrity</h4>
<p>Proactive delay detection ensuring 99.9% delivery window success.</p>
</div>
</div>
</div>
<!-- RIGHT: Fleet Status Dashboard -->
<div class="fleet-status-right">
<div class="fleet-status-card">
<div class="fs-header">
<h4 class="fs-title">Fleet Status</h4>
<div class="fs-indicator">12 vehicles active</div>
</div>
<div class="fs-v-center">
<img src="assets/images/fleet-van-light.png" alt="Doormile Electric Van" class="van-hero">
<!-- Floating Card 1 -->
<div class="fs-overlay fs-o-1">
<div class="battery-circle">
<svg viewBox="0 0 36 36" width="36" height="36">
<path class="circle-bg" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
<path class="circle-progress" stroke-dasharray="92, 100" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
</svg>
<span style="position:absolute;">92%</span>
</div>
<div class="fs-info">
<h4>EV-1024</h4>
<p>North Route Active</p>
</div>
</div>
<!-- Floating Card 2 -->
<div class="fs-overlay fs-o-2">
<div class="battery-circle">
<svg viewBox="0 0 36 36" width="36" height="36">
<path class="circle-bg" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
<path class="circle-progress" style="stroke:#10B981" stroke-dasharray="74, 100" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
</svg>
<span style="position:absolute;">74%</span>
</div>
<div class="fs-info">
<h4>EV-0892</h4>
<p>Express 12m left</p>
</div>
</div>
<!-- Floating Card 3 -->
<div class="fs-overlay fs-o-3">
<div class="battery-circle">
<svg viewBox="0 0 36 36" width="36" height="36">
<path class="circle-bg" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
<path class="circle-progress" style="stroke:#F59E0B" stroke-dasharray="21, 100" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" />
</svg>
<span style="position:absolute;">21%</span>
</div>
<div class="fs-info">
<h4>EV-1104</h4>
<p>Charging required</p>
</div>
</div>
</div>
<div style="text-align:center; font-size: 13px; color: #64748B; font-weight: 500;">
LIVE TELEMETRY ACTIVE
</div>
</div>
</div>
</div>
</section>