Files
Emberfall/public/create-hero.html
2026-10-21 10:21:11 +11:00

34 lines
1.2 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>
<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>