src/components/icon/IconProcess.astro
---
interface Step {
icon: string;
number: number;
title: string;
body: string;
}
interface Props {
steps?: Step[];
title?: string;
}
const {
steps = [
{ icon: '💬', number: 1, title: 'Kennismaking', body: 'Gratis strategiegesprek van 45 minuten — zonder verkooppraatje.' },
{ icon: '🗺', number: 2, title: 'Strategie', body: 'We maken een groeiplan op maat met concrete doelen en budget.' },
{ icon: '🚀', number: 3, title: 'Lancering', body: 'Campagnes live in 5 werkdagen, inclusief alle creatives.' },
{ icon: '📈', number: 4, title: 'Optimalisatie', body: 'Wekelijkse aanpassingen op basis van data en resultaten.' },
],
title = 'Zo werken wij',
} = Astro.props;
---
<section class="iprc">
{title && <h2 class="iprc__title">{title}</h2>}
<div class="iprc__steps">
{steps.map((step, i) => (
<div class="iprc__step">
<div class="iprc__head">
<div class="iprc__icon-wrap" aria-hidden="true">
<span class="iprc__icon">{step.icon}</span>
<span class="iprc__num">{step.number}</span>
</div>
{i < steps.length - 1 && <span class="iprc__connector" aria-hidden="true"></span>}
</div>
<h3 class="iprc__name">{step.title}</h3>
<p class="iprc__body">{step.body}</p>
</div>
))}
</div>
</section>
<style>
:root {
--color-accent: #6366f1;
--color-primary: #0a0a0a;
}
.iprc { padding: 3rem 0; }
.iprc__title {
font-size: clamp(1.75rem, 3vw, 2.5rem);
font-weight: 700;
color: var(--color-primary, #0a0a0a);
text-align: center;
margin: 0 0 3rem;
}
.iprc__steps {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
position: relative;
}
.iprc__step { text-align: center; padding: 0 1rem; }
.iprc__head {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
position: relative;
}
.iprc__icon-wrap {
position: relative;
width: 64px;
height: 64px;
border-radius: 50%;
background: #f0f0ff;
border: 2px solid rgba(99,102,241,0.25);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
flex-shrink: 0;
z-index: 1;
}
.iprc__num {
position: absolute;
top: -6px;
right: -6px;
width: 20px;
height: 20px;
background: var(--color-accent, #6366f1);
color: #fff;
border-radius: 50%;
font-size: 0.65rem;
font-weight: 800;
display: flex;
align-items: center;
justify-content: center;
}
.iprc__connector {
flex: 1;
height: 2px;
background: #e0e0f0;
margin-left: 0.5rem;
}
.iprc__name {
font-size: 1rem;
font-weight: 700;
color: var(--color-primary, #0a0a0a);
margin: 0 0 0.5rem;
}
.iprc__body {
font-size: 0.85rem;
color: #777;
line-height: 1.6;
margin: 0;
}
@media (max-width: 768px) {
.iprc__steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
.iprc__connector { display: none; }
}
@media (max-width: 480px) {
.iprc__steps { grid-template-columns: 1fr; }
}
</style>