diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index 7bf58b7..acfb03e 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -1,9 +1,11 @@ import HeroSection from "@/components/sections/HeroSection"; +import WorksSection from "@/components/sections/WorksSection"; export default function Home() { return (
+
); } \ No newline at end of file diff --git a/components/sections/WorksSection.tsx b/components/sections/WorksSection.tsx new file mode 100644 index 0000000..0ec24f4 --- /dev/null +++ b/components/sections/WorksSection.tsx @@ -0,0 +1,47 @@ +import { ProjectCard } from "../ui/ProjectCard"; + +export default function WorksSection() { + return ( +
+

Travaux

+ + + + + +
+ ); +} \ No newline at end of file diff --git a/components/ui/ProjectCard.tsx b/components/ui/ProjectCard.tsx new file mode 100644 index 0000000..e0174eb --- /dev/null +++ b/components/ui/ProjectCard.tsx @@ -0,0 +1,66 @@ +import { GoArrowRight } from "react-icons/go"; + +type props = { + projectVideoPath : String; + projectName : String; + projectType : String; + projectDate : String; + roles : String[]; + projectDescription : String; + projectPageLink : String; + isTheLast? : boolean; +}; + +export const ProjectCard = ({ + projectVideoPath, + projectName, + projectType, + projectDate, + roles, + projectDescription, + projectPageLink, + isTheLast = false +}: props) => { + return ( +
+ {/* Top separator */} +
+ + {/* *** Content *** */} +
+
{projectDate}
+ + {/* Left image/video */} +
+ + {/* Texts */} +
+
+
{projectType}
+
{projectName}
+
+

( + {roles.map((role, index) => ( + role + (index < roles.length - 1 ? ", " : "") + ))} + )

+
+
+ +
{projectDescription}
+ +
+

READ

+ +
+
+
+ + + + + {/* Bottom separator */} + {isTheLast &&
} +
+ ); +}; \ No newline at end of file