diff --git a/web/app/layout.tsx b/web/app/layout.tsx index 2044ed6..c7d99dc 100644 --- a/web/app/layout.tsx +++ b/web/app/layout.tsx @@ -1,8 +1,9 @@ + import './globals.css' import { Unbounded } from 'next/font/google' import localFont from "next/font/local" -const unbounded = Unbounded({ subsets: ['latin'], variable: '--font-unbounded' }) +const unbounded = Unbounded({ subsets: ['latin'], variable: '--font-unbounded', display: 'swap' }) const neue_machina = localFont({ src: '/NeueMachina-Regular.otf', variable: '--font-neuemachina' diff --git a/web/app/page.tsx b/web/app/page.tsx index 7062fd2..878e70b 100644 --- a/web/app/page.tsx +++ b/web/app/page.tsx @@ -153,7 +153,7 @@ export default function Home() { return
- { setStartAnimationComplete(true) }} /> + {!startAnimationComplete && { setStartAnimationComplete(true) }} />} { startAnimationComplete && <> diff --git a/web/components/StartAnim.tsx b/web/components/StartAnim.tsx index 3c04332..ae69c9d 100644 --- a/web/components/StartAnim.tsx +++ b/web/components/StartAnim.tsx @@ -2,11 +2,12 @@ import { Player, PlayerEvent } from "@lottiefiles/react-lottie-player"; import LoadingAnimation from "../animations/loading_anim.json"; -import { useEffect } from "react"; +import { CSSProperties, useEffect } from "react"; type Props = { - onComplete: () => void + onComplete: () => void; + style?: CSSProperties } -const StartAnim = ({ onComplete }: Props) => { +const StartAnim = ({ onComplete, style }: Props) => { useEffect(() => { const timeout = setTimeout(() => { onComplete() }, 15100) @@ -15,10 +16,10 @@ const StartAnim = ({ onComplete }: Props) => { } }) - return
}