Reintroduce Salem, tweak styles
This commit is contained in:
parent
d94b777e92
commit
3763963311
|
@ -37,13 +37,13 @@ type Tourney = {
|
||||||
groupId: string
|
groupId: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// const Salem = {
|
const Salem = {
|
||||||
// title: 'CSPI/Salem Tournament',
|
title: 'CSPI/Salem Forecasting Tournament',
|
||||||
// blurb:
|
blurb: 'Top 5 traders qualify for a UT Austin research fellowship.',
|
||||||
// "Forecasting contest - top 5 can become Salem Center's next research fellow.",
|
url: 'https://salemcenter.manifold.markets/',
|
||||||
// url: 'https://salemcenter.manifold.markets/',
|
award: '$25,000',
|
||||||
// award: 25_000,
|
endTime: toDate('Jul 31, 2023'),
|
||||||
// } as const
|
} as const
|
||||||
|
|
||||||
const tourneys: Tourney[] = [
|
const tourneys: Tourney[] = [
|
||||||
{
|
{
|
||||||
|
@ -61,13 +61,13 @@ const tourneys: Tourney[] = [
|
||||||
endTime: toDate('Jan 6, 2023'),
|
endTime: toDate('Jan 6, 2023'),
|
||||||
groupId: 'SxGRqXRpV3RAQKudbcNb',
|
groupId: 'SxGRqXRpV3RAQKudbcNb',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: 'Clearer Thinking Regrant Project',
|
// title: 'Clearer Thinking Regrant Project',
|
||||||
blurb: 'Something amazing',
|
// blurb: 'Something amazing',
|
||||||
award: '$10,000',
|
// award: '$10,000',
|
||||||
endTime: toDate('Sep 22, 2022'),
|
// endTime: toDate('Sep 22, 2022'),
|
||||||
groupId: '2VsVVFGhKtIdJnQRAXVb',
|
// groupId: '2VsVVFGhKtIdJnQRAXVb',
|
||||||
},
|
// },
|
||||||
]
|
]
|
||||||
|
|
||||||
export async function getStaticProps() {
|
export async function getStaticProps() {
|
||||||
|
@ -104,7 +104,7 @@ export default function TournamentPage(props: {
|
||||||
title="Tournaments"
|
title="Tournaments"
|
||||||
description="Win money by betting in forecasting touraments on current events, sports, science, and more"
|
description="Win money by betting in forecasting touraments on current events, sports, science, and more"
|
||||||
/>
|
/>
|
||||||
<Col className="mx-4 sm:mx-10 xl:w-[125%]">
|
<Col className="mx-4 mt-4 gap-20 sm:mx-10 xl:w-[125%]">
|
||||||
{tourneys.map(({ groupId, ...data }) => (
|
{tourneys.map(({ groupId, ...data }) => (
|
||||||
<Section
|
<Section
|
||||||
key={groupId}
|
key={groupId}
|
||||||
|
@ -114,6 +114,7 @@ export default function TournamentPage(props: {
|
||||||
markets={markets[groupId] ?? []}
|
markets={markets[groupId] ?? []}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
<Section {...Salem} markets={[]} />
|
||||||
</Col>
|
</Col>
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
|
@ -131,7 +132,7 @@ function Section(props: {
|
||||||
const { title, url, blurb, award, ppl, endTime, markets } = props
|
const { title, url, blurb, award, ppl, endTime, markets } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="my-12">
|
<div>
|
||||||
<Link href={url}>
|
<Link href={url}>
|
||||||
<a className="group mb-3 flex flex-wrap justify-between">
|
<a className="group mb-3 flex flex-wrap justify-between">
|
||||||
<h2 className="text-xl font-semibold group-hover:underline md:text-3xl">
|
<h2 className="text-xl font-semibold group-hover:underline md:text-3xl">
|
||||||
|
@ -165,8 +166,8 @@ function Section(props: {
|
||||||
contract={m}
|
contract={m}
|
||||||
showHotVolume
|
showHotVolume
|
||||||
hideGroupLink
|
hideGroupLink
|
||||||
className="max-h-[148px] w-96 shrink-0"
|
className="max-h-[200px] w-96 shrink-0"
|
||||||
questionClass="line-clamp-2"
|
questionClass="line-clamp-3"
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user