manifold/web/components/hero.tsx

51 lines
2.1 KiB
TypeScript
Raw Normal View History

import { firebaseLogin } from '../lib/firebase/users'
import { Header } from './header'
2021-12-02 20:34:58 +00:00
export const Hero = () => {
return (
<div className="relative overflow-hidden h-screen bg-world-trading bg-cover bg-gray-900 bg-center lg:bg-left">
<Header darkBackground>
<div
className="text-base font-medium text-white cursor-pointer hover:underline hover:decoration-teal-500 hover:decoration-2"
onClick={() => {
const aboutElem = document.getElementById('about')
window.scrollTo({ top: aboutElem?.offsetTop, behavior: 'smooth' })
}}
>
About
</div>
</Header>
<main>
2021-12-02 21:28:59 +00:00
<div className="pt-40 sm:pt-16 lg:pt-8 lg:pb-14 lg:overflow-hidden">
<div className="mx-auto max-w-7xl lg:px-8">
<div className="lg:grid lg:grid-cols-2 lg:gap-8">
<div className="mx-auto max-w-md px-8 sm:max-w-2xl sm:text-center lg:px-0 lg:text-left lg:flex lg:items-center">
<div className="lg:py-24">
2021-12-10 11:11:05 +00:00
<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>
<div className="font-bold bg-clip-text text-transparent bg-gradient-to-r from-teal-300 to-green-400">
2021-12-02 23:39:11 +00:00
prediction markets
</div>
</h1>
<p className="mt-3 text-base text-gray-300 sm:mt-5 sm:text-xl lg:text-lg xl:text-xl">
Better forecasting through accessible prediction markets for
you and your community
</p>
<div className="mt-10 sm:mt-12">
<button
className="btn normal-case text-lg font-medium px-10 bg-gradient-to-r from-teal-500 to-green-500 hover:from-teal-600 hover:to-green-600"
onClick={firebaseLogin}
>
Sign in to get started!
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
)
}