commit
We love random online fonts
diff --git a/src/styles/app.css.ts b/src/styles/app.css.ts
index 79032b9..bb44118 100644
--- a/src/styles/app.css.ts
+++ b/src/styles/app.css.ts
@@ -150,6 +150,14 @@ export const classes = {
margin: "0.25rem 0 1rem",
}),
+ repoTitle: style({
+ fontFamily: vars.display,
+ fontSize: "1.55rem",
+ fontWeight: 500,
+ letterSpacing: "0.01em",
+ margin: "0.25rem 0 1rem",
+ }),
+
sectionTitle: style({
fontSize: "1.05rem",
margin: "1.5rem 0 0.5rem",
@@ -160,7 +168,11 @@ export const classes = {
repoRow: style({}),
- repoName: style({ fontWeight: 600 }),
+ repoName: style({
+ fontFamily: vars.display,
+ fontSize: "1.05em",
+ fontWeight: 500,
+ }),
repoDesc: style({ color: vars.textMuted }),
diff --git a/src/views.ts b/src/views.ts
index eb89b66..2609379 100644
--- a/src/views.ts
+++ b/src/views.ts
@@ -448,7 +448,7 @@ ${collaboratorSection(opts.owner, opts.name, opts.collaborators ?? [])}`
? ` <p class="${c.repoDesc}">${esc(opts.rawDescription)}</p>`
: "";
- const body = ` <h1 class="${c.pageTitle}"><a class="${c.ownerLink}" href="/${esc(opts.owner)}">${esc(opts.owner)}</a>/${esc(opts.name)}</h1>
+ const body = ` <h1 class="${c.repoTitle}"><a class="${c.ownerLink}" href="/${esc(opts.owner)}">${esc(opts.owner)}</a>/${esc(opts.name)}</h1>
<p class="${c.repoDesc}"><span class="${c.withIcon}">${icon(opts.isPublic ? "unlock" : "lock", 13)}${opts.isPublic ? "public" : "private"}</span>${opts.canPush && !isOwner ? `<span class="${c.badge}">${icon("upload", 11)}you can push</span>` : ""}</p>
${repoNav(opts.owner, opts.name, "summary", q)}
${descriptionForm}
@@ -713,7 +713,7 @@ export function logPage(opts: {
}): string {
const title = `${opts.owner}/${opts.name}`;
const q = revQuery(opts.rev, opts.refs.head);
- const body = ` <h1 class="${c.pageTitle}">${esc(title)} · log</h1>
+ const body = ` <h1 class="${c.repoTitle}">${esc(title)} · log</h1>
${repoNav(opts.owner, opts.name, "log", q)}
${revPicker(opts.refs, opts.rev)}
${commitTable(opts.owner, opts.name, opts.commits, q)}`;
@@ -762,7 +762,7 @@ export function treePage(opts: {
})
.join("\n");
- const body = ` <h1 class="${c.pageTitle}">${esc(opts.owner)}/${esc(opts.name)} · tree${crumb}</h1>
+ const body = ` <h1 class="${c.repoTitle}">${esc(opts.owner)}/${esc(opts.name)} · tree${crumb}</h1>
${repoNav(opts.owner, opts.name, "tree", q)}
${revPicker(opts.refs, opts.rev)}
<table class="${c.treeList}">
@@ -805,7 +805,7 @@ export function blobPage(opts: {
: `${cut}<pre class="${c.code}"><code>${esc(opts.text)}</code></pre>`;
const q = revQuery(opts.rev, opts.refs.head);
const upPath = opts.path.split("/").slice(0, -1).join("/");
- const body = ` <h1 class="${c.pageTitle}">${esc(opts.owner)}/${esc(opts.name)} · ${esc(opts.path)}</h1>
+ const body = ` <h1 class="${c.repoTitle}">${esc(opts.owner)}/${esc(opts.name)} · ${esc(opts.path)}</h1>
${repoNav(opts.owner, opts.name, "tree", q)}
<p class="${c.repoDesc}"><a class="${c.withIcon}" href="${base(opts.owner, opts.name)}/tree/${esc(upPath)}${q}">${icon("arrow-left")}back to ${esc(upPath || "tree")}</a></p>
${content}`;