Skip to content

Commit

Permalink
fixed a few ' vs ', unnecessary dependencies, and added an ignor…
Browse files Browse the repository at this point in the history
…e about optimized images
  • Loading branch information
langdon committed Aug 10, 2024
1 parent e96718c commit c115dd4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "next/core-web-vitals"
"extends": "next/core-web-vitals",
"rules": {
"@next/next/no-img-element": "off"
}
}
16 changes: 8 additions & 8 deletions client/src/pages/ballotInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function BallotInfo() {
<div className='flex flex-col items-left p-20 pt-40 text-left bg-sky-50'>
<div className='flex items-center'>
<h1 className='text-blue-700 font-bold text-6xl bg-blue-700 bg-clip-text text-transparent'> LEARN. PLAN.</h1>

</div>
<p className='font-semibold text-2xl pt-8 '>Explore the elections, candidates, and crucial issues personalized to your community.</p>
</div>
Expand All @@ -44,7 +44,7 @@ export default function BallotInfo() {
<p className='text-xl font-semibold text-center pt-10'> Enter your address to find out your district. </p>
{/* Address form */}
<div className='flex flex-col justify-center items-center p-5 '>

<DistrictForm onFormSubmit={handleFormSubmit} />
{isFormSubmitted && (
<p className='mt-2 text-lg'>Your Council District: <span className='font-semibold'>{globalDistrictNum}</span></p>
Expand All @@ -54,17 +54,17 @@ export default function BallotInfo() {

<div className = "bg-sky-100 p-20">
<h1 className='ml-20 font-bold text-4xl'> What&apos;s on the Ballot? </h1>
<p className='ml-20 pt-5 text-xl text-left '>This sample ballot provides essential information on the races in upcoming elections.
Once you've confirmed your district, toggle between elections below to view the candidates and a detailed overview of their policies and goals. Our content is carefully curated and managed by our team,
headed by Journalist Yawu Miller.
<p className='ml-20 pt-5 text-xl text-left '>This sample ballot provides essential information on the races in upcoming elections.
Once you&apos;ve confirmed your district, toggle between elections below to view the candidates and a detailed overview of their policies and goals. Our content is carefully curated and managed by our team,
headed by Journalist Yawu Miller.
<ButtonFill name='Learn More' link='https://baystatebanner.com/author/yawu/' className='p-4 m-4 rounded-full bg-blue-700 text-white hover:bg-blue-800' /> </p>
{/* Election checkbox card */}
<ElectionCheckbox onCheck={handleCheck} />

{/* What's on the Ballot dropdown */}

{/* What&apos;s on the Ballot dropdown */}
<div className='flex flex-col justify-center items-center py-8 px-2 my-6'>
{/* Don't make instance of candidate data till form and election are done */}
{/* Don&apos;t make instance of candidate data till form and election are done */}
{(isFormSubmitted && selectedElection) ? (
<>
<h1 className='font-semibold text-left text-3xl mt-6'>Candidates</h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function BallotInitiative() {
});
setFilteredData(curData);
}
}, [globalDistrictNum, globalCurrElection, initiative]);
}, [initiative]);


return (
Expand Down

0 comments on commit c115dd4

Please sign in to comment.