Deploy automático da Landing Page

This commit is contained in:
AI Studio Assistant 2026-05-09 02:51:39 +00:00
commit 564d05634e
30 changed files with 5828 additions and 0 deletions

9
.env.example Normal file
View file

@ -0,0 +1,9 @@
# GEMINI_API_KEY: Required for Gemini AI API calls.
# AI Studio automatically injects this at runtime from user secrets.
# Users configure this via the Secrets panel in the AI Studio UI.
GEMINI_API_KEY="MY_GEMINI_API_KEY"
# APP_URL: The URL where this applet is hosted.
# AI Studio automatically injects this at runtime with the Cloud Run service URL.
# Used for self-referential links, OAuth callbacks, and API endpoints.
APP_URL="MY_APP_URL"

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
node_modules/
build/
dist/
coverage/
.DS_Store
*.log
.env*
!.env.example

127
index.html Normal file
View file

@ -0,0 +1,127 @@
<!doctype html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- SEO Meta Tags & Advanced Optimization -->
<title>Festa Mágica IA | O Primeiro Kit Festa Infantil Feito com Inteligência Artificial</title>
<meta name="description" content="A decoração de festa infantil mais exclusiva do mundo. Transformamos a foto do seu filho em um personagem 3D (estilo Pixar/Disney) aplicado em 21 itens prontos para imprimir. Crie agora!" />
<meta name="keywords" content="festa infantil personalizada, kit festa infantil, kit digital festa, convite personalizado infantil, topo de bolo personalizado, festa com Inteligência artificial" />
<meta name="author" content="Festa Mágica IA" />
<meta name="robots" content="index, follow" />
<!-- Open Graph / Redes Sociais -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Festa Mágica IA" />
<meta property="og:title" content="Transforme seu Filho em Personagem 3D | Festa Mágica IA" />
<meta property="og:description" content="Kit festa infantil 100% personalizado gerado por Inteligência Artificial. Convites, topos de bolo, lembrancinhas e muito mais em 2 minutos." />
<!-- Coloque aqui a URL de uma imagem sua para aparecer no WhatsApp (exemplo: 1200x630px) -->
<meta property="og:image" content="https://festamagicaia.com.br/images/before-after.png" />
<meta property="og:locale" content="pt_BR" />
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Festa Mágica IA | O Primeiro Kit Festa Infantil Feito com IA" />
<meta name="twitter:description" content="Kit festa infantil 100% personalizado. Seu filho vira personagem e você recebe tudo em PDF." />
<meta name="twitter:image" content="https://festamagicaia.com.br/images/before-after.png" />
<!-- Schema Markup (JSON-LD) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Kit Festa Mágica IA",
"description": "Kit completo para festa infantil (21 itens) gerado por Inteligência Artificial, onde a criança vira o personagem principal em formato 3D estilo animação.",
"image": "https://festamagicaia.com.br/images/before-after.png",
"brand": {
"@type": "Brand",
"name": "Festa Mágica IA"
},
"offers": {
"@type": "Offer",
"url": "https://festamagicaia.com.br/",
"priceCurrency": "BRL",
"price": "9.90",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.9",
"reviewCount": "5423"
}
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "Como funciona a geração da arte em IA?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Após a compra, você receberá acesso a um painel onde enviará 1 foto do corpo inteiro da criança (de preferência de frente) e escolherá o tema. A primeira foto gerada é por nossa conta e não gasta seus créditos! A nossa Inteligência Artificial vai fundir o rostinho da criança com o tema selecionado perfeitamente em estilo Pixar/Disney 3D e gerar 21 arquivos de papelaria."
}
}, {
"@type": "Question",
"name": "Quanto tempo demora para o kit ficar pronto?",
"acceptedAnswer": {
"@type": "Answer",
"text": "O acesso a plataforma é imediato, o tempo da geração e formatação do PDF dos 21 itens demora em média 2 a 3 minutos."
}
}]
}
</script>
<!-- ============================================== -->
<!-- 1. GOOGLE TAG MANAGER (GTM) -->
<!-- ============================================== -->
<!-- Copie esse código e coloque sua tag onde tem GTM-XXXXXXX 👇 -->
<!--
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
-->
<!-- ============================================== -->
<!-- 2. FACEBOOK PIXEL -->
<!-- ============================================== -->
<!-- Copie esse código e troque XXXXXXXXXX pelo ID do seu pixel 👇 -->
<!--
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'XXXXXXXXXX');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=XXXXXXXXXX&ev=PageView&noscript=1"
/></noscript>
-->
</head>
<body>
<!-- ============================================== -->
<!-- GTM (NOSCRIPT) PARA O BODY -->
<!-- ============================================== -->
<!-- Substitua o GTM-XXXXXXX do GTM abaixo também 👇 -->
<!--
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
-->
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

6
metadata.json Normal file
View file

@ -0,0 +1,6 @@
{
"name": "Festa Mágica IA",
"description": "Kit de festa infantil personalizado usando Inteligência Artificial. Transforme a foto do seu filho em 21 itens exclusivos estilo Pixar.",
"requestFramePermissions": [],
"majorCapabilities": []
}

4342
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

37
package.json Normal file
View file

@ -0,0 +1,37 @@
{
"name": "react-example",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite --port=3000 --host=0.0.0.0",
"build": "vite build",
"preview": "vite preview",
"clean": "rm -rf dist",
"lint": "tsc --noEmit"
},
"dependencies": {
"@google/genai": "^1.52.0",
"@tailwindcss/vite": "^4.1.14",
"@vitejs/plugin-react": "^5.0.4",
"clsx": "^2.1.1",
"dotenv": "^17.2.3",
"express": "^4.21.2",
"framer-motion": "^12.38.0",
"lucide-react": "^0.546.0",
"motion": "^12.23.24",
"react": "^19.0.1",
"react-dom": "^19.0.1",
"tailwind-merge": "^3.5.0",
"vite": "^6.2.3"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^22.14.0",
"autoprefixer": "^10.4.21",
"tailwindcss": "^4.1.14",
"tsx": "^4.21.0",
"typescript": "~5.8.2",
"vite": "^6.2.3"
}
}

64
scripts/deploy-forgejo.ts Normal file
View file

