Clean up HTML&CSS
This commit is contained in:
parent
1ba9c87184
commit
a66e26477c
5 changed files with 6 additions and 11 deletions
|
@ -1,11 +1,10 @@
|
||||||
{{define "header"}}
|
{{define "header"}}
|
||||||
<header>
|
<header>
|
||||||
<h1>🌺 Hibiscus.txt</h1>
|
<h1>🌺 Hibiscus.txt</h1>
|
||||||
<p id="status">Today is <span id="today-date">a place</span></p>
|
<p>Today is <span id="today-date">a place</span></p>
|
||||||
</header>
|
</header>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
||||||
{{define "base"}}
|
{{define "base"}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
@ -23,10 +22,7 @@
|
||||||
{{template "main" .}}
|
{{template "main" .}}
|
||||||
</main>
|
</main>
|
||||||
{{template "footer" .}}
|
{{template "footer" .}}
|
||||||
<script defer>
|
<script defer>updateDate();beginDateUpdater()</script>
|
||||||
updateDate()
|
|
||||||
beginDateUpdater()
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{define "main"}}
|
{{define "main"}}
|
||||||
<h2 style="margin-bottom:0;"><label for="day">Viewing {{ .Date }}</label> | <a href="/day">Go back</a></h2>
|
<h2><label for="day">{{ .Date }}</label> | <a href="/day">Go back</a></h2>
|
||||||
<textarea id="day" cols="40" rows="15" readonly>{{ .Day }}</textarea>
|
<textarea id="day" cols="40" rows="15" readonly>{{ .Day }}</textarea>
|
||||||
{{end}}
|
{{end}}
|
|
@ -1,6 +1,6 @@
|
||||||
{{define "main"}}
|
{{define "main"}}
|
||||||
<h2>{{.Title}}</h2>
|
<h2>{{.Title}}</h2>
|
||||||
<ul id="days">
|
<ul>
|
||||||
{{range .Entries}}
|
{{range .Entries}}
|
||||||
<li><a href="/day/{{.Link}}">{{.Name}}</a></li>
|
<li><a href="/day/{{.Link}}">{{.Name}}</a></li>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{define "main"}}
|
{{define "main"}}
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<h2 style="margin-bottom:0;"><label for="day">Your day so far:</label></h2>
|
<h2><label for="day">Your day so far:</label></h2>
|
||||||
<textarea id="day" cols="40" rows="15" name="day">{{ .Day }}</textarea>
|
<textarea id="day" cols="40" rows="15" name="day">{{ .Day }}</textarea>
|
||||||
<button type="submit">Save</button>
|
<button type="submit">Save</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -12,8 +12,7 @@ body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
h2 { margin-bottom:12px; }
|
||||||
/* Red links! */
|
|
||||||
a, a:visited { color: #f85552; }
|
a, a:visited { color: #f85552; }
|
||||||
a:hover, a:visited:hover { color: #e66868; }
|
a:hover, a:visited:hover { color: #e66868; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue