2022-12-19 14:38:51 +00:00
|
|
|
import { Conditional } from 'components/Conditional'
|
2022-07-19 07:53:03 +00:00
|
|
|
import { HomeCard } from 'components/HomeCard'
|
|
|
|
import type { NextPage } from 'next'
|
|
|
|
// import Brand from 'public/brand/brand.svg'
|
|
|
|
import { withMetadata } from 'utils/layout'
|
|
|
|
|
2023-02-16 07:51:30 +00:00
|
|
|
import { BADGE_HUB_ADDRESS, BASE_FACTORY_ADDRESS } from '../../utils/constants'
|
2022-12-19 14:38:51 +00:00
|
|
|
|
2022-07-19 07:53:03 +00:00
|
|
|
const HomePage: NextPage = () => {
|
|
|
|
return (
|
|
|
|
<section className="px-8 pt-4 pb-16 mx-auto space-y-8 max-w-4xl">
|
|
|
|
<div className="flex justify-center items-center py-8 max-w-xl">
|
|
|
|
{/* <Brand className="w-full text-plumbus" /> */}
|
|
|
|
</div>
|
2023-02-16 07:51:30 +00:00
|
|
|
<h1 className="font-heading text-4xl font-bold">Smart Contract Dashboards</h1>
|
2022-07-19 07:53:03 +00:00
|
|
|
<p className="text-xl">
|
2023-02-16 07:51:30 +00:00
|
|
|
Here you can execute actions and queries on different smart contracts and see the results.
|
2022-07-19 07:53:03 +00:00
|
|
|
<br />
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<div className="grid gap-8 md:grid-cols-2">
|
2022-12-19 14:38:51 +00:00
|
|
|
<Conditional test={BASE_FACTORY_ADDRESS !== undefined}>
|
|
|
|
<HomeCard
|
|
|
|
className="p-4 -m-4 hover:bg-gray-500/10 rounded"
|
|
|
|
link="/contracts/baseMinter"
|
2023-02-16 07:51:30 +00:00
|
|
|
title="Base Minter Contract"
|
2022-12-19 14:38:51 +00:00
|
|
|
>
|
|
|
|
Execute messages and run queries on Stargaze's Base Minter contract.
|
|
|
|
</HomeCard>
|
|
|
|
</Conditional>
|
2022-12-15 10:58:38 +00:00
|
|
|
<HomeCard
|
|
|
|
className="p-4 -m-4 hover:bg-gray-500/10 rounded"
|
|
|
|
link="/contracts/vendingMinter"
|
2023-02-16 07:51:30 +00:00
|
|
|
title="Vending Minter Contract"
|
2022-12-15 10:58:38 +00:00
|
|
|
>
|
|
|
|
Execute messages and run queries on Stargaze's Vending Minter contract.
|
2022-07-19 07:53:03 +00:00
|
|
|
</HomeCard>
|
|
|
|
<HomeCard className="p-4 -m-4 hover:bg-gray-500/10 rounded" link="/contracts/sg721" title="Sg721 Contract">
|
2023-02-16 07:51:30 +00:00
|
|
|
Execute messages and run queries on Stargaze's SG721 contract.
|
2022-07-19 07:53:03 +00:00
|
|
|
</HomeCard>
|
|
|
|
<HomeCard
|
|
|
|
className="p-4 -m-4 hover:bg-gray-500/10 rounded"
|
|
|
|
link="/contracts/whitelist"
|
|
|
|
title="Whitelist Contract"
|
|
|
|
>
|
2023-02-16 07:51:30 +00:00
|
|
|
Execute messages and run queries on Stargaze's Whitelist contract.
|
2022-07-19 07:53:03 +00:00
|
|
|
</HomeCard>
|
2023-02-16 07:51:30 +00:00
|
|
|
<Conditional test={BADGE_HUB_ADDRESS !== undefined}>
|
|
|
|
<HomeCard
|
|
|
|
className="p-4 -m-4 hover:bg-gray-500/10 rounded"
|
|
|
|
link="/contracts/badgeHub"
|
|
|
|
title="Badge Hub Contract"
|
|
|
|
>
|
|
|
|
Execute messages and run queries on the Badge Hub contract designed for event organizers.
|
|
|
|
</HomeCard>
|
|
|
|
</Conditional>
|
2022-07-19 07:53:03 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default withMetadata(HomePage, { center: false })
|