You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
2.8 KiB

<!--
Alex Miller
Jordan Latimer
Profile Page before entering a contest for User
-->
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NMU CTF User Profile Page</title>
</head>
<body>
<!-- Header -->
<div id="Header">
<h1> Profile </h1>
<div class="tooltip">
?
<span class="tooltipText">
This is everything about your profile
<br>
you can view your Past Contests, Record,
<br>
and change your username
</span>
</div>
<br>
<br>
<input id="ContestsButt" type="button" value="Back to Contest" (click)="navtoPage()">
<input id="LogoutButt" type="button" value="Logout" (click)="onLogout()">
</div>
<!-- past contests -->
<div id="PastContests">
<h1> Past Contests </h1>
<div class="tooltip">
?
<span class="tooltipText">
This is every past contest that's still around
<br>
you can see the <span style="color:white">Leaderboard</span> by clicking
<br>
on <span style="color:lawngreen">View</span>
</span>
</div>
<br>
<br>
<!-- past contest table -->
<div id="Past_Contests">
<table>
<thead>
<tr>
<th> Contest Name </th>
<th> Flags </th>
<th> Leaderboard </th>
</tr>
</thead>
<tbody id="UPCTBody">
</tbody>
</table>
</div>
</div>
<!-- usernames -->
<div id="Username">
<h1> Edit Username </h1>
<div class="tooltip">
?
<span class="tooltipText">
This is where you can change your username
<br>
simply click <span style="color:blue">Generate</span> and a random
<br>
username will be generated, keep going until you find one you like and
<br>
click <span style="color:lawngreen">Set Name</span> to set that as your username
</span>
</div>
<!-- Name generator and setname buttons -->
<div id="Name">
<h4 id="Username"> Current Name: {{Username}} </h4>
<input type="text" id="NameInput" [(ngModel)]="NameInput" readonly>
<input id="generate" type="button" value="Generate" (click)="onGetNewName()">
<br>
<br>
<input id="setname" type="button" value="Set Name" (click)="onSetNewName()">
</div>
</div>
<!-- record -->
<div id="Record">
<h1> Record </h1>
<div class="tooltip">
?
<span class="tooltipText">
This is where you can view your <span style="color:white">Record</span>
<br>
to see how well you are doing with all <span style="color:white">Contests</span>
</span>
</div>
<br>
<br>
<!-- record table -->
<div id="RecordTable">
<table>
<thead>
<tr>
<th> Completed </th>
<th> Total </th>
<th> Record </th>
</tr>
</thead>
<tbody id="URTbody">
</tbody>
</table>
</div>
</div>
</body>
</html>