form added

This commit is contained in:
Paul Fresnel
2024-11-09 15:15:50 +01:00
parent b0acd90035
commit df3268f494
3 changed files with 218 additions and 4 deletions
+14 -1
View File
@@ -1,7 +1,12 @@
'use client'
import Link from 'next/link';
import Image from 'next/image';
import { useState } from 'react';
import LoyaltyCardForm from './LoyaltyCardForm';
const HomePage = () => {
const [isLoyaltyFormOpen, setIsLoyaltyFormOpen] = useState(false);
return (
<div className="min-h-screen">
{/* Hero Section */}
@@ -117,7 +122,10 @@ const HomePage = () => {
</div>
</div>
<button className="bg-white text-bakery-600 px-8 py-3 rounded-md hover:bg-bakery-50 transition">
<button
onClick={() => setIsLoyaltyFormOpen(true)}
className="bg-white text-bakery-600 px-8 py-3 rounded-md hover:bg-bakery-50 transition"
>
Obtenir ma carte
</button>
</div>
@@ -156,6 +164,11 @@ const HomePage = () => {
</div>
</div>
</section>
<LoyaltyCardForm
isOpen={isLoyaltyFormOpen}
onClose={() => setIsLoyaltyFormOpen(false)}
/>
</div>
);
};