From 58c20d64f16c7881db829eaabb0c6f08ccfb6d87 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 31 Oct 2023 22:11:17 -0400 Subject: [PATCH] fix favicon --- src/components/Carousel.tsx | 35 ++++++----------------------------- src/pages/index.astro | 2 +- 2 files changed, 7 insertions(+), 30 deletions(-) diff --git a/src/components/Carousel.tsx b/src/components/Carousel.tsx index 86f29bd..4e81856 100644 --- a/src/components/Carousel.tsx +++ b/src/components/Carousel.tsx @@ -34,13 +34,6 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => { return false; }; - // useEffect(() => { - // if (carousel !== null && carousel.current !== null) { - // (carousel.current as any).scrollLeft = - // (carousel.current as any).offsetWidth * currentIndex; - // } - // }, [currentIndex]); - function getClassnames(picture: Picture, index: number): string { switch (index) { case currentIndex: // current @@ -54,13 +47,6 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => { } } - // useEffect(() => { - // maxScrollWidth.current = carousel.current - // ? (carousel.current as any).scrollWidth - - // (carousel.current as any).offsetWidth - // : 0; - // }, []); - return (
{ className="object-cover h-64 w-full" /> - {/* -

- {resource.title} -

-
*/}
); })} @@ -129,9 +106,9 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => { > @@ -155,9 +132,9 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => { > diff --git a/src/pages/index.astro b/src/pages/index.astro index 55eaa6b..ea7a9b1 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -12,7 +12,7 @@ import PictureShowcase from '../components/PictureShowcase' - +