fix how to work , about,blog
This commit is contained in:
@@ -45,67 +45,237 @@ export default function MileTruthHero() {
|
||||
return (
|
||||
<>
|
||||
<style dangerouslySetInnerHTML={{ __html: `
|
||||
.miletruth-hero-container {
|
||||
position: relative;
|
||||
min-height: 680px;
|
||||
/* ── Hero wrapper: column layout, zero gap between hero + stats ── */
|
||||
.miletruth-hero .elementor-element-86f3204 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
margin: 0;
|
||||
padding: 0 20px;
|
||||
}
|
||||
.miletruth-video-bg {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
object-fit: cover;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 0;
|
||||
|
||||
/* ── Hero slider card ── */
|
||||
.miletruth-hero-container {
|
||||
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.3) 100%), url('/images/miletruth-bg.png') !important;
|
||||
background-size: cover !important;
|
||||
background-position: center !important;
|
||||
background-repeat: no-repeat !important;
|
||||
min-height: 773px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
border-radius: 25px 25px 0 0;
|
||||
margin-top: 20px;
|
||||
padding: 100px 40px;
|
||||
}
|
||||
.miletruth-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
z-index: 1;
|
||||
.miletruth-hero-container::before {
|
||||
display: none !important;
|
||||
}
|
||||
.miletruth-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 100%;
|
||||
padding: 0 40px !important;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.miletruth-hero-container {
|
||||
min-height: 520px;
|
||||
.miletruth-hero .content-slider-item-heading,
|
||||
.miletruth-hero .content-slider-item-heading .heading-content {
|
||||
color: rgba(255, 255, 255, 0.96) !important;
|
||||
font-family: var(--font-manrope), "Manrope", sans-serif !important;
|
||||
font-size: clamp(34px, 5.5vw, 72px) !important;
|
||||
font-weight: 850 !important;
|
||||
line-height: 1.05 !important;
|
||||
letter-spacing: -1.5px !important;
|
||||
text-transform: uppercase !important;
|
||||
text-align: center !important;
|
||||
display: block;
|
||||
}
|
||||
.miletruth-hero .content-slider-item-text {
|
||||
margin-top: 22px !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
.miletruth-hero .content-slider-item-text p {
|
||||
color: rgba(255, 255, 255, 0.72) !important;
|
||||
font-family: var(--font-manrope), "Manrope", sans-serif !important;
|
||||
font-size: clamp(16px, 1.8vw, 20px) !important;
|
||||
font-weight: 500 !important;
|
||||
line-height: 1.6 !important;
|
||||
margin: 0 auto !important;
|
||||
max-width: 800px;
|
||||
}
|
||||
.miletruth-hero .slide-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.miletruth-hero .slide-content-inner {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 1500px;
|
||||
padding: 0 32px;
|
||||
text-align: center;
|
||||
}
|
||||
/* The "logico" slider reveal animation leaves these at opacity:0 until
|
||||
its JS runs (absent in this rebuild), hiding the heading + subtitle.
|
||||
Force them visible. */
|
||||
.miletruth-hero .content-slider-item-heading,
|
||||
.miletruth-hero .content-slider-item-text,
|
||||
.miletruth-hero .logico-content-wrapper-1,
|
||||
.miletruth-hero .logico-content-wrapper-2 {
|
||||
opacity: 1 !important;
|
||||
transform: none !important;
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════
|
||||
Stats bar — dark rounded card overlapping the hero bottom
|
||||
══════════════════════════════════════════════════════════════════ */
|
||||
.miletruth-hero .elementor-element-8e5c81e {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
justify-content: center !important;
|
||||
width: 100% !important;
|
||||
margin: -25px 0 0 0 !important;
|
||||
background-color: #1F1F1F !important;
|
||||
border-radius: 25px !important;
|
||||
padding: 80px 0 !important;
|
||||
position: relative !important;
|
||||
z-index: 1 !important;
|
||||
}
|
||||
.miletruth-hero .elementor-element-8e5c81e > .e-con-inner {
|
||||
width: 100% !important;
|
||||
max-width: 1440px !important;
|
||||
height: auto !important;
|
||||
margin: 0 auto !important;
|
||||
padding: 0 40px !important;
|
||||
flex-grow: 0 !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* 4-col grid for counter widgets — rows size to content (not 1fr of the
|
||||
container) so the counters aren't parked at the top of a tall row. */
|
||||
.miletruth-hero .elementor-element-628123a {
|
||||
display: grid !important;
|
||||
grid-template-columns: repeat(4, 1fr) !important;
|
||||
grid-template-rows: auto !important;
|
||||
height: auto !important;
|
||||
gap: 40px !important;
|
||||
width: 100% !important;
|
||||
justify-items: start !important;
|
||||
align-items: start !important;
|
||||
align-content: start !important;
|
||||
}
|
||||
|
||||
/* Counter: title on top, number below, left-aligned */
|
||||
.miletruth-hero .elementor-counter {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
align-items: flex-start !important;
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
/* Counter title — above the number */
|
||||
.miletruth-hero .elementor-counter-title {
|
||||
font-family: var(--font-manrope), "Manrope", sans-serif !important;
|
||||
font-size: 20px !important;
|
||||
font-weight: 600 !important;
|
||||
line-height: 1.3em !important;
|
||||
color: #FFFFFF !important;
|
||||
margin-bottom: 12px !important;
|
||||
text-transform: none !important;
|
||||
}
|
||||
|
||||
/* Counter number wrapper — centered */
|
||||
.miletruth-hero .elementor-counter-number-wrapper {
|
||||
font-family: var(--font-space-grotesk), "Space Grotesk", var(--font-manrope), "Manrope", sans-serif !important;
|
||||
font-size: clamp(48px, 6.5vw, 100px) !important;
|
||||
font-weight: 700 !important;
|
||||
line-height: 1em !important;
|
||||
color: #C01227 !important;
|
||||
letter-spacing: -0.03em !important;
|
||||
display: flex !important;
|
||||
align-items: baseline !important;
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
.miletruth-hero .elementor-counter-number {
|
||||
color: #C01227 !important;
|
||||
font-size: inherit !important;
|
||||
font-weight: inherit !important;
|
||||
}
|
||||
.miletruth-hero .elementor-counter-number-suffix {
|
||||
color: #C01227 !important;
|
||||
font-size: inherit !important;
|
||||
font-weight: inherit !important;
|
||||
letter-spacing: -0.03em !important;
|
||||
}
|
||||
|
||||
/* ── Responsive ── */
|
||||
@media (max-width: 1200px) {
|
||||
.miletruth-hero .content-slider-item-heading,
|
||||
.miletruth-hero .content-slider-item-heading .heading-content {
|
||||
font-size: 60px !important;
|
||||
}
|
||||
.miletruth-hero-container .content-slider-item-heading {
|
||||
font-size: clamp(32px, 9vw, 42px) !important;
|
||||
}
|
||||
@media (max-width: 1024px) {
|
||||
.miletruth-hero-container {
|
||||
min-height: 600px;
|
||||
padding: 120px 0;
|
||||
}
|
||||
.miletruth-hero .elementor-element-8e5c81e {
|
||||
padding: 80px
|
||||
0 !important;
|
||||
}
|
||||
.miletruth-hero .elementor-element-628123a {
|
||||
grid-template-columns: repeat(2, 1fr) !important;
|
||||
gap: 50px 40px !important;
|
||||
}
|
||||
.miletruth-hero .content-slider-item-heading,
|
||||
.miletruth-hero .content-slider-item-heading .heading-content {
|
||||
font-size: 50px !important;
|
||||
line-height: 1.1 !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.miletruth-hero .content-slider-item-heading,
|
||||
.miletruth-hero .content-slider-item-heading .heading-content {
|
||||
font-size: 40px !important;
|
||||
line-height: 1.12 !important;
|
||||
}
|
||||
.miletruth-hero .content-slider-item-text p {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 580px) {
|
||||
.miletruth-hero-container {
|
||||
min-height: 500px;
|
||||
padding: 100px 0;
|
||||
}
|
||||
.miletruth-hero .elementor-element-86f3204 {
|
||||
padding: 0 12px;
|
||||
}
|
||||
.miletruth-hero .elementor-element-8e5c81e {
|
||||
padding: 60px 0 !important;
|
||||
border-radius: 20px !important;
|
||||
}
|
||||
.miletruth-hero .elementor-element-628123a {
|
||||
grid-template-columns: 1fr !important;
|
||||
gap: 36px !important;
|
||||
}
|
||||
.miletruth-hero .content-slider-item-heading,
|
||||
.miletruth-hero .content-slider-item-heading .heading-content {
|
||||
font-size: 32px !important;
|
||||
}
|
||||
}
|
||||
`}} />
|
||||
|
||||
<div className="elementor-63 miletruth-hero">
|
||||
{/* Parent wrapper matching reference elementor-element-86f3204 */}
|
||||
<div className="elementor-element elementor-element-86f3204 e-con-full e-flex cut-corner-no sticky-container-off e-con e-parent" data-id="86f3204" data-element_type="container" data-e-type="container">
|
||||
<div className="elementor-element elementor-element-0b7a484 e-flex e-con-boxed cut-corner-no sticky-container-off e-con e-child miletruth-hero-container" data-id="0b7a484" data-element_type="container" data-e-type="container">
|
||||
{/* Background Video — falls back to static poster (no local mp4 yet) */}
|
||||
<video
|
||||
autoPlay
|
||||
loop
|
||||
muted
|
||||
playsInline
|
||||
poster="/images/home3-slide-1.jpg"
|
||||
className="miletruth-video-bg"
|
||||
/>
|
||||
|
||||
|
||||
{/* Dark tint overlay to maintain text legibility */}
|
||||
<div className="miletruth-overlay"></div>
|
||||
|
||||
{/* Hero slider card — NOT using custom-standard-hero-container/card
|
||||
because this hero has a unique structure: hero + stats bar in a
|
||||
single column with -25px overlap and no overflow:hidden */}
|
||||
<div className="miletruth-hero-container">
|
||||
<div className="e-con-inner miletruth-content">
|
||||
<div className="logico-content-slider-widget">
|
||||
<div className="content-slider-wrapper">
|
||||
@@ -133,7 +303,7 @@ export default function MileTruthHero() {
|
||||
</div>
|
||||
|
||||
{/* Metric Stats Bar */}
|
||||
<div className="elementor-element elementor-element-8e5c81e e-flex e-con-boxed cut-corner-no sticky-container-off e-con e-child" data-id="8e5c81e" data-element_type="container" data-e-type="container" data-settings="{"background_background":"classic"}">
|
||||
<div className="elementor-element elementor-element-8e5c81e e-flex e-con-boxed cut-corner-no sticky-container-off e-con e-child" data-id="8e5c81e" data-element_type="container" data-e-type="container" data-settings='{"background_background":"classic"}'>
|
||||
<div className="e-con-inner">
|
||||
<div className="elementor-element elementor-element-628123a e-con-full e-grid cut-corner-no sticky-container-off e-con e-child" data-id="628123a" data-element_type="container" data-e-type="container">
|
||||
|
||||
@@ -144,36 +314,39 @@ export default function MileTruthHero() {
|
||||
<div className="elementor-counter-title">SLA Compliance</div>
|
||||
<div className="elementor-counter-number-wrapper">
|
||||
<span className="elementor-counter-number">
|
||||
{mounted ? <Counter from={1} to={99.9} decimals={1} suffix=" %" /> : "1 %"}
|
||||
{mounted ? <Counter from={1} to={99.9} decimals={1} suffix="" /> : "1"}
|
||||
</span>
|
||||
<span className="elementor-counter-number-suffix"> %</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Distance Saved */}
|
||||
<div className="elementor-element elementor-element-1da88b5 elementor-widget elementor-widget-counter" data-id="1da88b5" data-element_type="widget" data-e-type="widget" data-widget_type="counter.default">
|
||||
<div className="elementor-element elementor-element-1da88b5 elementor-widget elementor-widget-counter" data-id="1da88b5-2" data-element_type="widget" data-e-type="widget" data-widget_type="counter.default">
|
||||
<div className="elementor-widget-container">
|
||||
<div className="elementor-counter">
|
||||
<div className="elementor-counter-title">Distance Saved</div>
|
||||
<div className="elementor-counter-number-wrapper">
|
||||
<span className="elementor-counter-number">
|
||||
{mounted ? <Counter from={1} to={42} decimals={0} suffix=" %" /> : "1 %"}
|
||||
{mounted ? <Counter from={1} to={42} decimals={0} suffix="" /> : "1"}
|
||||
</span>
|
||||
<span className="elementor-counter-number-suffix"> %</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Fewer Vehicles */}
|
||||
<div className="elementor-element elementor-element-1da88b5 elementor-widget elementor-widget-counter" data-id="1da88b5" data-element_type="widget" data-e-type="widget" data-widget_type="counter.default">
|
||||
<div className="elementor-element elementor-element-1da88b5 elementor-widget elementor-widget-counter" data-id="1da88b5-3" data-element_type="widget" data-e-type="widget" data-widget_type="counter.default">
|
||||
<div className="elementor-widget-container">
|
||||
<div className="elementor-counter">
|
||||
<div className="elementor-counter-title">Fewer Vehicles</div>
|
||||
<div className="elementor-counter-number-wrapper">
|
||||
<span className="elementor-counter-number">
|
||||
{mounted ? <Counter from={1} to={37} decimals={0} suffix=" %" /> : "1 %"}
|
||||
{mounted ? <Counter from={1} to={37} decimals={0} suffix="" /> : "1"}
|
||||
</span>
|
||||
<span className="elementor-counter-number-suffix"> %</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -186,8 +359,9 @@ export default function MileTruthHero() {
|
||||
<div className="elementor-counter-title">Dispatch Latency</div>
|
||||
<div className="elementor-counter-number-wrapper">
|
||||
<span className="elementor-counter-number">
|
||||
{mounted ? <Counter from={1} to={45} decimals={0} suffix=" ms" /> : "1 ms"}
|
||||
{mounted ? <Counter from={1} to={45} decimals={0} suffix="" /> : "45"}
|
||||
</span>
|
||||
<span className="elementor-counter-number-suffix">ms</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user