c5ed3ff0dcf7a0364f099fc1fa820135187ef275

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Clean up superfluous UI elements

Diff

This diff is truncated to protect this page.

  1diff --git a/pkg/web/pages/assets/site.css b/pkg/web/pages/assets/site.css
  2index 35ff454e978c1b7711128f6b13a94cf9dc52b3e7..d6e859e77f05f1c6c8aa250b904fa7c5e7bbae12 100644
  3--- a/pkg/web/pages/assets/site.css
  4+++ b/pkg/web/pages/assets/site.css
  5@@ -11,7 +11,6 @@
  6   --aqua: #8ec07c;
  7   --green: #b8bb26;
  8   --yellow: #fabd2f;
  9-  --orange: #fe8019;
 10   --red: #fb4934;
 11 }
 12 
 13@@ -93,15 +92,6 @@ code { color: #d5c4a1; font-size: 0.92em; }
 14 .page-intro > p:last-child,
 15 .repository-description { color: var(--muted); font-size: 1.05rem; margin-top: 0.65rem; }
 16 
 17-.eyebrow {
 18-  color: var(--orange);
 19-  font-size: 0.73rem;
 20-  font-weight: 750;
 21-  letter-spacing: 0.1em;
 22-  margin-bottom: 0.45rem;
 23-  text-transform: uppercase;
 24-}
 25-
 26 .panel,
 27 .repository-card,
 28 .empty-state {
 29@@ -124,8 +114,7 @@ code { color: #d5c4a1; font-size: 0.92em; }
 30 .item-count,
 31 .updated,
 32 .repository-name,
 33-.repository-meta,
 34-.file-header > span { color: var(--muted); font-size: 0.9rem; }
 35+.repository-meta { color: var(--muted); font-size: 0.9rem; }
 36 
 37 .repository-list {
 38   display: grid;
 39@@ -174,6 +163,8 @@ code { color: #d5c4a1; font-size: 0.92em; }
 40   border-radius: 0.4rem;
 41   color: var(--text);
 42   font-size: 0.9rem;
 43+  cursor: pointer;
 44+  font: inherit;
 45   font-weight: 650;
 46   justify-content: center;
 47   min-height: 2.5rem;
 48@@ -210,10 +201,10 @@ code { color: #d5c4a1; font-size: 0.92em; }
 49 .breadcrumb { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
 50 .toolbar { margin: 0 0 1rem; }
 51 .file-header { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.4rem; }
 52-.file-header > div { align-items: flex-start; color: var(--aqua); display: flex; font-size: 1.35rem; gap: 0.7rem; }
 53-.file-header .icon { margin-top: 0.2rem; }
 54+.file-title { align-items: flex-start; color: var(--aqua); display: flex; font-size: 1.35rem; gap: 0.7rem; }
 55+.file-title .icon { margin-top: 0.2rem; }
 56 .file-header h1 { color: var(--text); }
 57-.file-header .eyebrow { font-size: 0.62rem; }
 58+.file-actions { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.9rem; gap: 0.7rem; justify-content: flex-end; }
 59 
 60 .table-wrap { max-width: 100%; overflow-x: auto; }
 61 table { border-collapse: collapse; min-width: 38rem; width: 100%; }
 62diff --git a/pkg/web/pages/assets/site.js b/pkg/web/pages/assets/site.js
 63index a56d390d04955c89fa9893c86ed6dea5ce320499..1b92cf0bfec628b615504ac813f8c2d46a30578a 100644
 64--- a/pkg/web/pages/assets/site.js
 65+++ b/pkg/web/pages/assets/site.js
 66@@ -20,11 +20,12 @@ async function copyText(text) {
 67 for (const button of document.querySelectorAll("[data-copy]")) {
 68   button.addEventListener("click", async () => {
 69     const status = document.getElementById(button.getAttribute("aria-describedby"));
 70+    const label = button.dataset.copyLabel || "URL";
 71     try {
 72       await copyText(button.dataset.copy);
 73-      status.textContent = "HTTP clone URL copied";
 74+      status.textContent = `${label} copied`;
 75     } catch {
 76-      status.textContent = "Could not copy the clone URL";
 77+      status.textContent = `Could not copy the ${label.toLowerCase()}`;
 78     }
 79   });
 80 }
 81diff --git a/pkg/web/pages/templates/history.gohtml b/pkg/web/pages/templates/history.gohtml
 82index 0107b901ec97984887cafefd71d29d7634419913..fa37c0e541bb8b84a02a5e9fc717e0064b374b6d 100644
 83--- a/pkg/web/pages/templates/history.gohtml
 84+++ b/pkg/web/pages/templates/history.gohtml
 85@@ -11,7 +11,7 @@
 86   <main class="page-shell">
 87     <nav class="breadcrumb" aria-label="Breadcrumb"><a href="{{ .OverviewURL }}">{{ .Repository }}</a><span aria-hidden="true">/</span><code>{{ .Ref }}</code></nav>
 88     <section class="panel history-panel">
 89-      <div class="section-heading"><div><p class="eyebrow">Repository history</p><h1>Commits</h1></div></div>
 90+      <div class="section-heading"><div><h1>Commits</h1></div></div>
 91       <ol class="commit-list">{{ range .Entries }}
 92         <li><article><h2><a href="{{ .URL }}">{{ .Subject }}</a></h2><p><code>{{ .ShortHash }}</code><span>·</span>{{ .Author }}<span>·</span><time>{{ .Date }}</time></p></article></li>
 93       {{ else }}<li class="empty-state">No commits found.</li>{{ end }}</ol>
 94@@ -34,7 +34,6 @@
 95   <main class="page-shell">
 96     <nav class="breadcrumb" aria-label="Breadcrumb"><a href="{{ .OverviewURL }}">{{ .Repository }}</a><span aria-hidden="true">/</span><span>Commit</span></nav>
 97     <article class="panel commit-panel">
 98-      <p class="eyebrow">Commit</p>
 99       <h1><code>{{ .Hash }}</code></h1>
100       <dl class="commit-details"><dt>Author</dt><dd>{{ .Author }}</dd><dt>Committer</dt><dd>{{ .Committer }}</dd><dt>Date</dt><dd><time>{{ .Timestamp }}</time></dd></dl>
101       <section><h2>Message</h2><pre class="commit-message">{{ .Message }}</pre></section>
102@@ -57,7 +56,7 @@
103   <main class="page-shell">
104     <nav class="breadcrumb" aria-label="Breadcrumb"><a href="{{ .OverviewURL }}">{{ .Repository }}</a><span aria-hidden="true">/</span><span>Branches and tags</span></nav>
105     <section class="panel refs-panel">
106-      <div class="section-heading"><div><p class="eyebrow">Repository references</p><h1>Branches and tags</h1></div></div>
107+      <div class="section-heading"><div><h1>Branches and tags</h1></div></div>
108diff --git a/pkg/web/pages/templates/home.gohtml b/pkg/web/pages/templates/home.gohtml
109index e0237c01d27e53f04f32c3f7ce599b9fc388db39..5ce4f3ce2504c16d9186d92bd961679f24592a72 100644
110--- a/pkg/web/pages/templates/home.gohtml
111+++ b/pkg/web/pages/templates/home.gohtml
112@@ -18,7 +18,6 @@
113 
114 {{ define "home-content" }}
115   <section class="page-intro">
116-    <p class="eyebrow">Explore</p>
117     <h1>Public projects</h1>
118     <p>Browse repositories, source code, and project history.</p>
119   </section>
120@@ -30,7 +29,7 @@
121   {{ end }}
122   <section class="project-section" aria-labelledby="projects-heading">
123     <div class="section-heading">
124-      <div><p class="eyebrow">Repositories</p><h2 id="projects-heading">Projects</h2></div>
125+      <div><h2 id="projects-heading">Projects</h2></div>
126       {{ if .Cards }}<span class="item-count">{{ len .Cards }} available</span>{{ end }}
127     </div>
128     {{ if .Cards }}
129diff --git a/pkg/web/pages/templates/repository.gohtml b/pkg/web/pages/templates/repository.gohtml
130index d7ebe15b7b065bba04f6b8581e6cfbc83fb1b113..fff50e025021306c7fab5aa67a53487b864f25dd 100644
131--- a/pkg/web/pages/templates/repository.gohtml
132+++ b/pkg/web/pages/templates/repository.gohtml
133@@ -12,7 +12,6 @@
134   <main class="page-shell">
135     <article>
136       <header class="repository-hero">
137-        <p class="eyebrow">Repository</p>
138         <h1>{{ .Title }}</h1>
139         {{ if ne .Title .Repository }}<p class="repository-name">{{ .Repository }}</p>{{ end }}
140         {{ if .Description }}<p class="repository-description">{{ .Description }}</p>{{ end }}
141@@ -25,7 +24,7 @@
142         <a href="{{ .TreeURL }}">{{ template "icon-folder" }}<span>Files</span></a>
143         <a href="{{ .CommitsURL }}">{{ template "icon-history" }}<span>Commits</span></a>
144         <a href="{{ .RefsURL }}">{{ template "icon-branch" }}<span>Branches and tags</span></a>
145-        <button class="repository-tab-button" type="button" data-copy="{{ .HTTPCloneURL }}" aria-label="Copy HTTP clone URL" aria-describedby="clone-copy-status" title="Copy HTTP clone URL">{{ template "icon-copy" }}<span>Copy URL</span></button>