Refresh paper UI styling
Test and publish the site / test (push) Successful in 51s
Test and publish the site / publish (push) Successful in 1m39s

This commit is contained in:
2026-10-23 20:00:46 +01:00
parent 19300d9b10
commit 7638d88570
9 changed files with 291 additions and 35 deletions
+51 -3
View File
@@ -109,6 +109,13 @@ const groups = computed(() => {
<template>
<section>
<header class="page-heading">
<div>
<p class="eyebrow">Practice archive</p>
<h1>Problems</h1>
</div>
<span v-if="!loading && !error" class="heading-count">{{ counts.all }} total</span>
</header>
<p v-if="!loading && !error" class="intro muted">
{{ counts.solved }} solved problems from USACO and other judges, each with its solution and test cases.
</p>
@@ -180,7 +187,32 @@ const groups = computed(() => {
<style scoped>
.intro {
margin-bottom: 16px;
max-width: 58ch;
margin: -8px 0 22px;
}
.page-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
}
.eyebrow {
margin: 0 0 4px;
color: var(--color-accent);
font-size: 0.75rem;
font-weight: bold;
letter-spacing: 0.12em;
text-transform: uppercase;
}
h1 {
margin: 0;
font-size: 3rem;
}
.heading-count {
padding-bottom: 5px;
color: var(--color-ink-faint);
font-size: 0.85rem;
font-variant-numeric: tabular-nums;
}
.import-error {
margin: -8px 0 16px;
@@ -190,7 +222,11 @@ const groups = computed(() => {
flex-wrap: wrap;
gap: 8px 12px;
align-items: center;
margin-bottom: 16px;
margin-bottom: 12px;
padding: 8px;
border: 1px solid var(--color-line-soft);
border-radius: 8px;
background: rgb(255 255 255 / 0.42);
}
.tabs {
display: flex;
@@ -209,6 +245,7 @@ const groups = computed(() => {
border-color: var(--color-ink);
color: var(--color-ink);
background: var(--color-paper);
box-shadow: 0 1px 3px rgb(46 39 28 / 0.08);
}
.tabs .n {
color: var(--color-ink-faint);
@@ -260,7 +297,7 @@ input {
text-decoration: none;
}
.row:hover {
background: var(--color-paper-tint);
background: var(--color-accent-soft);
}
li:first-child .row {
border-radius: 6px 6px 0 0;
@@ -318,4 +355,15 @@ time {
display: contents;
}
}
@media (max-width: 639px) {
.page-heading {
align-items: flex-start;
}
h1 {
font-size: 2.5rem;
}
.heading-count {
padding-top: 12px;
}
}
</style>