Skip to content

Commit

Permalink
Added Summary Page (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: Adama-Merson <[email protected]>
  • Loading branch information
Adama00 and Adama-merson authored Sep 7, 2024
1 parent b173600 commit 2ef91bf
Showing 1 changed file with 69 additions and 2 deletions.
71 changes: 69 additions & 2 deletions frontend/src/app/elections/[id]/summary/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,77 @@ import { Metadata } from "next";

export const metadata: Metadata = {
title: "ABVS | Election Summary",
};

interface Candidates {
id: number;
name: string;
}

export default function ElectionSummary() {
const candidates: Candidates[] = [
{ id: 1, name: "Joshua Mensah" },
{ id: 2, name: "Alisson Newton" },
{ id: 3, name: "James Hammond" },
{ id: 4, name: "Michael Brown" },
];
return (
<div>Election Summary here</div>
<div className="w-[80%]">
<div>
<div className="gap-[12px]">
<h2 className="">Election Title</h2>

<p className="text-subtle-text mt-3">2024 SRC President - UG</p>
</div>

<div className="mt-12">
<h2>Description</h2>

<p className="mt-3 text-subtle-text">
This election is being held to elect a new SRC president for the
University of Ghana
</p>
</div>

<div className="mt-12">
<h2 className="font-space-grotesk ">Election Period</h2>
<p className="text-subtle-text text-start mt-3">
Aug 17, 2024 - Aug 29, 2024
</p>
</div>

<div className="mt-12">
<h2>Election Type</h2>
<p className="text-subtle-text mt-3">Private</p>
</div>

<div className="mt-12">
<h2>Candidates</h2>
<ul>
{candidates.map((candidate) => (
<li key={candidate.id} className="text-subtle-text mt-3">
{candidate.name}
</li>
))}
</ul>
</div>
<div className="my-12">
<h2>Voter Count</h2>
<p className="text-subtle-text mt-3">24</p>
</div>
</div>
<div className="flex md:flex-row mt-[103px] items-center mb-4 gap-8">
<button className="text-nowrap h-14 text-center md:px-10 md:py-2 px-14 border-2 border-subtle-text rounded-[50px]">
save draft
</button>
<button className=" h-14 rounded-[50px] sm:self-center md:mt-2 text-center bg-gradient-to-r from-primary to-secondary px-[75px]">
<span className="text-nowrap">publish election link</span>
</button>
</div>

<div>

</div>
</div>
);
}
}

0 comments on commit 2ef91bf

Please sign in to comment.