aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/Landing/Landing.jsx
blob: 2041e425234b05686bc01ad9e9ad22590958514b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { Container } from '@mui/joy'
import AOS from 'aos'
import 'aos/dist/aos.css'
import { useEffect, useState } from 'react'
import { useNavigate } from 'react-router-dom'
import FeaturesSection from './FeaturesSection'
import HomeHero from './HomeHero'
import PricingSection from './PricingSection'
const Landing = () => {
  const Navigate = useNavigate()
  const getCurrentUser = () => {
    return JSON.parse(localStorage.getItem('user'))
  }
  const [users, setUsers] = useState([])
  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 />
      <FeaturesSection />
      <PricingSection />
    </Container>
  )
}

export default Landing