mango-token-sale/pages/index.tsx

26 lines
879 B
TypeScript
Raw Normal View History

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 20:03:23 -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'
import usePool from '../hooks/usePool'
2021-04-25 08:03:30 -07:00
const Index = () => {
const { startIdo, endIdo } = usePool()
2021-04-25 08:03:30 -07:00
return (
<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 20:03:23 -07:00
{endIdo?.isBefore() && <RedeemPage />}
<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