Feature a few other semi-tournaments

This commit is contained in:
Austin Chen 2022-09-10 11:50:03 -07:00
parent 11ba65ec4a
commit e61591622e

View File

@ -99,13 +99,6 @@ const tourneys: Tourney[] = [
endTime: toDate('Jan 6, 2023'), endTime: toDate('Jan 6, 2023'),
groupId: 'SxGRqXRpV3RAQKudbcNb', groupId: 'SxGRqXRpV3RAQKudbcNb',
}, },
{
title: 'SF 2022 Ballot',
blurb: 'Which ballot initiatives will pass this year in SF and CA?',
award: '',
endTime: toDate('Nov 8, 2022'),
groupId: 'VkWZyS5yxs8XWUJrX9eq',
},
// { // {
// title: 'Clearer Thinking Regrant Project', // title: 'Clearer Thinking Regrant Project',
// blurb: 'Something amazing', // blurb: 'Something amazing',
@ -113,6 +106,27 @@ const tourneys: Tourney[] = [
// endTime: toDate('Sep 22, 2022'), // endTime: toDate('Sep 22, 2022'),
// groupId: '2VsVVFGhKtIdJnQRAXVb', // groupId: '2VsVVFGhKtIdJnQRAXVb',
// }, // },
// Tournaments without awards get featured belows
{
title: 'SF 2022 Ballot',
blurb: 'Which ballot initiatives will pass this year in SF and CA?',
endTime: toDate('Nov 8, 2022'),
groupId: 'VkWZyS5yxs8XWUJrX9eq',
},
{
title: '2024 Democratic Nominees',
blurb: 'How would different Democratic candidates fare in 2024?',
endTime: toDate('Nov 2, 2024'),
groupId: 'gFhjgFVrnYeFYfxhoLNn',
},
{
title: 'Private Tech Companies',
blurb: 'What will these companies exit for?',
endTime: toDate('Dec 31, 2030'),
groupId: 'faNUnphw6Eoq7OJBRJds',
},
] ]
type SectionInfo = { type SectionInfo = {
@ -144,7 +158,9 @@ export default function TournamentPage(props: { sections: SectionInfo[] }) {
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="m-4 gap-10 sm:mx-10 sm:gap-24 xl:w-[125%]"> <Col className="m-4 gap-10 sm:mx-10 sm:gap-24 xl:w-[125%]">
{sections.map(({ tourney, slug, numPeople }) => ( {sections.map(
({ tourney, slug, numPeople }) =>
tourney.award && (
<div key={slug}> <div key={slug}>
<SectionHeader <SectionHeader
url={groupPath(slug, 'about')} url={groupPath(slug, 'about')}
@ -156,7 +172,8 @@ export default function TournamentPage(props: { sections: SectionInfo[] }) {
<span>{tourney.blurb}</span> <span>{tourney.blurb}</span>
<MarketCarousel slug={slug} /> <MarketCarousel slug={slug} />
</div> </div>
))} )
)}
<div> <div>
<SectionHeader <SectionHeader
url={Salem.url} url={Salem.url}
@ -167,6 +184,38 @@ export default function TournamentPage(props: { sections: SectionInfo[] }) {
<span>{Salem.blurb}</span> <span>{Salem.blurb}</span>
<ImageCarousel url={Salem.url} images={Salem.images} /> <ImageCarousel url={Salem.url} images={Salem.images} />
</div> </div>
{/* Title break */}
<div className="relative">
<div
className="absolute inset-0 flex items-center"
aria-hidden="true"
>
<div className="w-full border-t border-gray-300" />
</div>
<div className="relative flex justify-center">
<span className="bg-gray-50 px-3 text-lg font-medium text-gray-900">
Featured Groups
</span>
</div>
</div>
{sections.map(
({ tourney, slug, numPeople }) =>
!tourney.award && (
<div key={slug}>
<SectionHeader
url={groupPath(slug, 'about')}
title={tourney.title}
ppl={numPeople}
award={tourney.award}
endTime={tourney.endTime}
/>
<span>{tourney.blurb}</span>
<MarketCarousel slug={slug} />
</div>
)
)}
</Col> </Col>
</Page> </Page>
) )