Skip to content

Commit

Permalink
registration widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ashrithathmaram committed Feb 2, 2024
1 parent bda0e50 commit 6d15cd7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
19 changes: 18 additions & 1 deletion app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,27 @@ export default function Dashboard() {
<CardDescription>Check your registration status.</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
{(userData.registration_status == "unregistered") &&
<>
<div className="flex flex-row items-center justify-center">
<CardTitle>{userData ? userData?.registration_status : "unregistered"}</CardTitle>
<a className="underline" href="waiver.pdf" rel="noopener noreferrer" target="_blank">Waiver</a>
<input className="ml-auto mr-0" type="file" accept=".pdf"></input>
</div>
<div className="flex flex-row items-center justify-center">
<CardTitle>unregistered</CardTitle>
<Button className="ml-auto" onClick={()=>console.log("register button clicked")}>Register</Button>
</div>
</>
}
{(userData.registration_status == "confirmation") &&
<>
<div className="flex flex-row items-center justify-center">
<CardTitle>confirmation</CardTitle>
<Button className="ml-auto" onClick={()=>console.log("confirm button clicked")}>Coming</Button>
<Button className="ml-auto" onClick={()=>console.log("confirm button clicked")}>Not Coming</Button>
</div>
</>
}
</CardContent>
</Card>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ export async function getSelf() {
return {
"email": "testemail@gmail.com",
"role": {
"hacker": false,
"hacker": true,
"volunteer": false,
"judge": false,
"sponsor": false,
"mentor": false,
"organizer": true,
"organizer": false,
"director": false
},
"votes": 0,
Expand Down
Binary file added public/waiver.pdf
Binary file not shown.

0 comments on commit 6d15cd7

Please sign in to comment.