2026-05-02 08:26:18 +12:00
|
|
|
<script lang="ts">
|
2026-05-02 11:24:11 +12:00
|
|
|
import { reveal } from '$lib/actions/reveal';
|
2026-05-02 08:26:18 +12:00
|
|
|
import Icon from '$lib/components/Icon.svelte';
|
|
|
|
|
import type { IconCard } from '$lib/types';
|
|
|
|
|
|
|
|
|
|
export let services: IconCard[];
|
2026-05-05 20:54:56 +12:00
|
|
|
export let heading = 'What we do';
|
2026-05-02 08:26:18 +12:00
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
2026-05-02 11:24:11 +12:00
|
|
|
<section id="services" use:reveal={{ delay: 20 }} class="reveal-block">
|
2026-05-02 08:26:18 +12:00
|
|
|
<div class="services-inner">
|
2026-05-05 20:54:56 +12:00
|
|
|
<h2 class="section-heading">{heading}</h2>
|
2026-05-02 08:26:18 +12:00
|
|
|
|
|
|
|
|
<div class="services-grid">
|
|
|
|
|
{#each services as service}
|
|
|
|
|
<div class="service-card">
|
|
|
|
|
<div class="service-icon-bubble">
|
|
|
|
|
<Icon name={service.icon} className="service-card-icon" />
|
|
|
|
|
</div>
|
|
|
|
|
<h3>{service.title}</h3>
|
|
|
|
|
<p>{service.body}</p>
|
|
|
|
|
|
2026-05-03 11:49:59 +12:00
|
|
|
{#if service.priceFrom}
|
|
|
|
|
<p class="service-card-price">{service.priceFrom}</p>
|
|
|
|
|
{/if}
|
|
|
|
|
|
2026-05-02 08:26:18 +12:00
|
|
|
{#if service.href}
|
2026-05-05 14:10:16 +12:00
|
|
|
<a href={service.href} class="btn btn-green">
|
2026-05-06 08:27:24 +12:00
|
|
|
See {service.title} pricing →
|
2026-05-05 14:10:16 +12:00
|
|
|
</a>
|
2026-05-02 08:26:18 +12:00
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
{/each}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
2026-05-02 11:24:11 +12:00
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
:global(.reveal-ready.reveal-block) {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translate3d(0, var(--reveal-distance, 24px), 0);
|
|
|
|
|
transition:
|
|
|
|
|
opacity 0.55s ease,
|
|
|
|
|
transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
|
|
|
transition-delay: var(--reveal-delay, 0ms);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:global(.reveal-visible.reveal-block) {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (hover: hover) and (min-width: 769px) {
|
|
|
|
|
:global(.reveal-visible.reveal-block) .service-card {
|
|
|
|
|
animation: service-card-settle 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:global(.reveal-visible.reveal-block) .service-card:nth-child(1) {
|
|
|
|
|
animation-delay: 0.02s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:global(.reveal-visible.reveal-block) .service-card:nth-child(2) {
|
|
|
|
|
animation-delay: 0.06s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:global(.reveal-visible.reveal-block) .service-card:nth-child(3) {
|
|
|
|
|
animation-delay: 0.1s;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes service-card-settle {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(6px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|