fix favicon

This commit is contained in:
Jack 2023-10-31 22:11:17 -04:00
parent c7e179e270
commit 58c20d64f1
No known key found for this signature in database
GPG Key ID: F6FFDCED8A519F98
2 changed files with 7 additions and 30 deletions

View File

@ -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 (
<div className="relative w-full">
<div
@ -87,15 +73,6 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => {
className="object-cover h-64 w-full"
/>
</a>
{/* <a
href={resource.image || ""}
target="_blank"
className="h-full w-full aspect-square block absolute top-0 left-0 transition-opacity duration-300 opacity-0 hover:opacity-100 bg-black/30 z-10"
>
<h3 className="text-white py-6 px-3 mx-auto text-xl">
{resource.title}
</h3>
</a> */}
</div>
);
})}
@ -129,9 +106,9 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => {
>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M5 1 1 5l4 4"
/>
</svg>
@ -155,9 +132,9 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => {
>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="m1 9 4-4-4-4"
/>
</svg>

View File

@ -12,7 +12,7 @@ import PictureShowcase from '../components/PictureShowcase'
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<link rel="stylesheet" href="/css/sentient.css">