diff --git a/frontend/website/package-lock.json b/frontend/website/package-lock.json index 9083b2c..84fefcc 100644 --- a/frontend/website/package-lock.json +++ b/frontend/website/package-lock.json @@ -16,6 +16,7 @@ "@types/node": "^22.13.5", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", + "embla-carousel-autoplay": "^8.5.2", "embla-carousel-react": "^8.5.2", "lucide-react": "^0.476.0", "react": "^19.0.0", @@ -2602,6 +2603,15 @@ "integrity": "sha512-xQ9oVLrun/eCG/7ru3R+I5bJ7shsD8fFwLEY7yPe27/+fDHCNj0OT5EoG5ZbFyOxOcG6yTwW8oTz/dWyFnyGpg==", "license": "MIT" }, + "node_modules/embla-carousel-autoplay": { + "version": "8.5.2", + "resolved": "https://registry.npmjs.org/embla-carousel-autoplay/-/embla-carousel-autoplay-8.5.2.tgz", + "integrity": "sha512-27emJ0px3q/c0kCHCjwRrEbYcyYUPfGO3g5IBWF1i7714TTzE6L9P81V6PHLoSMAKJ1aHoT2e7YFOsuFKCbyag==", + "license": "MIT", + "peerDependencies": { + "embla-carousel": "8.5.2" + } + }, "node_modules/embla-carousel-react": { "version": "8.5.2", "resolved": "https://registry.npmjs.org/embla-carousel-react/-/embla-carousel-react-8.5.2.tgz", diff --git a/frontend/website/package.json b/frontend/website/package.json index 9e42121..96fa348 100644 --- a/frontend/website/package.json +++ b/frontend/website/package.json @@ -18,6 +18,7 @@ "@types/node": "^22.13.5", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", + "embla-carousel-autoplay": "^8.5.2", "embla-carousel-react": "^8.5.2", "lucide-react": "^0.476.0", "react": "^19.0.0", diff --git a/frontend/website/src/components/About.tsx b/frontend/website/src/components/About.tsx index 4388960..a7b4a0b 100644 --- a/frontend/website/src/components/About.tsx +++ b/frontend/website/src/components/About.tsx @@ -12,16 +12,20 @@ const About = () => { diff --git a/frontend/website/src/components/ExpertiseSection.tsx b/frontend/website/src/components/ExpertiseSection.tsx index f9337d0..0ce8171 100644 --- a/frontend/website/src/components/ExpertiseSection.tsx +++ b/frontend/website/src/components/ExpertiseSection.tsx @@ -1,11 +1,11 @@ import React from 'react'; import { Button } from "@/components/ui/button"; +import ImageCarousel from './ImageCarousel'; interface ExpertiseSectionProps { title: string; content: string; - imageUrl: string; - imageAlt: string; + images: { url: string; alt: string }[]; viewMoreLink: string; imageOnLeft?: boolean; } @@ -13,18 +13,17 @@ interface ExpertiseSectionProps { const ExpertiseSection: React.FC = ({ title, content, - imageUrl, - imageAlt, + images, viewMoreLink, imageOnLeft = false, }) => { return (
-
- {imageAlt} +
+
-
+

{title}

{content}