diff --git a/Websites/jefes-nextjs/app/gallery/carousel.css b/Websites/jefes-nextjs/app/gallery/carousel.css new file mode 100644 index 0000000..75d2373 --- /dev/null +++ b/Websites/jefes-nextjs/app/gallery/carousel.css @@ -0,0 +1,4 @@ +.carousel{ + flex: 0 0 100%; + min-width: 0; +} \ No newline at end of file diff --git a/Websites/jefes-nextjs/app/gallery/carousel.tsx b/Websites/jefes-nextjs/app/gallery/carousel.tsx new file mode 100644 index 0000000..5bf9822 --- /dev/null +++ b/Websites/jefes-nextjs/app/gallery/carousel.tsx @@ -0,0 +1,43 @@ +import React from "react"; +import useEmblaCarousel from "embla-carousel-react"; +import Image from "next/image"; +import Autoplay from 'embla-carousel-autoplay'; + +export const EmblaCarousel = () => { + const [emblaRef] = useEmblaCarousel(); + + return ( +
+
+
+ bar01 +
+
+ food1 +
+
+
+ {" "} + food2 +
+
+ ); +}; diff --git a/Websites/jefes-nextjs/app/gallery/page.tsx b/Websites/jefes-nextjs/app/gallery/page.tsx index 2cc15b8..4c0a577 100644 --- a/Websites/jefes-nextjs/app/gallery/page.tsx +++ b/Websites/jefes-nextjs/app/gallery/page.tsx @@ -4,6 +4,7 @@ import React from "react"; import { useState } from "react"; import { BsChevronCompactLeft, BsChevronCompactRight } from "react-icons/bs"; import { RxDotFilled } from "react-icons/rx"; +import { EmblaCarousel } from "./carousel"; const Gallery = () => { const slides = [ @@ -39,7 +40,8 @@ const Gallery = () => { return (
-
+ {/*
@@ -59,7 +61,7 @@ const Gallery = () => {
))} -
+ */} ); }; diff --git a/Websites/jefes-nextjs/bun.lockb b/Websites/jefes-nextjs/bun.lockb index bd37c1e..f8a00a6 100755 Binary files a/Websites/jefes-nextjs/bun.lockb and b/Websites/jefes-nextjs/bun.lockb differ