Seed from go-template-repo, renamed to simplexcalc
The template's files at a77fd30, without its history or LICENSE, after script/rename simplexcalc. Model: opus-5-5
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
/* No external fonts, no CDN: the Content-Security-Policy this service
|
||||
sends is default-src 'self', and everything here has to live inside
|
||||
it. */
|
||||
|
||||
:root {
|
||||
--fg: #1a1a1a;
|
||||
--bg: #fdfdfc;
|
||||
--muted: #6b6b6b;
|
||||
--rule: #dcdcd8;
|
||||
--accent: #2b5f8a;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--fg: #e6e6e3;
|
||||
--bg: #16181a;
|
||||
--muted: #9a9a95;
|
||||
--rule: #2e3236;
|
||||
--accent: #7fb2dd;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font:
|
||||
16px/1.55 ui-monospace,
|
||||
"SFMono-Regular",
|
||||
Menlo,
|
||||
Consolas,
|
||||
monospace;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
gap: 1.25rem;
|
||||
align-items: baseline;
|
||||
padding: 0.9rem 1.25rem;
|
||||
border-bottom: 1px solid var(--rule);
|
||||
}
|
||||
|
||||
nav .brand {
|
||||
font-weight: 700;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: 52rem;
|
||||
margin: 0 auto;
|
||||
padding: 1.5rem 1.25rem 3rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.1rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
form {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
align-items: end;
|
||||
margin: 1rem 0 1.5rem;
|
||||
}
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
font-size: 0.85rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
input,
|
||||
button {
|
||||
font: inherit;
|
||||
padding: 0.4rem 0.6rem;
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: 3px;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
text-align: left;
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-bottom: 1px solid var(--rule);
|
||||
}
|
||||
|
||||
th {
|
||||
color: var(--muted);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.empty {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
footer {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
justify-content: space-between;
|
||||
max-width: 52rem;
|
||||
margin: 0 auto;
|
||||
padding: 1rem 1.25rem 2rem;
|
||||
color: var(--muted);
|
||||
font-size: 0.8rem;
|
||||
border-top: 1px solid var(--rule);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// The Content-Security-Policy this service sends forbids inline script
|
||||
// and third-party origins, so anything the pages need has to be a
|
||||
// same-origin file like this one. It is deliberately empty of
|
||||
// behaviour: it exists so the embedded-asset path is exercised by
|
||||
// something other than the stylesheet.
|
||||
//
|
||||
// Delete it, or fill it in, when seeding a real project.
|
||||
|
||||
("use strict");
|
||||
@@ -0,0 +1,12 @@
|
||||
// Package static carries the static assets into the binary, so that a
|
||||
// deployment is one file and an asset can never be a version behind the
|
||||
// code that references it.
|
||||
package static
|
||||
|
||||
import "embed"
|
||||
|
||||
// FS holds the served assets. internal/server mounts it read-only at
|
||||
// /static/ and refuses directory listings.
|
||||
//
|
||||
//go:embed css/*.css js/*.js
|
||||
var FS embed.FS
|
||||
Reference in New Issue
Block a user