src/components/icon/IconTechnology.astro
---
interface TechItem {
icon: string;
name: string;
category?: string;
}
interface Props {
technologies?: TechItem[];
title?: string;
subtitle?: string;
}
const {
technologies = [
{ icon: '🚀', name: 'Astro', category: 'Framework' },
{ icon: '⚡', name: 'Vite', category: 'Build' },
{ icon: '☁️', name: 'Cloudflare', category: 'Hosting' },
{ icon: '🎯', name: 'Google Ads', category: 'Ads' },
{ icon: '📘', name: 'Meta Ads', category: 'Ads' },
{ icon: '📊', name: 'GA4', category: 'Analytics' },
{ icon: '🔍', name: 'Search Console', category: 'SEO' },
{ icon: '🗄️', name: 'Strapi', category: 'CMS' },
],
title = 'Onze technologie stack',
subtitle = 'We werken met de beste tools voor het beste resultaat.',
} = Astro.props;
---
<section class="itech">
<div class="itech__header">
{title && <h2 class="itech__title">{title}</h2>}
{subtitle && <p class="itech__subtitle">{subtitle}</p>}
</div>
<div class="itech__grid">
{technologies.map((tech) => (
<div class="itech__item">
<span class="itech__icon" aria-hidden="true">{tech.icon}</span>
<p class="itech__name">{tech.name}</p>
{tech.category && <p class="itech__category">{tech.category}</p>}
</div>
))}
</div>
</section>
<style>
:root {
--color-accent: #6366f1;
--color-primary: #0a0a0a;
}
.itech { padding: 3rem 0; }
.itech__header { text-align: center; margin-bottom: 2.5rem; }
.itech__title {
font-size: 2rem;
font-weight: 700;
color: var(--color-primary, #0a0a0a);
margin: 0 0 0.5rem;
}
.itech__subtitle { font-size: 1rem; color: #777; margin: 0; }
.itech__grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
}
.itech__item {
display: flex;
flex-direction: column;
align-items: center;
padding: 1.25rem 1rem;
background: #fff;
border: 1px solid #eee;
border-radius: 10px;
text-align: center;
gap: 0.35rem;
transition: border-color 0.2s, transform 0.2s;
}
.itech__item:hover {
border-color: rgba(99,102,241,0.3);
transform: translateY(-2px);
}
.itech__icon { font-size: 1.75rem; }
.itech__name {
font-size: 0.85rem;
font-weight: 700;
color: var(--color-primary, #0a0a0a);
margin: 0;
}
.itech__category {
font-size: 0.7rem;
color: #aaa;
margin: 0;
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: 600;
}
@media (max-width: 768px) { .itech__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .itech__grid { grid-template-columns: repeat(2, 1fr); } }
</style>