@ -0,0 +1,64 @@
import { execSync } from 'child_process';
const TOKEN = '53c0cc31a6cb27901dd29f1215d4ee5fe5064a19';
const DOMAIN = 'forgejo.seureview.com.br';
const USER = 'marciobever';
const REPO = 'festa-magica-ia';
async function deploy() {
try {
console.log(`Acessando API do Forgejo (${DOMAIN})...`);
const createRes = await fetch(`https://${DOMAIN}/api/v1/user/repos`, {
method: 'POST',
headers: {
'Authorization': `token ${TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: REPO,
private: true,
description: 'Landing Page Festa Mágica IA (Gerada no AI Studio)'
})
});
if (!createRes.ok) {
const errorText = await createRes.text();
console.log(`Aviso ao criar repo (Provavelmente já existe): ${errorText}`);
} else {
console.log('✅ Repositório criado com sucesso.');
}
console.log('\nConfigurando Git local e preparando commit...');
try { execSync('rm -rf .git'); } catch(e){}
execSync('git init', { stdio: 'inherit' });
execSync('git config user.name "AI Studio Assistant"', { stdio: 'inherit' });
execSync('git config user.email "macrolojauk@gmail.com"', { stdio: 'inherit' });
execSync('git add .', { stdio: 'inherit' });
try {
execSync('git commit -m "Deploy automático da Landing Page"', { stdio: 'inherit' });
} catch (e) {
console.log('Nada para commitar.');
}
execSync('git branch -M main', { stdio: 'inherit' });
// Montamos a URL autenticada usando as credenciais providenciadas
const remoteUrl = `https://${USER}:${TOKEN}@${DOMAIN}/${USER}/${REPO}.git`;
execSync(`git remote add origin ${remoteUrl}`, { stdio: 'inherit' });
console.log('\nFazendo push do código (Forçando atualização no main)...');
execSync('git push -u origin main --force', { stdio: 'inherit' });
console.log(`\n🎉 Deploy concluído com sucesso!`);
console.log(`🔗 URL do Repositório: https://${DOMAIN}/${USER}/${REPO}`);
} catch (error: any) {
console.error('\n❌ Ocorreu um erro no script de deploy:', error.message);
if (error.stdout) console.error('STDOUT:', error.stdout.toString());
if (error.stderr) console.error('STDERR:', error.stderr.toString());
}
}
deploy();

51
src/App.tsx Normal file
View file

@ -0,0 +1,51 @@
import { motion, useScroll, useSpring } from 'framer-motion';
import Navbar from './components/Navbar';
import Hero from './components/Hero';
import Problem from './components/Problem';
import HowItWorks from './components/HowItWorks';
import Benefits from './components/Benefits';
import Gallery from './components/Gallery';
import Offer from './components/Offer';
import FAQ from './components/FAQ';
import CTA from './components/CTA';
import Footer from './components/Footer';
import Results from './components/Results';
import FloatingWhatsApp from './components/FloatingWhatsApp';
import StickyMobileCTA from './components/StickyMobileCTA';
import { useUTMForwarder } from './hooks/useUTMForwarder';
export default function App() {
const { scrollYProgress } = useScroll();
const scaleX = useSpring(scrollYProgress, {
stiffness: 100,
damping: 30,
restDelta: 0.001
});
// Ativa o repasse automático de UTMs para links de checkout
useUTMForwarder();
return (
<div className="min-h-screen bg-pink-50 text-indigo-900 selection:bg-pink-300 selection:text-indigo-950 font-sans overflow-x-hidden">
<motion.div
className="fixed top-0 left-0 right-0 h-1.5 bg-gradient-to-r from-pink-400 via-violet-400 to-amber-400 origin-left z-50"
style={{ scaleX }}
/>
<Navbar />
<main>
<Hero />
<Problem />
<HowItWorks />
<Benefits />
<Gallery />
<Results />
<Offer />
<FAQ />
<CTA />
</main>
<Footer />
<FloatingWhatsApp />
<StickyMobileCTA />
</div>
);
}

View file

@ -0,0 +1,73 @@
import { motion } from 'framer-motion';
import { Sparkles, Printer, Clock, Wand2 } from 'lucide-react';
import { cn } from '../lib/utils';
export default function Benefits() {
const cards = [
{
title: "100% Personalizado",
description: "A Inteligência Artificial transforma a foto da criança em um personagem 3D ao estilo dos filmes mais amados do cinema, garantindo um tema exclusivo e mágico.",
icon: <Wand2 className="w-8 h-8 text-pink-500" />,
className: "md:col-span-2 bg-gradient-to-br from-pink-50 to-white hover:border-pink-300"
},
{
title: "Arquivos em PDF",
description: "Esqueça dor de cabeça com formatação. Você recebe os itens em PDF, prontos para a impressora.",
icon: <Printer className="w-8 h-8 text-violet-500" />,
className: "md:col-span-1 bg-gradient-to-br from-indigo-50 to-white hover:border-violet-300"
},
{
title: "Pronto na Hora",
description: "Sem espera interminável por encomenda. Seu kit completo é gerado quase instantaneamente.",
icon: <Clock className="w-8 h-8 text-amber-500" />,
className: "md:col-span-1 bg-gradient-to-br from-orange-50 to-white hover:border-amber-300"
},
{
title: "21 Itens Exclusivos",
description: "Convites interativos, caixa de pipoca, totens, saia de cupcake, tag de agradecimento, painéis, topo de bolo e muito mais.",
icon: <Sparkles className="w-8 h-8 text-pink-500" />,
className: "md:col-span-2 bg-gradient-to-r from-violet-50 to-pink-50 hover:border-pink-300"
}
];
return (
<section className="py-24 relative overflow-hidden bg-white" id="benefits">
<div className="absolute top-1/2 left-0 w-[500px] h-[500px] bg-pink-100/50 blur-[120px] rounded-full pointer-events-none -translate-y-1/2 opacity-60" />
<div className="container mx-auto px-6 max-w-6xl relative z-10">
<div className="mb-16 md:mb-20 text-center">
<h2 className="text-3xl md:text-5xl font-display font-bold mb-6 tracking-tight text-indigo-950">
A forma mais inovadora de <br className="hidden md:block"/><span className="text-transparent bg-clip-text bg-gradient-to-r from-pink-500 to-violet-500">decorar a festa infantil.</span>
</h2>
<p className="text-lg text-indigo-800/70 max-w-2xl mx-auto font-medium">
Tudo que você precisa para uma festa inesquecível, com a qualidade de um estúdio de animação.
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 auto-rows-fr">
{cards.map((card, i) => (
<motion.div
key={i}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: "-100px" }}
transition={{ duration: 0.5, delay: i * 0.1 }}
className={cn(
"rounded-[2.5rem] border-2 border-indigo-50/50 p-10 flex flex-col transition-all duration-300 group shadow-xl shadow-indigo-100/50 hover:shadow-2xl relative bg-white",
card.className
)}
>
<div className="w-16 h-16 rounded-2xl bg-white shadow-sm border border-indigo-50 flex items-center justify-center mb-10 group-hover:scale-110 transition-transform relative z-20 shrink-0">
{card.icon}
</div>
<div className="relative z-20 mt-auto">
<h3 className="text-2xl font-display font-bold mb-4 text-indigo-950">{card.title}</h3>
<p className="text-indigo-900/70 font-medium text-lg leading-relaxed">{card.description}</p>
</div>
</motion.div>
))}
</div>
</div>
</section>
);
}

30
src/components/CTA.tsx Normal file
View file

@ -0,0 +1,30 @@
import { ArrowRight, Sparkles } from 'lucide-react';
export default function CTA() {
return (
<section className="py-24 relative overflow-hidden bg-indigo-950">
<div className="absolute inset-0 bg-gradient-to-tr from-pink-600/20 to-violet-600/20 mix-blend-overlay" />
<div className="absolute -top-40 -right-40 w-[600px] h-[600px] bg-pink-500/20 blur-[100px] rounded-full pointer-events-none" />
<div className="absolute -bottom-40 -left-40 w-[600px] h-[600px] bg-violet-500/20 blur-[100px] rounded-full pointer-events-none" />
<div className="container mx-auto px-6 max-w-4xl relative z-10 text-center">
<h2 className="text-4xl md:text-6xl font-display font-bold text-white mb-8">
Pronta para fazer a melhor <br className="hidden md:block"/> festa do seu filho?
</h2>
<p className="text-xl text-indigo-200 font-medium mb-10 max-w-2xl mx-auto">
Tire a ideia do papel hoje mesmo. Com Inteligência Artificial, sua festa sairá da imaginação direto para a sua casa em poucos minutos.
</p>
<div className="flex flex-col items-center justify-center gap-6">
<a href="#oferta" className="h-16 px-12 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-xl flex items-center justify-center gap-3 hover:scale-105 transition-all shadow-[0_0_40px_rgba(236,72,153,0.5)]">
Criar Minha Festa Agora <Sparkles className="w-5 h-5 animate-pulse" />
</a>
<span className="text-indigo-300 font-medium text-sm">
Pagamento 100% Seguro. Acesso Imediato.
</span>
</div>
</div>
</section>
);
}

81
src/components/FAQ.tsx Normal file
View file

@ -0,0 +1,81 @@
import { useState } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
import { Plus, Minus } from 'lucide-react';
import { cn } from '../lib/utils';
export default function FAQ() {
const [openIndex, setOpenIndex] = useState<number | null>(0);
const faqs = [
{
q: "Como funciona a geração da arte em IA?",
a: "Após a compra, você receberá acesso a um painel onde enviará 1 foto do corpo inteiro da criança (de preferência de frente) e escolherá o tema. A primeira foto gerada é por nossa conta e não gasta seus créditos! A nossa Inteligência Artificial vai fundir o rostinho da criança com o tema selecionado perfeitamente em estilo Pixar/Disney 3D e gerar todos os arquivos de papelaria."
},
{
q: "Preciso de algum programa pesado para imprimir?",
a: "De jeito nenhum! Nós entregamos os arquivos em formato PDF pronto na medida exata. Você só precisa abrir o arquivo e clicar em imprimir, seja na sua casa ou enviar para a gráfica rápida mais próxima."
},
{
q: "Quanto tempo demora para o kit ficar pronto?",
a: "A transformação mágica pela Inteligência Artificial e a geração dos itens levam cerca de 2 a 5 minutos. É extremamente rápido e prático, perfeito para quem tem pressa."
},
{
q: "Se eu não conseguir imprimir, vocês ajudam?",
a: "Nossa equipe de suporte está à disposição no WhatsApp de segunda a sexta para tirar suas dúvidas e dar todo apoio técnico necessário. Mas fique tranquila, entregamos tutoriais rápidos junto ao material!"
}
];
return (
<section className="py-24 bg-white border-y border-pink-100">
<div className="container mx-auto px-6 max-w-3xl">
<div className="text-center mb-16">
<h2 className="text-3xl md:text-5xl font-display font-bold mb-4 text-indigo-950">Dúvidas Frequentes</h2>
<p className="text-indigo-500 font-medium text-lg">Tudo que você precisa saber.</p>
</div>
<div className="space-y-4">
{faqs.map((faq, i) => (
<div
key={i}
className={cn(
"border-2 rounded-3xl overflow-hidden transition-colors duration-300",
openIndex === i ? "border-pink-300 bg-pink-50/50" : "border-pink-100 hover:border-pink-200"
)}
>
<button
onClick={() => setOpenIndex(openIndex === i ? null : i)}
className="w-full px-8 py-6 flex items-center justify-between text-left focus:outline-none"
>
<span className="font-bold text-lg text-indigo-950 pr-8">{faq.q}</span>
{openIndex === i ? (
<div className="shrink-0 w-8 h-8 rounded-full bg-pink-200 flex items-center justify-center">
<Minus className="w-4 h-4 text-pink-600" />
</div>
) : (
<div className="shrink-0 w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
<Plus className="w-4 h-4 text-indigo-500" />
</div>
)}
</button>
<AnimatePresence>
{openIndex === i && (
<motion.div
initial={{ height: 0, opacity: 0 }}
animate={{ height: "auto", opacity: 1 }}
exit={{ height: 0, opacity: 0 }}
transition={{ duration: 0.3, ease: "easeInOut" }}
>
<div className="px-8 pb-6 text-indigo-900/80 font-medium leading-relaxed">
{faq.a}
</div>
</motion.div>
)}
</AnimatePresence>
</div>
))}
</div>
</div>
</section>
);
}

View file

@ -0,0 +1,79 @@
import { motion } from 'framer-motion';
import { Layers, Shield, Settings, MousePointerClick, Smartphone, BarChart3 } from 'lucide-react';
import { cn } from '../lib/utils';
export default function Features() {
const features = [
{
icon: <Layers />,
title: "Modular Structure",
description: "Build once, reuse infinitely. Component-based architecture for your digital products."
},
{
icon: <Shield />,
title: "Bank-grade Security",
description: "Enterprise-level protection for your content and customer data out of the box."
},
{
icon: <Settings />,
title: "Zero Setup Required",
description: "Skip the technical headaches. Everything works seamlessly perfectly from day one."
},
{
icon: <MousePointerClick />,
title: "One-Click Deployment",
description: "Push your products live to thousands of customers with a single action."
},
{
icon: <Smartphone />,
title: "Mobile Optimized",
description: "Flawless experience across all devices. Never lose a sale due to poor UX."
},
{
icon: <BarChart3 />,
title: "Advanced Analytics",
description: "Deep insights into customer behavior, drop-off points, and conversion rates."
}
];
return (
<section className="py-24 bg-neutral-950/50" id="features">
<div className="container mx-auto px-6 max-w-7xl">
<div className="flex flex-col md:flex-row md:items-end justify-between mb-16 gap-8">
<div className="max-w-2xl">
<h2 className="text-3xl md:text-5xl font-display font-medium mb-6 tracking-tight">
Everything you need. <br/><span className="text-neutral-500">Nothing you don't.</span>
</h2>
<p className="text-lg text-muted-foreground font-light">
A comprehensive toolkit designed specifically for modern digital creators and founders.
</p>
</div>
<button className="h-12 px-6 rounded-full bg-white/5 border border-white/10 hover:bg-white/10 text-white font-medium text-sm transition-colors whitespace-nowrap self-start md:self-auto">
View All Features
</button>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{features.map((feature, 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.1 }}
className="p-8 rounded-3xl bg-neutral-900/30 border border-white/5 hover:bg-neutral-800/50 hover:border-white/10 transition-all group"
>
<div className="w-12 h-12 rounded-xl bg-white/5 border border-white/10 flex items-center justify-center mb-6 text-neutral-300 group-hover:text-white group-hover:scale-110 transition-all">
{feature.icon}
</div>
<h3 className="text-xl font-medium mb-3">{feature.title}</h3>
<p className="text-neutral-400 font-light leading-relaxed text-sm">
{feature.description}
</p>
</motion.div>
))}
</div>
</div>
</section>
);
}

