2024-07-09 17:41:15 -04:00
|
|
|
import { Container, Grid } from '@mui/joy'
|
2024-06-30 18:55:39 -04:00
|
|
|
import AOS from 'aos'
|
|
|
|
import 'aos/dist/aos.css'
|
|
|
|
import { useEffect, useState } from 'react'
|
|
|
|
import { useNavigate } from 'react-router-dom'
|
2024-07-09 17:41:15 -04:00
|
|
|
import DemoAssignee from './DemoAssignee'
|
|
|
|
import DemoHistory from './DemoHistory'
|
|
|
|
import DemoMyChore from './DemoMyChore'
|
|
|
|
import DemoScheduler from './DemoScheduler'
|
2024-06-30 18:55:39 -04:00
|
|
|
import FeaturesSection from './FeaturesSection'
|
|
|
|
import HomeHero from './HomeHero'
|
|
|
|
const Landing = () => {
|
|
|
|
const Navigate = useNavigate()
|
|
|
|
const getCurrentUser = () => {
|
|
|
|
return JSON.parse(localStorage.getItem('user'))
|
|
|
|
}
|
|
|
|
const [currentUser, setCurrentUser] = useState(getCurrentUser())
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
AOS.init({
|
|
|
|
once: false, // whether animation should happen only once - while scrolling down
|
|
|
|
})
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Container className='flex h-full items-center justify-center'>
|
|
|
|
<HomeHero />
|
2024-07-09 17:41:15 -04:00
|
|
|
<Grid
|
|
|
|
overflow={'hidden'}
|
|
|
|
container
|
|
|
|
spacing={4}
|
|
|
|
sx={{
|
|
|
|
mt: 5,
|
|
|
|
mb: 5,
|
|
|
|
// align item vertically:
|
|
|
|
alignItems: 'center',
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<DemoMyChore />
|
|
|
|
<DemoAssignee />
|
|
|
|
<DemoScheduler />
|
|
|
|
|
|
|
|
<DemoHistory />
|
|
|
|
</Grid>
|
2024-06-30 18:55:39 -04:00
|
|
|
<FeaturesSection />
|
2024-07-01 23:53:01 -04:00
|
|
|
{/* <PricingSection /> */}
|
2024-06-30 18:55:39 -04:00
|
|
|
</Container>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Landing
|