make stuff look a bit better

This commit is contained in:
Nyx 2025-03-22 03:29:34 -05:00
parent a512ac1836
commit 406effb17f
4 changed files with 15 additions and 0 deletions

View file

@ -17,5 +17,10 @@ def result():
ip = request.args.get('ip') ip = request.args.get('ip')
return render_template('result.j2', result=ip) return render_template('result.j2', result=ip)
@app.route('/assets/style.css')
def css():
return send_from_directory('static', 'index.css')
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True) app.run(debug=True)

6
utils/static/index.css Normal file
View file

@ -0,0 +1,6 @@
@media (prefers-color-scheme: dark) {
body {
background-color: black;
color: white;
}
}

View file

@ -1,6 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<head> <head>
<title>Utilities</title> <title>Utilities</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="assets/style.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<h1>IPv6 generator</h1> <h1>IPv6 generator</h1>

View file

@ -1,6 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<head> <head>
<title>Utilities</title> <title>Utilities</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="assets/style.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
<h1>Result for {{ action }}</h1> <h1>Result for {{ action }}</h1>