diff --git a/src/App.js b/src/App.js index 770d319..15ffe66 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,5 @@ -import React from 'react'; -import { ChakraProvider, Box, theme, Show } from '@chakra-ui/react'; +import React, {useState, useEffect} from 'react'; +import { ChakraProvider, Box, theme, Show, Fade } from '@chakra-ui/react'; import EventsMobile from './Components/Events/EventsMobile'; import Events from './Components/Events/events'; import './App.css'; @@ -8,23 +8,40 @@ import './App.css'; import Footer from './Components/Footer'; import Carousel from './Pages/Carousel'; import MediaPage from './Pages/MediaPage'; +import StartPage from './Pages/StartPage'; function App() { + const [isLoading, setIsLoading] = useState(true); + + useEffect(() => { + const timer = setTimeout(() => { + setIsLoading(false); + }, 6900); + + return () => clearTimeout(timer); + }, []); + + return ( - -
- -
- - - - - - - - -