diff --git a/components/AppPreview.tsx b/components/AppPreview.tsx index 7ce2178..e8029ae 100644 --- a/components/AppPreview.tsx +++ b/components/AppPreview.tsx @@ -12,7 +12,7 @@ export default function AppPreview() { useEffect(() => { let imageUrl = 'homepage-light.png' if (resolvedTheme == 'dark') { - imageUrl = 'homepage-dark.png' + imageUrl = 'homepage-dark.webp' } const image = new Image() @@ -26,7 +26,7 @@ export default function AppPreview() { initial={{ opacity: 0, scale: 0.75 }} animate={{ opacity: 1, scale: 1 }} transition={{ delay: 0.5, duration: 1 }} - className="z-40 flex h-full flex-1 self-center bg-[url('/homepage-dark.png')] bg-contain bg-[center_top] bg-no-repeat dark:bg-[url('/homepage-dark.png')] sm:w-auto" + className="z-40 flex h-full flex-1 self-center bg-[url('/homepage-dark.webp')] bg-contain bg-[center_top] bg-no-repeat dark:bg-[url('/homepage-dark.webp')] sm:w-auto" /> diff --git a/components/Head.tsx b/components/Head.tsx index 7c51593..e3ab196 100644 --- a/components/Head.tsx +++ b/components/Head.tsx @@ -17,9 +17,9 @@ export default function Head() { /> - + - + diff --git a/components/Hero.tsx b/components/Hero.tsx index 4e98068..94ffe60 100644 --- a/components/Hero.tsx +++ b/components/Hero.tsx @@ -31,7 +31,7 @@ export default function Hero() { className="flex" initial={{ opacity: 0, scale: 0.5 }} animate={{ opacity: 1, scale: 1 }} - transition={{ delay: 1.1, duration: 0.5 }} + transition={{ delay: 1.1, duration: 0.4 }} >