Skip to content

Commit

Permalink
Merge pull request #45 from BU-Spark/stylingBI
Browse files Browse the repository at this point in the history
Styling bi
  • Loading branch information
Arshnoorkc13 authored Jun 25, 2024
2 parents f3811ce + 7adde5d commit 9b481d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 58 deletions.
51 changes: 2 additions & 49 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions client/src/pages/ballotInfo/[candidate].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,25 @@ export default function Candidate() {


return (
<div className="max-w-2xl mx-auto p-4 bg-white shadow-lg rounded-lg">
<h1 className="text-3xl font-bold mb-4">Candidate: {candidateName}</h1>
<div className="max-w-2xl mx-auto p-4 #d1e4fa">
{candidateData ? (
<div className="border-t border-gray-200 pt-4">
<p className="text-lg mb-2"><span className="font-semibold">Party:</span> {candidateData.Party}</p>
<p className="text-lg mb-2"><span className="font-semibold">District:</span> {candidateData.District}</p>
<p className="text-lg mb-2"><span className="font-semibold">Election Name:</span> {candidateData.ElectionName}</p>
<>
<h1 className="text-4xl font-bold mb-4 justify-center text-center">{candidateData?.Name}</h1>
<div className="border-t border-gray-800 pt-4">
<div className="flex flex-col items-center">
<p className="text-lg mb-2 font-semibold"> {candidateData.Party} </p>
<p className="text-lg mb-2 font-semibold"> {candidateData.District} </p>
<p className="text-lg mb-2 font-semibold"> {candidateData.ElectionName}</p>
{candidateData.CampaignSiteLink && (
<p className="text-lg mb-2"><span className="font-semibold">Campaign Site:</span> <a href={candidateData.CampaignSiteLink} className="text-blue-500">{candidateData.CampaignSiteLink}</a></p>
<p className="text-lg mb-2 font-semibold"> <a href={candidateData.CampaignSiteLink} className="text-blue-500">{candidateData.CampaignSiteLink}</a></p>
)}
{candidateData.LinkedinLink && (
<p className="text-lg mb-2"><span className="font-semibold">LinkedIn:</span> <a href={candidateData.LinkedinLink} className="text-blue-500">{candidateData.LinkedinLink}</a></p>
<p className="text-lg mb-2 font-semibold"> <a href={candidateData.LinkedinLink} className="text-blue-500">{candidateData.LinkedinLink}</a></p>
)}
<p className="text-lg mb-2"><span className="font-semibold">Role:</span> {candidateData.Role}</p>
<p className="text-lg mb-2 font-semibold"> {candidateData.Role}</p>
</div>
</div>
</>
) : (
<p className="text-lg">Loading candidate data...</p>
)}
Expand Down

0 comments on commit 9b481d8

Please sign in to comment.