senate midterms
This commit is contained in:
		
							parent
							
								
									72a2c86012
								
							
						
					
					
						commit
						c7e2a115fb
					
				
							
								
								
									
										80
									
								
								web/pages/map.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								web/pages/map.tsx
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,80 @@
 | 
				
			||||||
 | 
					import { Col } from 'web/components/layout/col'
 | 
				
			||||||
 | 
					import { Title } from 'web/components/title'
 | 
				
			||||||
 | 
					import {
 | 
				
			||||||
 | 
					  StateElectionMarket,
 | 
				
			||||||
 | 
					  StateElectionMap,
 | 
				
			||||||
 | 
					} from 'web/components/usa-map/state-election-map'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const senateMidterms: StateElectionMarket[] = [
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'AZ',
 | 
				
			||||||
 | 
					    creatorUsername: 'BTE',
 | 
				
			||||||
 | 
					    slug: 'will-blake-masters-win-the-arizona',
 | 
				
			||||||
 | 
					    isWinRepublican: true,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'OH',
 | 
				
			||||||
 | 
					    creatorUsername: 'BTE',
 | 
				
			||||||
 | 
					    slug: 'will-jd-vance-win-the-ohio-senate-s',
 | 
				
			||||||
 | 
					    isWinRepublican: true,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'WI',
 | 
				
			||||||
 | 
					    creatorUsername: 'BTE',
 | 
				
			||||||
 | 
					    slug: 'will-ron-johnson-be-reelected-in-th',
 | 
				
			||||||
 | 
					    isWinRepublican: true,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'FL',
 | 
				
			||||||
 | 
					    creatorUsername: 'BTE',
 | 
				
			||||||
 | 
					    slug: 'will-marco-rubio-be-reelected-to-th',
 | 
				
			||||||
 | 
					    isWinRepublican: true,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'PA',
 | 
				
			||||||
 | 
					    creatorUsername: 'MattP',
 | 
				
			||||||
 | 
					    slug: 'will-dr-oz-be-elected-to-the-us-sen',
 | 
				
			||||||
 | 
					    isWinRepublican: true,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'GA',
 | 
				
			||||||
 | 
					    creatorUsername: 'NcyRocks',
 | 
				
			||||||
 | 
					    slug: 'will-a-democrat-win-the-2022-us-sen-3d2432ba6d79',
 | 
				
			||||||
 | 
					    isWinRepublican: false,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'NV',
 | 
				
			||||||
 | 
					    creatorUsername: 'NcyRocks',
 | 
				
			||||||
 | 
					    slug: 'will-a-democrat-win-the-2022-us-sen',
 | 
				
			||||||
 | 
					    isWinRepublican: false,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'NC',
 | 
				
			||||||
 | 
					    creatorUsername: 'NcyRocks',
 | 
				
			||||||
 | 
					    slug: 'will-a-democrat-win-the-2022-us-sen-6f1a901e1fcf',
 | 
				
			||||||
 | 
					    isWinRepublican: false,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'NH',
 | 
				
			||||||
 | 
					    creatorUsername: 'NcyRocks',
 | 
				
			||||||
 | 
					    slug: 'will-a-democrat-win-the-2022-us-sen-23194a72f1b7',
 | 
				
			||||||
 | 
					    isWinRepublican: false,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    state: 'UT',
 | 
				
			||||||
 | 
					    creatorUsername: 'SG',
 | 
				
			||||||
 | 
					    slug: 'will-mike-lee-win-the-2022-utah-sen',
 | 
				
			||||||
 | 
					    isWinRepublican: true,
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const App = () => {
 | 
				
			||||||
 | 
					  return (
 | 
				
			||||||
 | 
					    <Col className="items-center justify-center">
 | 
				
			||||||
 | 
					      <StateElectionMap markets={senateMidterms} />
 | 
				
			||||||
 | 
					      <Title text="2022 US Senate Midterms" className="mt-8" />
 | 
				
			||||||
 | 
					    </Col>
 | 
				
			||||||
 | 
					  )
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export default App
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user