showcase
- v0.2.4
- 37 commits
- 1 branch
- 6 tags
- updated
- CI 2/2
feat: inital commit
Showing 26 changed files with 1516 additions and 0 deletions.
.gitignoreadded
+3 −0
@@ -0,0 +1,3 @@1/bin/2/out/3/config.json
AGENTS.mdadded
+18 −0
@@ -0,0 +1,18 @@1# AGENTS.md23Read `docs/spec.md` (requirements, security rules, build order) and4`docs/decisions.md` (where the build differs from the spec) before changing5anything.67- Never commit, push, tag or sign. The owner reviews and commits by hand8 (commits are signed with biometric SSH). Leave changes in the working tree.9- Tooling comes from `mise.toml` and commands from the `justfile`. Don't10 install global tools.11- Before handing work back, run `just lint` and `just test`. If output changes12 on purpose, run `just golden` and review the diff.13- Go stdlib first. The only allowed dependencies are goldmark and chroma/v2.14 Ask before adding others. Shell out to `git`, no go-git.15- Keep Go under ~1,800 lines (`just loc`) and each change under ~400 lines.16- The security rules in the spec are hard requirements. When unsure, return17 404 and never show a private repo.18- Record new decisions in `docs/decisions.md`.
README.mdadded
+65 −0
@@ -0,0 +1,65 @@1# daum.dev23A small, read-only public view of selected Gitea repos. One Go binary4rebuilds static HTML from Gitea on a timer, serves it, and passes `git clone`5and `docker pull` through to Gitea. The public side can't write, log in, or6reach Gitea's UI or API.78It talks to Gitea anonymously, so it can only ever see public data. Only the9repos and images listed in `config.json` are rendered or proxied.1011## Develop1213Needs [mise](https://mise.jdx.dev) and [just](https://just.systems).1415```sh16mise install # Go version pinned in mise.toml17just # list commands18just test # run tests19just lint # gofmt + go vet20just golden # rewrite golden files after an intended output change21just render # render the site once into ./out from ./config.json22```2324## Configure2526`config.json` (mounted read-only at `/config.json` in the container):2728```json29{30 "gitea_url": "http://gitea.tailnet.example:3000",31 "user": "daniel",32 "site_url": "https://daum.dev",33 "links": { "website": "https://danieldaum.net" },34 "repos": ["repo-a", "repo-b"],35 "images": ["repo-a"],36 "max_commits": 5037}38```3940## Layout4142```43cmd/daumdev/ entrypoint44internal/config/ config.json loading and validation45internal/gitea/ anonymous Gitea API client46internal/gitx/ git CLI wrappers47internal/build/ build loop and rendering pipeline48internal/render/ templates, markdown, highlighting, heatmap SVG49internal/server/ router, static files, git + registry proxy50web/ embedded templates and static assets51testdata/ sample Gitea JSON and golden output52docs/ spec and design decisions53```5455## Docs5657- [docs/spec.md](docs/spec.md): what this is and isn't, the security rules58 and the build order.59- [docs/decisions.md](docs/decisions.md): choices made while building.6061## Licences6263The Flexoki palette is MIT ([stephango.com/flexoki](https://stephango.com/flexoki)).64Geist Pixel is under the SIL Open Font License, see65`web/static/fonts/GeistPixel-LICENSE.txt`.
cmd/daumdev/main.goadded
+47 −0
@@ -0,0 +1,47 @@1// Command daumdev builds and serves the read-only daum.dev code site.2package main34import (5 "context"6 "errors"7 "flag"8 "log/slog"9 "os"10 "os/signal"11 "syscall"1213 "daum.dev/showcase/internal/build"14 "daum.dev/showcase/internal/config"15)1617func main() {18 cfgPath := flag.String("config", "/config.json", "path to config.json")19 once := flag.Bool("once", false, "render the site once into -out and exit")20 out := flag.String("out", "", "output directory for -once (must not exist)")21 flag.Parse()2223 cfg, err := config.Load(*cfgPath)24 if err != nil {25 fatal(err)26 }27 ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)28 defer stop()2930 if !*once {31 fatal(errors.New("server mode is not implemented yet; use -once -out DIR"))32 }33 if *out == "" {34 fatal(errors.New("-once needs -out"))35 }36 if err := os.Mkdir(*out, 0o755); err != nil {37 fatal(err)38 }39 if err := build.New(cfg).Render(ctx, *out); err != nil {40 fatal(err)41 }42}4344func fatal(err error) {45 slog.Error(err.Error())46 os.Exit(1)47}
docs/decisions.mdadded
+51 −0
@@ -0,0 +1,51 @@1# Decisions23Choices made while building, where the spec was silent or had to bend.4Newest last.56## Heatmap comes from git, not the Gitea heatmap API78The heatmap API leaked private activity before Gitea 28.3.0, and the server9runs 28.2.x. The builder counts commits on the default branch of the10allowlisted repos from the local mirrors instead. Private activity can't leak11whatever Gitea version runs, but only commits are counted (no PRs, issues and12so on).1314## Packages are filtered by the allowlist1516Gitea package visibility follows the owner, not the linked repo, so a package17linked to a private repo is public. Only packages linked to an allowlisted18repo are listed.1920## Change detection is keyed on HEAD only2122Repo `updated_at` doesn't reliably change when PRs or releases change. API23pages (profile, releases, pulls, packages) are re-fetched and re-rendered24every build. Only git-derived pages (tree, blob, log, commit) are reused when25HEAD is unchanged.2627## Tailnet URLs never reach the page2829Gitea builds URLs from its `ROOT_URL`, a tailnet address. The avatar is30downloaded into the build. Release assets go through one more allowlisted31proxy route, `/<repo>/releases/download/<tag>/<file>`. The registry proxy32refuses upstream redirects so a storage backend URL is never handed out.3334## Raw files: images keep their type, everything else is text3536README images resolve to `/<repo>/raw/...`, so png, jpg, gif and webp are37served with their real types. SVG and everything else is served as38`text/plain` or as an attachment. `nosniff` and the CSP stay on.3940## Smaller choices4142- `go get` on subpackages: any `/<repo>/...?go-get=1` gets the go-import meta.43- The git proxy forwards `Git-Protocol` so protocol v2 works.44- Git runs with `GIT_TERMINAL_PROMPT=0` and an empty credential helper, so a45 private repo in config fails fast instead of hanging on a prompt.46- Config rejects repo names that clash with routes (`static`, `v2`, `healthz`,47 `api`, `user`).48- Dates are bucketed in UTC.49- Fonts: Geist Pixel Square from the `geist` npm package (OFL). Body text uses50 system fonts.51- Tooling: Go is pinned in `mise.toml`, and commands live in the `justfile`.
docs/spec.mdadded
+218 −0
@@ -0,0 +1,218 @@1# daum.dev — read-only code site23A minimal, public, read-only view of Daniel's public Gitea repos, served at4the root of `daum.dev`. One Go binary in one Docker image: it rebuilds static5HTML from Gitea on a timer, serves it, and passes `git clone` and6`docker pull` through to Gitea. Nothing on the public side can write, log in,7or reach Gitea's UI or API.89## Goals1011- GitHub-profile-style home page: avatar, name, bio, links, activity heatmap, chosen repos.12- Per-repo pages: README, file tree, file viewer with syntax highlighting,13 commit log, commit diffs, releases, pull requests (read-only), packages.14- Public clone: `git clone https://daum.dev/<repo>.git`15- Public image pull: `docker pull daum.dev/daniel/<image>:<tag>`16- No JavaScript. Light and dark via `prefers-color-scheme`. Flexoki palette, Geist Pixel for headings.1718## Non-goals1920- Login, issues, comments, search, forks, stars, blame, editing anything.21- Private repos. They must never appear, even by mistake.22- Showing Tangled or GitHub data. Gitea is the only source.2324## Constraints for the implementer (Claude Code)2526- End state is a single Docker image running a single process. No Caddy, cron,27 or process supervisor inside it.28- Keep it small. Target under ~1,800 lines of Go total, excluding templates and CSS.29- Small commits, one feature each. No commit over ~400 changed lines.30- Go, standard library first. Allowed dependencies: `github.com/yuin/goldmark`31 (Markdown) and `github.com/alecthomas/chroma/v2` (highlighting). Ask before adding others.32- Shell out to the `git` CLI for repo data (`os/exec`), no go-git.33- Config is JSON (stdlib), not TOML/YAML.34- Templates and CSS embedded with `embed`.35- Don't copy knotless markup or CSS: its license is unknown. Use its layout as36 inspiration only (header → action row → clone box → latest commit → tree → README).3738## Environment3940- Gitea: Docker on the home server, user `daniel`. Moving to Tailscale-only (no public HTTPS).41 Must be Gitea ≥ 28.3.0 (heatmap API leaked private activity before that).42- The container runs on a home server/VM and listens on plain HTTP (`:8080`).43 Pangolin terminates TLS and proxies `daum.dev` to it. Cloudflare sits in front of Pangolin.44- atproto handle `@daum.dev` is verified by DNS TXT, so the site doesn't need45 `/.well-known/atproto-did`.46- This replaces the current `daum.dev` → `danieldaum.net` redirect. Link to danieldaum.net from the profile.47- Everything here goes down with the home server. Acceptable for now.4849## Architecture5051```52 Cloudflare → Pangolin (TLS) → daumdev container :8080 (one process)53 ├─ static files (/data/site/current)54 ├─ /<repo>.git/… → Gitea (fetch only)55 ├─ /v2/… → Gitea (GET/HEAD only)56 └─ builder goroutine, every 10 min57 └─ anonymous HTTP over Tailscale → Gitea API + git58```5960- `net/http` serves files and routes; `httputil.ReverseProxy` handles the61 pass-through (`FlushInterval: -1` so clones stream).62- The builder runs once at startup, then on a `time.Ticker`. It holds a mutex so63 builds never overlap. The server keeps serving the previous build while a new one runs.64- The allowlist is read from `config.json` in memory, so there's nothing to65 generate or reload. Config changes take effect on container restart.66- Server timeouts: `ReadHeaderTimeout` 10s, `IdleTimeout` 60s. No `WriteTimeout`67 on proxied routes (large clones and layers); 30s on page routes.68- `GET /healthz` returns 200 once the first build exists.6970### Security rules71721. **The generator uses no token.** Every API call and clone is anonymous, so it73 can only ever see public data. A private repo listed in config just fails to load and is skipped with a warning.742. **One allowlist:** repo and image names come from `config.json`. The builder75 only renders those, and the proxy only forwards those.763. **The router's default is 404.** Only these routes exist:77 - `GET` static files.78 - `GET /<repo>.git/info/refs` only when the query is exactly `service=git-upload-pack`.79 - `POST /<repo>.git/git-upload-pack`.80 - Anything with `git-receive-pack` → 403.81 - `GET|HEAD /v2/`, `GET /v2/token`, `GET|HEAD /v2/daniel/<image>/(manifests|blobs)/…` for allowlisted images.82 - Clone paths rewrite `/<repo>.git/…` → `/daniel/<repo>.git/…` upstream.834. **Registry token realm:** Gitea builds the `WWW-Authenticate` realm from its84 `ROOT_URL`, which will be a tailnet address. The proxy's `ModifyResponse`85 rewrites the realm to `https://daum.dev/v2/token`.86 Also strip any `Set-Cookie` and Gitea-specific headers from proxied responses,87 and never forward the client's `Authorization` or `Cookie` headers on git routes.885. **Rendering:** goldmark with raw HTML disabled (default). Escape everything89 else through `html/template`. Files over 512 KB or binary: show size and a raw link, no render.90 README images: only relative paths inside the repo or https URLs.916. **Headers:** `Content-Security-Policy: default-src 'none'; style-src 'self'; img-src 'self' https:; font-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'`,92 plus `X-Content-Type-Options: nosniff`, `Referrer-Policy: no-referrer`. Raw files served as `text/plain` or with `Content-Disposition: attachment`.937. **Container:** runs as a non-root user with a read-only root filesystem,94 `cap_drop: [ALL]` and `no-new-privileges`. The only writable path is the95 `/data` volume (site builds + bare git mirrors). Config is mounted read-only at `/config.json`.968. Trust `X-Forwarded-*` only from Pangolin's address (used for logs only).979. **Request limits:** cap request bodies on `git-upload-pack` (e.g. 10 MB) and98 reject any other method with a body.99100## Config (`config.json`)101102```json103{104 "gitea_url": "http://gitea.tailnet.example:3000",105 "user": "daniel",106 "site_url": "https://daum.dev",107 "links": {108 "website": "https://danieldaum.net",109 "atproto": "https://bsky.app/profile/daum.dev",110 "tangled": "https://tangled.org/daum.dev",111 "github": "https://github.com/..."112 },113 "repos": ["repo-a", "repo-b"],114 "images": ["repo-a"],115 "max_commits": 50116}117```118119## Data sources120121| Page piece | Source |122| -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |123| Profile (avatar, name, bio) | `GET /api/v1/users/{user}` |124| Heatmap | `GET /api/v1/users/{user}/heatmap` (rendered as server-side SVG) |125| Repo meta (description, topics, default branch, website) | `GET /api/v1/repos/{user}/{repo}` |126| Language bar | `GET /api/v1/repos/{user}/{repo}/languages` |127| Releases | `GET /api/v1/repos/{user}/{repo}/releases` |128| Pull requests | `GET /api/v1/repos/{user}/{repo}/pulls?state=all` |129| Packages | `GET /api/v1/packages/{user}` (filter to repo-linked) |130| Tree, files, log, diffs, README | local bare mirror: `git clone --mirror` / `git fetch`, then `git ls-tree`, `git cat-file`, `git log`, `git show` |131132## Pages (URL → content)133134- `/` — profile card, links, heatmap, repo list (name, description, language, updated).135- `/<repo>/` — header (name, description, topics, latest release), action row136 (Code · Commits · Releases · Pulls · Packages), clone box (HTTPS + Tangled/GitHub links),137 latest commit line, root tree with last-commit message and age per entry, rendered README.138- `/<repo>/tree/<path>/` — directory listing.139- `/<repo>/blob/<path>` — highlighted file with line anchors (`#L12`).140- `/<repo>/raw/<path>` — raw bytes.141- `/<repo>/log/` — last `max_commits` commits on the default branch.142- `/<repo>/commit/<sha>/` — message, stats, unified diff (for those commits only).143- `/<repo>/releases/` — tag, title, date, notes (Markdown), asset links.144- `/<repo>/pulls/` — title, state, author, date, body. No diffs.145- `/<repo>/packages/` — name, version, type, pull/install command.146- Go repos: add `<meta name="go-import" content="daum.dev/<repo> git https://daum.dev/<repo>.git">` so `go get daum.dev/<repo>` works.147148Only the default branch is browsable. Tags show on the releases page.149150## Build loop1511521. For each repo: fetch mirror. If HEAD and API `updated_at` are unchanged since last run, reuse the old output.1532. Render into `/data/site/.tmp-<ts>/`, then swap a `current` symlink atomically. Keep one previous build.1543. On error: log it, keep serving the last good build, retry next tick. Never publish a partial build.1554. If there's no good build yet, the server returns 503 for pages (proxy routes still work).156157## Repo layout158159```160cmd/daumdev/main.go entrypoint: load config, start builder + server161internal/gitea/ API client (only the calls above)162internal/gitx/ git CLI wrappers163internal/build/ build loop, change detection, atomic swap164internal/render/ templates, markdown, highlight, heatmap SVG165internal/server/ router, static files, git + registry proxy, headers166web/templates/*.html embedded167web/static/style.css embedded, Flexoki variables168Dockerfile multi-stage: golang → alpine + git, non-root169compose.yaml one service, example for deployment170testdata/ sample Gitea JSON + a tiny test repo171```172173### Image174175- Stage 1: `golang:<pinned>` builds a static binary (`CGO_ENABLED=0`, `-trimpath`).176- Stage 2: `alpine:<pinned>` with `git` and `ca-certificates` only (git is needed177 for mirrors; that's why it isn't distroless).178- `USER 10001`, `EXPOSE 8080`, `VOLUME /data`, `HEALTHCHECK` hitting `/healthz`.179- Pin base images by digest. Mirrors are owned by the runtime user, so don't180 add `safe.directory '*'`.181- One `compose.yaml` service:182183```yaml184services:185 daumdev:186 image: daumdev:latest187 read_only: true188 cap_drop: [ALL]189 security_opt: ["no-new-privileges:true"]190 volumes:191 - daumdev-data:/data192 - ./config.json:/config.json:ro193 ports: ["127.0.0.1:8080:8080"]194 restart: unless-stopped195volumes:196 daumdev-data:197```198199## Build order (one commit each)2002011. Skeleton, config loading, Gitea client, profile page with heatmap. Golden test from `testdata`.2022. Git mirror wrapper; repo page with README, latest commit, root tree.2033. Tree, blob (chroma), raw pages; size/binary limits.2044. Log and commit diff pages.2055. Releases, pulls, packages pages.2066. Builder loop: ticker, mutex, atomic swap, change detection.2077. Server: static files, security headers, `/healthz`, 404 default.2088. Git and registry proxy with route allowlist and realm rewrite.2099. Dockerfile + compose.yaml.21010. Security pass: Go tests for the router proving push, API, UI and unlisted paths return 403/404.211212## Done when213214- `git clone https://daum.dev/<repo>.git` works; `git push` to the same URL fails.215- `docker pull daum.dev/daniel/<image>` works anonymously; `docker push` fails.216- `/api/v1/…`, `/user/login`, `/daniel/<repo>` and any unlisted repo return 404.217- A private repo added to config never appears anywhere.218- Pages pass the CSP with zero console errors and render without JavaScript.
go.modadded
+3 −0
@@ -0,0 +1,3 @@1module daum.dev/showcase23go 1.27.4
internal/build/build.goadded
+121 −0
@@ -0,0 +1,121 @@1// Package build fetches public data from Gitea and renders the static site.2package build34import (5 "context"6 "fmt"7 "html/template"8 "log/slog"9 "path/filepath"10 "slices"11 "strings"12 "time"1314 "daum.dev/showcase/internal/config"15 "daum.dev/showcase/internal/gitea"16 "daum.dev/showcase/internal/render"17)1819type Builder struct {20 Cfg *config.Config21 Gitea *gitea.Client22 Now func() time.Time23 Log *slog.Logger24}2526func New(cfg *config.Config) *Builder {27 return &Builder{28 Cfg: cfg,29 Gitea: gitea.New(cfg.GiteaURL, cfg.User),30 Now: time.Now,31 Log: slog.Default(),32 }33}3435type Link struct{ Name, URL string }3637type Profile struct {38 User *gitea.User39 Avatar string40 Links []Link41 Heatmap template.HTML42 Total int43 Repos []*gitea.Repo44}4546// Render writes a complete site into dir, which must be empty.47func (b *Builder) Render(ctx context.Context, dir string) error {48 r, err := render.New(b.Now())49 if err != nil {50 return err51 }52 user, err := b.Gitea.User(ctx)53 if err != nil {54 return err55 }56 if err := render.CopyStatic(dir); err != nil {57 return err58 }5960 p := Profile{User: user, Links: links(b.Cfg.Links)}61 if img, ct, err := b.Gitea.Avatar(ctx, user.AvatarURL); err != nil {62 b.Log.Warn("avatar", "err", err)63 } else {64 name := "/static/avatar." + strings.TrimPrefix(ct, "image/")65 if err := render.WriteFile(filepath.Join(dir, name), img); err != nil {66 return err67 }68 p.Avatar = name69 }7071 for _, name := range b.Cfg.Repos {72 repo, err := b.Gitea.Repo(ctx, name)73 if err != nil {74 b.Log.Warn("skipping repo", "repo", name, "err", err)75 continue76 }77 p.Repos = append(p.Repos, repo)78 }79 slices.SortStableFunc(p.Repos, func(a, c *gitea.Repo) int { return c.UpdatedAt.Compare(a.UpdatedAt) })8081 p.Heatmap, p.Total = render.Heatmap(map[string]int{}, b.Now()) // filled from git in a later step82 title := user.FullName83 if title == "" {84 title = user.Login85 }86 if err := r.Write(dir, "index.html", "profile", render.Page{Title: title, D: p}); err != nil {87 return fmt.Errorf("profile: %w", err)88 }89 return nil90}9192var linkOrder = []string{"website", "atproto", "tangled", "github"}93var linkNames = map[string]string{"website": "Website", "atproto": "Bluesky", "tangled": "Tangled", "github": "GitHub"}9495func links(m map[string]string) []Link {96 keys := make([]string, 0, len(m))97 for k := range m {98 keys = append(keys, k)99 }100 rank := func(k string) int {101 if i := slices.Index(linkOrder, k); i >= 0 {102 return i103 }104 return len(linkOrder)105 }106 slices.SortFunc(keys, func(a, c string) int {107 if d := rank(a) - rank(c); d != 0 {108 return d109 }110 return strings.Compare(a, c)111 })112 out := make([]Link, 0, len(keys))113 for _, k := range keys {114 name := linkNames[k]115 if name == "" {116 name = k117 }118 out = append(out, Link{name, m[k]})119 }120 return out121}
internal/build/build_test.goadded
+107 −0
@@ -0,0 +1,107 @@1package build23import (4 "bytes"5 "context"6 "flag"7 "image"8 "image/png"9 "io"10 "log/slog"11 "net/http"12 "net/http/httptest"13 "os"14 "path/filepath"15 "strings"16 "testing"17 "time"1819 "daum.dev/showcase/internal/config"20 "daum.dev/showcase/internal/gitea"21)2223var update = flag.Bool("update", false, "rewrite golden files")2425// fakeGitea serves testdata/gitea/<path>.json and a generated avatar. It26// fails the test if a request carries credentials.27func fakeGitea(t *testing.T) *httptest.Server {28 t.Helper()29 srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {30 if r.Header.Get("Authorization") != "" || r.Header.Get("Cookie") != "" {31 t.Errorf("request to %s carried credentials", r.URL)32 }33 if strings.HasPrefix(r.URL.Path, "/avatars/") {34 var buf bytes.Buffer35 png.Encode(&buf, image.NewGray(image.Rect(0, 0, 2, 2)))36 w.Write(buf.Bytes())37 return38 }39 b, err := os.ReadFile(filepath.Join("../../testdata/gitea", filepath.FromSlash(r.URL.Path)+".json"))40 if err != nil {41 http.NotFound(w, r)42 return43 }44 w.Header().Set("Content-Type", "application/json")45 w.Write(b)46 }))47 t.Cleanup(srv.Close)48 return srv49}5051func testBuilder(t *testing.T) *Builder {52 srv := fakeGitea(t)53 cfg := &config.Config{54 GiteaURL: srv.URL,55 User: "daniel",56 SiteURL: "https://daum.dev",57 Links: map[string]string{58 "github": "https://github.com/example",59 "website": "https://danieldaum.net",60 "atproto": "https://bsky.app/profile/daum.dev",61 },62 Repos: []string{"repo-b", "leaky", "missing", "repo-a"},63 MaxCommits: 50,64 }65 now := time.Date(2026, 11, 21, 12, 0, 0, 0, time.UTC)66 return &Builder{67 Cfg: cfg,68 Gitea: gitea.New(srv.URL, cfg.User),69 Now: func() time.Time { return now },70 Log: slog.New(slog.NewTextHandler(io.Discard, nil)),71 }72}7374func TestProfileGolden(t *testing.T) {75 dir := t.TempDir()76 if err := testBuilder(t).Render(context.Background(), dir); err != nil {77 t.Fatal(err)78 }79 got, err := os.ReadFile(filepath.Join(dir, "index.html"))80 if err != nil {81 t.Fatal(err)82 }83 golden := "../../testdata/golden/index.html"84 if *update {85 if err := os.WriteFile(golden, got, 0o644); err != nil {86 t.Fatal(err)87 }88 }89 want, err := os.ReadFile(golden)90 if err != nil {91 t.Fatal(err)92 }93 if !bytes.Equal(got, want) {94 t.Errorf("index.html differs from %s; run with -update and review the diff", golden)95 }9697 for _, bad := range []string{"leaky", "should never render", "<script>", "tailnet.example"} {98 if bytes.Contains(got, []byte(bad)) {99 t.Errorf("index.html contains %q", bad)100 }101 }102 for _, f := range []string{"static/style.css", "static/avatar.png", "static/fonts/GeistPixel-Square.woff2"} {103 if _, err := os.Stat(filepath.Join(dir, f)); err != nil {104 t.Error(err)105 }106 }107}
internal/config/config.goadded
+89 −0
@@ -0,0 +1,89 @@1// Package config loads and validates config.json.2package config34import (5 "bytes"6 "encoding/json"7 "fmt"8 "net/url"9 "os"10 "regexp"11 "slices"12 "strings"13)1415type Config struct {16 GiteaURL string `json:"gitea_url"`17 User string `json:"user"`18 SiteURL string `json:"site_url"`19 Links map[string]string `json:"links"`20 Repos []string `json:"repos"`21 Images []string `json:"images"`22 MaxCommits int `json:"max_commits"`23}2425var (26 nameRe = regexp.MustCompile(`^[A-Za-z0-9][A-Za-z0-9._-]*$`)27 imageRe = regexp.MustCompile(`^[a-z0-9]+([._-][a-z0-9]+)*(/[a-z0-9]+([._-][a-z0-9]+)*)*$`)28 // Top-level names the site or router uses for itself.29 reserved = []string{"static", "v2", "healthz", "api", "user", "index.html"}30)3132func Load(path string) (*Config, error) {33 b, err := os.ReadFile(path)34 if err != nil {35 return nil, err36 }37 var c Config38 dec := json.NewDecoder(bytes.NewReader(b))39 dec.DisallowUnknownFields()40 if err := dec.Decode(&c); err != nil {41 return nil, fmt.Errorf("config: %w", err)42 }43 if err := c.validate(); err != nil {44 return nil, fmt.Errorf("config: %w", err)45 }46 return &c, nil47}4849func (c *Config) validate() error {50 c.GiteaURL = strings.TrimRight(c.GiteaURL, "/")51 c.SiteURL = strings.TrimRight(c.SiteURL, "/")52 for _, u := range []string{c.GiteaURL, c.SiteURL} {53 p, err := url.Parse(u)54 if err != nil || (p.Scheme != "http" && p.Scheme != "https") || p.Host == "" {55 return fmt.Errorf("bad url %q", u)56 }57 }58 if !nameRe.MatchString(c.User) {59 return fmt.Errorf("bad user %q", c.User)60 }61 seen := map[string]bool{}62 for _, r := range c.Repos {63 l := strings.ToLower(r)64 if !nameRe.MatchString(r) || strings.HasSuffix(l, ".git") || slices.Contains(reserved, l) || seen[l] {65 return fmt.Errorf("bad or duplicate repo name %q", r)66 }67 seen[l] = true68 }69 for _, im := range c.Images {70 if !imageRe.MatchString(im) {71 return fmt.Errorf("bad image name %q", im)72 }73 }74 for k, v := range c.Links {75 if p, err := url.Parse(v); err != nil || p.Scheme != "https" {76 return fmt.Errorf("link %q must be an https url", k)77 }78 }79 if c.MaxCommits <= 0 {80 c.MaxCommits = 5081 }82 return nil83}8485// HasRepo reports whether name is allowlisted. Names are compared exactly.86func (c *Config) HasRepo(name string) bool { return slices.Contains(c.Repos, name) }8788// HasImage reports whether image is allowlisted.89func (c *Config) HasImage(name string) bool { return slices.Contains(c.Images, name) }
internal/gitea/gitea.goadded
+218 −0
@@ -0,0 +1,218 @@1// Package gitea is a minimal, anonymous Gitea API client. It never sends2// credentials, so it can only see what the public can see.3package gitea45import (6 "context"7 "encoding/json"8 "errors"9 "fmt"10 "io"11 "net/http"12 "net/url"13 "strings"14 "time"15)1617const maxBody = 8 << 201819type Client struct {20 base string21 user string22 http *http.Client23}2425func New(baseURL, user string) *Client {26 return &Client{27 base: strings.TrimRight(baseURL, "/"),28 user: user,29 http: &http.Client{30 Timeout: 30 * time.Second,31 CheckRedirect: func(*http.Request, []*http.Request) error {32 return errors.New("gitea: refusing redirect")33 },34 },35 }36}3738type User struct {39 Login string `json:"login"`40 FullName string `json:"full_name"`41 AvatarURL string `json:"avatar_url"`42 Description string `json:"description"`43 Website string `json:"website"`44 Location string `json:"location"`45}4647type Repo struct {48 Name string `json:"name"`49 Description string `json:"description"`50 Website string `json:"website"`51 DefaultBranch string `json:"default_branch"`52 Topics []string `json:"topics"`53 Language string `json:"language"`54 UpdatedAt time.Time `json:"updated_at"`55 Private bool `json:"private"`56 Empty bool `json:"empty"`57 Archived bool `json:"archived"`58}5960type Asset struct {61 Name string `json:"name"`62 Size int64 `json:"size"`63 DownloadURL string `json:"browser_download_url"`64}6566type Release struct {67 TagName string `json:"tag_name"`68 Name string `json:"name"`69 Body string `json:"body"`70 Draft bool `json:"draft"`71 Prerelease bool `json:"prerelease"`72 PublishedAt time.Time `json:"published_at"`73 Assets []Asset `json:"assets"`74}7576type PullRequest struct {77 Number int `json:"number"`78 Title string `json:"title"`79 Body string `json:"body"`80 State string `json:"state"`81 Merged bool `json:"merged"`82 CreatedAt time.Time `json:"created_at"`83 User struct {84 Login string `json:"login"`85 } `json:"user"`86}8788type Package struct {89 Name string `json:"name"`90 Type string `json:"type"`91 Version string `json:"version"`92 CreatedAt time.Time `json:"created_at"`93 Repository *Repo `json:"repository"`94}9596func (c *Client) get(ctx context.Context, path string, v any) error {97 req, err := http.NewRequestWithContext(ctx, "GET", c.base+path, nil)98 if err != nil {99 return err100 }101 req.Header.Set("Accept", "application/json")102 resp, err := c.http.Do(req)103 if err != nil {104 return err105 }106 defer resp.Body.Close()107 if resp.StatusCode != http.StatusOK {108 return fmt.Errorf("gitea: GET %s: %s", path, resp.Status)109 }110 return json.NewDecoder(io.LimitReader(resp.Body, maxBody)).Decode(v)111}112113func (c *Client) repoPath(repo, rest string) string {114 return "/api/v1/repos/" + url.PathEscape(c.user) + "/" + url.PathEscape(repo) + rest115}116117func (c *Client) User(ctx context.Context) (*User, error) {118 var u User119 return &u, c.get(ctx, "/api/v1/users/"+url.PathEscape(c.user), &u)120}121122func (c *Client) Repo(ctx context.Context, name string) (*Repo, error) {123 var r Repo124 if err := c.get(ctx, c.repoPath(name, ""), &r); err != nil {125 return nil, err126 }127 if r.Private { // anonymous calls should never see one; refuse anyway128 return nil, fmt.Errorf("gitea: repo %s is private", name)129 }130 return &r, nil131}132133func (c *Client) Languages(ctx context.Context, repo string) (map[string]int64, error) {134 var m map[string]int64135 return m, c.get(ctx, c.repoPath(repo, "/languages"), &m)136}137138func (c *Client) Releases(ctx context.Context, repo string) ([]Release, error) {139 var rs []Release140 if err := c.get(ctx, c.repoPath(repo, "/releases?draft=false&limit=50"), &rs); err != nil {141 return nil, err142 }143 out := rs[:0]144 for _, r := range rs {145 if !r.Draft {146 out = append(out, r)147 }148 }149 return out, nil150}151152func (c *Client) Pulls(ctx context.Context, repo string) ([]PullRequest, error) {153 var ps []PullRequest154 return ps, c.get(ctx, c.repoPath(repo, "/pulls?state=all&sort=recentupdate&limit=50"), &ps)155}156157// Packages returns the user's packages that are linked to one of repos.158// Package visibility follows the owner, not the repo, so the filter matters.159func (c *Client) Packages(ctx context.Context, repos []string) ([]Package, error) {160 allowed := map[string]bool{}161 for _, r := range repos {162 allowed[r] = true163 }164 var out []Package165 for page := 1; page <= 20; page++ {166 var ps []Package167 path := fmt.Sprintf("/api/v1/packages/%s?limit=50&page=%d", url.PathEscape(c.user), page)168 if err := c.get(ctx, path, &ps); err != nil {169 return nil, err170 }171 for _, p := range ps {172 if p.Repository != nil && !p.Repository.Private && allowed[p.Repository.Name] {173 out = append(out, p)174 }175 }176 if len(ps) < 50 {177 break178 }179 }180 return out, nil181}182183// Avatar fetches the user's avatar image. Gitea builds avatar URLs from its184// ROOT_URL, so Gitea-hosted avatars are re-fetched through the configured base.185func (c *Client) Avatar(ctx context.Context, avatarURL string) ([]byte, string, error) {186 u, err := url.Parse(avatarURL)187 if err != nil {188 return nil, "", err189 }190 target := avatarURL191 if strings.HasPrefix(u.Path, "/avatars/") || strings.HasPrefix(u.Path, "/avatar/") {192 target = c.base + u.RequestURI()193 } else if u.Scheme != "https" {194 return nil, "", fmt.Errorf("gitea: unsupported avatar url %q", avatarURL)195 }196 req, err := http.NewRequestWithContext(ctx, "GET", target, nil)197 if err != nil {198 return nil, "", err199 }200 resp, err := c.http.Do(req)201 if err != nil {202 return nil, "", err203 }204 defer resp.Body.Close()205 if resp.StatusCode != http.StatusOK {206 return nil, "", fmt.Errorf("gitea: avatar: %s", resp.Status)207 }208 b, err := io.ReadAll(io.LimitReader(resp.Body, 2<<20))209 if err != nil {210 return nil, "", err211 }212 ct := http.DetectContentType(b)213 switch ct {214 case "image/png", "image/jpeg", "image/gif", "image/webp":215 return b, ct, nil216 }217 return nil, "", fmt.Errorf("gitea: avatar has type %s", ct)218}
internal/render/heatmap.goadded
+60 −0
@@ -0,0 +1,60 @@1package render23import (4 "fmt"5 "html/template"6 "strings"7 "time"8)910const (11 cell = 1012 gap = 313 left = 28 // room for weekday labels14 top = 16 // room for month labels15 weeks = 5316)1718// Heatmap draws a year of daily counts (keyed "2006-01-02", UTC) ending on19// the day of end as an inline SVG. Colours come from CSS classes, since the20// CSP forbids inline styles.21func Heatmap(counts map[string]int, end time.Time) (template.HTML, int) {22 end = time.Date(end.Year(), end.Month(), end.Day(), 0, 0, 0, 0, time.UTC)23 start := end.AddDate(0, 0, -int(end.Weekday())-7*(weeks-1))24 max, total := 0, 025 for d := start; !d.After(end); d = d.AddDate(0, 0, 1) {26 n := counts[d.Format("2006-01-02")]27 total += n28 if n > max {29 max = n30 }31 }3233 w, h := left+weeks*(cell+gap), top+7*(cell+gap)34 var b strings.Builder35 fmt.Fprintf(&b, `<svg class="heatmap" viewBox="0 0 %d %d" role="img" aria-label="%d contributions in the last year">`, w, h, total)36 for i, label := range []string{"Mon", "Wed", "Fri"} {37 fmt.Fprintf(&b, `<text x="0" y="%d">%s</text>`, top+(2*i+1)*(cell+gap)+cell-1, label)38 }39 lastMonth := time.Month(0)40 for d := start; !d.After(end); d = d.AddDate(0, 0, 1) {41 col, row := int(d.Sub(start).Hours()/24)/7, int(d.Weekday())42 x, y := left+col*(cell+gap), top+row*(cell+gap)43 if row == 0 && d.Month() != lastMonth && col < weeks-2 {44 lastMonth = d.Month()45 fmt.Fprintf(&b, `<text x="%d" y="%d">%s</text>`, x, top-5, d.Format("Jan"))46 }47 n := counts[d.Format("2006-01-02")]48 fmt.Fprintf(&b, `<rect class="h%d" x="%d" y="%d" width="%d" height="%d" rx="2"><title>%d on %s</title></rect>`,49 level(n, max), x, y, cell, cell, n, d.Format("Jan 2, 2006"))50 }51 b.WriteString(`</svg>`)52 return template.HTML(b.String()), total53}5455func level(n, max int) int {56 if n <= 0 || max <= 0 {57 return 058 }59 return (4*n + max - 1) / max // ceil(4n/max), 1..460}
internal/render/render.goadded
+134 −0
@@ -0,0 +1,134 @@1// Package render turns data into static HTML files.2package render34import (5 "bytes"6 "fmt"7 "hash/fnv"8 "html/template"9 "io/fs"10 "os"11 "path"12 "path/filepath"13 "strings"14 "time"1516 "daum.dev/showcase/web"17)1819type Renderer struct {20 Now time.Time // fixed per build so output is deterministic21 pages map[string]*template.Template22}2324// Page is what every template receives.25type Page struct {26 Title string27 GoImport string // optional go-import meta content28 D any29}3031func New(now time.Time) (*Renderer, error) {32 r := &Renderer{Now: now, pages: map[string]*template.Template{}}33 funcs := template.FuncMap{34 "ago": r.ago,35 "date": func(t time.Time) string { return t.UTC().Format("2006-01-02") },36 "lang": langClass,37 "size": humanSize,38 }39 names, err := fs.Glob(web.FS, "templates/*.html")40 if err != nil {41 return nil, err42 }43 for _, n := range names {44 if path.Base(n) == "base.html" {45 continue46 }47 t, err := template.New("").Funcs(funcs).ParseFS(web.FS, "templates/base.html", n)48 if err != nil {49 return nil, err50 }51 r.pages[strings.TrimSuffix(path.Base(n), ".html")] = t52 }53 return r, nil54}5556// Write renders template name into dir/rel.57func (r *Renderer) Write(dir, rel, name string, p Page) error {58 t, ok := r.pages[name]59 if !ok {60 return fmt.Errorf("render: no template %q", name)61 }62 var buf bytes.Buffer63 if err := t.ExecuteTemplate(&buf, "base", p); err != nil {64 return fmt.Errorf("render %s: %w", rel, err)65 }66 return WriteFile(filepath.Join(dir, filepath.FromSlash(rel)), buf.Bytes())67}6869// WriteFile writes b to name, creating parent directories.70func WriteFile(name string, b []byte) error {71 if err := os.MkdirAll(filepath.Dir(name), 0o755); err != nil {72 return err73 }74 return os.WriteFile(name, b, 0o644)75}7677// CopyStatic copies the embedded static assets into dir/static.78func CopyStatic(dir string) error {79 return fs.WalkDir(web.FS, "static", func(p string, d fs.DirEntry, err error) error {80 if err != nil || d.IsDir() {81 return err82 }83 b, err := web.FS.ReadFile(p)84 if err != nil {85 return err86 }87 return WriteFile(filepath.Join(dir, filepath.FromSlash(p)), b)88 })89}9091func (r *Renderer) ago(t time.Time) string {92 d := r.Now.Sub(t)93 switch {94 case t.IsZero():95 return ""96 case d < time.Minute:97 return "just now"98 case d < time.Hour:99 return plural(int(d.Minutes()), "minute")100 case d < 24*time.Hour:101 return plural(int(d.Hours()), "hour")102 case d < 30*24*time.Hour:103 return plural(int(d.Hours()/24), "day")104 case d < 365*24*time.Hour:105 return plural(int(d.Hours()/24/30), "month")106 }107 return plural(int(d.Hours()/24/365), "year")108}109110func plural(n int, unit string) string {111 if n != 1 {112 unit += "s"113 }114 return fmt.Sprintf("%d %s ago", n, unit)115}116117// langClass maps a language name to one of eight accent colour classes.118func langClass(name string) string {119 h := fnv.New32a()120 h.Write([]byte(name))121 return fmt.Sprintf("lang-%d", h.Sum32()%8)122}123124func humanSize(n int64) string {125 switch {126 case n < 1<<10:127 return fmt.Sprintf("%d B", n)128 case n < 1<<20:129 return fmt.Sprintf("%.1f KB", float64(n)/(1<<10))130 case n < 1<<30:131 return fmt.Sprintf("%.1f MB", float64(n)/(1<<20))132 }133 return fmt.Sprintf("%.1f GB", float64(n)/(1<<30))134}
justfileadded
+30 −0
@@ -0,0 +1,30 @@1set shell := ["bash", "-euo", "pipefail", "-c"]23default:4 @just --list56# Run all tests7test:8 go test ./...910# Rewrite golden files after an intended output change11golden:12 go test ./internal/build -run Golden -update1314# gofmt check + go vet15lint:16 test -z "$(gofmt -l .)" || { gofmt -l .; exit 1; }17 go vet ./...1819# Build the binary into ./bin20build:21 CGO_ENABLED=0 go build -trimpath -o bin/daumdev ./cmd/daumdev2223# Render the site once into ./out (needs a config.json and access to Gitea)24render config="config.json":25 rm -rf out26 go run ./cmd/daumdev -config {{config}} -once -out out2728# Count Go lines (budget: ~1,800, excluding tests, templates and CSS)29loc:30 find . -name '*.go' ! -name '*_test.go' -print0 | xargs -0 cat | wc -l
mise.tomladded
+2 −0
@@ -0,0 +1,2 @@1[tools]2go = "1.27.4"
testdata/gitea/api/v1/repos/daniel/leaky.jsonadded
+9 −0
@@ -0,0 +1,9 @@1{2 "id": 12,3 "name": "leaky",4 "full_name": "daniel/leaky",5 "description": "should never render",6 "private": true,7 "default_branch": "main",8 "updated_at": "2026-11-21T00:00:00Z"9}
testdata/gitea/api/v1/repos/daniel/repo-a.jsonadded
+14 −0
@@ -0,0 +1,14 @@1{2 "id": 10,3 "name": "repo-a",4 "full_name": "daniel/repo-a",5 "description": "A small Go service & friends",6 "private": false,7 "empty": false,8 "archived": false,9 "website": "",10 "default_branch": "main",11 "language": "Go",12 "topics": ["go", "web"],13 "updated_at": "2026-11-20T09:00:00Z"14}
testdata/gitea/api/v1/repos/daniel/repo-b.jsonadded
+14 −0
@@ -0,0 +1,14 @@1{2 "id": 11,3 "name": "repo-b",4 "full_name": "daniel/repo-b",5 "description": "",6 "private": false,7 "empty": false,8 "archived": false,9 "website": "",10 "default_branch": "main",11 "language": "Shell",12 "topics": [],13 "updated_at": "2026-08-01T12:00:00Z"14}
testdata/gitea/api/v1/users/daniel.jsonadded
+12 −0
@@ -0,0 +1,12 @@1{2 "id": 1,3 "login": "daniel",4 "full_name": "Daniel Daum",5 "email": "",6 "avatar_url": "http://gitea.tailnet.example:3000/avatars/0123456789abcdef",7 "html_url": "http://gitea.tailnet.example:3000/daniel",8 "description": "Builds small tools. <script>alert(1)</script>",9 "website": "https://danieldaum.net",10 "location": "Earth",11 "visibility": "public"12}
testdata/golden/index.htmladded
+45 −0
@@ -0,0 +1,45 @@1<!doctype html>2<html lang="en">3<head>4<meta charset="utf-8">5<meta name="viewport" content="width=device-width, initial-scale=1">6<meta name="color-scheme" content="light dark">7<title>Daniel Daum</title>8<link rel="stylesheet" href="/static/style.css">9</head>10<body>11<header class="site"><a href="/">daum.dev</a></header>12<main>13<section class="profile"><img class="avatar" src="/static/avatar.png" alt="" width="96" height="96">14 <div>15 <h1>Daniel Daum</h1><p class="muted">daniel</p><p class="bio">Builds small tools. <script>alert(1)</script></p><p class="muted">Earth</p>16 <ul class="links"><li><a href="https://danieldaum.net" rel="me">Website</a></li><li><a href="https://bsky.app/profile/daum.dev" rel="me">Bluesky</a></li><li><a href="https://github.com/example" rel="me">GitHub</a></li>17 </ul>18 </div>19</section>2021<section>22 <h2>0 contributions in the last year</h2>23 <div class="heatmap-wrap"><svg class="heatmap" viewBox="0 0 717 107" role="img" aria-label="0 contributions in the last year"><text x="0" y="38">Mon</text><text x="0" y="64">Wed</text><text x="0" y="90">Fri</text><text x="28" y="11">Nov</text><rect class="h0" x="28" y="16" width="10" height="10" rx="2"><title>0 on Nov 16, 2025</title></rect><rect class="h0" x="28" y="29" width="10" height="10" rx="2"><title>0 on Nov 17, 2025</title></rect><rect class="h0" x="28" y="42" width="10" height="10" rx="2"><title>0 on Nov 18, 2025</title></rect><rect class="h0" x="28" y="55" width="10" height="10" rx="2"><title>0 on Nov 19, 2025</title></rect><rect class="h0" x="28" y="68" width="10" height="10" rx="2"><title>0 on Nov 20, 2025</title></rect><rect class="h0" x="28" y="81" width="10" height="10" rx="2"><title>0 on Nov 21, 2025</title></rect><rect class="h0" x="28" y="94" width="10" height="10" rx="2"><title>0 on Nov 22, 2025</title></rect><rect class="h0" x="41" y="16" width="10" height="10" rx="2"><title>0 on Nov 23, 2025</title></rect><rect class="h0" x="41" y="29" width="10" height="10" rx="2"><title>0 on Nov 24, 2025</title></rect><rect class="h0" x="41" y="42" width="10" height="10" rx="2"><title>0 on Nov 25, 2025</title></rect><rect class="h0" x="41" y="55" width="10" height="10" rx="2"><title>0 on Nov 26, 2025</title></rect><rect class="h0" x="41" y="68" width="10" height="10" rx="2"><title>0 on Nov 27, 2025</title></rect><rect class="h0" x="41" y="81" width="10" height="10" rx="2"><title>0 on Nov 28, 2025</title></rect><rect class="h0" x="41" y="94" width="10" height="10" rx="2"><title>0 on Nov 29, 2025</title></rect><rect class="h0" x="54" y="16" width="10" height="10" rx="2"><title>0 on Nov 30, 2025</title></rect><rect class="h0" x="54" y="29" width="10" height="10" rx="2"><title>0 on Dec 1, 2025</title></rect><rect class="h0" x="54" y="42" width="10" height="10" rx="2"><title>0 on Dec 2, 2025</title></rect><rect class="h0" x="54" y="55" width="10" height="10" rx="2"><title>0 on Dec 3, 2025</title></rect><rect class="h0" x="54" y="68" width="10" height="10" rx="2"><title>0 on Dec 4, 2025</title></rect><rect class="h0" x="54" y="81" width="10" height="10" rx="2"><title>0 on Dec 5, 2025</title></rect><rect class="h0" x="54" y="94" width="10" height="10" rx="2"><title>0 on Dec 6, 2025</title></rect><text x="67" y="11">Dec</text><rect class="h0" x="67" y="16" width="10" height="10" rx="2"><title>0 on Dec 7, 2025</title></rect><rect class="h0" x="67" y="29" width="10" height="10" rx="2"><title>0 on Dec 8, 2025</title></rect><rect class="h0" x="67" y="42" width="10" height="10" rx="2"><title>0 on Dec 9, 2025</title></rect><rect class="h0" x="67" y="55" width="10" height="10" rx="2"><title>0 on Dec 10, 2025</title></rect><rect class="h0" x="67" y="68" width="10" height="10" rx="2"><title>0 on Dec 11, 2025</title></rect><rect class="h0" x="67" y="81" width="10" height="10" rx="2"><title>0 on Dec 12, 2025</title></rect><rect class="h0" x="67" y="94" width="10" height="10" rx="2"><title>0 on Dec 13, 2025</title></rect><rect class="h0" x="80" y="16" width="10" height="10" rx="2"><title>0 on Dec 14, 2025</title></rect><rect class="h0" x="80" y="29" width="10" height="10" rx="2"><title>0 on Dec 15, 2025</title></rect><rect class="h0" x="80" y="42" width="10" height="10" rx="2"><title>0 on Dec 16, 2025</title></rect><rect class="h0" x="80" y="55" width="10" height="10" rx="2"><title>0 on Dec 17, 2025</title></rect><rect class="h0" x="80" y="68" width="10" height="10" rx="2"><title>0 on Dec 18, 2025</title></rect><rect class="h0" x="80" y="81" width="10" height="10" rx="2"><title>0 on Dec 19, 2025</title></rect><rect class="h0" x="80" y="94" width="10" height="10" rx="2"><title>0 on Dec 20, 2025</title></rect><rect class="h0" x="93" y="16" width="10" height="10" rx="2"><title>0 on Dec 21, 2025</title></rect><rect class="h0" x="93" y="29" width="10" height="10" rx="2"><title>0 on Dec 22, 2025</title></rect><rect class="h0" x="93" y="42" width="10" height="10" rx="2"><title>0 on Dec 23, 2025</title></rect><rect class="h0" x="93" y="55" width="10" height="10" rx="2"><title>0 on Dec 24, 2025</title></rect><rect class="h0" x="93" y="68" width="10" height="10" rx="2"><title>0 on Dec 25, 2025</title></rect><rect class="h0" x="93" y="81" width="10" height="10" rx="2"><title>0 on Dec 26, 2025</title></rect><rect class="h0" x="93" y="94" width="10" height="10" rx="2"><title>0 on Dec 27, 2025</title></rect><rect class="h0" x="106" y="16" width="10" height="10" rx="2"><title>0 on Dec 28, 2025</title></rect><rect class="h0" x="106" y="29" width="10" height="10" rx="2"><title>0 on Dec 29, 2025</title></rect><rect class="h0" x="106" y="42" width="10" height="10" rx="2"><title>0 on Dec 30, 2025</title></rect><rect class="h0" x="106" y="55" width="10" height="10" rx="2"><title>0 on Dec 31, 2025</title></rect><rect class="h0" x="106" y="68" width="10" height="10" rx="2"><title>0 on Jan 1, 2026</title></rect><rect class="h0" x="106" y="81" width="10" height="10" rx="2"><title>0 on Jan 2, 2026</title></rect><rect class="h0" x="106" y="94" width="10" height="10" rx="2"><title>0 on Jan 3, 2026</title></rect><text x="119" y="11">Jan</text><rect class="h0" x="119" y="16" width="10" height="10" rx="2"><title>0 on Jan 4, 2026</title></rect><rect class="h0" x="119" y="29" width="10" height="10" rx="2"><title>0 on Jan 5, 2026</title></rect><rect class="h0" x="119" y="42" width="10" height="10" rx="2"><title>0 on Jan 6, 2026</title></rect><rect class="h0" x="119" y="55" width="10" height="10" rx="2"><title>0 on Jan 7, 2026</title></rect><rect class="h0" x="119" y="68" width="10" height="10" rx="2"><title>0 on Jan 8, 2026</title></rect><rect class="h0" x="119" y="81" width="10" height="10" rx="2"><title>0 on Jan 9, 2026</title></rect><rect class="h0" x="119" y="94" width="10" height="10" rx="2"><title>0 on Jan 10, 2026</title></rect><rect class="h0" x="132" y="16" width="10" height="10" rx="2"><title>0 on Jan 11, 2026</title></rect><rect class="h0" x="132" y="29" width="10" height="10" rx="2"><title>0 on Jan 12, 2026</title></rect><rect class="h0" x="132" y="42" width="10" height="10" rx="2"><title>0 on Jan 13, 2026</title></rect><rect class="h0" x="132" y="55" width="10" height="10" rx="2"><title>0 on Jan 14, 2026</title></rect><rect class="h0" x="132" y="68" width="10" height="10" rx="2"><title>0 on Jan 15, 2026</title></rect><rect class="h0" x="132" y="81" width="10" height="10" rx="2"><title>0 on Jan 16, 2026</title></rect><rect class="h0" x="132" y="94" width="10" height="10" rx="2"><title>0 on Jan 17, 2026</title></rect><rect class="h0" x="145" y="16" width="10" height="10" rx="2"><title>0 on Jan 18, 2026</title></rect><rect class="h0" x="145" y="29" width="10" height="10" rx="2"><title>0 on Jan 19, 2026</title></rect><rect class="h0" x="145" y="42" width="10" height="10" rx="2"><title>0 on Jan 20, 2026</title></rect><rect class="h0" x="145" y="55" width="10" height="10" rx="2"><title>0 on Jan 21, 2026</title></rect><rect class="h0" x="145" y="68" width="10" height="10" rx="2"><title>0 on Jan 22, 2026</title></rect><rect class="h0" x="145" y="81" width="10" height="10" rx="2"><title>0 on Jan 23, 2026</title></rect><rect class="h0" x="145" y="94" width="10" height="10" rx="2"><title>0 on Jan 24, 2026</title></rect><rect class="h0" x="158" y="16" width="10" height="10" rx="2"><title>0 on Jan 25, 2026</title></rect><rect class="h0" x="158" y="29" width="10" height="10" rx="2"><title>0 on Jan 26, 2026</title></rect><rect class="h0" x="158" y="42" width="10" height="10" rx="2"><title>0 on Jan 27, 2026</title></rect><rect class="h0" x="158" y="55" width="10" height="10" rx="2"><title>0 on Jan 28, 2026</title></rect><rect class="h0" x="158" y="68" width="10" height="10" rx="2"><title>0 on Jan 29, 2026</title></rect><rect class="h0" x="158" y="81" width="10" height="10" rx="2"><title>0 on Jan 30, 2026</title></rect><rect class="h0" x="158" y="94" width="10" height="10" rx="2"><title>0 on Jan 31, 2026</title></rect><text x="171" y="11">Feb</text><rect class="h0" x="171" y="16" width="10" height="10" rx="2"><title>0 on Feb 1, 2026</title></rect><rect class="h0" x="171" y="29" width="10" height="10" rx="2"><title>0 on Feb 2, 2026</title></rect><rect class="h0" x="171" y="42" width="10" height="10" rx="2"><title>0 on Feb 3, 2026</title></rect><rect class="h0" x="171" y="55" width="10" height="10" rx="2"><title>0 on Feb 4, 2026</title></rect><rect class="h0" x="171" y="68" width="10" height="10" rx="2"><title>0 on Feb 5, 2026</title></rect><rect class="h0" x="171" y="81" width="10" height="10" rx="2"><title>0 on Feb 6, 2026</title></rect><rect class="h0" x="171" y="94" width="10" height="10" rx="2"><title>0 on Feb 7, 2026</title></rect><rect class="h0" x="184" y="16" width="10" height="10" rx="2"><title>0 on Feb 8, 2026</title></rect><rect class="h0" x="184" y="29" width="10" height="10" rx="2"><title>0 on Feb 9, 2026</title></rect><rect class="h0" x="184" y="42" width="10" height="10" rx="2"><title>0 on Feb 10, 2026</title></rect><rect class="h0" x="184" y="55" width="10" height="10" rx="2"><title>0 on Feb 11, 2026</title></rect><rect class="h0" x="184" y="68" width="10" height="10" rx="2"><title>0 on Feb 12, 2026</title></rect><rect class="h0" x="184" y="81" width="10" height="10" rx="2"><title>0 on Feb 13, 2026</title></rect><rect class="h0" x="184" y="94" width="10" height="10" rx="2"><title>0 on Feb 14, 2026</title></rect><rect class="h0" x="197" y="16" width="10" height="10" rx="2"><title>0 on Feb 15, 2026</title></rect><rect class="h0" x="197" y="29" width="10" height="10" rx="2"><title>0 on Feb 16, 2026</title></rect><rect class="h0" x="197" y="42" width="10" height="10" rx="2"><title>0 on Feb 17, 2026</title></rect><rect class="h0" x="197" y="55" width="10" height="10" rx="2"><title>0 on Feb 18, 2026</title></rect><rect class="h0" x="197" y="68" width="10" height="10" rx="2"><title>0 on Feb 19, 2026</title></rect><rect class="h0" x="197" y="81" width="10" height="10" rx="2"><title>0 on Feb 20, 2026</title></rect><rect class="h0" x="197" y="94" width="10" height="10" rx="2"><title>0 on Feb 21, 2026</title></rect><rect class="h0" x="210" y="16" width="10" height="10" rx="2"><title>0 on Feb 22, 2026</title></rect><rect class="h0" x="210" y="29" width="10" height="10" rx="2"><title>0 on Feb 23, 2026</title></rect><rect class="h0" x="210" y="42" width="10" height="10" rx="2"><title>0 on Feb 24, 2026</title></rect><rect class="h0" x="210" y="55" width="10" height="10" rx="2"><title>0 on Feb 25, 2026</title></rect><rect class="h0" x="210" y="68" width="10" height="10" rx="2"><title>0 on Feb 26, 2026</title></rect><rect class="h0" x="210" y="81" width="10" height="10" rx="2"><title>0 on Feb 27, 2026</title></rect><rect class="h0" x="210" y="94" width="10" height="10" rx="2"><title>0 on Feb 28, 2026</title></rect><text x="223" y="11">Mar</text><rect class="h0" x="223" y="16" width="10" height="10" rx="2"><title>0 on Mar 1, 2026</title></rect><rect class="h0" x="223" y="29" width="10" height="10" rx="2"><title>0 on Mar 2, 2026</title></rect><rect class="h0" x="223" y="42" width="10" height="10" rx="2"><title>0 on Mar 3, 2026</title></rect><rect class="h0" x="223" y="55" width="10" height="10" rx="2"><title>0 on Mar 4, 2026</title></rect><rect class="h0" x="223" y="68" width="10" height="10" rx="2"><title>0 on Mar 5, 2026</title></rect><rect class="h0" x="223" y="81" width="10" height="10" rx="2"><title>0 on Mar 6, 2026</title></rect><rect class="h0" x="223" y="94" width="10" height="10" rx="2"><title>0 on Mar 7, 2026</title></rect><rect class="h0" x="236" y="16" width="10" height="10" rx="2"><title>0 on Mar 8, 2026</title></rect><rect class="h0" x="236" y="29" width="10" height="10" rx="2"><title>0 on Mar 9, 2026</title></rect><rect class="h0" x="236" y="42" width="10" height="10" rx="2"><title>0 on Mar 10, 2026</title></rect><rect class="h0" x="236" y="55" width="10" height="10" rx="2"><title>0 on Mar 11, 2026</title></rect><rect class="h0" x="236" y="68" width="10" height="10" rx="2"><title>0 on Mar 12, 2026</title></rect><rect class="h0" x="236" y="81" width="10" height="10" rx="2"><title>0 on Mar 13, 2026</title></rect><rect class="h0" x="236" y="94" width="10" height="10" rx="2"><title>0 on Mar 14, 2026</title></rect><rect class="h0" x="249" y="16" width="10" height="10" rx="2"><title>0 on Mar 15, 2026</title></rect><rect class="h0" x="249" y="29" width="10" height="10" rx="2"><title>0 on Mar 16, 2026</title></rect><rect class="h0" x="249" y="42" width="10" height="10" rx="2"><title>0 on Mar 17, 2026</title></rect><rect class="h0" x="249" y="55" width="10" height="10" rx="2"><title>0 on Mar 18, 2026</title></rect><rect class="h0" x="249" y="68" width="10" height="10" rx="2"><title>0 on Mar 19, 2026</title></rect><rect class="h0" x="249" y="81" width="10" height="10" rx="2"><title>0 on Mar 20, 2026</title></rect><rect class="h0" x="249" y="94" width="10" height="10" rx="2"><title>0 on Mar 21, 2026</title></rect><rect class="h0" x="262" y="16" width="10" height="10" rx="2"><title>0 on Mar 22, 2026</title></rect><rect class="h0" x="262" y="29" width="10" height="10" rx="2"><title>0 on Mar 23, 2026</title></rect><rect class="h0" x="262" y="42" width="10" height="10" rx="2"><title>0 on Mar 24, 2026</title></rect><rect class="h0" x="262" y="55" width="10" height="10" rx="2"><title>0 on Mar 25, 2026</title></rect><rect class="h0" x="262" y="68" width="10" height="10" rx="2"><title>0 on Mar 26, 2026</title></rect><rect class="h0" x="262" y="81" width="10" height="10" rx="2"><title>0 on Mar 27, 2026</title></rect><rect class="h0" x="262" y="94" width="10" height="10" rx="2"><title>0 on Mar 28, 2026</title></rect><rect class="h0" x="275" y="16" width="10" height="10" rx="2"><title>0 on Mar 29, 2026</title></rect><rect class="h0" x="275" y="29" width="10" height="10" rx="2"><title>0 on Mar 30, 2026</title></rect><rect class="h0" x="275" y="42" width="10" height="10" rx="2"><title>0 on Mar 31, 2026</title></rect><rect class="h0" x="275" y="55" width="10" height="10" rx="2"><title>0 on Apr 1, 2026</title></rect><rect class="h0" x="275" y="68" width="10" height="10" rx="2"><title>0 on Apr 2, 2026</title></rect><rect class="h0" x="275" y="81" width="10" height="10" rx="2"><title>0 on Apr 3, 2026</title></rect><rect class="h0" x="275" y="94" width="10" height="10" rx="2"><title>0 on Apr 4, 2026</title></rect><text x="288" y="11">Apr</text><rect class="h0" x="288" y="16" width="10" height="10" rx="2"><title>0 on Apr 5, 2026</title></rect><rect class="h0" x="288" y="29" width="10" height="10" rx="2"><title>0 on Apr 6, 2026</title></rect><rect class="h0" x="288" y="42" width="10" height="10" rx="2"><title>0 on Apr 7, 2026</title></rect><rect class="h0" x="288" y="55" width="10" height="10" rx="2"><title>0 on Apr 8, 2026</title></rect><rect class="h0" x="288" y="68" width="10" height="10" rx="2"><title>0 on Apr 9, 2026</title></rect><rect class="h0" x="288" y="81" width="10" height="10" rx="2"><title>0 on Apr 10, 2026</title></rect><rect class="h0" x="288" y="94" width="10" height="10" rx="2"><title>0 on Apr 11, 2026</title></rect><rect class="h0" x="301" y="16" width="10" height="10" rx="2"><title>0 on Apr 12, 2026</title></rect><rect class="h0" x="301" y="29" width="10" height="10" rx="2"><title>0 on Apr 13, 2026</title></rect><rect class="h0" x="301" y="42" width="10" height="10" rx="2"><title>0 on Apr 14, 2026</title></rect><rect class="h0" x="301" y="55" width="10" height="10" rx="2"><title>0 on Apr 15, 2026</title></rect><rect class="h0" x="301" y="68" width="10" height="10" rx="2"><title>0 on Apr 16, 2026</title></rect><rect class="h0" x="301" y="81" width="10" height="10" rx="2"><title>0 on Apr 17, 2026</title></rect><rect class="h0" x="301" y="94" width="10" height="10" rx="2"><title>0 on Apr 18, 2026</title></rect><rect class="h0" x="314" y="16" width="10" height="10" rx="2"><title>0 on Apr 19, 2026</title></rect><rect class="h0" x="314" y="29" width="10" height="10" rx="2"><title>0 on Apr 20, 2026</title></rect><rect class="h0" x="314" y="42" width="10" height="10" rx="2"><title>0 on Apr 21, 2026</title></rect><rect class="h0" x="314" y="55" width="10" height="10" rx="2"><title>0 on Apr 22, 2026</title></rect><rect class="h0" x="314" y="68" width="10" height="10" rx="2"><title>0 on Apr 23, 2026</title></rect><rect class="h0" x="314" y="81" width="10" height="10" rx="2"><title>0 on Apr 24, 2026</title></rect><rect class="h0" x="314" y="94" width="10" height="10" rx="2"><title>0 on Apr 25, 2026</title></rect><rect class="h0" x="327" y="16" width="10" height="10" rx="2"><title>0 on Apr 26, 2026</title></rect><rect class="h0" x="327" y="29" width="10" height="10" rx="2"><title>0 on Apr 27, 2026</title></rect><rect class="h0" x="327" y="42" width="10" height="10" rx="2"><title>0 on Apr 28, 2026</title></rect><rect class="h0" x="327" y="55" width="10" height="10" rx="2"><title>0 on Apr 29, 2026</title></rect><rect class="h0" x="327" y="68" width="10" height="10" rx="2"><title>0 on Apr 30, 2026</title></rect><rect class="h0" x="327" y="81" width="10" height="10" rx="2"><title>0 on May 1, 2026</title></rect><rect class="h0" x="327" y="94" width="10" height="10" rx="2"><title>0 on May 2, 2026</title></rect><text x="340" y="11">May</text><rect class="h0" x="340" y="16" width="10" height="10" rx="2"><title>0 on May 3, 2026</title></rect><rect class="h0" x="340" y="29" width="10" height="10" rx="2"><title>0 on May 4, 2026</title></rect><rect class="h0" x="340" y="42" width="10" height="10" rx="2"><title>0 on May 5, 2026</title></rect><rect class="h0" x="340" y="55" width="10" height="10" rx="2"><title>0 on May 6, 2026</title></rect><rect class="h0" x="340" y="68" width="10" height="10" rx="2"><title>0 on May 7, 2026</title></rect><rect class="h0" x="340" y="81" width="10" height="10" rx="2"><title>0 on May 8, 2026</title></rect><rect class="h0" x="340" y="94" width="10" height="10" rx="2"><title>0 on May 9, 2026</title></rect><rect class="h0" x="353" y="16" width="10" height="10" rx="2"><title>0 on May 10, 2026</title></rect><rect class="h0" x="353" y="29" width="10" height="10" rx="2"><title>0 on May 11, 2026</title></rect><rect class="h0" x="353" y="42" width="10" height="10" rx="2"><title>0 on May 12, 2026</title></rect><rect class="h0" x="353" y="55" width="10" height="10" rx="2"><title>0 on May 13, 2026</title></rect><rect class="h0" x="353" y="68" width="10" height="10" rx="2"><title>0 on May 14, 2026</title></rect><rect class="h0" x="353" y="81" width="10" height="10" rx="2"><title>0 on May 15, 2026</title></rect><rect class="h0" x="353" y="94" width="10" height="10" rx="2"><title>0 on May 16, 2026</title></rect><rect class="h0" x="366" y="16" width="10" height="10" rx="2"><title>0 on May 17, 2026</title></rect><rect class="h0" x="366" y="29" width="10" height="10" rx="2"><title>0 on May 18, 2026</title></rect><rect class="h0" x="366" y="42" width="10" height="10" rx="2"><title>0 on May 19, 2026</title></rect><rect class="h0" x="366" y="55" width="10" height="10" rx="2"><title>0 on May 20, 2026</title></rect><rect class="h0" x="366" y="68" width="10" height="10" rx="2"><title>0 on May 21, 2026</title></rect><rect class="h0" x="366" y="81" width="10" height="10" rx="2"><title>0 on May 22, 2026</title></rect><rect class="h0" x="366" y="94" width="10" height="10" rx="2"><title>0 on May 23, 2026</title></rect><rect class="h0" x="379" y="16" width="10" height="10" rx="2"><title>0 on May 24, 2026</title></rect><rect class="h0" x="379" y="29" width="10" height="10" rx="2"><title>0 on May 25, 2026</title></rect><rect class="h0" x="379" y="42" width="10" height="10" rx="2"><title>0 on May 26, 2026</title></rect><rect class="h0" x="379" y="55" width="10" height="10" rx="2"><title>0 on May 27, 2026</title></rect><rect class="h0" x="379" y="68" width="10" height="10" rx="2"><title>0 on May 28, 2026</title></rect><rect class="h0" x="379" y="81" width="10" height="10" rx="2"><title>0 on May 29, 2026</title></rect><rect class="h0" x="379" y="94" width="10" height="10" rx="2"><title>0 on May 30, 2026</title></rect><rect class="h0" x="392" y="16" width="10" height="10" rx="2"><title>0 on May 31, 2026</title></rect><rect class="h0" x="392" y="29" width="10" height="10" rx="2"><title>0 on Jun 1, 2026</title></rect><rect class="h0" x="392" y="42" width="10" height="10" rx="2"><title>0 on Jun 2, 2026</title></rect><rect class="h0" x="392" y="55" width="10" height="10" rx="2"><title>0 on Jun 3, 2026</title></rect><rect class="h0" x="392" y="68" width="10" height="10" rx="2"><title>0 on Jun 4, 2026</title></rect><rect class="h0" x="392" y="81" width="10" height="10" rx="2"><title>0 on Jun 5, 2026</title></rect><rect class="h0" x="392" y="94" width="10" height="10" rx="2"><title>0 on Jun 6, 2026</title></rect><text x="405" y="11">Jun</text><rect class="h0" x="405" y="16" width="10" height="10" rx="2"><title>0 on Jun 7, 2026</title></rect><rect class="h0" x="405" y="29" width="10" height="10" rx="2"><title>0 on Jun 8, 2026</title></rect><rect class="h0" x="405" y="42" width="10" height="10" rx="2"><title>0 on Jun 9, 2026</title></rect><rect class="h0" x="405" y="55" width="10" height="10" rx="2"><title>0 on Jun 10, 2026</title></rect><rect class="h0" x="405" y="68" width="10" height="10" rx="2"><title>0 on Jun 11, 2026</title></rect><rect class="h0" x="405" y="81" width="10" height="10" rx="2"><title>0 on Jun 12, 2026</title></rect><rect class="h0" x="405" y="94" width="10" height="10" rx="2"><title>0 on Jun 13, 2026</title></rect><rect class="h0" x="418" y="16" width="10" height="10" rx="2"><title>0 on Jun 14, 2026</title></rect><rect class="h0" x="418" y="29" width="10" height="10" rx="2"><title>0 on Jun 15, 2026</title></rect><rect class="h0" x="418" y="42" width="10" height="10" rx="2"><title>0 on Jun 16, 2026</title></rect><rect class="h0" x="418" y="55" width="10" height="10" rx="2"><title>0 on Jun 17, 2026</title></rect><rect class="h0" x="418" y="68" width="10" height="10" rx="2"><title>0 on Jun 18, 2026</title></rect><rect class="h0" x="418" y="81" width="10" height="10" rx="2"><title>0 on Jun 19, 2026</title></rect><rect class="h0" x="418" y="94" width="10" height="10" rx="2"><title>0 on Jun 20, 2026</title></rect><rect class="h0" x="431" y="16" width="10" height="10" rx="2"><title>0 on Jun 21, 2026</title></rect><rect class="h0" x="431" y="29" width="10" height="10" rx="2"><title>0 on Jun 22, 2026</title></rect><rect class="h0" x="431" y="42" width="10" height="10" rx="2"><title>0 on Jun 23, 2026</title></rect><rect class="h0" x="431" y="55" width="10" height="10" rx="2"><title>0 on Jun 24, 2026</title></rect><rect class="h0" x="431" y="68" width="10" height="10" rx="2"><title>0 on Jun 25, 2026</title></rect><rect class="h0" x="431" y="81" width="10" height="10" rx="2"><title>0 on Jun 26, 2026</title></rect><rect class="h0" x="431" y="94" width="10" height="10" rx="2"><title>0 on Jun 27, 2026</title></rect><rect class="h0" x="444" y="16" width="10" height="10" rx="2"><title>0 on Jun 28, 2026</title></rect><rect class="h0" x="444" y="29" width="10" height="10" rx="2"><title>0 on Jun 29, 2026</title></rect><rect class="h0" x="444" y="42" width="10" height="10" rx="2"><title>0 on Jun 30, 2026</title></rect><rect class="h0" x="444" y="55" width="10" height="10" rx="2"><title>0 on Jul 1, 2026</title></rect><rect class="h0" x="444" y="68" width="10" height="10" rx="2"><title>0 on Jul 2, 2026</title></rect><rect class="h0" x="444" y="81" width="10" height="10" rx="2"><title>0 on Jul 3, 2026</title></rect><rect class="h0" x="444" y="94" width="10" height="10" rx="2"><title>0 on Jul 4, 2026</title></rect><text x="457" y="11">Jul</text><rect class="h0" x="457" y="16" width="10" height="10" rx="2"><title>0 on Jul 5, 2026</title></rect><rect class="h0" x="457" y="29" width="10" height="10" rx="2"><title>0 on Jul 6, 2026</title></rect><rect class="h0" x="457" y="42" width="10" height="10" rx="2"><title>0 on Jul 7, 2026</title></rect><rect class="h0" x="457" y="55" width="10" height="10" rx="2"><title>0 on Jul 8, 2026</title></rect><rect class="h0" x="457" y="68" width="10" height="10" rx="2"><title>0 on Jul 9, 2026</title></rect><rect class="h0" x="457" y="81" width="10" height="10" rx="2"><title>0 on Jul 10, 2026</title></rect><rect class="h0" x="457" y="94" width="10" height="10" rx="2"><title>0 on Jul 11, 2026</title></rect><rect class="h0" x="470" y="16" width="10" height="10" rx="2"><title>0 on Jul 12, 2026</title></rect><rect class="h0" x="470" y="29" width="10" height="10" rx="2"><title>0 on Jul 13, 2026</title></rect><rect class="h0" x="470" y="42" width="10" height="10" rx="2"><title>0 on Jul 14, 2026</title></rect><rect class="h0" x="470" y="55" width="10" height="10" rx="2"><title>0 on Jul 15, 2026</title></rect><rect class="h0" x="470" y="68" width="10" height="10" rx="2"><title>0 on Jul 16, 2026</title></rect><rect class="h0" x="470" y="81" width="10" height="10" rx="2"><title>0 on Jul 17, 2026</title></rect><rect class="h0" x="470" y="94" width="10" height="10" rx="2"><title>0 on Jul 18, 2026</title></rect><rect class="h0" x="483" y="16" width="10" height="10" rx="2"><title>0 on Jul 19, 2026</title></rect><rect class="h0" x="483" y="29" width="10" height="10" rx="2"><title>0 on Jul 20, 2026</title></rect><rect class="h0" x="483" y="42" width="10" height="10" rx="2"><title>0 on Jul 21, 2026</title></rect><rect class="h0" x="483" y="55" width="10" height="10" rx="2"><title>0 on Jul 22, 2026</title></rect><rect class="h0" x="483" y="68" width="10" height="10" rx="2"><title>0 on Jul 23, 2026</title></rect><rect class="h0" x="483" y="81" width="10" height="10" rx="2"><title>0 on Jul 24, 2026</title></rect><rect class="h0" x="483" y="94" width="10" height="10" rx="2"><title>0 on Jul 25, 2026</title></rect><rect class="h0" x="496" y="16" width="10" height="10" rx="2"><title>0 on Jul 26, 2026</title></rect><rect class="h0" x="496" y="29" width="10" height="10" rx="2"><title>0 on Jul 27, 2026</title></rect><rect class="h0" x="496" y="42" width="10" height="10" rx="2"><title>0 on Jul 28, 2026</title></rect><rect class="h0" x="496" y="55" width="10" height="10" rx="2"><title>0 on Jul 29, 2026</title></rect><rect class="h0" x="496" y="68" width="10" height="10" rx="2"><title>0 on Jul 30, 2026</title></rect><rect class="h0" x="496" y="81" width="10" height="10" rx="2"><title>0 on Jul 31, 2026</title></rect><rect class="h0" x="496" y="94" width="10" height="10" rx="2"><title>0 on Aug 1, 2026</title></rect><text x="509" y="11">Aug</text><rect class="h0" x="509" y="16" width="10" height="10" rx="2"><title>0 on Aug 2, 2026</title></rect><rect class="h0" x="509" y="29" width="10" height="10" rx="2"><title>0 on Aug 3, 2026</title></rect><rect class="h0" x="509" y="42" width="10" height="10" rx="2"><title>0 on Aug 4, 2026</title></rect><rect class="h0" x="509" y="55" width="10" height="10" rx="2"><title>0 on Aug 5, 2026</title></rect><rect class="h0" x="509" y="68" width="10" height="10" rx="2"><title>0 on Aug 6, 2026</title></rect><rect class="h0" x="509" y="81" width="10" height="10" rx="2"><title>0 on Aug 7, 2026</title></rect><rect class="h0" x="509" y="94" width="10" height="10" rx="2"><title>0 on Aug 8, 2026</title></rect><rect class="h0" x="522" y="16" width="10" height="10" rx="2"><title>0 on Aug 9, 2026</title></rect><rect class="h0" x="522" y="29" width="10" height="10" rx="2"><title>0 on Aug 10, 2026</title></rect><rect class="h0" x="522" y="42" width="10" height="10" rx="2"><title>0 on Aug 11, 2026</title></rect><rect class="h0" x="522" y="55" width="10" height="10" rx="2"><title>0 on Aug 12, 2026</title></rect><rect class="h0" x="522" y="68" width="10" height="10" rx="2"><title>0 on Aug 13, 2026</title></rect><rect class="h0" x="522" y="81" width="10" height="10" rx="2"><title>0 on Aug 14, 2026</title></rect><rect class="h0" x="522" y="94" width="10" height="10" rx="2"><title>0 on Aug 15, 2026</title></rect><rect class="h0" x="535" y="16" width="10" height="10" rx="2"><title>0 on Aug 16, 2026</title></rect><rect class="h0" x="535" y="29" width="10" height="10" rx="2"><title>0 on Aug 17, 2026</title></rect><rect class="h0" x="535" y="42" width="10" height="10" rx="2"><title>0 on Aug 18, 2026</title></rect><rect class="h0" x="535" y="55" width="10" height="10" rx="2"><title>0 on Aug 19, 2026</title></rect><rect class="h0" x="535" y="68" width="10" height="10" rx="2"><title>0 on Aug 20, 2026</title></rect><rect class="h0" x="535" y="81" width="10" height="10" rx="2"><title>0 on Aug 21, 2026</title></rect><rect class="h0" x="535" y="94" width="10" height="10" rx="2"><title>0 on Aug 22, 2026</title></rect><rect class="h0" x="548" y="16" width="10" height="10" rx="2"><title>0 on Aug 23, 2026</title></rect><rect class="h0" x="548" y="29" width="10" height="10" rx="2"><title>0 on Aug 24, 2026</title></rect><rect class="h0" x="548" y="42" width="10" height="10" rx="2"><title>0 on Aug 25, 2026</title></rect><rect class="h0" x="548" y="55" width="10" height="10" rx="2"><title>0 on Aug 26, 2026</title></rect><rect class="h0" x="548" y="68" width="10" height="10" rx="2"><title>0 on Aug 27, 2026</title></rect><rect class="h0" x="548" y="81" width="10" height="10" rx="2"><title>0 on Aug 28, 2026</title></rect><rect class="h0" x="548" y="94" width="10" height="10" rx="2"><title>0 on Aug 29, 2026</title></rect><rect class="h0" x="561" y="16" width="10" height="10" rx="2"><title>0 on Aug 30, 2026</title></rect><rect class="h0" x="561" y="29" width="10" height="10" rx="2"><title>0 on Aug 31, 2026</title></rect><rect class="h0" x="561" y="42" width="10" height="10" rx="2"><title>0 on Sep 1, 2026</title></rect><rect class="h0" x="561" y="55" width="10" height="10" rx="2"><title>0 on Sep 2, 2026</title></rect><rect class="h0" x="561" y="68" width="10" height="10" rx="2"><title>0 on Sep 3, 2026</title></rect><rect class="h0" x="561" y="81" width="10" height="10" rx="2"><title>0 on Sep 4, 2026</title></rect><rect class="h0" x="561" y="94" width="10" height="10" rx="2"><title>0 on Sep 5, 2026</title></rect><text x="574" y="11">Sep</text><rect class="h0" x="574" y="16" width="10" height="10" rx="2"><title>0 on Sep 6, 2026</title></rect><rect class="h0" x="574" y="29" width="10" height="10" rx="2"><title>0 on Sep 7, 2026</title></rect><rect class="h0" x="574" y="42" width="10" height="10" rx="2"><title>0 on Sep 8, 2026</title></rect><rect class="h0" x="574" y="55" width="10" height="10" rx="2"><title>0 on Sep 9, 2026</title></rect><rect class="h0" x="574" y="68" width="10" height="10" rx="2"><title>0 on Sep 10, 2026</title></rect><rect class="h0" x="574" y="81" width="10" height="10" rx="2"><title>0 on Sep 11, 2026</title></rect><rect class="h0" x="574" y="94" width="10" height="10" rx="2"><title>0 on Sep 12, 2026</title></rect><rect class="h0" x="587" y="16" width="10" height="10" rx="2"><title>0 on Sep 13, 2026</title></rect><rect class="h0" x="587" y="29" width="10" height="10" rx="2"><title>0 on Sep 14, 2026</title></rect><rect class="h0" x="587" y="42" width="10" height="10" rx="2"><title>0 on Sep 15, 2026</title></rect><rect class="h0" x="587" y="55" width="10" height="10" rx="2"><title>0 on Sep 16, 2026</title></rect><rect class="h0" x="587" y="68" width="10" height="10" rx="2"><title>0 on Sep 17, 2026</title></rect><rect class="h0" x="587" y="81" width="10" height="10" rx="2"><title>0 on Sep 18, 2026</title></rect><rect class="h0" x="587" y="94" width="10" height="10" rx="2"><title>0 on Sep 19, 2026</title></rect><rect class="h0" x="600" y="16" width="10" height="10" rx="2"><title>0 on Sep 20, 2026</title></rect><rect class="h0" x="600" y="29" width="10" height="10" rx="2"><title>0 on Sep 21, 2026</title></rect><rect class="h0" x="600" y="42" width="10" height="10" rx="2"><title>0 on Sep 22, 2026</title></rect><rect class="h0" x="600" y="55" width="10" height="10" rx="2"><title>0 on Sep 23, 2026</title></rect><rect class="h0" x="600" y="68" width="10" height="10" rx="2"><title>0 on Sep 24, 2026</title></rect><rect class="h0" x="600" y="81" width="10" height="10" rx="2"><title>0 on Sep 25, 2026</title></rect><rect class="h0" x="600" y="94" width="10" height="10" rx="2"><title>0 on Sep 26, 2026</title></rect><rect class="h0" x="613" y="16" width="10" height="10" rx="2"><title>0 on Sep 27, 2026</title></rect><rect class="h0" x="613" y="29" width="10" height="10" rx="2"><title>0 on Sep 28, 2026</title></rect><rect class="h0" x="613" y="42" width="10" height="10" rx="2"><title>0 on Sep 29, 2026</title></rect><rect class="h0" x="613" y="55" width="10" height="10" rx="2"><title>0 on Sep 30, 2026</title></rect><rect class="h0" x="613" y="68" width="10" height="10" rx="2"><title>0 on Oct 1, 2026</title></rect><rect class="h0" x="613" y="81" width="10" height="10" rx="2"><title>0 on Oct 2, 2026</title></rect><rect class="h0" x="613" y="94" width="10" height="10" rx="2"><title>0 on Oct 3, 2026</title></rect><text x="626" y="11">Oct</text><rect class="h0" x="626" y="16" width="10" height="10" rx="2"><title>0 on Oct 4, 2026</title></rect><rect class="h0" x="626" y="29" width="10" height="10" rx="2"><title>0 on Oct 5, 2026</title></rect><rect class="h0" x="626" y="42" width="10" height="10" rx="2"><title>0 on Oct 6, 2026</title></rect><rect class="h0" x="626" y="55" width="10" height="10" rx="2"><title>0 on Oct 7, 2026</title></rect><rect class="h0" x="626" y="68" width="10" height="10" rx="2"><title>0 on Oct 8, 2026</title></rect><rect class="h0" x="626" y="81" width="10" height="10" rx="2"><title>0 on Oct 9, 2026</title></rect><rect class="h0" x="626" y="94" width="10" height="10" rx="2"><title>0 on Oct 10, 2026</title></rect><rect class="h0" x="639" y="16" width="10" height="10" rx="2"><title>0 on Oct 11, 2026</title></rect><rect class="h0" x="639" y="29" width="10" height="10" rx="2"><title>0 on Oct 12, 2026</title></rect><rect class="h0" x="639" y="42" width="10" height="10" rx="2"><title>0 on Oct 13, 2026</title></rect><rect class="h0" x="639" y="55" width="10" height="10" rx="2"><title>0 on Oct 14, 2026</title></rect><rect class="h0" x="639" y="68" width="10" height="10" rx="2"><title>0 on Oct 15, 2026</title></rect><rect class="h0" x="639" y="81" width="10" height="10" rx="2"><title>0 on Oct 16, 2026</title></rect><rect class="h0" x="639" y="94" width="10" height="10" rx="2"><title>0 on Oct 17, 2026</title></rect><rect class="h0" x="652" y="16" width="10" height="10" rx="2"><title>0 on Oct 18, 2026</title></rect><rect class="h0" x="652" y="29" width="10" height="10" rx="2"><title>0 on Oct 19, 2026</title></rect><rect class="h0" x="652" y="42" width="10" height="10" rx="2"><title>0 on Oct 20, 2026</title></rect><rect class="h0" x="652" y="55" width="10" height="10" rx="2"><title>0 on Oct 21, 2026</title></rect><rect class="h0" x="652" y="68" width="10" height="10" rx="2"><title>0 on Oct 22, 2026</title></rect><rect class="h0" x="652" y="81" width="10" height="10" rx="2"><title>0 on Oct 23, 2026</title></rect><rect class="h0" x="652" y="94" width="10" height="10" rx="2"><title>0 on Oct 24, 2026</title></rect><rect class="h0" x="665" y="16" width="10" height="10" rx="2"><title>0 on Oct 25, 2026</title></rect><rect class="h0" x="665" y="29" width="10" height="10" rx="2"><title>0 on Oct 26, 2026</title></rect><rect class="h0" x="665" y="42" width="10" height="10" rx="2"><title>0 on Oct 27, 2026</title></rect><rect class="h0" x="665" y="55" width="10" height="10" rx="2"><title>0 on Oct 28, 2026</title></rect><rect class="h0" x="665" y="68" width="10" height="10" rx="2"><title>0 on Oct 29, 2026</title></rect><rect class="h0" x="665" y="81" width="10" height="10" rx="2"><title>0 on Oct 30, 2026</title></rect><rect class="h0" x="665" y="94" width="10" height="10" rx="2"><title>0 on Oct 31, 2026</title></rect><text x="678" y="11">Nov</text><rect class="h0" x="678" y="16" width="10" height="10" rx="2"><title>0 on Nov 1, 2026</title></rect><rect class="h0" x="678" y="29" width="10" height="10" rx="2"><title>0 on Nov 2, 2026</title></rect><rect class="h0" x="678" y="42" width="10" height="10" rx="2"><title>0 on Nov 3, 2026</title></rect><rect class="h0" x="678" y="55" width="10" height="10" rx="2"><title>0 on Nov 4, 2026</title></rect><rect class="h0" x="678" y="68" width="10" height="10" rx="2"><title>0 on Nov 5, 2026</title></rect><rect class="h0" x="678" y="81" width="10" height="10" rx="2"><title>0 on Nov 6, 2026</title></rect><rect class="h0" x="678" y="94" width="10" height="10" rx="2"><title>0 on Nov 7, 2026</title></rect><rect class="h0" x="691" y="16" width="10" height="10" rx="2"><title>0 on Nov 8, 2026</title></rect><rect class="h0" x="691" y="29" width="10" height="10" rx="2"><title>0 on Nov 9, 2026</title></rect><rect class="h0" x="691" y="42" width="10" height="10" rx="2"><title>0 on Nov 10, 2026</title></rect><rect class="h0" x="691" y="55" width="10" height="10" rx="2"><title>0 on Nov 11, 2026</title></rect><rect class="h0" x="691" y="68" width="10" height="10" rx="2"><title>0 on Nov 12, 2026</title></rect><rect class="h0" x="691" y="81" width="10" height="10" rx="2"><title>0 on Nov 13, 2026</title></rect><rect class="h0" x="691" y="94" width="10" height="10" rx="2"><title>0 on Nov 14, 2026</title></rect><rect class="h0" x="704" y="16" width="10" height="10" rx="2"><title>0 on Nov 15, 2026</title></rect><rect class="h0" x="704" y="29" width="10" height="10" rx="2"><title>0 on Nov 16, 2026</title></rect><rect class="h0" x="704" y="42" width="10" height="10" rx="2"><title>0 on Nov 17, 2026</title></rect><rect class="h0" x="704" y="55" width="10" height="10" rx="2"><title>0 on Nov 18, 2026</title></rect><rect class="h0" x="704" y="68" width="10" height="10" rx="2"><title>0 on Nov 19, 2026</title></rect><rect class="h0" x="704" y="81" width="10" height="10" rx="2"><title>0 on Nov 20, 2026</title></rect><rect class="h0" x="704" y="94" width="10" height="10" rx="2"><title>0 on Nov 21, 2026</title></rect></svg></div>24</section>2526<section>27 <h2>Repositories</h2>28 <ul class="repos">29 <li>30 <a class="repo-name" href="/repo-a/">repo-a</a><p>A small Go service & friends</p>31 <p class="meta"><span class="lang"><span class="dot lang-3"></span>Go</span>32 <span>Updated 1 day ago</span>33 </p>34 </li>35 <li>36 <a class="repo-name" href="/repo-b/">repo-b</a>37 <p class="meta"><span class="lang"><span class="dot lang-1"></span>Shell</span>38 <span>Updated 3 months ago</span>39 </p>40 </li>41 </ul>42</section>43</main>44</body>45</html>
web/static/fonts/GeistPixel-LICENSE.txtadded
+92 −0
@@ -0,0 +1,92 @@1Copyright (c) 2023 Vercel, in collaboration with basement.studio23This Font Software is licensed under the SIL Open Font License, Version 1.1.4This license is copied below, and is also available with a FAQ at:5http://scripts.sil.org/OFL67-----------------------------------------------------------8SIL OPEN FONT LICENSE Version 1.1 - 26 February 20079-----------------------------------------------------------1011PREAMBLE12The goals of the Open Font License (OFL) are to stimulate worldwide13development of collaborative font projects, to support the font creation14efforts of academic and linguistic communities, and to provide a free and15open framework in which fonts may be shared and improved in partnership16with others.1718The OFL allows the licensed fonts to be used, studied, modified and19redistributed freely as long as they are not sold by themselves. The20fonts, including any derivative works, can be bundled, embedded,21redistributed and/or sold with any software provided that any reserved22names are not used by derivative works. The fonts and derivatives,23however, cannot be released under any other type of license. The24requirement for fonts to remain under this license does not apply25to any document created using the fonts or their derivatives.2627DEFINITIONS28"Font Software" refers to the set of files released by the Copyright29Holder(s) under this license and clearly marked as such. This may30include source files, build scripts and documentation.3132"Reserved Font Name" refers to any names specified as such after the33copyright statement(s).3435"Original Version" refers to the collection of Font Software components as36distributed by the Copyright Holder(s).3738"Modified Version" refers to any derivative made by adding to, deleting,39or substituting -- in part or in whole -- any of the components of the40Original Version, by changing formats or by porting the Font Software to a41new environment.4243"Author" refers to any designer, engineer, programmer, technical44writer or other person who contributed to the Font Software.4546PERMISSION AND CONDITIONS47Permission is hereby granted, free of charge, to any person obtaining48a copy of the Font Software, to use, study, copy, merge, embed, modify,49redistribute, and sell modified and unmodified copies of the Font50Software, subject to the following conditions:51521) Neither the Font Software nor any of its individual components,53in Original or Modified Versions, may be sold by itself.54552) Original or Modified Versions of the Font Software may be bundled,56redistributed and/or sold with any software, provided that each copy57contains the above copyright notice and this license. These can be58included either as stand-alone text files, human-readable headers or59in the appropriate machine-readable metadata fields within text or60binary files as long as those fields can be easily viewed by the user.61623) No Modified Version of the Font Software may use the Reserved Font63Name(s) unless explicit written permission is granted by the corresponding64Copyright Holder. This restriction only applies to the primary font name as65presented to the users.66674) The name(s) of the Copyright Holder(s) or the Author(s) of the Font68Software shall not be used to promote, endorse or advertise any69Modified Version, except to acknowledge the contribution(s) of the70Copyright Holder(s) and the Author(s) or with their explicit written71permission.72735) The Font Software, modified or unmodified, in part or in whole,74must be distributed entirely under this license, and must not be75distributed under any other license. The requirement for fonts to76remain under this license does not apply to any document created77using the Font Software.7879TERMINATION80This license becomes null and void if any of the above conditions are81not met.8283DISCLAIMER84THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,85EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF86MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT87OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE88COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,89INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL90DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING91FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM92OTHER DEALINGS IN THE FONT SOFTWARE.
web/static/fonts/GeistPixel-Square.woff2added
+0 −0
Binary file, not shown.
web/static/style.cssadded
+99 −0
@@ -0,0 +1,99 @@1/* Flexoki palette (https://stephango.com/flexoki, MIT). Original styles. */2@font-face {3 font-family: "Geist Pixel";4 src: url("/static/fonts/GeistPixel-Square.woff2") format("woff2");5 font-display: swap;6}78:root {9 --paper: #FFFCF0; --black: #100F0F;10 --b50: #F2F0E5; --b100: #E6E4D9; --b150: #DAD8CE; --b200: #CECDC3;11 --b300: #B7B5AC; --b500: #878580; --b600: #6F6E69; --b700: #575653;12 --b800: #403E3C; --b850: #343331; --b900: #282726; --b950: #1C1B1A;1314 --bg: var(--paper); --bg-2: var(--b50);15 --ui: var(--b100); --ui-2: var(--b150); --ui-3: var(--b200);16 --tx: var(--black); --tx-2: var(--b600); --tx-3: var(--b300);1718 --red: #AF3029; --orange: #BC5215; --yellow: #AD8301; --green: #66800B;19 --cyan: #24837B; --blue: #205EA6; --purple: #5E409D; --magenta: #A02F6F;20 --heat-1: #DDE2B2; --heat-2: #BEC97E; --heat-3: #768D21; --heat-4: #536907;21}2223@media (prefers-color-scheme: dark) {24 :root {25 --bg: var(--black); --bg-2: var(--b950);26 --ui: var(--b900); --ui-2: var(--b850); --ui-3: var(--b800);27 --tx: var(--b200); --tx-2: var(--b500); --tx-3: var(--b700);2829 --red: #D14D41; --orange: #DA702C; --yellow: #D0A215; --green: #879A39;30 --cyan: #3AA99F; --blue: #4385BE; --purple: #8B7EC8; --magenta: #CE5D97;31 --heat-1: #313D07; --heat-2: #536907; --heat-3: #768D21; --heat-4: #BEC97E;32 }33}3435* { box-sizing: border-box; }3637html { background: var(--bg); color: var(--tx); }3839body {40 margin: 0 auto;41 max-width: 64rem;42 padding: 0 1rem 4rem;43 font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;44}4546h1, h2, h3, header.site { font-family: "Geist Pixel", ui-monospace, monospace; font-weight: normal; }47h1 { font-size: 2rem; margin: 0; line-height: 1.2; }48h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; }4950a { color: var(--blue); text-decoration: none; }51a:hover { text-decoration: underline; }5253code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .875rem; }5455.muted, .meta { color: var(--tx-2); }5657header.site {58 padding: 1rem 0;59 border-bottom: 1px solid var(--ui);60 margin-bottom: 2rem;61}62header.site a { color: var(--tx); }6364/* profile */65.profile { display: flex; gap: 1.5rem; align-items: flex-start; }66.profile p { margin: .25rem 0; }67.avatar { border-radius: 50%; border: 1px solid var(--ui-2); flex: none; }68.bio { font-size: 1.05rem; }69.links { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }7071.heatmap-wrap { overflow-x: auto; border: 1px solid var(--ui); border-radius: 6px; padding: .75rem; background: var(--bg-2); }72.heatmap { width: 100%; min-width: 40rem; height: auto; display: block; }73.heatmap text { fill: var(--tx-2); font-size: 9px; font-family: system-ui, sans-serif; }74.heatmap .h0 { fill: var(--ui); }75.heatmap .h1 { fill: var(--heat-1); }76.heatmap .h2 { fill: var(--heat-2); }77.heatmap .h3 { fill: var(--heat-3); }78.heatmap .h4 { fill: var(--heat-4); }7980.repos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }81.repos li { border: 1px solid var(--ui); border-radius: 6px; padding: 1rem; display: flex; flex-direction: column; }82.repos p { margin: .5rem 0 0; }83.repos .meta { margin-top: auto; padding-top: .5rem; font-size: .85rem; display: flex; gap: 1rem; }84.repo-name { font-weight: 600; }8586.lang { display: inline-flex; align-items: center; gap: .35rem; }87.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; background: var(--tx-3); }88.lang-0 { background: var(--red); }89.lang-1 { background: var(--orange); }90.lang-2 { background: var(--yellow); }91.lang-3 { background: var(--green); }92.lang-4 { background: var(--cyan); }93.lang-5 { background: var(--blue); }94.lang-6 { background: var(--purple); }95.lang-7 { background: var(--magenta); }9697@media (max-width: 40rem) {98 .profile { flex-direction: column; }99}
web/templates/base.htmladded
+21 −0
@@ -0,0 +1,21 @@1{{define "base" -}}2<!doctype html>3<html lang="en">4<head>5<meta charset="utf-8">6<meta name="viewport" content="width=device-width, initial-scale=1">7<meta name="color-scheme" content="light dark">8<title>{{.Title}}</title>9{{- with .GoImport}}10<meta name="go-import" content="{{.}}">11{{- end}}12<link rel="stylesheet" href="/static/style.css">13</head>14<body>15<header class="site"><a href="/">daum.dev</a></header>16<main>17{{template "content" .D}}18</main>19</body>20</html>21{{end}}
web/templates/profile.htmladded
+37 −0
@@ -0,0 +1,37 @@1{{define "content" -}}2<section class="profile">3 {{- with .Avatar}}<img class="avatar" src="{{.}}" alt="" width="96" height="96">{{end}}4 <div>5 <h1>{{or .User.FullName .User.Login}}</h1>6 {{- if .User.FullName}}<p class="muted">{{.User.Login}}</p>{{end}}7 {{- with .User.Description}}<p class="bio">{{.}}</p>{{end}}8 {{- with .User.Location}}<p class="muted">{{.}}</p>{{end}}9 {{- with .Links}}10 <ul class="links">11 {{- range .}}<li><a href="{{.URL}}" rel="me">{{.Name}}</a></li>{{end}}12 </ul>13 {{- end}}14 </div>15</section>1617<section>18 <h2>{{.Total}} contributions in the last year</h2>19 <div class="heatmap-wrap">{{.Heatmap}}</div>20</section>2122<section>23 <h2>Repositories</h2>24 <ul class="repos">25 {{- range .Repos}}26 <li>27 <a class="repo-name" href="/{{.Name}}/">{{.Name}}</a>28 {{- with .Description}}<p>{{.}}</p>{{end}}29 <p class="meta">30 {{- with .Language}}<span class="lang"><span class="dot {{lang .}}"></span>{{.}}</span>{{end}}31 <span>Updated {{ago .UpdatedAt}}</span>32 </p>33 </li>34 {{- end}}35 </ul>36</section>37{{- end}}
web/web.goadded
+7 −0
@@ -0,0 +1,7 @@1// Package web embeds the HTML templates and static assets.2package web34import "embed"56//go:embed templates static7var FS embed.FS