some css stuff, wip
This commit is contained in:
parent
99b1a7bb9c
commit
0976345e9c
3 changed files with 48 additions and 1 deletions
10
app/app.py
10
app/app.py
|
@ -3,15 +3,23 @@ from os import path, walk
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def home():
|
def home():
|
||||||
return render_template('index.j2', instanceName="nyxask.nixos.internal")
|
return render_template('index.j2', instanceName="nyxask.nixos.internal")
|
||||||
|
|
||||||
|
|
||||||
@app.route('/auth/login/')
|
@app.route('/auth/login/')
|
||||||
def login():
|
def login():
|
||||||
return render_template('login.j2', instanceName="nyxask.nixos.internal")
|
return render_template('login.j2', instanceName="nyxask.nixos.internal")
|
||||||
|
|
||||||
extra_dirs = ['app/templates',]
|
|
||||||
|
@app.route('/assets/css/index.css')
|
||||||
|
def index_css():
|
||||||
|
return send_from_directory('static/assets/css', 'index.css')
|
||||||
|
|
||||||
|
|
||||||
|
extra_dirs = ['app/templates', 'static/assets/css']
|
||||||
extra_files = extra_dirs[:]
|
extra_files = extra_dirs[:]
|
||||||
for extra_dir in extra_dirs:
|
for extra_dir in extra_dirs:
|
||||||
for dirname, dirs, files in walk(extra_dir):
|
for dirname, dirs, files in walk(extra_dir):
|
||||||
|
|
37
app/static/assets/css/index.css
Normal file
37
app/static/assets/css/index.css
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background: #563446;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #562F39;
|
||||||
|
font-size: 0.9em;
|
||||||
|
text-decoration: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 0.2em 0.7em;
|
||||||
|
transition: 0.2s;
|
||||||
|
}
|
||||||
|
a:hover {
|
||||||
|
color: #000000;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #562F39;
|
||||||
|
font-size: 0.9em;
|
||||||
|
text-decoration: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 0.2em 0.7em;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
textarea {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #562F39;
|
||||||
|
font-size: 0.9em;
|
||||||
|
text-decoration: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 0.2em 0.7em;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{% from 'header.j2' import header_home %}
|
{% from 'header.j2' import header_home %}
|
||||||
<html lang=en>
|
<html lang=en>
|
||||||
<head>
|
<head>
|
||||||
|
<link rel="stylesheet" href="/assets/css/index.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ header_home() }}
|
{{ header_home() }}
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
name="name"
|
name="name"
|
||||||
size="10" />
|
size="10" />
|
||||||
<br>
|
<br>
|
||||||
|
<br>
|
||||||
<label for="question">Question:</label>
|
<label for="question">Question:</label>
|
||||||
<textarea id="question" name="question"></textarea>
|
<textarea id="question" name="question"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue