update midterms dashboard

This commit is contained in:
mantikoros 2022-10-02 15:09:20 -05:00
parent 9a90cc3835
commit 64951e691e
2 changed files with 151 additions and 11 deletions

View File

@ -16,6 +16,12 @@ export default function LabsPage() {
className="-ml-4 flex w-auto"
columnClassName="pl-4 bg-clip-padding"
>
<LabCard
title="US 2022 Midterms"
description="See Manifold's state-by-state breakdown of senate and governor races"
href="/midterms"
/>
{CHALLENGES_ENABLED && (
<LabCard
title="Challenges"
@ -35,16 +41,13 @@ export default function LabsPage() {
description="Browse dating docs or create your own"
href="/date-docs"
/>
<LabCard
title="Senate race"
description="A state-by-state breakdown of the US Senate midterm elections"
href="/midterms"
/>
<LabCard
title="Magic the Guessering"
description="Match MTG card names to their art"
href="/mtg"
/>
<LabCard title="Cowp" description="???" href="/cowp" />
</Masonry>
</Col>

View File

@ -1,4 +1,5 @@
import { Col } from 'web/components/layout/col'
import { Spacer } from 'web/components/layout/spacer'
import { Page } from 'web/components/page'
import { Title } from 'web/components/title'
import {
@ -75,23 +76,133 @@ const senateMidterms: StateElectionMarket[] = [
},
]
const governorMidterms: StateElectionMarket[] = [
{
state: 'TX',
creatorUsername: 'LarsDoucet',
slug: 'republicans-will-win-the-2022-texas',
isWinRepublican: true,
},
{
state: 'GA',
creatorUsername: 'MattP',
slug: 'will-stacey-abrams-win-the-2022-geo',
isWinRepublican: false,
},
{
state: 'FL',
creatorUsername: 'Tetraspace',
slug: 'if-charlie-crist-is-the-democratic',
isWinRepublican: false,
},
{
state: 'PA',
creatorUsername: 'JonathanMast',
slug: 'will-josh-shapiro-win-the-2022-penn',
isWinRepublican: false,
},
{
state: 'PA',
creatorUsername: 'JonathanMast',
slug: 'will-josh-shapiro-win-the-2022-penn',
isWinRepublican: false,
},
{
state: 'CO',
creatorUsername: 'ScottLawrence',
slug: 'will-jared-polis-be-reelected-as-co',
isWinRepublican: false,
},
{
state: 'OR',
creatorUsername: 'Tetraspace',
slug: 'if-tina-kotek-is-the-2022-democrati',
isWinRepublican: false,
},
{
state: 'MD',
creatorUsername: 'Tetraspace',
slug: 'if-wes-moore-is-the-2022-democratic',
isWinRepublican: false,
},
{
state: 'AK',
creatorUsername: 'SG',
slug: 'will-a-republican-win-the-2022-alas',
isWinRepublican: true,
},
{
state: 'AZ',
creatorUsername: 'SG',
slug: 'will-a-republican-win-the-2022-ariz',
isWinRepublican: true,
},
{
state: 'AZ',
creatorUsername: 'SG',
slug: 'will-a-republican-win-the-2022-ariz',
isWinRepublican: true,
},
{
state: 'WI',
creatorUsername: 'SG',
slug: 'will-a-democrat-win-the-2022-wiscon',
isWinRepublican: false,
},
{
state: 'NV',
creatorUsername: 'SG',
slug: 'will-a-democrat-win-the-2022-nevada',
isWinRepublican: false,
},
{
state: 'KS',
creatorUsername: 'SG',
slug: 'will-a-democrat-win-the-2022-kansas',
isWinRepublican: false,
},
{
state: 'NV',
creatorUsername: 'SG',
slug: 'will-a-democrat-win-the-2022-new-me',
isWinRepublican: false,
},
{
state: 'ME',
creatorUsername: 'SG',
slug: 'will-a-democrat-win-the-2022-maine',
isWinRepublican: false,
},
]
const App = () => {
return (
<Page className="">
<Col className="items-center justify-center">
<Title text="2022 US Senate Midterms" className="mt-8" />
<Title text="2022 US Midterm Elections" className="mt-2" />
<div className="mt-2 text-2xl">Senate</div>
<StateElectionMap markets={senateMidterms} />
<iframe
src="https://manifold.markets/embed/NathanpmYoung/will-the-democrats-control-the-sena"
src="https://manifold.markets/TomShlomi/will-the-gop-control-the-us-senate"
title="Will the Democrats control the Senate after the Midterms?"
frameBorder="0"
width={800}
height={400}
className="mt-8"
></iframe>
<div className="mt-8 text-2xl">Related markets</div>
<Spacer h={8} />
<div className="mt-8 text-2xl">Governors</div>
<StateElectionMap markets={governorMidterms} />
<iframe
src="https://manifold.markets/ManifoldMarkets/democrats-go-down-at-least-one-gove"
title="Democrats go down at least one governor on net in 2022"
frameBorder="0"
width={800}
height={400}
className="mt-8"
></iframe>
<Spacer h={8} />
<div className="mt-8 text-2xl">House</div>
<iframe
src="https://manifold.markets/BoltonBailey/will-democrats-maintain-control-of"
title="Will the Democrats control the House after the Midterms?"
@ -100,7 +211,16 @@ const App = () => {
height={400}
className="mt-8"
></iframe>
<Spacer h={8} />
<div className="mt-8 text-2xl">Related markets</div>
<iframe
src="https://manifold.markets/BoltonBailey/balance-of-power-in-us-congress-aft"
title="Balance of Power in US Congress after 2022 Midterms"
frameBorder="0"
width={800}
height={400}
className="mt-8"
></iframe>
<iframe
src="https://manifold.markets/SG/will-a-democrat-win-the-2024-us-pre"
title="Will a Democrat win the 2024 US presidential election?"
@ -109,6 +229,23 @@ const App = () => {
height={400}
className="mt-8"
></iframe>
<iframe
src="https://manifold.markets/Ibozz91/will-the-2022-alaska-house-general"
title="Will the 2022 Alaska House General Nonspecial Election result in a Condorcet failure?"
frameBorder="0"
width={800}
height={400}
className="mt-8"
></iframe>
<iframe
src="https://manifold.markets/NathanpmYoung/how-many-supreme-court-justices-wil-1e597c3853ad"
title="Will the 2022 Alaska House General Nonspecial Election result in a Condorcet failure?"
frameBorder="0"
width={800}
height={400}
className="mt-8"
></iframe>
</Col>
</Page>
)