Styling updates

This commit is contained in:
Chandler Swift 2021-10-18 19:26:30 -05:00
parent f3d02a7912
commit 373fc1e0f2
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -118,12 +118,14 @@ func generateHTML(sites []HatsSite, w io.Writer) error {
body { max-width: 800px; font-family: sans-serif; margin: auto; }
dt { font-weight: bold; }
img { max-width: 100%; }
h3 { margin-top: 100px; }
* { line-height: 1.5em; }
</style>
</head>
<body>
<h1>{n}hats.com domains</h1>
<h3>Summary</h3>
<ol>
<ul>
{{range .}}
{{if .Available}}
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Available!</li>
@ -131,7 +133,7 @@ func generateHTML(sites []HatsSite, w io.Writer) error {
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Registered since {{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}</li>
{{end}}
{{end}}
</ol>
</ul>
{{range .}}
<h3 id="{{.DomainName}}">{{.DomainName}}</h3>
<dl>