make stuff look a bit better
This commit is contained in:
parent
a512ac1836
commit
406effb17f
4 changed files with 15 additions and 0 deletions
|
@ -17,5 +17,10 @@ def result():
|
|||
ip = request.args.get('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__':
|
||||
app.run(debug=True)
|
6
utils/static/index.css
Normal file
6
utils/static/index.css
Normal file
|
@ -0,0 +1,6 @@
|
|||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<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>
|
||||
<body>
|
||||
<h1>IPv6 generator</h1>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<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>
|
||||
<body>
|
||||
<h1>Result for {{ action }}</h1>
|
||||
|
|
Loading…
Add table
Reference in a new issue