Zoeken...  ⌘K GitHub

IconSplit icon

Icon lijst gesplitst in twee kolommen.

/icon-split
src/components/icon/IconSplit.astro
---
/**
 * IconSplit
 * Icoonlijst verdeeld over twee kolommen
 */
interface SplitItem {
  icon: string;
  title: string;
  desc: string;
}
interface Props {
  items?: SplitItem[];
}
const { items = [
  { icon: '🎯', title: 'Strategie op maat', desc: 'Geen standaard templates maar een plan dat past bij jouw specifieke situatie.' },
  { icon: '📈', title: 'Meetbare KPI\'s', desc: 'We definiëren succescriteria voor we beginnen zodat je weet wat je mag verwachten.' },
  { icon: '💡', title: 'Creatieve ideeën', desc: 'Frisse invalshoeken die jouw merk laten opvallen in een drukke markt.' },
  { icon: '⚡', title: 'Snelle uitvoering', desc: 'Geen eindeloze vergaderingen — we handelen snel en gericht.' },
  { icon: '🔍', title: 'Technische SEO', desc: 'Fundament op orde zodat Google jouw website optimaal indexeert.' },
  { icon: '📧', title: 'E-mail automation', desc: 'Geautomatiseerde sequences die op het juiste moment de juiste boodschap sturen.' },
] } = Astro.props;
---

<div class="ispl-grid">
  {items.map(item => (
    <div class="ispl-item">
      <span class="ispl-icon">{item.icon}</span>
      <div class="ispl-text">
        <h3 class="ispl-title">{item.title}</h3>
        <p class="ispl-desc">{item.desc}</p>
      </div>
    </div>
  ))}
</div>

<style>
  .ispl-grid {
    --color-accent: #6366f1;
    --color-primary: #0a0a0a;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    padding: 32px;
    font-family: system-ui, sans-serif;
    max-width: 800px;
  }
  @media (max-width: 560px) {
    .ispl-grid { grid-template-columns: 1fr; }
  }
  .ispl-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  .ispl-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .ispl-text { flex: 1; }
  .ispl-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
  }
  .ispl-desc {
    margin: 0;
    font-size: 0.845rem;
    line-height: 1.6;
    color: #6b7280;
  }
</style>