View file

@ -0,0 +1,29 @@
import { MessageCircle } from 'lucide-react';
import { motion } from 'framer-motion';
export default function FloatingWhatsApp() {
// Coloque aqui o número do seu WhatsApp com DDI (Ex: 5511999999999)
const whatsappNumber = "5511999999999";
const defaultMessage = "Olá! Tenho uma dúvida sobre o kit Festa Mágica IA.";
const url = `https://wa.me/${whatsappNumber}?text=${encodeURIComponent(defaultMessage)}`;
return (
<motion.a
href={url}
target="_blank"
rel="noopener noreferrer"
className="fixed bottom-6 right-6 z-50 flex items-center justify-center w-14 h-14 bg-emerald-500 text-white rounded-full shadow-[0_0_20px_rgba(16,185,129,0.3)] hover:bg-emerald-400 hover:scale-110 transition-all duration-300 group"
initial={{ opacity: 0, scale: 0 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ delay: 1, duration: 0.5, type: 'spring' }}
>
<MessageCircle className="w-7 h-7" />
{/* Tooltip */}
<div className="absolute right-full mr-4 top-1/2 -translate-y-1/2 px-4 py-2 bg-indigo-950 border border-indigo-800 text-white font-medium text-sm whitespace-nowrap rounded-lg opacity-0 pointer-events-none group-hover:opacity-100 transition-opacity drop-shadow-xl shadow-2xl">
Fale com nosso suporte
<div className="absolute right-[-5px] top-1/2 -translate-y-1/2 w-2 h-2 bg-indigo-950 border-r border-t border-indigo-800 rotate-45" />
</div>
</motion.a>
);
}

