diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index ac38f2c..508088f 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -38,7 +38,7 @@ export default function Layout() { @@ -25,6 +26,7 @@ export default function HomePage(): React.JSX.Element { + ); } diff --git a/src/pages/HomePage/sections/Testimonials.tsx b/src/pages/HomePage/sections/Testimonials.tsx index 6d48467..16d7afa 100644 --- a/src/pages/HomePage/sections/Testimonials.tsx +++ b/src/pages/HomePage/sections/Testimonials.tsx @@ -2,13 +2,7 @@ // @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body import Button from "@/components/ui/Button"; import TextAnimation from "@/components/ui/TextAnimation"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import GridOrCarousel from "@/components/ui/GridOrCarousel"; import ScrollReveal from "@/components/ui/ScrollReveal"; -import Input from "@/components/ui/Input"; -import Textarea from "@/components/ui/Textarea"; -import Label from "@/components/ui/Label"; -import { useState } from "react"; const testimonials = [ { @@ -43,41 +37,20 @@ const testimonials = [ } ]; -type Testimonial = { - name: string; - role: string; - quote: string; - rating: number; -}; - const TestimonialsInline = () => { - const [reviews, setReviews] = useState(testimonials); - const [name, setName] = useState(""); - const [quote, setQuote] = useState(""); - const [rating, setRating] = useState(5); - const [submitted, setSubmitted] = useState(false); - - const handleSubmit = (e: React.FormEvent) => { - e.preventDefault(); - if (name && quote) { - setReviews([{ name, role: "Nouveau client", quote, rating }, ...reviews]); - setSubmitted(true); - setName(""); - setQuote(""); - setRating(5); - setTimeout(() => setSubmitted(false), 4000); - } - }; - return ( -
+
+
🌸
+
🌺
+
🌼
+
🌻
-
+
@@ -96,104 +69,65 @@ const TestimonialsInline = () => {

-
- {submitted ? ( -
-
- ✓ -
-

Merci !

-

Votre avis a bien été publié et ajouté à la liste.

-
- ) : ( - <> -
- - setName(e.target.value)} - placeholder="Ex: Jean Dupont" - required={true} - className="bg-card border-none focus:ring-2 focus:ring-primary-cta rounded-xl py-3 px-4" - > -
- -
- -
- {[1, 2, 3, 4, 5].map((star) => ( - - ))} -
-
- -
- - -
- -
-
-
-

Derniers avis

-
- 4.5 - ★★★★½ - ({reviews.length} avis) +
+
+
+
+ {[1, 2, 3, 4, 5].map((star) => ( + + + + ))} +
+ 4.8
+ Basé sur 124 avis
- -
- {reviews.slice(0, 4).map((testimonial, idx) => ( + +
+ {testimonials.map((testimonial, idx) => ( -
-
-
- {Array.from({ length: 5 }).map((_, i) => ( - {i < testimonial.rating ? '★' : '☆'} - ))} +
+
+
+ {[...Array(5)].map((_, i) => ( + + + + ))} +
+

"{testimonial.quote}"

-

"{testimonial.quote}"

-
- {testimonial.name} - {testimonial.role} +
+
+ {testimonial.name.charAt(0)} +
+
+

{testimonial.name}

+

{testimonial.role}

+
))}
-
-)}; - -export default function TestimonialsSection() { - return ( -
- -
); } + +export default TestimonialsInline; \ No newline at end of file diff --git a/src/pages/HomePage/sections/WelcomeLoader.tsx b/src/pages/HomePage/sections/WelcomeLoader.tsx new file mode 100644 index 0000000..b9cd04b --- /dev/null +++ b/src/pages/HomePage/sections/WelcomeLoader.tsx @@ -0,0 +1,12 @@ +import LoaderReveal from "@/components/ui/LoaderReveal"; + +export default function WelcomeLoaderSection() { + return ( +
+ +
+ ); +} \ No newline at end of file