import React from 'react'
import {
LightningBoltIcon,
ScaleIcon,
UserCircleIcon,
BeakerIcon,
} from '@heroicons/react/outline'
import type { NextPage } from 'next'
import { Hero } from '../components/hero'
import { useUser } from '../hooks/use-user'
import Markets from './markets'
import { useContracts } from '../hooks/use-contracts'
import { SearchableGrid } from '../components/contracts-list'
import { Col } from '../components/layout/col'
const Home: NextPage = () => {
const user = useUser()
if (user === undefined) return <>>
return user ? :
}
function LandingPage() {
return (
)
}
const notionAboutUrl =
'https://mantic.notion.site/About-Mantic-Markets-7c44bc161356474cad54cba2d2973fe2'
function FeaturesSection() {
const features = [
{
name: 'Easy to participate',
description: 'Sign up for free and make your own predictions in seconds!',
icon: UserCircleIcon,
},
{
name: 'Play money, real results',
description:
'Get accurate predictions by betting with Mantic Dollars, our virtual currency.',
icon: LightningBoltIcon,
},
{
name: 'Creator-driven markets',
description:
'Resolve markets you create with your own judgment—enabling new markets with subjective or personal questions',
icon: ScaleIcon,
},
{
name: 'Become smarter',
description:
'Bet on questions that matter and share the forecasts. With better information, we can all make better decisions.',
icon: BeakerIcon,
},
]
return (
Mantic Markets
Better forecasting for everyone
The easiest way to get an accurate forecast on anything
{features.map((feature) => (
-
{feature.name}
-
{feature.description}
))}
Learn more
)
}
function ExploreMarketsSection() {
const contracts = useContracts()
return (
)
}
export default Home