23
src/components/Footer.tsx Normal file
View file

@ -0,0 +1,23 @@
export default function Footer() {
return (
<footer className="py-12 border-t border-pink-200 bg-pink-50">
<div className="container mx-auto px-6 max-w-5xl text-center text-indigo-900/60 font-medium text-xs">
<div className="flex flex-col md:flex-row items-center justify-center gap-4 md:gap-8 mb-8 text-indigo-600/80">
<a href="#" className="hover:text-pink-600 transition-colors">Termos de Uso</a>
<a href="#" className="hover:text-pink-600 transition-colors">Políticas de Privacidade</a>
<a href="#" className="hover:text-pink-600 transition-colors">Contato</a>
</div>
<p className="mb-4 max-w-3xl mx-auto leading-relaxed">
Este site não é afiliado ao Facebook ou a qualquer entidade do Meta.
Depois que você sair do Facebook, a responsabilidade não é deles e sim do nosso site.
</p>
<p className="mb-2">
Festa Mágica IA LTDA - CNPJ: 00.000.000/0001-00
</p>
<p>
© {new Date().getFullYear()} Festa Mágica IA. Todos os direitos reservados.
</p>
</div>
</footer>
);
}

View file

@ -0,0 +1,57 @@
import { motion } from 'framer-motion';
export default function Gallery() {
const images = [
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/805441e0-925e-4674-b7b3-ba640431eeb1/topo-de-bolo.webp", title: "Topo de Bolo 3D", desc: "Perfeito para destacar a mesa" },
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/805441e0-925e-4674-b7b3-ba640431eeb1/adesivos-redondos.webp", title: "Adesivos Redondos", desc: "Ideais para potinhos" },
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/11362da2-027b-401e-bcad-28c86ef59ce8/caixa-de-pipoca.webp", title: "Caixa de Pipoca", desc: "A alegria garantida no lanche" },
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/805441e0-925e-4674-b7b3-ba640431eeb1/convite-digital.webp", title: "Convite Digital", desc: "Para enviar no WhatsApp" },
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/9c8c4c80-2214-4c12-867b-1593e69e57c1/convite-digital.webp", title: "Convite Digital Animado", desc: "Mais vida e magia" },
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/611ff0db-b676-42d9-a10e-66f03e63837f/tag-de-agradecimento.webp", title: "Tag de Agradecimento", desc: "Pronto para as lembrancinhas" },
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/3ebc6785-7277-4463-a62c-943a24b88452/saia-de-cupcake.webp", title: "Saia de Cupcake", desc: "Mais estilo para os docinhos" },
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/e4b543aa-2106-4b92-9ef2-8a8954a58be4/chapu-de-festa.webp", title: "Chapéu de Festa", desc: "Divertido, personalizado e único" },
{ src: "https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/ac59765f-8f9d-4f11-8150-eb9a821f97e3/adesivos-quadrados.webp", title: "Adesivos Quadrados", desc: "Versáteis para decorar caixinhas" },
];
return (
<section className="py-24 bg-pink-50 relative overflow-hidden pb-32">
<div className="absolute -left-20 top-0 w-72 h-72 bg-violet-300 blur-[100px] rounded-full opacity-30" />
<div className="container mx-auto px-6 max-w-6xl relative z-10">
<div className="text-center mb-16">
<h2 className="text-3xl md:text-5xl font-display font-bold mb-6 text-indigo-950">
Veja a magia <span className="text-gradient">acontecer.</span>
</h2>
<p className="text-lg text-indigo-900/70 max-w-2xl mx-auto font-medium">
De uma simples foto para dezenas de itens prontos para transformar a sua festa.
</p>
</div>
<div className="columns-1 sm:columns-2 lg:columns-3 gap-6 space-y-6">
{images.map((img, i) => (
<motion.div
key={i}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: i * 0.1 }}
className="break-inside-avoid relative rounded-[2rem] overflow-hidden bg-white border border-indigo-100 group shadow-lg hover:shadow-xl transition-all duration-300"
>
<div className="relative w-full overflow-hidden flex items-center justify-center p-6 bg-indigo-50/50">
<img
src={img.src}
alt={img.title}
className="w-full h-auto object-contain rounded-2xl drop-shadow-xl transition-transform duration-700 group-hover:scale-105 max-h-[400px]"
/>
</div>
<div className="p-6 bg-white border-t border-indigo-50">
<h3 className="font-display font-bold text-xl text-indigo-950 mb-1">{img.title}</h3>
<p className="text-sm font-medium text-indigo-900/60">{img.desc}</p>
</div>
</motion.div>
))}
</div>
</div>
</section>
);
}

View file

@ -0,0 +1,21 @@
import { ShieldCheck } from 'lucide-react';
export default function Guarantee() {
return (
<section className="py-24 bg-pink-50 relative overflow-hidden">
<div className="container mx-auto px-6 max-w-4xl relative z-10 text-center">
<div className="w-24 h-24 mx-auto bg-white rounded-full flex items-center justify-center border-4 border-pink-100 shadow-xl mb-8 -rotate-6">
<ShieldCheck className="w-12 h-12 text-pink-500" />
</div>
<h2 className="text-3xl md:text-5xl font-display font-bold mb-6 text-indigo-950">
Garantia <span className="text-pink-500">Mágica de 7 Dias.</span>
</h2>
<p className="text-lg text-indigo-900/70 max-w-2xl mx-auto font-medium leading-relaxed">
Nós garantimos que a arte gerada pela nossa IA vai surpreender você. Se por qualquer motivo você não gostar e achar que não servirá para a festa, basta enviar um único email dentro de 7 dias e devolveremos 100% do seu dinheiro. Sem ressentimentos!
</p>
</div>
</section>
);
}

