We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e2cea1 + 8cda7d3 commit 797e2cdCopy full SHA for 797e2cd
src/pages/index.tsx
@@ -1,23 +1,7 @@
1
-import { useEffect, useState } from "react";
2
-
3
import Footer from "@/components/landing/Footer";
4
import LandingMain from "@/components/landing/LandingMain";
5
6
export default function Home() {
7
- const [renderDelayedContent, setRenderDelayedContent] = useState(false);
8
9
- useEffect(() => {
10
- const timer = setTimeout(() => {
11
- setRenderDelayedContent(true);
12
- }, 1000);
13
14
- return () => clearTimeout(timer);
15
- }, []);
16
17
- if (!renderDelayedContent) {
18
- return null;
19
- }
20
21
return (
22
<>
23
<LandingMain />
0 commit comments