Skip to content

Commit

Permalink
Merge pull request #8 from BU-Spark/upcomingElections
Browse files Browse the repository at this point in the history
Upcoming elections
  • Loading branch information
jasonjiang9142 authored May 29, 2024
2 parents c62074d + a493f22 commit 4807103
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react'
import Nav from '../components/nav'
import UpcomingElections from '../pages/upcomingElections'
export default function Home() {
return (
<div>
<Nav />
<h1>Home Page</h1>
<UpcomingElections />
</div>
)
}
9 changes: 9 additions & 0 deletions client/src/pages/upcomingElections/electionDates.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default function ElectionDates() {
return (
<div className='bg-gray-100 m-4 rounded-xl grid grid-cols-2 p-4 max-w-lg align-center'>
<p className="font-semibold text-red-500 m-2 text-center ">SEPT 2 @ 5PM</p>
<p className='m-2 text-left'>Deadline for registration of voters for Preliminary Municipal Election.</p>
</div>
)

}
41 changes: 41 additions & 0 deletions client/src/pages/upcomingElections/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from "react";
import Button from '@mui/material/Button';
import ElectionDates from './electionDates'

export default function UpcomingElections() {
return (
<div className=''>
<div className='flex flex-col justify-center items-center p-4 text-center'>
<h1 className='text-blue-700 font-bold text-8xl '>LET’S VOTE!</h1>
<p className='p-5'>The most important information about Boston's municiple elections to help you naviagte your voting journey</p>
</div>


<div className='flex flex-col justify-center items-center p-4'>
<Button variant="contained" className='p-4 m-4 rounded-full bg-blue-700 text-white'>Your Voter Info</Button>
<Button variant="contained" className='p-4 m-4 rounded-full bg-white text-blue-700 border-blue-800 border-4 hover:bg-gray-100' >How do I register</Button>
<p className='text-red-500'>Deadline to register: <strong>Aug 24, 2024</strong></p>
</div>

<h1 className="text-center font-semibold text-3xl m-10">Boston’s Municipal Election Dates</h1>

<div className="flex items-center justify-center flex-wrap">
<ElectionDates />
<ElectionDates />
<ElectionDates />
<ElectionDates />
</div>

<div className='flex flex-col justify-center items-center p-4 my-10'>
<p className=' font-semibold p-4'>You may be wondering.....</p>
<Button variant="outlined" className='p-4 m-4 rounded-full bg-white text-blue-700 border-blue-800 hover:bg-gray-100'>Whats on the Ballot </Button>
<Button variant="outlined" className='p-4 m-4 rounded-full bg-white text-blue-700 border-blue-800 hover:bg-gray-100' >What are my voting options </Button>

</div>




</div>
)
}

0 comments on commit 4807103

Please sign in to comment.