diff --git a/Websites/jefes-nextjs/app/components/MenuBar/MenuBar.tsx b/Websites/jefes-nextjs/app/components/MenuBar/MenuBar.tsx index cf24b23..f2221a5 100644 --- a/Websites/jefes-nextjs/app/components/MenuBar/MenuBar.tsx +++ b/Websites/jefes-nextjs/app/components/MenuBar/MenuBar.tsx @@ -1,5 +1,4 @@ import React from 'react' -import NavLinks from '@/app/ui/dashboard/nav-links'; const MenuBar = () => { return ( diff --git a/Websites/jefes-nextjs/app/components/NavBar/NavBar.tsx b/Websites/jefes-nextjs/app/components/NavBar/NavBar.tsx index 83c559c..d6a2375 100644 --- a/Websites/jefes-nextjs/app/components/NavBar/NavBar.tsx +++ b/Websites/jefes-nextjs/app/components/NavBar/NavBar.tsx @@ -36,16 +36,16 @@ const NavBar = () => { nav image nav image diff --git a/Websites/jefes-nextjs/app/gallery/carousel.css b/Websites/jefes-nextjs/app/gallery/carousel.css index 75d2373..cbc3e63 100644 --- a/Websites/jefes-nextjs/app/gallery/carousel.css +++ b/Websites/jefes-nextjs/app/gallery/carousel.css @@ -1,4 +1,11 @@ -.carousel{ +.embla { + overflow: hidden; + } + .embla__container { + display: flex; + } + .embla__slide { flex: 0 0 100%; min-width: 0; -} \ No newline at end of file + } + \ No newline at end of file diff --git a/Websites/jefes-nextjs/app/gallery/carousel.tsx b/Websites/jefes-nextjs/app/gallery/carousel.tsx index 5bf9822..632e930 100644 --- a/Websites/jefes-nextjs/app/gallery/carousel.tsx +++ b/Websites/jefes-nextjs/app/gallery/carousel.tsx @@ -1,42 +1,47 @@ +"use client"; import React from "react"; import useEmblaCarousel from "embla-carousel-react"; import Image from "next/image"; -import Autoplay from 'embla-carousel-autoplay'; +import './carousel.css'; 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 4c0a577..8d6a74c 100644 --- a/Websites/jefes-nextjs/app/gallery/page.tsx +++ b/Websites/jefes-nextjs/app/gallery/page.tsx @@ -1,5 +1,3 @@ -"use client"; - import React from "react"; import { useState } from "react"; import { BsChevronCompactLeft, BsChevronCompactRight } from "react-icons/bs"; @@ -7,40 +5,40 @@ import { RxDotFilled } from "react-icons/rx"; import { EmblaCarousel } from "./carousel"; const Gallery = () => { - const slides = [ - { url: "/images/1577mobile.webp" }, - { url: "/images/bar01.jpg" }, - { url: "/images/fbimg02.jpg" }, - { url: "/images/food01.jpg" }, - { url: "/images/food02.webp" }, - { url: "/images/IMG_2737.webp" }, - { url: "/images/IMG_2749.webp" }, - { url: "/images/IMG_2766.webp" }, - { url: "/images/img01.webp" }, - { url: "/images/img05.webp" }, - ]; + // const slides = [ + // { url: "/images/1577mobile.webp" }, + // { url: "/images/bar01.jpg" }, + // { url: "/images/fbimg02.jpg" }, + // { url: "/images/food01.jpg" }, + // { url: "/images/food02.webp" }, + // { url: "/images/IMG_2737.webp" }, + // { url: "/images/IMG_2749.webp" }, + // { url: "/images/IMG_2766.webp" }, + // { url: "/images/img01.webp" }, + // { url: "/images/img05.webp" }, + // ]; - const [currentIndex, setCurrentIndex] = useState(0); + // const [currentIndex, setCurrentIndex] = useState(0); - const prevSlide = () => { - const isFirstSlide = currentIndex === 0; - const newIndex = isFirstSlide ? slides.length - 1 : currentIndex - 1; - setCurrentIndex(newIndex); - }; + // const prevSlide = () => { + // const isFirstSlide = currentIndex === 0; + // const newIndex = isFirstSlide ? slides.length - 1 : currentIndex - 1; + // setCurrentIndex(newIndex); + // }; - const nextSlide = () => { - const isLastSlide = currentIndex === slides.length - 1; - const newIndex = isLastSlide ? 0 : currentIndex + 1; - setCurrentIndex(newIndex); - }; + // const nextSlide = () => { + // const isLastSlide = currentIndex === slides.length - 1; + // const newIndex = isLastSlide ? 0 : currentIndex + 1; + // setCurrentIndex(newIndex); + // }; - const goToSlide = (slideIndex) => { - setCurrentIndex(slideIndex); - }; + // const goToSlide = (slideIndex) => { + // setCurrentIndex(slideIndex); + // }; return ( -
- +
+ {/*