slightly cleaner header css

This commit is contained in:
Andrew-71 2024-03-18 12:46:20 +03:00
parent 41923158a3
commit 56c29e200a
3 changed files with 8 additions and 5 deletions

View file

@ -2,14 +2,14 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="stylesheet" href="/public/css/main.css"> <link rel="stylesheet" href="/public/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hibiscus.txt</title> <title>Hibiscus.txt</title>
</head> </head>
<body> <body>
<header> <header>
<h1 style="margin-bottom:0;margin-top:0;">🌺 Hibiscus.txt</h1> <h1>🌺 Hibiscus.txt</h1>
<p id="status" style="margin-top:0;">Today is <span id="today-date">14/03/2024</span></p> <p id="status">Today is <span id="today-date">a place</span></p>
</header> </header>
<main> <main>
<h2 style="margin-bottom:0;"><label for="day">Your day so far:</label></h2> <h2 style="margin-bottom:0;"><label for="day">Your day so far:</label></h2>

View file

@ -55,6 +55,11 @@ button {
button:hover { background-color: #e66868; } button:hover { background-color: #e66868; }
header > h1, header > p {
margin-bottom:0;
margin-top:0;
}
/* Dark theme */ /* Dark theme */
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
body { body {

View file

@ -8,8 +8,6 @@ import (
"strconv" "strconv"
) )
const PORT = 7101 // TODO: Obviously don't just declare port here
func Serve() { func Serve() {
r := chi.NewRouter() r := chi.NewRouter()
r.Use(middleware.Logger, middleware.CleanPath, middleware.StripSlashes) r.Use(middleware.Logger, middleware.CleanPath, middleware.StripSlashes)