121
src/components/Hero.tsx Normal file
View file

@ -0,0 +1,121 @@
import { motion } from 'framer-motion';
import { ArrowRight, Play, Sparkles, Star } from 'lucide-react';
export default function Hero() {
return (
<section className="relative pt-32 pb-20 md:pt-40 md:pb-24 overflow-hidden bg-pink-50">
{/* Decorative Blobs */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[500px] opacity-40 pointer-events-none">
<div className="absolute top-10 left-10 w-64 h-64 bg-pink-400 blur-[80px] rounded-full mix-blend-multiply opacity-50 animate-float" />
<div className="absolute top-20 right-10 w-72 h-72 bg-violet-400 blur-[80px] rounded-full mix-blend-multiply opacity-50 animate-pulse-slow" />
<div className="absolute -bottom-10 left-40 w-60 h-60 bg-yellow-300 blur-[80px] rounded-full mix-blend-multiply opacity-50 animate-float" style={{ animationDelay: '2s' }} />
</div>
{/* Floating Elements / Stars */}
<div className="absolute inset-0 pointer-events-none overflow-hidden">
<Star className="absolute top-32 left-10 text-yellow-400 w-6 h-6 animate-pulse-slow" />
<Star className="absolute top-40 right-20 text-pink-400 w-8 h-8 animate-float" />
<div className="absolute top-[40%] left-[15%] w-3 h-3 rounded-full bg-violet-400 animate-bounce-slow" />
<div className="absolute top-[60%] right-[10%] w-4 h-4 rounded-full bg-pink-400 animate-float" />
</div>
<div className="container mx-auto px-6 max-w-7xl relative z-10">
<div className="flex flex-col lg:flex-row items-center gap-12 lg:gap-20">
{/* Text Content */}
<div className="flex-1 flex flex-col items-center lg:items-start text-center lg:text-left pt-10">
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5 }}
className="inline-flex items-center gap-2 px-5 py-2.5 rounded-full border border-pink-200 bg-white/60 backdrop-blur-md mb-8 text-pink-600 shadow-sm"
>
<Sparkles className="w-4 h-4 text-amber-500 animate-pulse" />
<span className="text-sm font-bold uppercase tracking-wider">A Festa do Ano Chegou</span>
</motion.div>
<motion.h1
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, delay: 0.1 }}
className="text-4xl md:text-5xl lg:text-6xl xl:text-[4.5rem] tracking-tight leading-[1.1] font-display font-bold text-indigo-950 mb-6"
>
Transforme a foto do seu filho<br className="hidden md:block"/> em uma
<span className="text-gradient"> Festa Mágica!</span>
</motion.h1>
<motion.p
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, delay: 0.2 }}
className="text-lg md:text-xl text-indigo-800/80 mb-10 max-w-xl font-medium leading-relaxed"
>
Pare de gastar horas procurando decoração. Envie uma foto e nossa IA cria um <strong>Kit Digital com 21 Itens Exclusivos</strong>, com o rostinho do seu filho no estilo de personagens de cinema! Prontinho para imprimir.
</motion.p>
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, delay: 0.4 }}
className="flex flex-col sm:flex-row items-center gap-4 w-full justify-center lg:justify-start"
>
<a href="#oferta" className="w-full sm:w-auto h-16 px-10 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-xl flex items-center justify-center gap-3 hover:scale-105 hover:shadow-2xl transition-all shadow-xl shadow-pink-500/30">
Criar Minha Festa Agora <Wand2Icon className="w-6 h-6" />
</a>
<div className="flex flex-col items-center sm:items-start text-indigo-600/70 text-xs sm:text-sm mt-3 sm:mt-0 font-medium">
<div className="flex items-center gap-1 mb-1">
{[...Array(5)].map((_, i) => <Star key={i} className="w-4 h-4 text-amber-500 fill-amber-500" />)}
</div>
<span>Mais de 10.000 mães<br/> fizeram a festa!</span>
</div>
</motion.div>
</div>
{/* Right Image Content */}
<motion.div
initial={{ opacity: 0, scale: 0.95, rotate: -2 }}
animate={{ opacity: 1, scale: 1, rotate: 0 }}
transition={{ duration: 0.8, delay: 0.3 }}
className="flex-1 w-full max-w-2xl lg:max-w-none relative"
>
{/* The Image from the User */}
<div className="relative rounded-[2rem] overflow-hidden border-8 border-white shadow-2xl rotate-2 hover:rotate-0 transition-transform duration-500">
<img
src="https://festamagicaia.com.br/images/before-after.png"
className="w-full h-auto object-cover aspect-square md:aspect-[4/3] lg:aspect-square"
alt="Resultado impressionante de antes e depois da transformação da criança para personagem 3D de festa"
fetchPriority="high"
/>
<div className="absolute inset-0 ring-1 ring-inset ring-black/10 rounded-[1.5rem]" />
{/* Badge floating */}
<div className="absolute top-6 right-6 bg-white rounded-2xl p-3 shadow-xl transform rotate-12 animate-float">
<div className="bg-pink-100 text-pink-600 font-bold text-xs px-3 py-1.5 rounded-lg mb-1 flex items-center gap-1">
<Sparkles className="w-3 h-3" /> Fica Perfeito
</div>
</div>
</div>
{/* Decorative background for the image */}
<div className="absolute -inset-6 bg-gradient-to-tr from-pink-400 to-violet-500 blur-2xl opacity-20 -z-10 rounded-full" />
</motion.div>
</div>
</div>
</section>
);
}
function Wand2Icon({ className }: { className?: string }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className={className}>
<path d="M15 4V2"/>
<path d="M15 16v-2"/>
<path d="M8 9h2"/>
<path d="M20 9h2"/>
<path d="M17.8 11.8 19 13"/>
<path d="M15 9h0"/>
<path d="M17.8 6.2 19 5"/>
<path d="m3 21 9-9"/>
<path d="M12.2 6.2 11 5"/>
</svg>
);
}

View file

@ -0,0 +1,63 @@
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>
);
}

39
src/components/Navbar.tsx Normal file
View file

