2021-12-18 01:47:39 +00:00
|
|
|
import React from 'react'
|
|
|
|
import {
|
|
|
|
LightningBoltIcon,
|
|
|
|
ScaleIcon,
|
|
|
|
UserCircleIcon,
|
|
|
|
BeakerIcon,
|
|
|
|
ArrowDownIcon,
|
|
|
|
} from '@heroicons/react/outline'
|
|
|
|
|
2022-05-09 13:04:36 +00:00
|
|
|
import { firebaseLogin } from 'web/lib/firebase/users'
|
2022-06-13 03:55:48 +00:00
|
|
|
import { ContractsGrid } from 'web/components/contract/contracts-list'
|
2022-05-09 13:04:36 +00:00
|
|
|
import { Col } from 'web/components/layout/col'
|
2021-12-18 23:19:16 +00:00
|
|
|
import Link from 'next/link'
|
2022-06-13 03:55:48 +00:00
|
|
|
import { Contract } from 'web/lib/firebase/contracts'
|
|
|
|
|
|
|
|
export default function LandingPage(props: { hotContracts: Contract[] }) {
|
|
|
|
const { hotContracts } = props
|
2021-12-18 01:47:39 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<Hero />
|
|
|
|
<FeaturesSection />
|
2022-06-13 03:55:48 +00:00
|
|
|
{/* <ExploreMarketsSection hotContracts={hotContracts} /> */}
|
2021-12-18 01:47:39 +00:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-12-20 04:06:30 +00:00
|
|
|
const scrollToAbout = () => {
|
|
|
|
const aboutElem = document.getElementById('about')
|
|
|
|
window.scrollTo({ top: aboutElem?.offsetTop, behavior: 'smooth' })
|
|
|
|
}
|
2021-12-18 01:47:39 +00:00
|
|
|
|
2021-12-20 04:06:30 +00:00
|
|
|
function Hero() {
|
2021-12-18 01:47:39 +00:00
|
|
|
return (
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="bg-world-trading h-screen overflow-hidden bg-gray-900 bg-cover bg-center lg:bg-left">
|
2021-12-18 01:47:39 +00:00
|
|
|
<main>
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="pt-32 sm:pt-8 lg:overflow-hidden lg:pt-0 lg:pb-14">
|
2021-12-20 04:37:11 +00:00
|
|
|
<div className="mx-auto max-w-7xl lg:px-8 xl:px-0">
|
2021-12-18 01:47:39 +00:00
|
|
|
<div className="lg:grid lg:grid-cols-2 lg:gap-8">
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="mx-auto max-w-md px-8 sm:max-w-2xl sm:text-center lg:flex lg:items-center lg:px-0 lg:text-left">
|
2021-12-18 01:47:39 +00:00
|
|
|
<div className="lg:py-24">
|
|
|
|
<h1 className="mt-4 text-4xl text-white sm:mt-5 sm:text-6xl lg:mt-6 xl:text-6xl">
|
|
|
|
<div className="mb-2">Create your own</div>
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="bg-gradient-to-r from-teal-300 to-green-400 bg-clip-text font-bold text-transparent">
|
2021-12-18 01:47:39 +00:00
|
|
|
prediction markets
|
|
|
|
</div>
|
|
|
|
</h1>
|
2021-12-19 05:27:52 +00:00
|
|
|
<p className="mt-3 text-base text-white sm:mt-5 sm:text-xl lg:text-lg xl:text-xl">
|
2021-12-18 06:49:24 +00:00
|
|
|
Better forecasting through accessible prediction markets
|
|
|
|
<br />
|
|
|
|
for you and your community
|
2021-12-18 01:47:39 +00:00
|
|
|
</p>
|
|
|
|
<div className="mt-10 sm:mt-12">
|
|
|
|
<button
|
2022-02-11 18:40:22 +00:00
|
|
|
className="btn bg-gradient-to-r from-teal-500 to-green-500 px-10 text-lg font-medium normal-case hover:from-teal-600 hover:to-green-600"
|
2021-12-18 01:47:39 +00:00
|
|
|
onClick={firebaseLogin}
|
|
|
|
>
|
|
|
|
Sign in to get started!
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="absolute bottom-12 w-full">
|
|
|
|
<ArrowDownIcon
|
2022-02-11 18:40:22 +00:00
|
|
|
className="mx-auto animate-bounce cursor-pointer text-white"
|
2021-12-18 01:47:39 +00:00
|
|
|
width={32}
|
|
|
|
height={32}
|
|
|
|
onClick={scrollToAbout}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
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:
|
2022-01-06 18:48:30 +00:00
|
|
|
'Get accurate predictions by betting with Manifold Dollars, our virtual currency.',
|
2021-12-18 01:47:39 +00:00
|
|
|
icon: LightningBoltIcon,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Creator-driven markets',
|
|
|
|
description:
|
2022-01-08 06:23:50 +00:00
|
|
|
'Resolve markets you create with your own judgment—enabling new markets with subjective or personal questions.',
|
2021-12-18 01:47:39 +00:00
|
|
|
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 (
|
2022-02-11 18:40:22 +00:00
|
|
|
<div id="about" className="w-full bg-green-50 py-16">
|
|
|
|
<div className="mx-auto max-w-4xl py-12">
|
|
|
|
<div className="mx-auto max-w-7xl px-6 lg:px-8">
|
2021-12-18 01:47:39 +00:00
|
|
|
<div className="lg:text-center">
|
2022-02-11 18:40:22 +00:00
|
|
|
<h2 className="text-base font-semibold uppercase tracking-wide text-teal-600">
|
2022-01-06 18:48:30 +00:00
|
|
|
Manifold Markets
|
2021-12-18 01:47:39 +00:00
|
|
|
</h2>
|
2022-02-11 18:40:22 +00:00
|
|
|
<p className="mt-2 text-3xl font-extrabold leading-8 tracking-tight text-gray-900 sm:text-4xl">
|
2021-12-18 01:47:39 +00:00
|
|
|
Better forecasting for everyone
|
|
|
|
</p>
|
|
|
|
<p className="mt-4 max-w-2xl text-xl text-gray-500 lg:mx-auto">
|
|
|
|
The easiest way to get an accurate forecast on anything
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="mt-10">
|
2022-02-11 18:40:22 +00:00
|
|
|
<dl className="space-y-10 md:grid md:grid-cols-2 md:gap-x-8 md:gap-y-10 md:space-y-0">
|
2021-12-18 01:47:39 +00:00
|
|
|
{features.map((feature) => (
|
|
|
|
<div key={feature.name} className="relative">
|
|
|
|
<dt>
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="absolute flex h-12 w-12 items-center justify-center rounded-md bg-teal-500 text-white">
|
2021-12-18 01:47:39 +00:00
|
|
|
<feature.icon className="h-6 w-6" aria-hidden="true" />
|
|
|
|
</div>
|
2022-02-11 18:40:22 +00:00
|
|
|
<p className="ml-16 text-lg font-medium leading-6 text-gray-900">
|
2021-12-18 01:47:39 +00:00
|
|
|
{feature.name}
|
|
|
|
</p>
|
|
|
|
</dt>
|
|
|
|
<dd className="mt-2 ml-16 text-base text-gray-500">
|
|
|
|
{feature.description}
|
|
|
|
</dd>
|
|
|
|
</div>
|
|
|
|
))}
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<Col className="mt-20">
|
2021-12-18 23:19:16 +00:00
|
|
|
<Link href="/about">
|
|
|
|
<a className="btn btn-primary mx-auto">Learn more</a>
|
|
|
|
</Link>
|
2021-12-18 01:47:39 +00:00
|
|
|
</Col>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
2022-06-13 03:55:48 +00:00
|
|
|
|
|
|
|
function ExploreMarketsSection(props: { hotContracts: Contract[] }) {
|
|
|
|
const { hotContracts } = props
|
|
|
|
return (
|
|
|
|
<div className="mx-auto max-w-4xl px-4 py-8">
|
|
|
|
<p className="my-12 text-3xl font-extrabold leading-8 tracking-tight text-indigo-700 sm:text-4xl">
|
|
|
|
Today's top markets
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<ContractsGrid
|
|
|
|
contracts={hotContracts}
|
|
|
|
loadMore={() => {}}
|
|
|
|
hasMore={false}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|