some css stuff, wip

This commit is contained in:
Nyx 2025-03-09 23:41:26 -05:00
parent 99b1a7bb9c
commit 0976345e9c
3 changed files with 48 additions and 1 deletions

View file

@ -3,15 +3,23 @@ from os import path, walk
app = Flask(__name__)
@app.route('/')
def home():
return render_template('index.j2', instanceName="nyxask.nixos.internal")
@app.route('/auth/login/')
def login():
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[:]
for extra_dir in extra_dirs:
for dirname, dirs, files in walk(extra_dir):

View 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;
}
}

View file

@ -1,6 +1,7 @@
{% from 'header.j2' import header_home %}
<html lang=en>
<head>
<link rel="stylesheet" href="/assets/css/index.css">
</head>
<body>
{{ header_home() }}
@ -15,6 +16,7 @@
name="name"
size="10" />
<br>
<br>
<label for="question">Question:</label>
<textarea id="question" name="question"></textarea>
</div>