Compare commits
2 commits
eb7b798e75
...
b9e90ba56c
Author | SHA1 | Date | |
---|---|---|---|
b9e90ba56c | |||
202836d617 |
5 changed files with 29 additions and 13 deletions
|
@ -13,6 +13,9 @@ def home():
|
|||
def login():
|
||||
return render_template('login.j2', instanceName="nyxask.nixos.internal", instanceBranding="NyxAsk Testing Instance")
|
||||
|
||||
@app.route('/auth/register/')
|
||||
def register():
|
||||
return render_template('register.j2', instanceName="nyxask.nixos.internal", instanceBranding="NyxAsk Testing Instance")
|
||||
|
||||
@app.route('/assets/css/index.css')
|
||||
def index_css():
|
||||
|
|
3
app/templates/imports.j2
Normal file
3
app/templates/imports.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% macro imports_main() %}
|
||||
<link rel="stylesheet" href="/assets/css/index.css">
|
||||
{% endmacro %}
|
|
@ -1,8 +1,9 @@
|
|||
{% from 'header.j2' import header_home %}
|
||||
{% from 'imports.j2' import imports_main %}
|
||||
<html lang=en>
|
||||
<head>
|
||||
<title>{{ instanceBranding }} - Home</title>
|
||||
<link rel="stylesheet" href="/assets/css/index.css">
|
||||
{{ imports_main() }}
|
||||
</head>
|
||||
<body>
|
||||
{{ header_home() }}
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{% from 'header.j2' import header_login %}
|
||||
{% from 'imports.j2' import imports_main %}
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{{ instanceBranding }} - Login</title>
|
||||
{{ imports_main() }}
|
||||
</head>
|
||||
<body>
|
||||
{{ header_login() }}
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{% from 'header.j2' import header_login %}
|
||||
{% from 'imports.j2' import imports_main %}
|
||||
<html lang=en>
|
||||
<head>
|
||||
<title>{{ instanceBranding }} - Register</title>
|
||||
{{ imports_main() }}
|
||||
</head>
|
||||
<body>
|
||||
{{ header_login() }}
|
||||
|
@ -9,19 +11,24 @@
|
|||
<h1>
|
||||
Login to {{ instanceName }}'s Nyxask!
|
||||
</h1>
|
||||
<label for="name">Username: </label>
|
||||
<input
|
||||
type="text"
|
||||
id="name"
|
||||
name="name"
|
||||
size="10" />
|
||||
<label>
|
||||
<input
|
||||
placeholder="username"
|
||||
type="text"
|
||||
name="name"
|
||||
size="10"
|
||||
/>
|
||||
</label>
|
||||
<br>
|
||||
<label for="question">Password: </label>
|
||||
<input
|
||||
type="password"
|
||||
id="password"
|
||||
name="password"
|
||||
size="10" />
|
||||
<br>
|
||||
<label>
|
||||
<input
|
||||
placeholder="password"
|
||||
type="password"
|
||||
name="password"
|
||||
size="10"
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Reference in a new issue