63 lines
3 KiB
TypeScript
63 lines
3 KiB
TypeScript
import { motion } from 'framer-motion';
|
|
|
|
export default function HowItWorks() {
|
|
const steps = [
|
|
{
|
|
number: "01",
|
|
title: "Adquira seus Créditos",
|
|
description: "Comece escolhendo um pacote. Você recebe créditos na hora para gerar suas imagens.",
|
|
image: "https://festamagicaia.com.br/images/before-after.png"
|
|
},
|
|
{
|
|
number: "02",
|
|
title: "A IA Cria a Mágica",
|
|
description: "Envie a foto da criança e para cada crédito, gere um item incrível com o personagem 3D perfeito nível cinema.",
|
|
image: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/805441e0-925e-4674-b7b3-ba640431eeb1/convite-digital.webp"
|
|
},
|
|
{
|
|
number: "03",
|
|
title: "Só Imprimir e Decorar",
|
|
description: "Enviamos o arquivo final em PDF pronto para levar pra gráfica ou imprimir em casa. Super fácil!",
|
|
image: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/805441e0-925e-4674-b7b3-ba640431eeb1/adesivos-redondos.webp"
|
|
}
|
|
];
|
|
|
|
return (
|
|
<section className="py-24 bg-indigo-950 border-y border-white/10" id="como-funciona">
|
|
<div className="container mx-auto px-6 max-w-7xl">
|
|
<div className="text-center mb-20">
|
|
<h2 className="text-3xl md:text-5xl font-display font-bold mb-6 tracking-tight text-white">
|
|
Como a <span className="text-pink-500">Mágica</span> Acontece
|
|
</h2>
|
|
<p className="text-lg text-indigo-200 max-w-2xl mx-auto font-medium">
|
|
Em apenas 3 passos simples, você terá um kit de festa exclusivo que parece ter saído de um estúdio de cinema!
|
|
</p>
|
|
</div>
|
|
|
|
<div className="relative">
|
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-12 md:gap-8 relative z-10">
|
|
{steps.map((step, i) => (
|
|
<motion.div
|
|
key={i}
|
|
initial={{ opacity: 0, y: 20 }}
|
|
whileInView={{ opacity: 1, y: 0 }}
|
|
viewport={{ once: true }}
|
|
transition={{ duration: 0.5, delay: i * 0.2 }}
|
|
className="flex flex-col items-center text-center group"
|
|
>
|
|
<div className="w-full h-64 md:h-72 rounded-3xl overflow-hidden mb-6 border-4 border-indigo-900 shadow-2xl relative group-hover:scale-105 transition-transform duration-500">
|
|
<img src={step.image} alt={step.title} className="w-full h-full object-cover" />
|
|
<div className="absolute top-4 left-4 w-12 h-12 rounded-full bg-pink-500 flex items-center justify-center text-white font-display font-bold text-xl shadow-lg">
|
|
{step.number}
|
|
</div>
|
|
</div>
|
|
<h3 className="text-2xl font-bold mb-3 text-white">{step.title}</h3>
|
|
<p className="text-indigo-200 font-medium text-base leading-relaxed">{step.description}</p>
|
|
</motion.div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|