diff options
| author | Bobby <[email protected]> | 2026-03-29 22:52:46 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-03-29 22:52:46 +0530 |
| commit | 9eb9b7f4bd552a641235764f66483e1f940fcfd9 (patch) | |
| tree | da520b923b5e6758d5457b6233dd6671fc640914 /nexus/templates | |
| parent | 65a143a0871c35989b7c7ea6723d39a0585c089e (diff) | |
| download | echoes-of-vaelun-main.tar.xz echoes-of-vaelun-main.zip | |
Diffstat (limited to 'nexus/templates')
| -rw-r--r-- | nexus/templates/account/index.django | 8 | ||||
| -rw-r--r-- | nexus/templates/auth/login.django | 17 | ||||
| -rw-r--r-- | nexus/templates/auth/register.django | 19 | ||||
| -rw-r--r-- | nexus/templates/characters/create.django | 20 | ||||
| -rw-r--r-- | nexus/templates/characters/index.django | 7 | ||||
| -rw-r--r-- | nexus/templates/errors/error.django | 8 | ||||
| -rw-r--r-- | nexus/templates/layouts/base.django | 12 |
7 files changed, 91 insertions, 0 deletions
diff --git a/nexus/templates/account/index.django b/nexus/templates/account/index.django new file mode 100644 index 0000000..50dcf79 --- /dev/null +++ b/nexus/templates/account/index.django @@ -0,0 +1,8 @@ +{% extends "layouts/base.django" %}
+{% block content %}
+<div class="account-container">
+ <h1>My Account</h1>
+ <p><a href="{% url 'characters' %}">My Characters</a></p>
+ <p><a href="{% url 'logout' %}">Sign Out</a></p>
+</div>
+{% endblock %}
\ No newline at end of file diff --git a/nexus/templates/auth/login.django b/nexus/templates/auth/login.django new file mode 100644 index 0000000..210fc06 --- /dev/null +++ b/nexus/templates/auth/login.django @@ -0,0 +1,17 @@ +{% extends "layouts/base.django" %}
+{% block content %}
+<div class="auth-container">
+ <h1>Sign In</h1>
+ {% if Error %}
+ <p class="error">{{ Error }}</p>
+ {% endif %}
+ <form method="POST" action="{% url 'login.submit' %}">
+ <label>Email</label>
+ <input type="email" name="email" required>
+ <label>Password</label>
+ <input type="password" name="password" required>
+ <button type="submit">Sign In</button>
+ </form>
+ <p>No account? <a href="{% url 'register' %}">Create one</a></p>
+</div>
+{% endblock %}
\ No newline at end of file diff --git a/nexus/templates/auth/register.django b/nexus/templates/auth/register.django new file mode 100644 index 0000000..82feacf --- /dev/null +++ b/nexus/templates/auth/register.django @@ -0,0 +1,19 @@ +{% extends "layouts/base.django" %}
+{% block content %}
+<div class="auth-container">
+ <h1>Create Account</h1>
+ {% if Error %}
+ <p class="error">{{ Error }}</p>
+ {% endif %}
+ <form method="POST" action="{% url 'register.submit' %}">
+ <label>Username</label>
+ <input type="text" name="username" required>
+ <label>Email</label>
+ <input type="email" name="email" required>
+ <label>Password</label>
+ <input type="password" name="password" required>
+ <button type="submit">Create Account</button>
+ </form>
+ <p>Have an account? <a href="{% url 'login' %}">Sign in</a></p>
+</div>
+{% endblock %}
\ No newline at end of file diff --git a/nexus/templates/characters/create.django b/nexus/templates/characters/create.django new file mode 100644 index 0000000..f2f08d1 --- /dev/null +++ b/nexus/templates/characters/create.django @@ -0,0 +1,20 @@ +{% extends "layouts/base.django" %}
+{% block content %}
+<div class="characters-container">
+ <h1>Create Character</h1>
+ {% if Error %}
+ <p class="error">{{ Error }}</p>
+ {% endif %}
+ <form method="POST" action="{% url 'characters.store' %}">
+ <label>Name</label>
+ <input type="text" name="name" required>
+ <label>Race</label>
+ <input type="text" name="race" required>
+ <label>Starting Kingdom</label>
+ <input type="text" name="starting_kingdom" required>
+ <label>Realm</label>
+ <input type="text" name="realm_id" required>
+ <button type="submit">Create</button>
+ </form>
+</div>
+{% endblock %}
\ No newline at end of file diff --git a/nexus/templates/characters/index.django b/nexus/templates/characters/index.django new file mode 100644 index 0000000..a1c4186 --- /dev/null +++ b/nexus/templates/characters/index.django @@ -0,0 +1,7 @@ +{% extends "layouts/base.django" %}
+{% block content %}
+<div class="characters-container">
+ <h1>Characters</h1>
+ <a href="{% url 'characters.create' %}">Create Character</a>
+</div>
+{% endblock %}
\ No newline at end of file diff --git a/nexus/templates/errors/error.django b/nexus/templates/errors/error.django new file mode 100644 index 0000000..90e4fe9 --- /dev/null +++ b/nexus/templates/errors/error.django @@ -0,0 +1,8 @@ +{% extends "layouts/base.django" %}
+{% block content %}
+<div class="error-container">
+ <h1>{{ Code }}</h1>
+ <p>{{ Message }}</p>
+ <a href="{% url 'login' %}">Go Home</a>
+</div>
+{% endblock %}
\ No newline at end of file diff --git a/nexus/templates/layouts/base.django b/nexus/templates/layouts/base.django new file mode 100644 index 0000000..4219ce3 --- /dev/null +++ b/nexus/templates/layouts/base.django @@ -0,0 +1,12 @@ +<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{{ Title }} — Echoes of Vaelun</title>
+ <link rel="stylesheet" href="{% static 'css/main.css' %}">
+</head>
+<body>
+ {% block content %}{% endblock %}
+</body>
+</html>
\ No newline at end of file |
