consolidate style

This commit is contained in:
2025-12-11 09:59:46 +11:00
parent 18106a91e7
commit 454a494d30

23
main.go
View File

@@ -109,6 +109,7 @@ var pageTmpl = template.Must(template.New("page").Parse(`
<style>
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 2rem; background: #f6f7fb; }
h1 { margin-bottom: 0.5rem; }
h2 { margin-top: 0; font-size: 1.2rem; }
form { background: #fff; padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 650px; }
label { display: inline-block; width: 180px; }
input, select { margin-bottom: 0.5rem; padding: 0.25rem 0.4rem; }
@@ -119,7 +120,10 @@ var pageTmpl = template.Must(template.New("page").Parse(`
th { background: #f0f2f8; text-align: left; }
tr:last-child td { border-bottom: none; }
tt { font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
ul { padding-left: 1.2rem; margin: 0; }
li { margin: 0.25rem 0; }
.error { color: #b00020; margin-top: 0.5rem; }
.notes { margin-top: 2rem; background: #fff; padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 750px; }
</style>
</head>
<body>
@@ -181,23 +185,16 @@ var pageTmpl = template.Must(template.New("page").Parse(`
<tr><td><tt>{{.}}</tt></td></tr>
{{end}}
</table>
<div style="
margin-top: 2rem;
background: #fff;
padding: 1rem 1.5rem;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
max-width: 750px;
">
<h2 style="margin-top: 0; font-size: 1.2rem;">Notes</h2>
<ul style="padding-left: 1.2rem; margin: 0;">
<li style="margin: 0.25rem 0;">
<div class="notes">
<h2>Notes</h2>
<ul>
<li>
No data generated by this page is stored on the server at any time. Your passphrases are <strong>never logged or recorded</strong>.
</li>
<li style="margin: 0.25rem 0;">
<li>
All randomness is generated using Go's crypto/rand package, which uses the Linux kernel's secure random generator (same source as /dev/urandom).
</li>
<li style="margin: 0.25rem 0;">
<li>
Source code for this generator is available at:<br><a href="https://git.coadcorp.com/nathan/ppgen" target="_blank" style="text-decoration:none; color:#0d6efd;">https://git.coadcorp.com/nathan/ppgen</a>
</li>
</ul>