diff --git a/src/components/custom/GalleryBento.tsx b/src/components/custom/GalleryBento.tsx new file mode 100644 index 0000000..4007f9f --- /dev/null +++ b/src/components/custom/GalleryBento.tsx @@ -0,0 +1,49 @@ +import React from 'react'; + + +type GalleryItem = { + imageSrc: string; + title: string; + description: string; + className?: string; +}; + +const GalleryBento = ({ + tag, + title, + description, + items, +}: { + tag: string; + title:string; + description: string; + items: GalleryItem[]; +}) => { + return ( +
+
+
+ {tag} +

{title}

+

{description}

+
+
+ {items.map((item, index) => ( +
+ {item.title} +
+

{item.title}

+

{item.description}

+
+
+ ))} +
+
+
+ ); +}; + +export default GalleryBento; diff --git a/src/index.css b/src/index.css index 247f7df..50e8818 100644 --- a/src/index.css +++ b/src/index.css @@ -186,3 +186,17 @@ h6 { 2.10837px 3.16256px 9.48767px color-mix(in srgb, var(--color-accent) 10%, transparent); border: 1px solid var(--color-secondary-cta); } + + +@keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } +} + +.fade-in { + animation: fadeIn 0.5s ease-in-out; +} diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index ed4ef14..54f0e47 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -2,7 +2,7 @@ import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit'; import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia'; import FeaturesIconCards from '@/components/sections/features/FeaturesIconCards'; -import FeaturesMediaCarousel from '@/components/sections/features/FeaturesMediaCarousel'; +import GalleryBento from '@/components/custom/GalleryBento'; import HeroOverlayTestimonial from '@/components/sections/hero/HeroOverlayTestimonial'; import MetricsGradientCards from '@/components/sections/metrics/MetricsGradientCards'; import ProductRatingCards from '@/components/sections/product/ProductRatingCards'; @@ -219,7 +219,7 @@ export default function HomePage() {