refactor: update sections for improved layout and styling
- Revamp Contact, FinalCta, Hero, Hours, SalonPromise, Services, SiteHeader, Trust components to use a new v2 design system. - Enhance responsiveness and accessibility across sections. - Introduce new styles for better visual hierarchy and user experience. - Integrate review data into Trust section and update site content structure.
This commit is contained in:
@@ -2,13 +2,61 @@
|
||||
import { siteContent } from "@/content/site-content"
|
||||
---
|
||||
|
||||
<section class="trust-band" aria-labelledby="trust-title">
|
||||
<div>
|
||||
<p class="eyebrow">Lokales Vertrauen</p>
|
||||
<section class="trust-v2" aria-labelledby="trust-title">
|
||||
<div class="trust-v2__rating">
|
||||
<p class="eyebrow-v2">Lokales Vertrauen</p>
|
||||
<h2 id="trust-title">{siteContent.reviewSummary.rating}</h2>
|
||||
</div>
|
||||
<p class="trust-copy">
|
||||
<p class="trust-v2__copy">
|
||||
<strong>{siteContent.reviewSummary.count}</strong>
|
||||
<span>{siteContent.reviewSummary.text}</span>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.trust-v2 {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
background: var(--v2-primary);
|
||||
color: var(--v2-hero-ink);
|
||||
padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
|
||||
}
|
||||
|
||||
.trust-v2 .eyebrow-v2 {
|
||||
color: var(--v2-accent);
|
||||
}
|
||||
|
||||
.trust-v2 h2 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(6rem, 14vw, 13rem);
|
||||
line-height: 0.85;
|
||||
margin: 0.6rem 0 0;
|
||||
}
|
||||
|
||||
.trust-v2__copy {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
font-size: clamp(1.15rem, 2vw, 1.5rem);
|
||||
line-height: 1.55;
|
||||
max-width: 38ch;
|
||||
margin: 0;
|
||||
color: color-mix(in oklch, var(--v2-hero-ink) 82%, transparent);
|
||||
}
|
||||
|
||||
.trust-v2__copy strong {
|
||||
color: var(--v2-hero-ink);
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.trust-v2 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.trust-v2 h2 {
|
||||
font-size: clamp(4.5rem, 18vw, 8rem);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user