diff --git a/deploy/static/Caddyfile b/deploy/static/Caddyfile index e7ffa55..8b9e696 100644 --- a/deploy/static/Caddyfile +++ b/deploy/static/Caddyfile @@ -1,6 +1,7 @@ __SITE_ADDRESS__ { root * /var/www/innersquare encode zstd gzip + try_files {path}.html {path} file_server header { @@ -14,6 +15,6 @@ __SITE_ADDRESS__ { @immutable path /fonts/* /favicon.ico header @immutable Cache-Control "public, max-age=31536000, immutable" - @html path / /index.html + @html path / /index.html /privacy /terms-conditions header @html Cache-Control "no-cache" } diff --git a/deploy/static/README.md b/deploy/static/README.md index ce14198..28fb901 100644 --- a/deploy/static/README.md +++ b/deploy/static/README.md @@ -6,14 +6,20 @@ newsletter form, and no JavaScript — just static files and Caddy. ``` deploy/static/ -├── index.html # page + inline CSS; uses the app's real brand tokens -├── fonts/ # DM Sans + DM Serif Display woff2 files -├── favicon.ico # copied from priv/static -├── Caddyfile # site block template; rendered by deploy.sh --caddy -├── deploy.sh # upload files; optional marked Caddy block +├── index.html # page + inline CSS; uses the app's real brand tokens +├── privacy.html # privacy policy, served at /privacy +├── terms-conditions.html # terms, served at /terms-conditions +├── legal.css # shared styles for the legal pages +├── fonts/ # DM Sans + DM Serif Display woff2 files +├── favicon.ico # copied from priv/static +├── Caddyfile # site block template; rendered by deploy.sh --caddy +├── deploy.sh # upload files; optional marked Caddy block └── README.md ``` +The Caddyfile uses `try_files {path}.html {path}` so `/privacy` and +`/terms-conditions` serve the matching `.html` files without a redirect. + ## Preview locally ```sh @@ -21,6 +27,26 @@ python3 -m http.server 8080 --directory deploy/static # open http://localhost:8080 ``` +Python maps URLs directly to files, so it serves `/privacy.html` and +`/terms-conditions.html` but not the extensionless `/privacy` or +`/terms-conditions` links. Those depend on Caddy's `try_files`. + +To preview the exact production routing, run the Caddyfile locally: + +```sh +sed -e 's#__SITE_ADDRESS__#:8098#' \ + -e 's#/var/www/innersquare#/srv#' \ + deploy/static/Caddyfile > /tmp/Caddyfile.local + +docker run --rm -it -p 8098:8098 \ + -v "$PWD/deploy/static:/srv:ro" \ + -v /tmp/Caddyfile.local:/etc/caddy/Caddyfile:ro \ + caddy:2-alpine \ + caddy run --config /etc/caddy/Caddyfile --adapter caddyfile +``` + +Then open `http://localhost:8098/`, `/privacy` and `/terms-conditions`. + The page is deliberately light-only — it uses the brand's paper palette regardless of the visitor's OS theme. It references `/fonts/...` and `/favicon.ico` from the site root, so preview it at the root (as above), not @@ -77,7 +103,7 @@ Pass `--caddy` and a `SITE_ADDRESS` to have the script add or update the site block: ```sh -SITE_ADDRESS="innersquarechess.com, www.innersquarechess.com" \ +SITE_ADDRESS="innersquare.app, www.innersquare.app" \ VPS_HOST=203.0.113.10 \ VPS_USER=ubuntu \ ./deploy/static/deploy.sh --caddy @@ -110,7 +136,7 @@ the main Caddyfile: ```sh REMOTE_CADDYFILE=/etc/caddy/conf.d/innersquare.caddy \ -SITE_ADDRESS=innersquarechess.com \ +SITE_ADDRESS=innersquare.app \ VPS_HOST=203.0.113.10 \ VPS_USER=ubuntu \ ./deploy/static/deploy.sh --caddy @@ -126,7 +152,8 @@ Optional overrides: `SSH_PORT`, `WEB_ROOT` (default `/var/www/innersquare`), ## What this page deliberately does not do - **No newsletter signup** — that waits on real mail delivery (#84) and the - gated app (#116). + gated app (#116). The legal pages are linked from the footer so the public + site has a privacy policy and terms while the signup is still gated. - **No analytics, cookies, or JavaScript.** - **No indexing** — `robots.txt` is absent and Caddy sends `X-Robots-Tag: noindex, nofollow` plus the page has a robots meta tag. diff --git a/deploy/static/index.html b/deploy/static/index.html index 8d83571..51cae79 100644 --- a/deploy/static/index.html +++ b/deploy/static/index.html @@ -454,6 +454,17 @@ font-size: 11px; } + .footer-links { + display: flex; + gap: 18px; + color: var(--color-muted); + font-size: 12px; + } + + .footer-links a:hover { + color: var(--color-body); + } + @media (max-width: 900px) { .hero { grid-template-columns: 1fr; @@ -685,6 +696,10 @@

Short, focused endgame training.

+ © 2026 Inner Square Chess diff --git a/deploy/static/legal.css b/deploy/static/legal.css new file mode 100644 index 0000000..9926f2b --- /dev/null +++ b/deploy/static/legal.css @@ -0,0 +1,277 @@ +@font-face { + font-family: "DM Sans"; + font-style: normal; + font-weight: 100 1000; + font-display: swap; + src: url("/fonts/dm-sans-variable.woff2") format("woff2"); +} + +@font-face { + font-family: "DM Serif Display"; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url("/fonts/dm-serif-display.woff2") format("woff2"); +} + +@font-face { + font-family: "DM Serif Display"; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url("/fonts/dm-serif-display-italic.woff2") format("woff2"); +} + +:root { + --ink: #17352d; + --ink-soft: #587068; + --paper: #f4f0e6; + --cream: #fffcf4; + --mint: #b9d7c9; + --coral: #ef755d; + --coral-dark: #d95d48; + --line: rgba(23, 53, 45, 0.15); + + --color-canvas: var(--paper); + --color-canvas-raised: var(--cream); + --color-body: var(--ink); + --color-muted: var(--ink-soft); + --color-hairline: var(--line); + --color-deep: var(--ink); + --color-on-deep: var(--paper); + --color-coral: var(--coral); + --color-coral-text: #b8432c; + + color-scheme: light; +} + +*, +*::before, +*::after { + box-sizing: border-box; +} + +html { + scroll-behavior: smooth; +} + +body { + min-width: 320px; + min-height: 100vh; + min-height: 100dvh; + margin: 0; + display: flex; + flex-direction: column; + background: var(--color-canvas); + color: var(--color-body); + font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; + -webkit-font-smoothing: antialiased; +} + +a { + color: inherit; + text-decoration: none; +} + +:focus-visible { + outline: 2px solid var(--color-coral-text); + outline-offset: 2px; +} + +main { + flex: 1 0 auto; + overflow: hidden; +} + +.nav-wrap { + width: min(1180px, calc(100% - 48px)); + height: 92px; + margin: 0 auto; + display: flex; + align-items: center; + justify-content: space-between; + border-bottom: 1px solid var(--color-hairline); +} + +.brand { + display: inline-flex; + align-items: center; + gap: 10px; + font-size: 16px; + font-weight: 700; + letter-spacing: 0.18em; +} + +.brand-mark { + display: grid; + place-items: center; + width: 35px; + height: 35px; + border-radius: 50%; + background: var(--color-deep); + color: var(--color-on-deep); + font-size: 21px; + letter-spacing: 0; +} + +.status { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 14px; + border: 1px solid var(--color-hairline); + border-radius: 999px; + color: var(--color-muted); + font-size: 11px; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; + white-space: nowrap; +} + +.status::before { + content: ""; + width: 7px; + height: 7px; + border-radius: 50%; + background: var(--color-coral); +} + +.legal { + width: min(760px, calc(100% - 48px)); + margin: 0 auto; + padding: 84px 0 120px; +} + +.legal h1 { + max-width: none; + margin: 0; + font-family: "DM Serif Display", Georgia, serif; + font-size: clamp(42px, 5vw, 62px); + font-weight: 400; + letter-spacing: -0.035em; + line-height: 1.02; +} + +.legal-meta { + margin-top: 14px; + color: var(--color-muted); + font-size: 13px; +} + +.legal h2 { + margin: 42px 0 12px; + font-family: "DM Serif Display", Georgia, serif; + font-size: 26px; + font-weight: 400; + letter-spacing: -0.02em; + line-height: 1.15; +} + +.legal p, +.legal li { + color: var(--color-muted); + font-size: 15px; + line-height: 1.75; +} + +.legal p + p { + margin-top: 12px; +} + +.legal ul { + display: grid; + gap: 8px; + margin: 12px 0 0 20px; + list-style: disc; +} + +.legal strong { + color: var(--color-body); + font-weight: 600; +} + +.legal a { + color: var(--color-coral-text); + text-decoration: underline; + text-underline-offset: 2px; +} + +.legal a:hover { + opacity: 0.75; +} + +.site-footer { + width: min(1180px, calc(100% - 48px)); + margin: 0 auto; + padding: 44px 0; + display: flex; + align-items: center; + justify-content: space-between; + gap: 30px; + border-top: 1px solid var(--color-hairline); +} + +.footer-brand { + display: flex; + flex-direction: column; + gap: 12px; +} + +.footer-brand p { + margin: 0; + color: var(--color-muted); + font-size: 13px; +} + +.site-footer > small { + color: var(--color-muted); + font-size: 11px; +} + +.footer-links { + display: flex; + gap: 18px; + color: var(--color-muted); + font-size: 12px; +} + +.footer-links a:hover { + color: var(--color-body); +} + +@media (max-width: 650px) { + .nav-wrap, + .site-footer { + width: calc(100% - 36px); + } + + .nav-wrap { + height: 74px; + } + + .status { + padding: 7px 10px; + font-size: 9px; + } + + .legal { + width: calc(100% - 36px); + padding: 56px 0 84px; + } + + .legal h1 { + font-size: clamp(34px, 11vw, 44px); + } + + .legal h2 { + margin-top: 34px; + font-size: 23px; + } + + .site-footer { + flex-direction: column; + align-items: flex-start; + gap: 24px; + } +} diff --git a/deploy/static/privacy.html b/deploy/static/privacy.html new file mode 100644 index 0000000..48a348f --- /dev/null +++ b/deploy/static/privacy.html @@ -0,0 +1,196 @@ + + + + + + Privacy Policy — Inner Square Chess + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + diff --git a/deploy/static/terms-conditions.html b/deploy/static/terms-conditions.html new file mode 100644 index 0000000..fbea6ee --- /dev/null +++ b/deploy/static/terms-conditions.html @@ -0,0 +1,170 @@ + + + + + + Terms & Conditions — Inner Square Chess + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + +