From 2ef91bf0c41c3b353b7864febfb91df680e2fa76 Mon Sep 17 00:00:00 2001 From: Adama Ruth Senam <102476731+Adama00@users.noreply.github.com> Date: Sat, 7 Sep 2024 11:12:42 +0000 Subject: [PATCH] Added Summary Page (#42) Co-authored-by: Adama-Merson --- .../src/app/elections/[id]/summary/page.tsx | 71 ++++++++++++++++++- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/elections/[id]/summary/page.tsx b/frontend/src/app/elections/[id]/summary/page.tsx index 61aa57a..220c8e1 100644 --- a/frontend/src/app/elections/[id]/summary/page.tsx +++ b/frontend/src/app/elections/[id]/summary/page.tsx @@ -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 ( -
Election Summary here
+
+
+
+

Election Title

+ +

2024 SRC President - UG

+
+ +
+

Description

+ +

+ This election is being held to elect a new SRC president for the + University of Ghana +

+
+ +
+

Election Period

+

+ Aug 17, 2024 - Aug 29, 2024 +

+
+ +
+

Election Type

+

Private

+
+ +
+

Candidates

+
    + {candidates.map((candidate) => ( +
  • + {candidate.name} +
  • + ))} +
+
+
+

Voter Count

+

24

+
+
+
+ + +
+ +
+ +
+
); -} \ No newline at end of file +}