new signed-out homepage

This commit is contained in:
mantikoros 2022-01-26 18:21:14 -06:00
parent 33c8fe2bc0
commit d9c67e8d49
3 changed files with 29 additions and 25 deletions

View File

@ -8,43 +8,47 @@ import { firebaseLogin, User } from '../lib/firebase/users'
import { ContractsGrid } from './contracts-list' import { ContractsGrid } from './contracts-list'
import { Contract } from '../../common/contract' import { Contract } from '../../common/contract'
import { TagsList } from './tags-list' import { TagsList } from './tags-list'
import { Col } from './layout/col'
export function FeedPromo(props: { hotContracts: Contract[] }) { export function FeedPromo(props: { hotContracts: Contract[] }) {
const { hotContracts } = props const { hotContracts } = props
return ( return (
<> <>
<div className="w-full bg-indigo-50 p-6 sm:border-2 sm:border-indigo-100 sm:rounded-lg"> <Col className="w-full bg-white p-6 sm:border-2 sm:border-indigo-100 sm:rounded-lg">
<Title <h1 className="mt-4 text-4xl sm:mt-5 sm:text-6xl lg:mt-6 xl:text-6xl">
text="Bet on the future" <div className="mb-2">Create your own</div>
className="!mt-2 text-gray-800 !text-4xl" <div className="font-bold bg-clip-text text-transparent bg-gradient-to-r from-teal-400 to-green-400">
/> prediction markets
</div>
</h1>
<Spacer h={6} />
<div className="text-gray-500 mb-4"> <div className="text-gray-500 mb-4">
On Manifold Markets, you can find prediction markets run by your Find prediction markets run by your favorite creators, or make your
favorite creators. own.
<br /> <br />
<button Sign up to get M$ 1000 for free and start trading!
className="text-green-500 hover:underline hover:decoration-gray-300 hover:decoration-2"
onClick={firebaseLogin}
>
Sign up to get M$ 1000 for free
</button>{' '}
and start trading!
<br /> <br />
</div> </div>
{/* <TagsList
<TagsList
className="mt-2" className="mt-2"
tags={['#politics', '#crypto', '#covid', '#sports', '#meta']} tags={['#politics', '#crypto', '#covid', '#sports', '#meta']}
/> /> */}
<Spacer h={6} />
<button
className="btn btn-lg self-center border-none bg-gradient-to-r from-teal-500 to-green-500 hover:from-teal-600 hover:to-green-600"
onClick={firebaseLogin}
>
Sign up now
</button>{' '}
</Col>
<Spacer h={4} /> <Spacer h={6} />
<ContractsGrid <ContractsGrid
contracts={hotContracts?.slice(0, 6) || []} contracts={hotContracts?.slice(0, 10) || []}
showHotVolume showHotVolume
/> />
</div>
</> </>
) )
} }

View File

@ -82,7 +82,7 @@ function NavOptions(props: { user: User | null; themeClasses: string }) {
{user === null ? ( {user === null ? (
<> <>
<button <button
className="btn border-none normal-case text-base font-medium px-6 bg-gradient-to-r from-teal-500 to-green-500 hover:from-teal-600 hover:to-green-600" className="btn btn-sm btn-outline normal-case text-base font-medium px-6 bg-gradient-to-r"
onClick={firebaseLogin} onClick={firebaseLogin}
> >
Sign in Sign in

View File

@ -160,7 +160,7 @@ export function listenForHotContracts(
export async function getHotContracts() { export async function getHotContracts() {
const contracts = await getValues<Contract>(hotContractsQuery) const contracts = await getValues<Contract>(hotContractsQuery)
return _.sortBy( return _.sortBy(
chooseRandomSubset(contracts, 6), chooseRandomSubset(contracts, 10),
(contract) => -1 * contract.volume24Hours (contract) => -1 * contract.volume24Hours
) )
} }