@ -0,0 +1,39 @@
import { useState, useEffect } from 'react';
import { ArrowRight, Wand2 } from 'lucide-react';
import { cn } from '../lib/utils';
export default function Navbar() {
const [isScrolled, setIsScrolled] = useState(false);
useEffect(() => {
const handleScroll = () => {
setIsScrolled(window.scrollY > 20);
};
window.addEventListener('scroll', handleScroll);
return () => window.removeEventListener('scroll', handleScroll);
}, []);
return (
<header
className={cn(
"fixed top-0 w-full z-40 transition-all duration-300",
isScrolled ? "bg-white/90 backdrop-blur-xl border-b border-pink-100 py-3 shadow-sm" : "bg-transparent py-5"
)}
>
<div className="container mx-auto px-6 max-w-6xl flex items-center justify-between">
<div className="flex items-center gap-3 group cursor-pointer">
<div className="w-10 h-10 rounded-full bg-gradient-to-tr from-pink-400 to-violet-500 flex items-center justify-center transition-transform group-hover:scale-110 shadow-lg shadow-pink-500/30">
<Wand2 className="w-5 h-5 text-white" />
</div>
<span className="font-display font-bold text-2xl tracking-tight text-indigo-950">Festa Mágica<span className="text-pink-500">IA</span></span>
</div>
<div className="flex items-center gap-4">
<a href="#oferta" className="h-11 px-6 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-semibold text-sm flex items-center gap-2 hover:shadow-[0_0_20px_rgba(236,72,153,0.4)] hover:scale-105 transition-all">
Criar Kit Agora <ArrowRight className="w-4 h-4" />
</a>
</div>
</div>
</header>
);
}

146
src/components/Offer.tsx Normal file
View file

@ -0,0 +1,146 @@
import { useState } from 'react';
import { motion } from 'framer-motion';
import { Check, ShieldCheck, Gift, ArrowRight, Loader2 } from 'lucide-react';
import { cn } from '../lib/utils';
export default function Offer() {
const benefits = [
"Criação do Personagem com IA Exclusivo",
"10 créditos na sua conta (1 imagem = 1 crédito)",
"Arquivos em PDF já formatados, prontos para impressão",
"Acesso imediato à plataforma"
];
const [email, setEmail] = useState('');
const [isLoading, setIsLoading] = useState(false);
const [error, setError] = useState('');
const handleCheckout = async (e: React.FormEvent) => {
e.preventDefault();
if (!email) {
setError('Por favor, informe seu e-mail.');
return;
}
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
setError('Por favor, informe um e-mail válido.');
return;
}
setIsLoading(true);
setError('');
try {
const res = await fetch('https://n8n.seureview.com.br/webhook/festa-magica-stripe', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
source: 'landing',
userEmail: email,
}),
});
const data = await res.json();
if (data.success && data.url) {
window.location.href = data.url;
} else {
setError('Ocorreu um erro ao gerar o checkout. Tente novamente.');
setIsLoading(false);
}
} catch (err) {
setError('Erro de conexão. Verifique sua internet e tente novamente.');
setIsLoading(false);
}
};
return (
<section className="py-24 bg-indigo-950 relative overflow-hidden" id="oferta">
<div className="absolute top-0 right-0 w-full h-full bg-[url('https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/805441e0-925e-4674-b7b3-ba640431eeb1/adesivos-redondos.webp')] bg-cover bg-center opacity-5 mix-blend-overlay" />
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-pink-500/20 blur-[130px] rounded-full pointer-events-none mix-blend-screen" />
<div className="container mx-auto px-6 max-w-5xl relative z-10">
<div className="text-center mb-16">
<h2 className="text-4xl md:text-5xl font-display font-bold mb-4 text-white">
Crie a melhor festa que <br className="hidden md:block"/><span className="text-pink-400">seu filho teve.</span>
</h2>
<p className="text-indigo-200 text-lg">
Adquira o pacote inicial e receba <strong className="text-white">10 créditos para gerar itens exclusivos</strong> por um valor simbólico.
</p>
</div>
<div className="bg-white rounded-[2.5rem] p-8 md:p-12 shadow-[0_30px_60px_-15px_rgba(236,72,153,0.3)] relative overflow-hidden flex flex-col md:flex-row items-center gap-12 max-w-4xl mx-auto border border-pink-100">
<div className="flex-1 w-full">
<h3 className="text-3xl font-display font-bold text-indigo-950 mb-6">
O Kit Mágico
</h3>
<div className="space-y-4 mb-8">
{benefits.map((benefit, i) => (
<div key={i} className="flex items-center gap-4">
<div className="w-6 h-6 rounded-full bg-pink-100 flex items-center justify-center shrink-0">
<Check className="w-4 h-4 text-pink-600" strokeWidth={3} />
</div>
<span className="text-indigo-900 font-medium text-lg leading-relaxed">{benefit}</span>
</div>
))}
</div>
<div className="pt-6 border-t border-indigo-100 flex items-center gap-3">
<Gift className="w-6 h-6 text-pink-500" />
<p className="text-indigo-800 font-bold">Surpreenda todos os convidados!</p>
</div>
</div>
<div className="w-full md:w-[360px] rounded-3xl p-6 md:p-8 text-center flex flex-col justify-center relative bg-gradient-to-b from-indigo-50 to-white border border-indigo-100 shadow-inner">
<div className="mb-4 text-pink-600 font-bold text-sm tracking-[0.2em] uppercase">Pacote Inicial</div>
<div className="flex items-start justify-center mb-1">
<span className="text-2xl font-bold text-indigo-950 mt-2 mr-1">R$</span>
<span className="text-8xl font-display font-black tracking-tight text-indigo-950">9</span>
<span className="text-2xl font-bold mb-1 text-indigo-950 mt-2">,99</span>
</div>
<p className="text-sm text-indigo-500 font-medium mb-6">Pagamento único. Acesso imediato.</p>
<form onSubmit={handleCheckout} className="flex flex-col gap-3 w-full mb-4">
<div className="flex flex-col gap-1 text-left">
<input
type="email"
value={email}
onChange={(e) => {
setEmail(e.target.value);
if (error) setError('');
}}
placeholder="Seu melhor e-mail"
className={cn(
"w-full h-14 px-5 rounded-full border-2 bg-white outline-none transition-all placeholder:text-gray-400 font-medium",
error ? "border-red-400 focus:border-red-500" : "border-indigo-100 focus:border-pink-500/50"
)}
disabled={isLoading}
/>
{error && <span className="text-red-500 text-xs px-2 font-medium">{error}</span>}
</div>
<button
type="submit"
disabled={isLoading}
className="w-full h-16 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-lg hover:shadow-[0_0_30px_rgba(236,72,153,0.5)] hover:scale-105 transition-all flex items-center justify-center gap-2 disabled:opacity-70 disabled:hover:scale-100 disabled:hover:shadow-none"
>
{isLoading ? (
<>Gerando Pedido... <Loader2 className="w-5 h-5 animate-spin" /></>
) : (
<>Gerar Tema Agora <ArrowRight className="w-5 h-5" /></>
)}
</button>
</form>
<div className="flex items-center justify-center gap-2 text-sm text-indigo-400 font-medium">
<ShieldCheck className="w-5 h-5 text-emerald-500" />
<span>Compra 100% segura pelo Stripe.</span>
</div>
</div>
</div>
</div>
</section>
);
}

View file

