Skip to content

Commit

Permalink
Final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
lukedigiovanna committed Sep 15, 2024
1 parent 9a31566 commit f26ec28
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function App() {
<div className="grid grid-rows-1 grid-cols-3 w-full justify-center">
<div>
{
year > 2000 &&
((year > 2000 && view === "Election Results") || (year > 2012 && view !== "Election Results")) &&
<p className="mt-2 text-start cursor-pointer text-blue-600 hover:text-purple-600" onClick={() => {
if (view !== "Election Results") {
setYear(Math.max(2012, year - 4));
Expand Down Expand Up @@ -567,7 +567,7 @@ function App() {
<StateGeoJsonMap statesGeoJson={usStatesGeoJson} colorFunction={colorFunction} tooltipFunction={tooltipFunction}/>
}

<div className="border-b-2 border-b-black w-full my-2" />
<div className="border-b-2 border-b-gray-400 w-full my-2" />

<h1 className="font-bold text-2xl">
National Results
Expand Down Expand Up @@ -631,7 +631,20 @@ function App() {
}
</table>

<div className="border-b-2 border-b-black w-full my-2" />

<div>
<span className="font-bold">A note about how correlation works:</span> areas with a high
value of the selected data field and voted highly for the selected party show up in a
bright color. For example, selecting "Adult Population" and "Democrat Correlation" essentially
show the areas with high population that voted for the Democrat in that election.
</div>

<div className="h-48"/>

<p className="text-center italic">
Made with love for VTHacks XII!
</p>
</div>
);
}
Expand Down

0 comments on commit f26ec28

Please sign in to comment.