From 37639633118bb1513ec42daa0d3e4721dc3d7a7e Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 26 Aug 2022 10:25:39 -0700 Subject: [PATCH] Reintroduce Salem, tweak styles --- web/pages/tournaments/index.tsx | 37 +++++++++++++++++---------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/web/pages/tournaments/index.tsx b/web/pages/tournaments/index.tsx index 55150ee7..b93a9725 100644 --- a/web/pages/tournaments/index.tsx +++ b/web/pages/tournaments/index.tsx @@ -37,13 +37,13 @@ type Tourney = { groupId: string } -// const Salem = { -// title: 'CSPI/Salem Tournament', -// blurb: -// "Forecasting contest - top 5 can become Salem Center's next research fellow.", -// url: 'https://salemcenter.manifold.markets/', -// award: 25_000, -// } as const +const Salem = { + title: 'CSPI/Salem Forecasting Tournament', + blurb: 'Top 5 traders qualify for a UT Austin research fellowship.', + url: 'https://salemcenter.manifold.markets/', + award: '$25,000', + endTime: toDate('Jul 31, 2023'), +} as const const tourneys: Tourney[] = [ { @@ -61,13 +61,13 @@ const tourneys: Tourney[] = [ endTime: toDate('Jan 6, 2023'), groupId: 'SxGRqXRpV3RAQKudbcNb', }, - { - title: 'Clearer Thinking Regrant Project', - blurb: 'Something amazing', - award: '$10,000', - endTime: toDate('Sep 22, 2022'), - groupId: '2VsVVFGhKtIdJnQRAXVb', - }, + // { + // title: 'Clearer Thinking Regrant Project', + // blurb: 'Something amazing', + // award: '$10,000', + // endTime: toDate('Sep 22, 2022'), + // groupId: '2VsVVFGhKtIdJnQRAXVb', + // }, ] export async function getStaticProps() { @@ -104,7 +104,7 @@ export default function TournamentPage(props: { title="Tournaments" description="Win money by betting in forecasting touraments on current events, sports, science, and more" /> - + {tourneys.map(({ groupId, ...data }) => (
))} +
) @@ -131,7 +132,7 @@ function Section(props: { const { title, url, blurb, award, ppl, endTime, markets } = props return ( -
+

@@ -165,8 +166,8 @@ function Section(props: { contract={m} showHotVolume hideGroupLink - className="max-h-[148px] w-96 shrink-0" - questionClass="line-clamp-2" + className="max-h-[200px] w-96 shrink-0" + questionClass="line-clamp-3" /> )) ) : (