2021-07-12 17:59:53 -07:00
|
|
|
import ContributionPage from './ContributionPage'
|
2021-07-22 22:02:04 -07:00
|
|
|
import LeadPage from './LeadPage'
|
2021-09-08 19:39:26 -07:00
|
|
|
//import RedeemPage from './RedeemPage'
|
2021-04-25 08:03:30 -07:00
|
|
|
import Notifications from '../components/Notification'
|
2021-07-17 04:27:28 -07:00
|
|
|
import NavBarBeta from '../components/NavBarBeta'
|
2021-07-08 12:13:11 -07:00
|
|
|
|
|
|
|
import usePool from '../hooks/usePool'
|
2021-04-25 08:03:30 -07:00
|
|
|
|
|
|
|
const Index = () => {
|
2021-07-22 12:01:33 -07:00
|
|
|
const { startIdo, endIdo } = usePool()
|
2021-07-08 12:13:11 -07:00
|
|
|
|
2021-04-25 08:03:30 -07:00
|
|
|
return (
|
2021-07-21 22:50:15 -07:00
|
|
|
<div className={`bg-bkg-1 text-white transition-all overflow-hidden`}>
|
|
|
|
<div className="w-screen h-2 bg-gradient-to-r from-mango-red via-mango-yellow to-mango-green"></div>
|
2021-07-17 04:27:28 -07:00
|
|
|
<NavBarBeta />
|
2021-07-14 13:12:47 -07:00
|
|
|
<Notifications />
|
2021-07-22 22:02:04 -07:00
|
|
|
{startIdo?.isAfter() && <LeadPage />}
|
2021-07-22 12:07:30 -07:00
|
|
|
{startIdo?.isBefore() && endIdo?.isAfter() && <ContributionPage />}
|
2021-09-08 19:39:26 -07:00
|
|
|
{/* {endIdo?.isBefore() && <RedeemPage />} */}
|
2021-07-21 22:50:15 -07:00
|
|
|
<div className="w-screen h-2 bg-gradient-to-r from-mango-red via-mango-yellow to-mango-green"></div>
|
2021-04-25 08:03:30 -07:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Index
|