40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Create Hero - Emberfall</title>
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
</head>
|
|
<body>
|
|
<div class="auth-container">
|
|
<h1>Emberfall</h1>
|
|
<h2>Create Your Hero</h2>
|
|
<nav class="nav-links" id="nav-links">
|
|
<a href="/game.html">Game</a>
|
|
<a href="/shop.html">Shop</a>
|
|
<a href="/leaderboard.html">Leaderboard</a>
|
|
<a href="/api/auth/logout" id="logout-btn">Logout</a>
|
|
</nav>
|
|
<div id="error" class="error" style="display:none;"></div>
|
|
<form id="create-hero-form">
|
|
<label for="hero-name">Hero Name</label>
|
|
<input type="text" id="hero-name" name="hero-name" required minlength="3" maxlength="16" pattern="[A-Za-z0-9 ']+">
|
|
|
|
<label for="hero-class">Class</label>
|
|
<select id="hero-class" name="hero-class" required>
|
|
<option value="">Choose a class...</option>
|
|
<option value="warrior">Warrior — Armoured frontliner (STR 8, AGI 4, INT 2, VIT 8)</option>
|
|
<option value="mage">Mage — Glass-cannon spellcaster (STR 2, AGI 4, INT 9, VIT 5)</option>
|
|
<option value="ranger">Ranger — Fast skirmisher (STR 5, AGI 9, INT 3, VIT 5)</option>
|
|
</select>
|
|
|
|
<button type="submit">Begin Your Journey</button>
|
|
</form>
|
|
</div>
|
|
<script src="/js/toast.js"></script>
|
|
<script src="/js/auth.js"></script>
|
|
<script src="/js/create-hero.js"></script>
|
|
</body>
|
|
</html>
|