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; } body { max-width: 800px; font-family: sans-serif; margin: auto; }
dt { font-weight: bold; } dt { font-weight: bold; }
img { max-width: 100%; } img { max-width: 100%; }
h3 { margin-top: 100px; }
* { line-height: 1.5em; }
</style> </style>
</head> </head>
<body> <body>
<h1>{n}hats.com domains</h1> <h1>{n}hats.com domains</h1>
<h3>Summary</h3> <h3>Summary</h3>
<ol> <ul>
{{range .}} {{range .}}
{{if .Available}} {{if .Available}}
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Available!</li> <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> <li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Registered since {{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}</li>
{{end}} {{end}}
{{end}} {{end}}
</ol> </ul>
{{range .}} {{range .}}
<h3 id="{{.DomainName}}">{{.DomainName}}</h3> <h3 id="{{.DomainName}}">{{.DomainName}}</h3>
<dl> <dl>