@ -0,0 +1,63 @@
import { motion } from 'framer-motion';
import { XCircle } from 'lucide-react';
export default function Problem() {
const problems = [
"Orçamentos de decoração que chegam a R$ 2.000,00.",
"Aquela correria louca atrás de lojas e fornecedores.",
"A frustração de ver todo ano 'os mesmos temas'.",
"Não ter tempo ou habilidade para desenhar lembrancinhas do zero."
];
return (
<section className="py-24 border-y border-pink-100 bg-white">
<div className="container mx-auto px-6 max-w-6xl">
<div className="flex flex-col lg:flex-row items-center gap-12 lg:gap-16">
{/* Left Text / Problems List */}
<div className="flex-1">
<h2 className="text-3xl md:text-5xl font-display font-bold mb-8 text-indigo-950">
Sua vida de mãe é corrida. <br className="hidden md:block"/><span className="text-pink-500">A festa não precisa ser um caos.</span>
</h2>
<div className="flex flex-col gap-4">
{problems.map((problem, i) => (
<motion.div
key={i}
initial={{ opacity: 0, x: -20 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{ delay: i * 0.1 }}
className="p-5 rounded-2xl bg-pink-50 border border-pink-100 flex items-start gap-4 hover:shadow-lg transition-shadow"
>
<div className="mt-1 bg-pink-200 rounded-full p-1 shrink-0">
<XCircle className="w-5 h-5 text-pink-600" />
</div>
<p className="text-lg text-indigo-900 font-medium">{problem}</p>
</motion.div>
))}
</div>
</div>
{/* Right Image/Illustration */}
<motion.div
initial={{ opacity: 0, scale: 0.9 }}
whileInView={{ opacity: 1, scale: 1 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
className="flex-1 w-full"
>
<div className="relative rounded-[2.5rem] overflow-hidden shadow-2xl border-4 border-white bg-slate-100">
<img src="https://s3.seureview.com.br/festamagica/6a591904-cf2a-4a51-8581-1891373eea29/805441e0-925e-4674-b7b3-ba640431eeb1/topo-de-bolo.webp" alt="Solução mágica" className="w-full h-auto object-contain opacity-95 hover:scale-105 transition-transform duration-500" />
<div className="absolute inset-0 bg-indigo-950/10 mix-blend-multiply pointer-events-none" />
</div>
{/* Small floating badge */}
<div className="absolute top-[60%] sm:right-[10%] bg-white rounded-xl p-4 shadow-xl z-20 animate-bounce-slow">
<p className="text-indigo-900 font-bold text-sm">Fim da correria 😍</p>
</div>
</motion.div>
</div>
</div>
</section>
);
}

View file

@ -0,0 +1,59 @@
import { motion } from 'framer-motion';
import { Star, Heart } from 'lucide-react';
export default function Results() {
const textTestimonials = [
{ name: "Juliana Mendes", role: "Mãe do Pedro (4 anos)", avatar: "https://i.pravatar.cc/100?img=5", content: "Gente, eu não acreditei quando vi! O Pedro pirou quando viu ele vestido de astronauta no convite. Todo mundo da escola elogiou, foi muito incrível e super barato." },
{ name: "Camila V.", role: "Mãe da Alice (6 anos)", avatar: "https://i.pravatar.cc/100?img=9", content: "Eu tava desesperada porque deixei tudo pra última hora. Criei o kit, imprimi na gráfica da esquina e a festa ficou parecendo de decoradora cara. Salvaram a vida!" },
{ name: "Fernanda Costa", role: "Decoradora", avatar: "https://i.pravatar.cc/100?img=11", content: "Trabalho com festas e agora ofereço essa opção VIP para minhas clientes. A IA gera imagens perfeitas e de altíssima resolução. É o futuro da papelaria." },
{ name: "Amanda K.", role: "Mãe do Leo (2 anos)", avatar: "https://i.pravatar.cc/100?img=15", content: "A festinha foi na creche, fiz tudo na minha impressora de casa mesmo. Recortei e colei os rótulos de guaraná e as marmitinhas. Ficou um luxo, muito maravilhoso." },
];
return (
<section className="py-24 relative overflow-hidden bg-white" id="results">
<div className="container mx-auto px-6 max-w-6xl relative z-10">
<div className="text-center mb-16">
<h2 className="text-3xl md:text-5xl font-display font-bold mb-6 tracking-tight text-indigo-950">
Mamães <span className="text-pink-500">encantadas.</span>
</h2>
<p className="text-lg text-indigo-900/70 font-medium max-w-2xl mx-auto">
Veja quem transformou a festa dos filhos em um verdadeiro universo mágico Pixar!
</p>
</div>
{/* Text Testimonials */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8">
{textTestimonials.map((t, i) => (
<motion.div
key={i}
initial={{ opacity: 0, scale: 0.95 }}
whileInView={{ opacity: 1, scale: 1 }}
viewport={{ once: true }}
transition={{ delay: i * 0.1 }}
className="relative rounded-3xl p-8 border-2 border-pink-100 bg-pink-50/50 hover:bg-pink-100/50 transition-colors group shadow-sm hover:shadow-md"
>
<div className="absolute -top-4 -right-4 w-12 h-12 bg-white rounded-full flex items-center justify-center shadow-md rotate-12">
<Heart className="w-6 h-6 text-pink-500 fill-pink-500" />
</div>
<div className="flex items-center gap-1 mb-6">
{[...Array(5)].map((_, idx) => (
<Star key={idx} className="w-5 h-5 text-amber-400 fill-amber-400" />
))}
</div>
<p className="text-indigo-900 font-medium leading-relaxed mb-8 italic">
"{t.content}"
</p>
<div className="flex items-center gap-4 mt-auto">
<img src={t.avatar} className="w-14 h-14 rounded-full border-2 border-white shadow-sm" alt={t.name}/>
<div>
<h4 className="text-indigo-950 font-bold text-base">{t.name}</h4>
<span className="text-sm text-pink-600 font-medium">{t.role}</span>
</div>
</div>
</motion.div>
))}
</div>
</div>
</section>
);
}

View file

@ -0,0 +1,43 @@
import { useState, useEffect } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
import { Wand2 } from 'lucide-react';
export default function StickyMobileCTA() {
const [isVisible, setIsVisible] = useState(false);
useEffect(() => {
const handleScroll = () => {
// Show when scrolling down a bit (past the hero)
const scrolled = window.scrollY > 400;
// Hide if near the bottom (where the offer/footer is)
const bottom = Math.ceil(window.innerHeight + window.scrollY) >= document.documentElement.scrollHeight - 600;
setIsVisible(scrolled && !bottom);
};
window.addEventListener('scroll', handleScroll, { passive: true });
return () => window.removeEventListener('scroll', handleScroll);
}, []);
return (
<AnimatePresence>
{isVisible && (
<motion.div
initial={{ y: 100, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
exit={{ y: 100, opacity: 0 }}
transition={{ type: "spring", stiffness: 260, damping: 20 }}
className="fixed bottom-4 left-4 right-4 z-[100] md:hidden"
>
<a
href="#oferta"
className="w-full h-14 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-lg flex items-center justify-center gap-2 shadow-[0_10px_40px_-10px_rgba(236,72,153,0.8)] border border-white/20 active:scale-95 transition-transform"
>
Criar Minha Festa <Wand2 className="w-5 h-5" />
</a>
</motion.div>
)}
</AnimatePresence>
);
}

View file

@ -0,0 +1,71 @@
import { motion } from 'framer-motion';
import { Star } from 'lucide-react';
export default function Testimonials() {
const testimonials = [
{
name: "Sarah Jenkins",
role: "Creator & Founder",
content: "Lumina gave me the exact architecture I needed to scale my community to $50k/mo. The frameworks are plug-and-play and the results were immediate.",
avatar: "https://i.pravatar.cc/150?img=44"
},
{
name: "Marcus Chen",
role: "SaaS Entrepreneur",
content: "I've bought dozens of courses and tools. This is the only one that felt like an actual operating system for my business rather than just random tactics.",
avatar: "https://i.pravatar.cc/150?img=11"
},
{
name: "Elena Rodriguez",
role: "Design Educator",
content: "The aesthetic alone sold me, but the backend systems are what actually changed my business. My conversion rate doubled in two weeks.",
avatar: "https://i.pravatar.cc/150?img=5"
}
];
return (
<section className="py-24 overflow-hidden relative" id="testimonials">
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-white/5 blur-[120px] rounded-full pointer-events-none" />
<div className="container mx-auto px-6 max-w-7xl relative z-10">
<div className="text-center mb-16">
<h2 className="text-3xl md:text-5xl font-display font-medium mb-6 tracking-tight">
Trusted by top performers.
</h2>
<p className="text-lg text-muted-foreground font-light max-w-2xl mx-auto">
Join thousands of creators who have already transformed their digital businesses.
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
{testimonials.map((t, i) => (
<motion.div
key={i}
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.6, delay: i * 0.2 }}
className="p-8 rounded-3xl glass-panel relative group"
>
<div className="flex gap-1 mb-6">
{[...Array(5)].map((_, idx) => (
<Star key={idx} className="w-4 h-4 fill-white text-white" />
))}
</div>
<p className="text-lg font-light text-neutral-300 leading-relaxed mb-8">
"{t.content}"
</p>
<div className="flex items-center gap-4 mt-auto">
<img src={t.avatar} alt={t.name} className="w-12 h-12 rounded-full object-cover border border-white/20" />
<div>
<div className="font-medium text-white">{t.name}</div>
<div className="text-sm text-neutral-500">{t.role}</div>
</div>
</div>
</motion.div>
))}
</div>
</div>
</section>
);
}

View file

@ -0,0 +1,48 @@
import { useEffect } from 'react';
/**
* Esse hook procura por links de checkout (que saem da página) e
* adiciona os parâmetros de URL (como UTMs) no final desses links.
*
* Assim, se o usuário entra via:
* meusite.com/?utm_source=facebook&utm_medium=stories
*
* Quando ele clicar em "Comprar", o link de checkout receberá esses mesmos parâmetros,
* garantindo que a venda seja rastreada perfeitamente.
*/
export function useUTMForwarder() {
useEffect(() => {
// Pega todos os parâmetros atuais da URL da landing page (UTMs, src, sck, etc)
const urlParams = window.location.search;
if (!urlParams) return;
// Encontra todas as tags de link (<a>) na página
const links = document.querySelectorAll('a');
links.forEach(link => {
const href = link.getAttribute('href');
// Checa se é um link externo de checkout ou similar
// Exemplo: https://pay.kiwify.com.br, https://pay.hotmart.com, ou links com http
if (href && href.startsWith('http') && !href.includes(window.location.host)) {
try {
const urlObj = new URL(href);
// Pega os parâmetros existentes na landing page e repassa pro link final
const params = new URLSearchParams(urlParams);
params.forEach((value, key) => {
// Se o link de checkout já não tiver esse UTM, ele adiciona
if (!urlObj.searchParams.has(key)) {
urlObj.searchParams.append(key, value);
}
});
link.setAttribute('href', urlObj.toString());
} catch (e) {
console.error("Erro ao processar UTMs do link: ", e);
}
}
});
}, []);
}

72
src/index.css Normal file
View file

@ -0,0 +1,72 @@
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');
@import "tailwindcss";
@theme {
--color-background: #fdf2f8; /* pink-50 */
--color-foreground: #3730a3; /* indigo-800 */
--color-primary: #ec4899; /* pink-500 */
--color-primary-foreground: #ffffff;
--color-muted: #fce7f3; /* pink-100 */
--color-muted-foreground: #6366f1; /* indigo-500 */
--color-accent: #f87171; /* red-400 */
--color-accent-foreground: #ffffff;
--color-border: #fbcfe8; /* pink-200 */
--font-sans: "Quicksand", ui-sans-serif, system-ui, sans-serif;
--font-display: "Fredoka", ui-sans-serif, system-ui, sans-serif;
--animate-bounce-slow: bounce-slow 3s ease-in-out infinite;
--animate-float: float 4s ease-in-out infinite;
--animate-pulse-slow: pulse-slow 3s ease-in-out infinite alternate;
}
@layer base {
:root {
color-scheme: light;
scroll-behavior: smooth;
}
body {
background-color: var(--color-background);
color: var(--color-foreground);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-display);
font-weight: 600;
}
}
@layer utilities {
.text-gradient {
@apply bg-clip-text text-transparent bg-gradient-to-r from-pink-500 to-violet-500;
}
.glass-panel {
@apply bg-white/70 backdrop-blur-xl border border-white shadow-xl;
}
}
@keyframes bounce-slow {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-15px); }
}
@keyframes float {
0% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-10px) rotate(2deg); }
100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes pulse-slow {
from { opacity: 0.8; transform: scale(1); }
to { opacity: 1; transform: scale(1.05); }
}

