modified: app.py

new file:   static/css/theme-dark.css
	new file:   static/css/theme-light.css
	modified:   templates/index.html
	modified:   templates/login.html
	modified:   templates/settings.html
This commit is contained in:
SimolZimol
2024-09-03 11:18:01 +02:00
parent 911ecfa9ca
commit 00c958c34d
6 changed files with 33 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{{ url_for('static', filename='css/theme-' + theme + '.css') }}" rel="stylesheet">
<title>Settings</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
@@ -19,6 +20,13 @@
<div class="form-group">
<label for="asknotes_introduction">Asknotes Introduction Text</label>
<textarea id="asknotes_introduction" name="asknotes_introduction" class="form-control" rows="5">{{ asknotes_introduction }}</textarea>
</div>
<div class="form-group">
<label for="theme">Select Theme</label>
<select id="theme" name="theme" class="form-control">
<option value="light" {% if theme == 'light' %}selected{% endif %}>Light Theme</option>
<option value="dark" {% if theme == 'dark' %}selected{% endif %}>Dark Theme</option>
</select>
</div>
<button type="submit" class="btn btn-primary btn-block">Save Settings</button>
</form>