showcase
- v0.2.4
- 37 commits
- 1 branch
- 6 tags
- updated
- CI 2/2
fix: streak bracket from one week, clearer this-week outline
Showing 26 changed files with 84 additions and 68 deletions.
docs/decisions.md
+13 −0
@@ -1024,3 +1024,16 @@ File pages get a copy button joined to Raw (`[Raw | ⧉]`), like GitHub's.10241024 which beat the `hidden` attribute, so the clone box's copy button showed10251025 without JS too, contrary to "Copy buttons need JS". `[hidden]` rules for10261026 both fix it.10271028## This week on the bar chart, clearer10291030Production showed "1-week streak" with no bracket under the bars, and this1031week's bar looked like any other busy week. Both replace parts of1032"Markers, kept few" under "Activity bar chart".10331034- **The streak bracket is drawn from one week,** not two, so it always1035 matches the streak in the box head. A one-week bracket is a short1036 underline under that week's bar.1037- **This week's outline is `--text-headings`,** not `--accent-bright`. The1038 busiest weeks are filled with `--accent`, and `--accent-bright` (the1039 accent with 18% white) barely showed on them.
internal/render/activity.go
+1 −1
@@ -139,7 +139,7 @@ func ActivityBars(counts []int, end time.Time, streak, n int) template.HTML {139139 }140140141141 text("bars-now-text", right, barsLabel, "end", "this week")142 if first := max(0, last-streak+1); streak >= 2 && last >= 0 {142 if first := max(0, last-streak+1); streak > 0 && last >= 0 {143143 fmt.Fprintf(&b, `<path class="bars-streak" d="M%d %dV%dH%dV%d"/>`, colX(first), barsBase+4, barsBase+6, colX(last)+cell, barsBase+4)144144 }145145 return template.HTML(b.String() + `</svg>`)
internal/render/activity_test.go
+2 −0
@@ -71,6 +71,8 @@ func TestStreakBracket(t *testing.T) {7171 {"to the right edge", 40, 52, weeks, 40, 52, 13},7272 {"whole year", 0, 52, weeks, 1, 52, 52},7373 {"clipped on small screens", 10, 52, 26, 0, 25, 43},74 {"one week, this week", 52, 52, weeks, 52, 52, 1},75 {"one week, last week", 51, 51, weeks, 51, 51, 1},7476 }7577 for _, c := range cases {7678 counts := make([]int, weeks)
testdata/golden/index.html
+3 −3
@@ -21,9 +21,9 @@2121<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">2222<link rel="manifest" href="/static/favicon/site.webmanifest">2323<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">24<link rel="stylesheet" href="/static/style.css?v=1853683256">25<script src="/static/theme.js?v=1853683256"></script>26<script src="/static/copy.js?v=1853683256" defer></script>24<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">25<script src="/static/theme.js?v=5eefe6d99a"></script>26<script src="/static/copy.js?v=5eefe6d99a" defer></script>2727</head>2828<body>2929<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/README.md.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/big.txt.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/cmd/hello/main.go.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/data.bin.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/docs/logo.png.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/branches/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/commit-latest.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/index.html
+3 −3
@@ -11,9 +11,9 @@1111<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1212<link rel="manifest" href="/static/favicon/site.webmanifest">1313<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">14<link rel="stylesheet" href="/static/style.css?v=1853683256">15<script src="/static/theme.js?v=1853683256"></script>16<script src="/static/copy.js?v=1853683256" defer></script>14<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">15<script src="/static/theme.js?v=5eefe6d99a"></script>16<script src="/static/copy.js?v=5eefe6d99a" defer></script>1717</head>1818<body>1919<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/issues/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/log/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/packages/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/pulls/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/releases/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/tags/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/tree/cmd/hello/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/tree/docs/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-b/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-b/issues/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-b/log/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-b/releases/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repos/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=1853683256">14<script src="/static/theme.js?v=1853683256"></script>15<script src="/static/copy.js?v=1853683256" defer></script>13<link rel="stylesheet" href="/static/style.css?v=5eefe6d99a">14<script src="/static/theme.js?v=5eefe6d99a"></script>15<script src="/static/copy.js?v=5eefe6d99a" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
web/static/style.css
+2 −1
@@ -2210,7 +2210,8 @@ a.row-title:hover,22102210.bars .h4 { --bar: var(--accent); }22112211.bars-stub { --bar: var(--hover); }22122212.bars-hit:hover + .bars-bar { fill: color-mix(in oklab, var(--bar) 72%, white); }2213.bars-now { stroke: var(--accent-bright); stroke-width: 1; }2213/* headings colour, not the accent: the top step is filled with the accent */2214.bars-now { stroke: var(--text-headings); stroke-width: 1; }2214221522152216.bars-streak { stroke: var(--syn-constant); }22162217