fix how to work , about,blog

This commit is contained in:
2026-05-29 18:02:58 +05:30
parent 0a65d2e04a
commit 88722329d5
30 changed files with 2881 additions and 866 deletions

View File

@@ -0,0 +1,281 @@
import React from "react";
import Image from "next/image";
import { ScrollReveal } from "../../animations/Reveal";
type Stage = {
img: string;
label: string;
title: string;
desc: string;
points: string[];
};
const STAGES: Stage[] = [
{
img: "/images/first-mile-approach.jpg",
label: "01 / First Mile",
title: "Origin to Hub",
desc: "We collect freight directly from your facility, optimise vehicle assignment in real time, and consolidate loads for maximum efficiency before they reach the hub.",
points: ["AI-scheduled pickups", "Dynamic load consolidation", "Yard & dock management"],
},
{
img: "/images/mid-mile-approach.jpg",
label: "02 / Mid Mile",
title: "Hub to Hub Transit",
desc: "Freight moves between hubs on optimised line-haul routes. Real-time tracking, cross-docking, and SLA monitoring keep every shipment on schedule.",
points: ["Optimised line-haul routing", "Cross-docking & sortation", "Live SLA monitoring"],
},
{
img: "/images/last-mile-approach.jpg",
label: "03 / Last Mile",
title: "Hub to Doorstep",
desc: "The final and most complex phase. We optimise multi-stop routes, deliver within precise windows, and capture digital proof of delivery at every door.",
points: ["Multi-stop route optimisation", "Precise delivery windows", "Digital proof of delivery"],
},
];
export default function WhyChooseDoormile() {
return (
<>
<style dangerouslySetInnerHTML={{ __html: `
/* =====================================================================
"Why Businesses Choose Doormile" — First / Mid / Last Mile stage cards.
Dark rounded card on the white page (consistent with the Miles3
section), each stage shown with a photo, numbered red label, title,
description and a red-checkmark feature list.
Card titles are <h3>; theme-core forces a dark color on bare headings
(.logico-front-end h3:not([class*=logico-title-h]) @ (0,2,1)), so the
white title rule is prefixed to outrank it.
===================================================================== */
.wcd-section {
display: flex;
flex-direction: column;
width: auto;
margin: -250px 20px 20px 20px; /* Snug pull-up overlap to touch Miles3 columns without covering their text! */
background-color: #1F1F1F;
border-radius: 0 0 25px 25px;
padding: 50px 0 110px;
}
.wcd-inner {
width: 100%;
max-width: 1630px;
margin: 0 auto;
padding: 0 50px;
box-sizing: border-box;
}
/* Centered header block (eyebrow + heading) with a faint map backdrop */
.wcd-head {
position: relative;
text-align: center;
margin: 0 0 70px;
}
@keyframes wcd-float {
0% { transform: translateX(-50%) translateY(0px) scale(1); }
50% { transform: translateX(-50%) translateY(-12px) scale(1.02); }
100% { transform: translateX(-50%) translateY(0px) scale(1); }
}
.wcd-head::after {
content: "";
position: absolute;
left: 50%;
top: 75%; /* Shifted down to the bottom of the header block to overlap the top of the cards */
transform: translateX(-50%);
width: min(1180px, 95%);
aspect-ratio: 2 / 1;
background: url('/images/bg-map.png') center / contain no-repeat;
opacity: 0.06; /* Elegant faint visibility */
filter: invert(1); /* Invert dark map dots to white/light-gray to make them visible on the #1F1F1F background */
z-index: 0;
pointer-events: none;
animation: wcd-float 20s ease-in-out infinite; /* Premium floating map animation */
}
.wcd-card-wrapper {
display: flex;
flex-direction: column;
height: 100%;
}
.wcd-eyebrow {
position: relative;
z-index: 1;
font-family: var(--font-manrope), "Manrope", sans-serif;
font-size: 14px;
font-weight: 500;
line-height: 2.1429em;
letter-spacing: 0.5px;
color: #FFFFFF;
margin: 0 0 18px;
}
.logico-front-end .wcd-section h2.wcd-heading {
position: relative;
z-index: 1;
font-family: var(--font-manrope), "Manrope", sans-serif;
font-size: clamp(34px, 4.4vw, 60px);
font-weight: 500;
line-height: 1.08;
letter-spacing: -0.03em;
text-transform: uppercase;
color: #FFFFFF;
-webkit-text-fill-color: #FFFFFF;
max-width: 1180px;
margin: 0 auto;
}
.wcd-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
width: 100%;
}
.wcd-card {
display: flex;
flex-direction: column;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 20px;
overflow: hidden;
transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.wcd-card:hover {
border-color: #c01227 !important;
box-shadow: 0 10px 30px rgba(192, 18, 39, 0.25) !important;
transform: translateY(-8px);
}
.wcd-card-media {
position: relative;
width: 100%;
aspect-ratio: 16 / 10;
overflow: hidden;
}
.wcd-card-media img {
object-fit: cover;
transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.wcd-card:hover .wcd-card-media img {
transform: scale(1.06);
}
.wcd-card-body {
display: flex;
flex-direction: column;
flex: 1;
padding: 40px;
}
.wcd-card-label {
font-family: var(--font-manrope), "Manrope", sans-serif;
font-size: 14px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
color: #c01227;
margin: 0 0 20px;
}
.logico-front-end .wcd-section h3.wcd-card-title {
font-family: var(--font-manrope), "Manrope", sans-serif;
font-size: 32px;
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.02em;
text-transform: uppercase;
color: #FFFFFF;
-webkit-text-fill-color: #FFFFFF;
margin: 0 0 22px;
}
.wcd-card-desc {
font-size: 17px;
font-weight: 400;
line-height: 1.6;
color: rgba(255, 255, 255, 0.6);
margin: 0 0 34px;
}
.wcd-card-points {
list-style: none;
margin: auto 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 16px;
}
.wcd-card-points li {
position: relative;
padding-left: 30px;
font-size: 16px;
font-weight: 700;
line-height: 1.3;
color: #FFFFFF;
}
.wcd-card-points li::before {
content: "";
position: absolute;
left: 0;
top: 0.18em;
width: 14px;
height: 9px;
border-left: 2px solid #c01227;
border-bottom: 2px solid #c01227;
transform: rotate(-45deg) scale(1);
transition: transform 0.3s ease;
}
.wcd-card:hover .wcd-card-points li::before {
transform: rotate(-45deg) scale(1.1);
}
@media (max-width: 1020px) {
.wcd-section { margin: -150px 15px 15px 15px; padding: 40px 0 80px; }
.wcd-inner { padding: 0 30px; }
.wcd-grid { grid-template-columns: 1fr; gap: 24px; }
.wcd-card-body { padding: 32px; }
.logico-front-end .wcd-section h3.wcd-card-title { font-size: 28px; }
}
@media (max-width: 480px) {
.wcd-section { margin: -100px 12px 12px 12px; border-radius: 0 0 20px 20px; padding: 30px 0 64px; }
.wcd-inner { padding: 0 20px; }
.wcd-card-body { padding: 24px; }
}
`}} />
<section className="wcd-section">
<div className="wcd-inner">
<ScrollReveal delay={0.1}>
<div className="wcd-head">
<div className="wcd-eyebrow">/ Why Businesses Choose Doormile /</div>
<h2 className="wcd-heading">The connected approach delivers measurable advantages</h2>
</div>
</ScrollReveal>
<div className="wcd-grid">
{STAGES.map((stage, index) => (
<ScrollReveal
key={stage.label}
delay={index * 0.15}
duration={0.8}
yOffset={50}
className="wcd-card-wrapper"
>
<article className="wcd-card" style={{ height: "100%" }}>
<div className="wcd-card-media">
<Image
src={stage.img}
alt={stage.title}
fill
sizes="(max-width: 1020px) 100vw, 33vw"
/>
</div>
<div className="wcd-card-body">
<div className="wcd-card-label">{stage.label}</div>
<h3 className="wcd-card-title">{stage.title}</h3>
<p className="wcd-card-desc">{stage.desc}</p>
<ul className="wcd-card-points">
{stage.points.map((point) => (
<li key={point}>{point}</li>
))}
</ul>
</div>
</article>
</ScrollReveal>
))}
</div>
</div>
</section>
</>
);
}