6
src/lib/utils.ts Normal file
View file

@ -0,0 +1,6 @@
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}

10
src/main.tsx Normal file
View file

@ -0,0 +1,10 @@
import {StrictMode} from 'react';
import {createRoot} from 'react-dom/client';
import App from './App.tsx';
import './index.css';
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>,
);

26
tsconfig.json Normal file
View file

@ -0,0 +1,26 @@
{
"compilerOptions": {
"target": "ES2022",
"experimentalDecorators": true,
"useDefineForClassFields": false,
"module": "ESNext",
"lib": [
"ES2022",
"DOM",
"DOM.Iterable"
],
"skipLibCheck": true,
"moduleResolution": "bundler",
"isolatedModules": true,
"moduleDetection": "force",
"allowJs": true,
"jsx": "react-jsx",
"paths": {
"@/*": [
"./*"
]
},
"allowImportingTsExtensions": true,
"noEmit": true
}
}

24
vite.config.ts Normal file
View file

@ -0,0 +1,24 @@
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import {defineConfig, loadEnv} from 'vite';
export default defineConfig(({mode}) => {
const env = loadEnv(mode, '.', '');
return {
plugins: [react(), tailwindcss()],
define: {
'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY),
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
},
},
server: {
// HMR is disabled in AI Studio via DISABLE_HMR env var.
// Do not modify—file watching is disabled to prevent flickering during agent edits.
hmr: process.env.DISABLE_HMR !== 'true',
},
};
});