Page Historic

This commit is contained in:
2026-02-24 17:26:23 +01:00
parent 6299f0a556
commit b841e01124
16 changed files with 788 additions and 19 deletions
+49
View File
@@ -10,6 +10,7 @@
"dependencies": {
"@gsap/react": "^2.1.2",
"@tailwindcss/postcss": "^4.2.1",
"framer-motion": "^12.34.3",
"gsap": "^3.14.2",
"react": "^19.2.0",
"react-dom": "^19.2.0",
@@ -2749,6 +2750,33 @@
"url": "https://github.com/sponsors/rawify"
}
},
"node_modules/framer-motion": {
"version": "12.34.3",
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.34.3.tgz",
"integrity": "sha512-v81ecyZKYO/DfpTwHivqkxSUBzvceOpoI+wLfgCgoUIKxlFKEXdg0oR9imxwXumT4SFy8vRk9xzJ5l3/Du/55Q==",
"license": "MIT",
"dependencies": {
"motion-dom": "^12.34.3",
"motion-utils": "^12.29.2",
"tslib": "^2.4.0"
},
"peerDependencies": {
"@emotion/is-prop-valid": "*",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@emotion/is-prop-valid": {
"optional": true
},
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
}
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
@@ -3316,6 +3344,21 @@
"node": "*"
}
},
"node_modules/motion-dom": {
"version": "12.34.3",
"resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.34.3.tgz",
"integrity": "sha512-sYgFe+pR9aIM7o4fhs2aXtOI+oqlUd33N9Yoxcgo1Fv7M20sRkHtCmzE/VRNIcq7uNJ+qio+Xubt1FXH3pQ+eQ==",
"license": "MIT",
"dependencies": {
"motion-utils": "^12.29.2"
}
},
"node_modules/motion-utils": {
"version": "12.29.2",
"resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.29.2.tgz",
"integrity": "sha512-G3kc34H2cX2gI63RqU+cZq+zWRRPSsNIOjpdl9TN4AQwC4sgwYPl/Q/Obf/d53nOm569T0fYK+tcoSV50BWx8A==",
"license": "MIT"
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -3799,6 +3842,12 @@
"typescript": ">=4.8.4"
}
},
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
"license": "0BSD"
},
"node_modules/type-check": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+1
View File
@@ -12,6 +12,7 @@
"dependencies": {
"@gsap/react": "^2.1.2",
"@tailwindcss/postcss": "^4.2.1",
"framer-motion": "^12.34.3",
"gsap": "^3.14.2",
"react": "^19.2.0",
"react-dom": "^19.2.0",
+14
View File
@@ -0,0 +1,14 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Empêcher les boucles infinies sur index.html
RewriteRule ^index\.html$ - [L]
# Si le fichier ou le dossier n'existe pas physiquement
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# On redirige vers index.html (sans le slash devant index pour plus de compatibilité)
RewriteRule . index.html [L]
</IfModule>
Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

+1 -1
View File
@@ -13,7 +13,7 @@ function App() {
<Route path="/" element={<Home />} />
<Route path="a-propos" element={<About />} />
<Route path="evenements" element={<Events />} />
<Route path="historique" element={<Historic />} />
<Route path="notre-histoire" element={<Historic />} />
</Route>
</Routes>
</BrowserRouter>
+136
View File
@@ -0,0 +1,136 @@
import { useState } from "react";
import { motion, AnimatePresence } from "framer-motion";
// Modèle de données pour un post Facebook
interface FacebookPost {
id: number;
date: string;
content: string;
imageSrc: string;
link: string;
}
// Fausses données (en attendant la connexion API ou le widget)
const mockPosts: FacebookPost[] = [
{
id: 1,
date: "Il y a 2 jours",
content:
"Un immense merci aux bénévoles présents ce matin pour la préparation des 50 nouveaux colis à destination de l'Ukraine ! 🌻📦",
imageSrc: "/historique/pam-aerien.jpg", // Mets une vraie image de test
link: "https://www.facebook.com",
},
{
id: 2,
date: "La semaine dernière",
content:
"Retour en images sur notre superbe atelier de peinture traditionnelle de Pâques (Pysanka). Merci aux enfants pour leur créativité ! 🎨",
imageSrc: "/historique/premier-evenement.jpg",
link: "https://www.facebook.com",
},
{
id: 3,
date: "Il y a 2 semaines",
content:
"Le camion est bien arrivé ! La génératrice a pu être livrée à l'hôpital de Kharkiv. Merci à tous nos donateurs. 💙💛",
imageSrc: "/historique/dernier-evenement.jpg",
link: "https://www.facebook.com",
},
];
export default function FacebookCarousel() {
const [currentIndex, setCurrentIndex] = useState(0);
const nextPost = () => {
setCurrentIndex((prev) => (prev === mockPosts.length - 1 ? 0 : prev + 1));
};
const prevPost = () => {
setCurrentIndex((prev) => (prev === 0 ? mockPosts.length - 1 : prev - 1));
};
return (
<div className="w-full max-w-5xl mx-auto px-4">
{/* En-tête du Carrousel */}
<div className="flex flex-col md:flex-row justify-between items-end mb-10 gap-6">
<div>
<h2 className="text-4xl md:text-5xl font-bold text-primary mb-4">
Actualités
</h2>
<p className="text-xl text-site-text font-medium">
Suivez nos dernières actions en direct sur Facebook.
</p>
</div>
{/* Flèches de navigation */}
<div className="flex gap-4">
<button
onClick={prevPost}
className="w-12 h-12 rounded-full border-2 border-primary text-primary flex items-center justify-center hover:bg-primary hover:text-white transition-colors"
aria-label="Précédent"
>
←
</button>
<button
onClick={nextPost}
className="w-12 h-12 rounded-full bg-primary text-white flex items-center justify-center hover:bg-hover-nav hover:text-primary transition-colors shadow-md"
aria-label="Suivant"
>
→
</button>
</div>
</div>
{/* Zone du Carrousel */}
<div className="relative h-112.5 w-full overflow-hidden rounded-[30px] bg-bg-2 shadow-inner border border-primary/10">
<AnimatePresence mode="wait">
<motion.div
key={currentIndex}
initial={{ opacity: 0, x: 50 }}
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: -50 }}
transition={{ duration: 0.3, ease: "easeInOut" }}
className="absolute inset-0 flex flex-col md:flex-row h-full"
>
{/* Image du Post */}
<div className="w-full md:w-1/2 h-48 md:h-full overflow-hidden">
<img
src={mockPosts[currentIndex].imageSrc}
alt="Illustration du post"
className="w-full h-full object-cover"
/>
</div>
{/* Contenu du Post */}
<div className="w-full md:w-1/2 h-full flex flex-col justify-center p-8 md:p-12 bg-white">
<div className="flex items-center gap-3 mb-6">
<div className="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center text-white font-bold">
f
</div>
<div>
<h3 className="font-bold text-primary">Cœur UA PAM</h3>
<span className="text-sm text-site-text/70">
{mockPosts[currentIndex].date}
</span>
</div>
</div>
<p className="text-lg text-site-text leading-relaxed mb-8 italic">
"{mockPosts[currentIndex].content}"
</p>
<a
href={mockPosts[currentIndex].link}
target="_blank"
rel="noopener noreferrer"
className="inline-block self-start px-6 py-3 rounded-full bg-bg-2 text-primary font-bold hover:bg-primary hover:text-white transition-colors border border-primary/10"
>
Voir sur Facebook
</a>
</div>
</motion.div>
</AnimatePresence>
</div>
</div>
);
}
+351
View File
@@ -0,0 +1,351 @@
import React, { useState, Children, useRef, useLayoutEffect } from "react";
import type { HTMLAttributes, ReactNode } from "react";
import { motion, AnimatePresence } from "framer-motion";
import type { Variants } from "framer-motion";
export interface StepperProps extends HTMLAttributes<HTMLDivElement> {
children: ReactNode;
initialStep?: number;
onStepChange?: (step: number) => void;
onFinalStepCompleted?: () => void;
stepCircleContainerClassName?: string;
stepContainerClassName?: string;
contentClassName?: string;
footerClassName?: string;
backButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
nextButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
backButtonText?: string;
nextButtonText?: string;
disableStepIndicators?: boolean;
renderStepIndicator?: (props: {
step: number;
currentStep: number;
onStepClick: (clicked: number) => void;
}) => ReactNode;
}
export default function Stepper({
children,
initialStep = 1,
onStepChange = () => {},
onFinalStepCompleted = () => {},
stepCircleContainerClassName = "",
stepContainerClassName = "",
contentClassName = "",
footerClassName = "",
backButtonProps = {},
nextButtonProps = {},
backButtonText = "Retour",
nextButtonText = "Suivant",
disableStepIndicators = false,
renderStepIndicator,
...rest
}: StepperProps) {
const [currentStep, setCurrentStep] = useState<number>(initialStep);
const [direction, setDirection] = useState<number>(0);
const stepsArray = Children.toArray(children);
const totalSteps = stepsArray.length;
const isCompleted = currentStep > totalSteps;
const isLastStep = currentStep === totalSteps;
const updateStep = (newStep: number) => {
setCurrentStep(newStep);
if (newStep > totalSteps) {
onFinalStepCompleted();
} else {
onStepChange(newStep);
}
};
const handleBack = () => {
if (currentStep > 1) {
setDirection(-1);
updateStep(currentStep - 1);
}
};
const handleNext = () => {
if (!isLastStep) {
setDirection(1);
updateStep(currentStep + 1);
}
};
const handleComplete = () => {
setDirection(1);
updateStep(totalSteps + 1);
};
return (
<div
className="flex min-h-full flex-1 flex-col items-center justify-center py-4 w-full"
{...rest}
>
<div
className={`w-full bg-white py-4 ${stepCircleContainerClassName}`}
style={{
borderTop: "1px solid #e5e7eb",
borderBottom: "1px solid #e5e7eb",
}}
>
<div
className={`${stepContainerClassName} flex w-full items-center p-8 md:p-12`}
>
{stepsArray.map((_, index) => {
const stepNumber = index + 1;
const isNotLastStep = index < totalSteps - 1;
return (
<React.Fragment key={stepNumber}>
{renderStepIndicator ? (
renderStepIndicator({
step: stepNumber,
currentStep,
onStepClick: (clicked: number) => {
setDirection(clicked > currentStep ? 1 : -1);
updateStep(clicked);
},
})
) : (
<StepIndicator
step={stepNumber}
disableStepIndicators={disableStepIndicators}
currentStep={currentStep}
onClickStep={(clicked: number) => {
setDirection(clicked > currentStep ? 1 : -1);
updateStep(clicked);
}}
/>
)}
{isNotLastStep && (
<StepConnector isComplete={currentStep > stepNumber} />
)}
</React.Fragment>
);
})}
</div>
<StepContentWrapper
isCompleted={isCompleted}
currentStep={currentStep}
direction={direction}
className={`space-y-2 px-8 md:px-12 ${contentClassName}`}
>
{stepsArray[currentStep - 1]}
</StepContentWrapper>
{!isCompleted && (
<div className={`px-8 md:px-12 pb-8 md:pb-12 ${footerClassName}`}>
<div
className={`mt-10 flex ${currentStep !== 1 ? "justify-between" : "justify-end"}`}
>
{currentStep !== 1 && (
<button
onClick={handleBack}
className={`duration-350 rounded-full px-6 py-2 transition font-medium border-2 ${
currentStep === 1
? "pointer-events-none opacity-50 text-neutral-400 border-neutral-200"
: "text-primary border-primary hover:bg-primary/5"
}`}
{...backButtonProps}
>
{backButtonText}
</button>
)}
<button
onClick={isLastStep ? handleComplete : handleNext}
className="duration-350 flex items-center justify-center rounded-full bg-primary px-8 py-2 font-bold tracking-wide text-white transition hover:bg-hover-nav hover:text-primary shadow-lg"
{...nextButtonProps}
>
{isLastStep ? "Terminer" : nextButtonText}
</button>
</div>
</div>
)}
</div>
</div>
);
}
// Interfaces manquantes ajoutées pour remplacer les "any"
interface StepContentWrapperProps {
isCompleted: boolean;
currentStep: number;
direction: number;
children: ReactNode;
className?: string;
}
function StepContentWrapper({
isCompleted,
currentStep,
direction,
children,
className = "",
}: StepContentWrapperProps) {
const [parentHeight, setParentHeight] = useState<number>(0);
return (
<motion.div
style={{ position: "relative", overflow: "hidden" }}
animate={{ height: isCompleted ? 0 : parentHeight }}
transition={{ type: "spring", duration: 0.4 }}
className={className}
>
<AnimatePresence initial={false} mode="sync" custom={direction}>
{!isCompleted && (
<SlideTransition
key={currentStep}
direction={direction}
onHeightReady={(h: number) => setParentHeight(h)}
>
{children}
</SlideTransition>
)}
</AnimatePresence>
</motion.div>
);
}
interface SlideTransitionProps {
children: ReactNode;
direction: number;
onHeightReady: (height: number) => void;
}
function SlideTransition({
children,
direction,
onHeightReady,
}: SlideTransitionProps) {
const containerRef = useRef<HTMLDivElement | null>(null);
useLayoutEffect(() => {
if (containerRef.current) {
onHeightReady(containerRef.current.offsetHeight);
}
}, [children, onHeightReady]);
return (
<motion.div
ref={containerRef}
custom={direction}
variants={stepVariants}
initial="enter"
animate="center"
exit="exit"
transition={{ duration: 0.4 }}
style={{ position: "absolute", left: 0, right: 0, top: 0 }}
>
{children}
</motion.div>
);
}
const stepVariants: Variants = {
enter: (dir: number) => ({ x: dir >= 0 ? "100%" : "-100%", opacity: 0 }),
center: { x: "0%", opacity: 1 },
exit: (dir: number) => ({ x: dir >= 0 ? "-50%" : "50%", opacity: 0 }),
};
export function Step({ children }: { children: ReactNode }) {
return <div className="px-2">{children}</div>;
}
interface StepIndicatorProps {
step: number;
currentStep: number;
onClickStep: (clicked: number) => void;
disableStepIndicators?: boolean;
}
function StepIndicator({
step,
currentStep,
onClickStep,
disableStepIndicators = false,
}: StepIndicatorProps) {
const status =
currentStep === step
? "active"
: currentStep < step
? "inactive"
: "complete";
const handleClick = () => {
if (step !== currentStep && !disableStepIndicators) onClickStep(step);
};
return (
<motion.div
onClick={handleClick}
className="relative cursor-pointer outline-none focus:outline-none"
animate={status}
initial={false}
>
<motion.div
variants={{
inactive: { scale: 1, backgroundColor: "#f1e6d3", color: "#1a247f" },
active: { scale: 1.1, backgroundColor: "#1a247f", color: "#1a247f" },
complete: { scale: 1, backgroundColor: "#1a247f", color: "#dfbe85" },
}}
transition={{ duration: 0.3 }}
className="flex h-10 w-10 items-center justify-center rounded-full font-bold shadow-md"
>
{status === "complete" ? (
<CheckIcon className="h-5 w-5 text-white" />
) : status === "active" ? (
<div className="h-3 w-3 rounded-full bg-white" />
) : (
<span className="text-sm">{step}</span>
)}
</motion.div>
</motion.div>
);
}
interface StepConnectorProps {
isComplete: boolean;
}
function StepConnector({ isComplete }: StepConnectorProps) {
const lineVariants: Variants = {
incomplete: { width: 0, backgroundColor: "transparent" },
complete: { width: "100%", backgroundColor: "#1a247f" },
};
return (
<div className="relative mx-4 h-1 flex-1 overflow-hidden rounded-full bg-bg-2">
<motion.div
className="absolute left-0 top-0 h-full"
variants={lineVariants}
initial={false}
animate={isComplete ? "complete" : "incomplete"}
transition={{ duration: 0.4 }}
/>
</div>
);
}
type CheckIconProps = React.SVGProps<SVGSVGElement>;
function CheckIcon(props: CheckIconProps) {
return (
<svg
{...props}
fill="none"
stroke="currentColor"
strokeWidth={3}
viewBox="0 0 24 24"
>
<motion.path
initial={{ pathLength: 0 }}
animate={{ pathLength: 1 }}
transition={{
delay: 0.1,
type: "tween",
ease: "easeOut",
duration: 0.3,
}}
strokeLinecap="round"
strokeLinejoin="round"
d="M5 13l4 4L19 7"
/>
</svg>
);
}
+59 -12
View File
@@ -5,16 +5,16 @@ import logo from "/logo.png";
export const MainLayout = () => {
const location = useLocation();
// On simplifie la palette pour le PillNav
const themeColors = {
primary: "#1a247f", // Bleu profond
accent: "#f7f0e5", // Beige
white: "#ffffff", // Blanc
white: "#ffffff",
red: "#751424",
};
return (
<div className="flex flex-col min-h-screen bg-bg-1 font-sans text-site-text">
{/* NAVIGATION */}
<div className="fixed top-0 left-0 w-full z-50 flex justify-center pt-4 md:pt-6 pointer-events-none px-4 md:px-0">
<div className="pointer-events-auto flex items-center justify-between w-full md:w-auto md:justify-center gap-4 max-w-400">
<PillNav
@@ -22,23 +22,21 @@ export const MainLayout = () => {
logoAlt="Coeur UA PAM Logo"
items={[
{ label: "Accueil", href: "/" },
{ label: "À Propos", href: "/a-propos" },
{ label: "Historique", href: "/historique" },
{ label: "L'Association", href: "/a-propos" },
{ label: "Notre histoire", href: "/notre-histoire" },
{ label: "Événements", href: "/evenements" },
]}
activeHref={location.pathname}
// LOGIQUE DES COULEURS RÉPARÉE :
baseColor={themeColors.accent} // Fond de la barre : BEIGE
pillColor={themeColors.accent} // Fond des boutons normaux : BEIGE
pillTextColor={themeColors.primary} // Texte normal : Bleu sur BEIGE
hoveredPillTextColor={themeColors.white} // Texte survolé : Blanc sur Bleu
baseColor={themeColors.accent}
pillColor={themeColors.accent}
pillTextColor={themeColors.primary}
hoveredPillTextColor={themeColors.white}
ease="power2.out"
initialLoadAnimation={true}
/>
{/* Bouton SOUTENIR */}
<a
href="https://www.leetchi.com/fr/c/coeur-ua-pam-6398197?utm_source=copylink&utm_medium=social_sharing://www.helloasso.com"
href="https://www.leetchi.com/fr/c/coeur-ua-pam-6398197"
target="_blank"
rel="noopener noreferrer"
className="hidden md:flex items-center justify-center h-10.5 px-6 rounded-full bg-heading text-white font-semibold uppercase tracking-wider text-sm hover:bg-heading-accent hover:scale-105 transition-all shadow-lg border-2 border-transparent"
@@ -48,13 +46,62 @@ export const MainLayout = () => {
</div>
</div>
{/* CONTENU PRINCIPAL */}
<div className="flex flex-1">
<main className="flex-1 pb-10 px md">
<main className="flex-1 pb-10">
<div className="w-full mx-auto">
<Outlet />
</div>
</main>
</div>
{/* FOOTER */}
<footer className="w-full py-10 border-t border-primary/10 bg-white">
<div className="max-w-7xl mx-auto px-6 flex flex-col md:flex-row justify-between items-center gap-8">
{/* Copyright & Nom */}
<div className="flex flex-col items-center md:items-start gap-1">
<div className="text-sm text-primary font-bold uppercase tracking-wider">
Cœur UA PAM
</div>
<div className="text-xs text-primary/50 font-medium">
© {new Date().getFullYear()} — Tous droits réservés.
</div>
</div>
{/* Contact & Réseaux */}
<div className="flex flex-col md:flex-row items-center gap-6 md:gap-12">
{/* Email */}
<a
href="mailto:[email protected]"
className="group flex flex-col items-center md:items-end"
>
<span className="text-[10px] uppercase tracking-[0.2em] text-primary/40 mb-1">
Nous contacter
</span>
<span className="text-sm font-semibold text-primary group-hover:text-heading-accent transition-colors">
coeuruapam@gmail.com
</span>
</a>
{/* Facebook */}
<a
href="https://www.facebook.com/profile.php?id=61581993284332&sk=about"
target="_blank"
rel="noopener noreferrer"
className="group flex items-center gap-2 text-primary font-bold hover:text-heading-accent transition-colors"
>
<span className="text-xs uppercase tracking-widest">
Suivez-nous
</span>
<div className="w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white group-hover:bg-heading-accent transition-colors">
<svg className="w-4 h-4 fill-current" viewBox="0 0 24 24">
<path d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z" />
</svg>
</div>
</a>
</div>
</div>
</footer>
</div>
);
};
+176 -3
View File
@@ -1,9 +1,182 @@
import { useState } from "react";
import AnimatedContent from "../components/AnimatedContent";
import Stepper, { Step } from "../components/Stepper";
// import FacebookCarousel from "../components/FacebookCarousel";
const StepWithBackground = ({
date,
title,
text,
imageSrc,
children,
}: {
date: string;
title: string;
text: string;
imageSrc: string;
children?: React.ReactNode;
}) => (
<div className="relative w-full min-h-125 rounded-[30px] overflow-hidden shadow-xl group">
<div
className="absolute inset-0 w-full h-full bg-cover bg-center transition-transform duration-[20s] ease-linear group-hover:scale-110"
style={{ backgroundImage: `url('${imageSrc}')` }}
></div>
<div className="absolute inset-0 bg-black/60 group-hover:bg-black/50 transition-colors duration-700"></div>
<div className="relative z-10 flex flex-col justify-center h-full p-8 md:p-16 text-center md:text-left">
<span className="inline-block self-center md:self-start px-4 py-1 rounded-full bg-white/20 backdrop-blur-md text-white border border-white/30 font-bold uppercase tracking-widest mb-6">
{date}
</span>
<h2 className="text-3xl md:text-5xl font-bold text-white mb-6 leading-tight drop-shadow-md">
{title}
</h2>
{children && <div className="mb-8">{children}</div>}
<p className="text-lg md:text-xl text-white/90 leading-relaxed max-w-3xl drop-shadow-sm font-medium">
{text}
</p>
</div>
</div>
);
const Historic = () => {
const [isTimelineCompleted, setIsTimelineCompleted] = useState(false);
return (
<div>
<h1 className="text-5xl font-bold text-heading mb-6">Historique</h1>
<p>Contenu de l'association...</p>
<div className="w-full pb-20 flex flex-col gap-16 md:gap-24">
{/* =======================
SECTION HERO
========================*/}
<AnimatedContent distance={50} direction="vertical" duration={1}>
<div className="relative w-full h-[80vh] min-h-125 overflow-hidden shadow-2xl group">
<img
src="/hero-section/historique.jpg"
alt="Historique Association"
className="absolute inset-0 w-full h-full object-cover object-top transition-transform duration-[10s] ease-linear group-hover:scale-105"
/>
<div className="absolute inset-0 bg-linear-to-t from-primary/90 via-primary/40 to-transparent"></div>
<div className="absolute bottom-0 left-0 w-full p-8 md:p-16 flex flex-col items-start">
<span className="inline-block px-4 py-1 rounded-full bg-hover-nav text-primary font-bold uppercase tracking-widest mb-4">
Notre histoire
</span>
<h1 className="text-5xl md:text-7xl font-bold text-white mb-6 leading-tight">
D'une urgence <br /> à une association unie
</h1>
<p className="text-xl text-white/90 max-w-2xl font-light leading-relaxed">
Découvrez comment Cœur UA PAM est née d'un élan de solidarité
spontané pour devenir un véritable pont culturel et humanitaire.
</p>
</div>
</div>
</AnimatedContent>
{/* =======================
SECTION STEPPER
========================*/}
<AnimatedContent distance={40} direction="vertical" delay={0.2}>
{!isTimelineCompleted ? (
<Stepper
initialStep={1}
onFinalStepCompleted={() => setIsTimelineCompleted(true)}
backButtonText="Précédent"
nextButtonText="Continuer l'histoire"
contentClassName="!px-0 md:!px-0"
stepContainerClassName="!pb-4"
>
{/* ETAPE 1 */}
<Step>
<StepWithBackground
date="Mars 2022"
title="L'arrivée en France"
text="Suite au déclenchement du conflit, les premières familles ukrainiennes arrivent dans notre région. Un élan de solidarité local se met immédiatement en place pour les accueillir, les loger et répondre à l'urgence de la situation."
imageSrc="/historique/arrivee.jpg"
/>
</Step>
{/* ETAPE 2 */}
<Step>
<StepWithBackground
date="Octobre 2022"
title="Les premiers événements"
text="Très vite, le besoin de se retrouver et de partager se fait ressentir. Des bénévoles français et ukrainiens organisent les premiers rassemblements, des collectes de dons et des moments d'échange pour apaiser les cœurs."
imageSrc="/historique/premier-evenement.jpg"
/>
</Step>
{/* ETAPE 3 */}
<Step>
<StepWithBackground
date="19 juin 2025"
title="La création officielle"
text="Pour structurer nos actions éducatives (apprentissage du français, maintien de l'ukrainien pour les enfants) et amplifier nos envois humanitaires, nous fondons officiellement l'association Cœur UA PAM."
imageSrc="/historique/signature-statuts.jpg"
>
<div className="border-l-4 border-hover-nav pl-6 mb-2 bg-white/10 p-4 rounded-r-xl backdrop-blur-sm max-w-2xl">
<p className="text-white font-bold italic text-xl">
"Il nous fallait un cadre légal pour agir plus fort et plus
loin."
</p>
</div>
</StepWithBackground>
</Step>
{/* ETAPE 4 */}
<Step>
<StepWithBackground
date="Aujourd'hui"
title="Un pont entre deux pays"
text="Aujourd'hui, l'association est un véritable carrefour culturel. Nous continuons sans relâche nos actions : ateliers pour enfants, événements culturels grand public (Octobre Rose, Noël), et logistique d'envoi de colis pour les combattants ukrainiens."
imageSrc="/historique/dernier-evenement.jpg"
/>
</Step>
</Stepper>
) : (
/* MESSAGE DE FIN (Remplace le Stepper une fois terminé) */
<div className="relative w-full py-24 md:py-32 text-center border-y border-primary/20 overflow-hidden rounded-[30px] shadow-xl">
<div
className="absolute inset-0 w-full h-full bg-cover bg-center"
style={{
backgroundImage: `url('/historique/champs-ukraine.jpg')`,
}}
></div>
<div className="absolute inset-0 bg-black/50"></div>
<div className="relative z-10 max-w-4xl mx-auto px-4">
<h2 className="text-4xl md:text-5xl font-bold text-white mb-6 shadow-sm">
L'histoire continue avec vous
</h2>
<p className="text-xl text-white/90 mb-10 max-w-2xl mx-auto drop-shadow-md">
Chaque jour, de nouvelles pages s'écrivent grâce à nos bénévoles
et nos donateurs.
</p>
<div className="flex flex-wrap justify-center gap-4">
<button
onClick={() => setIsTimelineCompleted(false)}
className="px-8 py-4 rounded-full text-white font-bold border-2 border-white hover:bg-white hover:text-primary transition-colors shadow-lg"
>
Relire l'historique
</button>
<a
href="https://www.leetchi.com/fr/c/coeur-ua-pam-6398197"
target="_blank"
rel="noopener noreferrer"
className="px-8 py-4 rounded-full bg-heading text-white font-bold uppercase tracking-wider hover:bg-heading-accent transition-all shadow-lg"
>
Soutenir nos actions
</a>
</div>
</div>
</div>
)}
</AnimatedContent>
{/* <AnimatedContent distance={40} direction="vertical" threshold={0.2}>
<div className="w-full">
<FacebookCarousel />
</div>
</AnimatedContent> */}
</div>
);
};
export default Historic;
+1 -3
View File
@@ -36,7 +36,7 @@ const Home = () => {
Nos Événements
</Link>
<a
href="https://www.helloasso.com"
href="https://www.leetchi.com/fr/c/coeur-ua-pam-6398197?utm_source=copylink&utm_medium=social_sharing"
target="_blank"
rel="noopener noreferrer"
className="px-8 py-4 rounded-full bg-heading text-white font-bold uppercase tracking-wider hover:bg-heading-accent transition-all shadow-lg"
@@ -49,9 +49,7 @@ const Home = () => {
</AnimatedContent>
{/* --- BENTO GRID NAVIGATION --- */}
{/* Une grille moderne pour présenter les sections clés */}
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 mb-20">
{/* CARTE 1 : Historique (Prend 1 colonne) */}
<div className="md:col-span-1">
<AnimatedContent
distance={30}