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:
138
src/components/sections/Team.astro
Normal file
138
src/components/sections/Team.astro
Normal file
@@ -0,0 +1,138 @@
|
||||
---
|
||||
import { siteContent } from "@/content/site-content"
|
||||
---
|
||||
|
||||
<section id="team" class="section-v2 team-v2" aria-labelledby="team-title">
|
||||
<div class="section-heading-v2 section-heading-v2--centered">
|
||||
<p class="eyebrow-v2">Unser Team</p>
|
||||
<h2 id="team-title">Die Menschen hinter den Scheren.</h2>
|
||||
</div>
|
||||
|
||||
<figure class="team-image-v2">
|
||||
<img
|
||||
src="https://images.unsplash.com/photo-1711274093746-b588a17d2716?auto=format&fit=crop&w=1200&q=82"
|
||||
alt="Eine Friseurin bei der Arbeit mit Schere"
|
||||
width="1200"
|
||||
height="600"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
<figcaption>Handwerk mit Präzision</figcaption>
|
||||
</figure>
|
||||
|
||||
<div class="team-v2__grid">
|
||||
{
|
||||
siteContent.team.map((member) => (
|
||||
<article class="team-v2__card">
|
||||
<div class="team-v2__avatar">
|
||||
<span>{member.initials}</span>
|
||||
</div>
|
||||
<h3>{member.name}</h3>
|
||||
<p class="team-v2__role">{member.role}</p>
|
||||
<p>{member.bio}</p>
|
||||
</article>
|
||||
))
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.team-v2 {
|
||||
background: var(--v2-surface-warm);
|
||||
}
|
||||
|
||||
.team-image-v2 {
|
||||
margin: clamp(2rem, 4vw, 3.5rem) auto 0;
|
||||
max-width: 72rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.team-image-v2 img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 21 / 9;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
filter: saturate(0.85) contrast(1.05);
|
||||
transition: transform 0.9s var(--ease-out-quart);
|
||||
}
|
||||
|
||||
.team-image-v2:hover img {
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
.team-image-v2 figcaption {
|
||||
position: absolute;
|
||||
right: 1.25rem;
|
||||
bottom: 1rem;
|
||||
color: oklch(0.95 0.01 84);
|
||||
font-size: 0.78rem;
|
||||
text-shadow: 0 1px 4px oklch(0.1 0.02 28 / 50%);
|
||||
}
|
||||
|
||||
.team-v2__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 0;
|
||||
margin-top: clamp(2rem, 4vw, 4rem);
|
||||
border-top: 1.5px solid var(--v2-hairline);
|
||||
border-left: 1.5px solid var(--v2-hairline);
|
||||
}
|
||||
|
||||
.team-v2__card {
|
||||
display: grid;
|
||||
justify-items: start;
|
||||
gap: 0.625rem;
|
||||
border-bottom: 1.5px solid var(--v2-hairline);
|
||||
border-right: 1.5px solid var(--v2-hairline);
|
||||
padding: clamp(2.2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
|
||||
transition: background-color 200ms ease;
|
||||
}
|
||||
|
||||
.team-v2__card:hover {
|
||||
background: color-mix(in oklch, var(--v2-bg) 55%, transparent);
|
||||
}
|
||||
|
||||
.team-v2__avatar {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 5.5rem;
|
||||
height: 5.5rem;
|
||||
margin-bottom: 0.75rem;
|
||||
border-radius: 999px;
|
||||
background: var(--v2-surface-dark);
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.35rem;
|
||||
font-weight: 600;
|
||||
color: var(--v2-hero-ink);
|
||||
transition: transform 0.35s var(--ease-out-quart), box-shadow 0.35s var(--ease-out-quart);
|
||||
}
|
||||
|
||||
.team-v2__card:hover .team-v2__avatar {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.team-v2__card h3 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(1.25rem, 2vw, 1.6rem);
|
||||
line-height: 1.2;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.team-v2__role {
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.03em;
|
||||
text-transform: uppercase;
|
||||
color: var(--v2-primary);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.team-v2__card > p:last-child {
|
||||
color: var(--v2-muted);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.65;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user