8 Commits

Author SHA1 Message Date
a46b807ba1 Update src/app/portfolio/page.tsx 2026-03-12 12:06:14 +00:00
c296e70f7e Merge version_4 into main
Merge version_4 into main
2026-03-12 12:01:34 +00:00
7a4ae10692 Update src/app/page.tsx 2026-03-12 12:01:30 +00:00
838b05d3a7 Merge version_3 into main
Merge version_3 into main
2026-03-12 11:59:00 +00:00
57d8ac7a2e Update src/app/page.tsx 2026-03-12 11:58:56 +00:00
9520661d18 Merge version_2 into main
Merge version_2 into main
2026-03-12 11:52:13 +00:00
21bdb1fe15 Merge version_2 into main
Merge version_2 into main
2026-03-12 11:23:23 +00:00
f30bc38c09 Merge version_2 into main
Merge version_2 into main
2026-03-12 11:22:58 +00:00
2 changed files with 422 additions and 44 deletions

View File

@@ -5,14 +5,21 @@ import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarS
import HeroSplitDualMedia from "@/components/sections/hero/HeroSplitDualMedia";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import FeatureCardSixteen from "@/components/sections/feature/FeatureCardSixteen";
import TestimonialCardOne from "@/components/sections/testimonial/TestimonialCardOne";
import TestimonialCardThirteen from "@/components/sections/testimonial/TestimonialCardThirteen";
import PricingCardNine from "@/components/sections/pricing/PricingCardNine";
import ContactText from "@/components/sections/contact/ContactText";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { Hammer, Wrench, CheckCircle, Camera, Star, Euro } from "lucide-react";
import Link from "next/link";
import { useState } from "react";
export default function HomePage() {
const [reviewSubmitted, setReviewSubmitted] = useState(false);
const [reviewError, setReviewError] = useState("");
const [formData, setFormData] = useState({
name: "", role: "", company: "", rating: 5,
testimonial: ""});
const navItems = [
{ name: "Accueil", id: "home" },
{ name: "Services", id: "services" },
@@ -55,6 +62,38 @@ export default function HomePage() {
},
];
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => {
const { name, value } = e.target;
setFormData((prev) => ({
...prev,
[name]: name === "rating" ? parseInt(value) : value,
}));
};
const handleSubmitReview = (e: React.FormEvent) => {
e.preventDefault();
setReviewError("");
if (!formData.name.trim() || !formData.testimonial.trim() || !formData.role.trim() || !formData.company.trim()) {
setReviewError("Tous les champs sont obligatoires.");
return;
}
if (formData.testimonial.length < 10) {
setReviewError("Veuillez écrire au moins 10 caractères pour votre avis.");
return;
}
setReviewSubmitted(true);
setFormData({
name: "", role: "", company: "", rating: 5,
testimonial: ""});
setTimeout(() => {
setReviewSubmitted(false);
}, 5000);
};
return (
<ThemeProvider
defaultButtonVariant="directional-hover"
@@ -180,32 +219,26 @@ export default function HomePage() {
</div>
<div id="portfolio" data-section="portfolio">
<TestimonialCardOne
<TestimonialCardThirteen
title="Nos Réalisations"
description="Découvrez nos projets réussis et les transformations que nous avons accomplies pour nos clients."
tag="Portfolio"
tagIcon={Camera}
testimonials={[
{
id: "1", name: "Rénovation Complète", role: "Appartement - Bruxelles", company: "2025", rating: 5,
videoSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ad6CnlkMmKxHjsaejfvDw57RRf/uploaded-1773316062829-hhoyjsny.mp4", imageAlt: "Rénovation complète intérieur maison bruxelles"},
id: "1", name: "Rénovation Complète", handle: "Appartement - Bruxelles", testimonial: "Projet de rénovation complète intérieur", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/long-shot-men-working-roof_23-2149343678.jpg?_wi=1"},
{
id: "2", name: "Extension Résidentielle", role: "Addition 50m² - Liège", company: "2025", rating: 5,
videoSrc: "https://www.youtube.com/embed/dQw4w9WgXcQ?_wi=1", videoAriaLabel: "Vidéo extension résidentielle Liège"},
id: "2", name: "Extension Résidentielle", handle: "Addition 50m² - Liège", testimonial: "Extension moderne de 50 mètres carrés", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/unfinished-brick-structure-with-view-lush-greenery_632498-60860.jpg?_wi=1"},
{
id: "3", name: "Terrasse Extérieure", role: "Piscine & Terrasse - Namur", company: "2023", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/outdoor-swimming-pool_1203-2669.jpg?_wi=1", imageAlt: "Terrasse piscine extérieur namur belgique"},
id: "3", name: "Terrasse Extérieure", handle: "Piscine & Terrasse - Namur", testimonial: "Création d'espace extérieur avec piscine", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/outdoor-swimming-pool_1203-2669.jpg?_wi=1"},
{
id: "4", name: "Construction Neuve", role: "Maison moderne 150m² - Charleroi", company: "2023", rating: 5,
videoSrc: "https://www.youtube.com/embed/jNQXAC9IVRw?_wi=1", videoAriaLabel: "Vidéo construction maison neuve Charleroi"},
{
id: "5", name: "Rénovation Toiture", role: "Toiture complète - Anvers", company: "2023", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/man-working-outdoors-high-angle_23-2149714277.jpg?_wi=1", imageAlt: "Rénovation toiture ardoise anvers belgique"},
{
id: "6", name: "Aménagement Extérieur", role: "Jardin paysager - Mons", company: "2023", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/table-chair-with-white-umbrella-outdoor-patio_74190-1917.jpg?_wi=1", imageAlt: "Jardin paysager aménagement mons belgique"},
id: "4", name: "Construction Neuve", handle: "Maison moderne 150m² - Charleroi", testimonial: "Construction neuve maison individuelle", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/vintage-architecture-classical-facade-building_158595-6439.jpg?_wi=1"},
]}
gridVariant="three-columns-all-equal-width"
showRating={true}
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
@@ -214,36 +247,180 @@ export default function HomePage() {
</div>
<div id="testimonials" data-section="testimonials">
<TestimonialCardOne
title="Avis de Nos Clients"
description="Les témoignages authentiques de clients satisfaits qui ont fait confiance à Webild Construction."
tag="Témoignages"
tagIcon={Star}
testimonials={[
{
id: "1", name: "Marc Dupont", role: "Propriétaire", company: "Bruxelles", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-handsome-bearded-african-american-businessman-brown-classic-jacket-isolated-dark-background_613910-6626.jpg", imageAlt: "Portrait homme client satisfait sourire"},
{
id: "2", name: "Sophie Bernard", role: "Propriétaire", company: "Liège", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/outdoors-background-hairstyle-one-zipper_1139-779.jpg", imageAlt: "Portrait femme propriétaire satisfaction sourire"},
{
id: "3", name: "Jean-Pierre Martin", role: "Propriétaire", company: "Namur", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-elderly-man-taking-stroll_23-2150233326.jpg", imageAlt: "Portrait homme senior propriétaire belgique"},
{
id: "4", name: "Catherine Lefevre", role: "Propriétaire", company: "Charleroi", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/pretty-woman-doing-okay-symbol_1187-3855.jpg", imageAlt: "Portrait femme charleroi proprietaire satisfaction"},
]}
gridVariant="uniform-all-items-equal"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
tagAnimation="slide-up"
/>
<div className="w-full py-20 px-4 md:px-8">
<div className="max-w-6xl mx-auto">
{/* Header Section */}
<div className="text-center mb-16">
<div className="inline-flex items-center gap-2 mb-4 px-4 py-2 rounded-full bg-[var(--accent)] text-[var(--background)]">
<Star size={16} />
<span className="text-sm font-medium">Témoignages</span>
</div>
<h2 className="text-3xl md:text-5xl font-bold mb-4 text-[var(--foreground)]">Avis de Nos Clients</h2>
<p className="text-lg text-[var(--foreground)] opacity-75 max-w-2xl mx-auto">
Partagez votre expérience avec Webild Construction. Vos avis nous aident à continuer à améliorer nos services.
</p>
</div>
<div className="grid md:grid-cols-2 gap-12">
{/* Review Form */}
<div className="bg-[var(--card)] rounded-2xl p-8 border border-[var(--accent)] border-opacity-20">
<h3 className="text-2xl font-bold mb-6 text-[var(--foreground)]">Soumettre un Avis</h3>
{reviewSubmitted ? (
<div className="bg-green-50 border border-green-200 rounded-lg p-6 text-center">
<p className="text-green-800 font-semibold mb-2"> Merci pour votre avis!</p>
<p className="text-green-700 text-sm">Votre témoignage a é reçu avec succès. Nous l'examinerons avant de le publier.</p>
</div>
) : (
<form onSubmit={handleSubmitReview} className="space-y-4">
{reviewError && (
<div className="bg-red-50 border border-red-200 rounded-lg p-4">
<p className="text-red-800 text-sm">{reviewError}</p>
</div>
)}
<div>
<label className="block text-sm font-medium text-[var(--foreground)] mb-2">
Votre Nom *
</label>
<input
type="text"
name="name"
value={formData.name}
onChange={handleInputChange}
placeholder="Jean Dupont"
className="w-full px-4 py-3 rounded-lg border border-[var(--accent)] border-opacity-30 bg-[var(--background)] text-[var(--foreground)] placeholder-[var(--foreground)] placeholder-opacity-50 focus:outline-none focus:border-[var(--primary-cta)]"
/>
</div>
<div>
<label className="block text-sm font-medium text-[var(--foreground)] mb-2">
Votre Poste *
</label>
<input
type="text"
name="role"
value={formData.role}
onChange={handleInputChange}
placeholder="Propriétaire / Chef de projet"
className="w-full px-4 py-3 rounded-lg border border-[var(--accent)] border-opacity-30 bg-[var(--background)] text-[var(--foreground)] placeholder-[var(--foreground)] placeholder-opacity-50 focus:outline-none focus:border-[var(--primary-cta)]"
/>
</div>
<div>
<label className="block text-sm font-medium text-[var(--foreground)] mb-2">
Votre Ville/Entreprise *
</label>
<input
type="text"
name="company"
value={formData.company}
onChange={handleInputChange}
placeholder="Bruxelles / Mon Entreprise"
className="w-full px-4 py-3 rounded-lg border border-[var(--accent)] border-opacity-30 bg-[var(--background)] text-[var(--foreground)] placeholder-[var(--foreground)] placeholder-opacity-50 focus:outline-none focus:border-[var(--primary-cta)]"
/>
</div>
<div>
<label className="block text-sm font-medium text-[var(--foreground)] mb-2">
Notation *
</label>
<div className="flex gap-2">
{[1, 2, 3, 4, 5].map((star) => (
<button
key={star}
type="button"
onClick={() =>
setFormData((prev) => ({ ...prev, rating: star }))
}
className={`text-3xl transition-colors ${
star <= formData.rating
? "text-yellow-400"
: "text-gray-300"
}`}
>
</button>
))}
</div>
</div>
<div>
<label className="block text-sm font-medium text-[var(--foreground)] mb-2">
Votre Avis *
</label>
<textarea
name="testimonial"
value={formData.testimonial}
onChange={handleInputChange}
placeholder="Partagez votre expérience avec Webild Construction..."
rows={5}
className="w-full px-4 py-3 rounded-lg border border-[var(--accent)] border-opacity-30 bg-[var(--background)] text-[var(--foreground)] placeholder-[var(--foreground)] placeholder-opacity-50 focus:outline-none focus:border-[var(--primary-cta)] resize-none"
/>
</div>
<button
type="submit"
className="w-full px-6 py-3 rounded-lg bg-[var(--primary-cta)] text-[var(--primary-cta-text)] font-semibold hover:opacity-90 transition-opacity"
>
Soumettre mon Avis
</button>
</form>
)}
</div>
{/* Testimonials Display */}
<div className="space-y-6">
<h3 className="text-2xl font-bold text-[var(--foreground)] mb-6">Témoignages Récents</h3>
<div className="space-y-4">
<div className="bg-[var(--card)] rounded-lg p-6 border border-[var(--accent)] border-opacity-20">
<div className="flex gap-1 mb-3">
{[...Array(5)].map((_, i) => (
<Star key={i} size={16} className="fill-yellow-400 text-yellow-400" />
))}
</div>
<p className="text-[var(--foreground)] mb-4">
"Excellent travail! L'équipe Webild a complètement transformé notre maison. Professionnels, à l'écoute et respectueux des délais."
</p>
<p className="font-semibold text-[var(--foreground)]">Marc Dupont</p>
<p className="text-sm text-[var(--foreground)] opacity-60">Propriétaire, Bruxelles</p>
</div>
<div className="bg-[var(--card)] rounded-lg p-6 border border-[var(--accent)] border-opacity-20">
<div className="flex gap-1 mb-3">
{[...Array(5)].map((_, i) => (
<Star key={i} size={16} className="fill-yellow-400 text-yellow-400" />
))}
</div>
<p className="text-[var(--foreground)] mb-4">
"Nous recommandons vivement Webild Construction. Devis clair, communication excellente et résultat final impeccable."
</p>
<p className="font-semibold text-[var(--foreground)]">Sophie Bernard</p>
<p className="text-sm text-[var(--foreground)] opacity-60">Chef de projet, Liège</p>
</div>
<div className="bg-[var(--card)] rounded-lg p-6 border border-[var(--accent)] border-opacity-20">
<div className="flex gap-1 mb-3">
{[...Array(5)].map((_, i) => (
<Star key={i} size={16} className="fill-yellow-400 text-yellow-400" />
))}
</div>
<p className="text-[var(--foreground)] mb-4">
"Service impeccable du début à la fin. L'équipe est très professionnelle et attentive au détail. Nous sommes très satisfaits."
</p>
<p className="font-semibold text-[var(--foreground)]">Jean-Pierre Martin</p>
<p className="text-sm text-[var(--foreground)] opacity-60">Propriétaire, Namur</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="cta" data-section="cta">
<ContactText
text="Prêt à débuter votre projet de construction ou rénovation? Contactez-nous dès aujourd'hui pour un devis gratuit et personnalisé."
text="Obtenez votre devis gratuit en 24h - Transformation de votre projet garantie. Contactez-nous dès aujourd'hui pour un accompagnement professionnel et transparent."
animationType="entrance-slide"
background={{ variant: "plain" }}
useInvertedBackground={false}

View File

@@ -6,7 +6,8 @@ import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarS
import TestimonialCardOne from "@/components/sections/testimonial/TestimonialCardOne";
import ContactText from "@/components/sections/contact/ContactText";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { Camera } from "lucide-react";
import { Camera, Upload, Trash2 } from "lucide-react";
import { useState } from "react";
export default function PortfolioPage() {
const navItems = [
@@ -51,6 +52,58 @@ export default function PortfolioPage() {
},
];
const [uploadedMedia, setUploadedMedia] = useState<
Array<{ id: string; type: "photo" | "video"; src: string; name: string }>
>([]);
const [uploadError, setUploadError] = useState("");
const [uploadSuccess, setUploadSuccess] = useState(false);
const handleMediaUpload = (
e: React.ChangeEvent<HTMLInputElement>,
mediaType: "photo" | "video"
) => {
setUploadError("");
setUploadSuccess(false);
const files = e.target.files;
if (!files) return;
Array.from(files).forEach((file) => {
const validPhotoTypes = ["image/jpeg", "image/png", "image/webp"];
const validVideoTypes = ["video/mp4", "video/webm", "video/ogg"];
const isValidPhoto = mediaType === "photo" && validPhotoTypes.includes(file.type);
const isValidVideo = mediaType === "video" && validVideoTypes.includes(file.type);
if (!isValidPhoto && !isValidVideo) {
setUploadError(`Type de fichier non supporté: ${file.type}`);
return;
}
if (file.size > 50 * 1024 * 1024) {
setUploadError("Le fichier est trop volumineux (max 50MB)");
return;
}
const reader = new FileReader();
reader.onload = () => {
const newMedia = {
id: Date.now().toString(),
type: mediaType,
src: reader.result as string,
name: file.name,
};
setUploadedMedia((prev) => [...prev, newMedia]);
setUploadSuccess(true);
setTimeout(() => setUploadSuccess(false), 3000);
};
reader.readAsDataURL(file);
});
};
const handleDeleteMedia = (id: string) => {
setUploadedMedia((prev) => prev.filter((media) => media.id !== id));
};
return (
<ThemeProvider
defaultButtonVariant="directional-hover"
@@ -109,6 +162,154 @@ export default function PortfolioPage() {
/>
</div>
{/* Media Upload and Management Section */}
<div id="media-manager" data-section="media-manager">
<div className="w-full py-20 px-4 md:px-8">
<div className="max-w-6xl mx-auto">
{/* Header */}
<div className="text-center mb-16">
<div className="inline-flex items-center gap-2 mb-4 px-4 py-2 rounded-full bg-[var(--accent)] text-[var(--background)]">
<Upload size={16} />
<span className="text-sm font-medium">Gestion des Médias</span>
</div>
<h2 className="text-3xl md:text-5xl font-bold mb-4 text-[var(--foreground)]">
Galerie des Projets Réalisés
</h2>
<p className="text-lg text-[var(--foreground)] opacity-75 max-w-2xl mx-auto">
Téléchargez et gérez les photos et vidéos de vos projets complétés. Présentez votre portefeuille aux clients potentiels.
</p>
</div>
<div className="grid md:grid-cols-3 gap-8">
{/* Upload Section */}
<div className="md:col-span-1 space-y-6">
{/* Photo Upload */}
<div className="bg-[var(--card)] rounded-2xl p-8 border border-[var(--accent)] border-opacity-20">
<h3 className="text-lg font-bold mb-4 text-[var(--foreground)] flex items-center gap-2">
<Camera size={20} />
Télécharger des Photos
</h3>
<label className="flex flex-col items-center justify-center w-full h-32 border-2 border-dashed border-[var(--accent)] border-opacity-40 rounded-lg cursor-pointer hover:border-opacity-60 transition-all">
<div className="flex flex-col items-center justify-center pt-5 pb-6">
<Upload size={24} className="text-[var(--primary-cta)] mb-2" />
<p className="text-sm text-[var(--foreground)] opacity-75 text-center">
Cliquez pour télécharger<br />
<span className="text-xs">(JPG, PNG, WebP)</span>
</p>
</div>
<input
type="file"
multiple
accept="image/*"
onChange={(e) => handleMediaUpload(e, "photo")}
className="hidden"
aria-label="Télécharger des photos"
/>
</label>
</div>
{/* Video Upload */}
<div className="bg-[var(--card)] rounded-2xl p-8 border border-[var(--accent)] border-opacity-20">
<h3 className="text-lg font-bold mb-4 text-[var(--foreground)] flex items-center gap-2">
<Camera size={20} />
Télécharger des Vidéos
</h3>
<label className="flex flex-col items-center justify-center w-full h-32 border-2 border-dashed border-[var(--accent)] border-opacity-40 rounded-lg cursor-pointer hover:border-opacity-60 transition-all">
<div className="flex flex-col items-center justify-center pt-5 pb-6">
<Upload size={24} className="text-[var(--primary-cta)] mb-2" />
<p className="text-sm text-[var(--foreground)] opacity-75 text-center">
Cliquez pour télécharger<br />
<span className="text-xs">(MP4, WebM, OGG)</span>
</p>
</div>
<input
type="file"
multiple
accept="video/*"
onChange={(e) => handleMediaUpload(e, "video")}
className="hidden"
aria-label="Télécharger des vidéos"
/>
</label>
</div>
{/* Feedback Messages */}
{uploadError && (
<div className="bg-red-50 border border-red-200 rounded-lg p-4">
<p className="text-red-800 text-sm">{uploadError}</p>
</div>
)}
{uploadSuccess && (
<div className="bg-green-50 border border-green-200 rounded-lg p-4">
<p className="text-green-800 text-sm font-semibold"> Fichier uploadé avec succès!</p>
</div>
)}
</div>
{/* Media Gallery */}
<div className="md:col-span-2">
<div className="bg-[var(--card)] rounded-2xl p-8 border border-[var(--accent)] border-opacity-20">
<h3 className="text-2xl font-bold mb-6 text-[var(--foreground)]">
Galerie ({uploadedMedia.length})
</h3>
{uploadedMedia.length === 0 ? (
<div className="text-center py-12">
<Camera size={48} className="mx-auto text-[var(--accent)] opacity-30 mb-4" />
<p className="text-[var(--foreground)] opacity-60">
Aucun média téléchargé. Commencez par ajouter des photos ou des vidéos de vos projets.
</p>
</div>
) : (
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
{uploadedMedia.map((media) => (
<div
key={media.id}
className="relative group rounded-lg overflow-hidden border border-[var(--accent)] border-opacity-20"
>
{media.type === "photo" ? (
<img
src={media.src}
alt={media.name}
className="w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300"
/>
) : (
<video
src={media.src}
controls
className="w-full h-48 object-cover bg-black"
aria-label={media.name}
/>
)}
<div className="absolute inset-0 bg-black opacity-0 group-hover:opacity-40 transition-opacity duration-300" />
{/* Delete Button */}
<button
onClick={() => handleDeleteMedia(media.id)}
className="absolute top-2 right-2 p-2 bg-red-500 hover:bg-red-600 text-white rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-300"
aria-label={`Supprimer ${media.name}`}
>
<Trash2 size={16} />
</button>
{/* File Info */}
<div className="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black to-transparent p-4 text-white opacity-0 group-hover:opacity-100 transition-opacity duration-300">
<p className="text-sm font-semibold truncate">{media.name}</p>
<p className="text-xs opacity-75">
{media.type === "photo" ? "Photo" : "Vidéo"}
</p>
</div>
</div>
))}
</div>
)}
</div>
</div>
</div>
</div>
</div>
</div>
{/* CTA Section */}
<div id="cta" data-section="cta">
<ContactText