Files
Containr/site/style.css
T
Tomas DvorakandDevin 117b469fae feat: public template catalog + Vercel git integration
Backend: service_templates.is_public lets owners publish user templates to
the anonymous catalog (GET /api/v1/templates), mirroring Railway's
marketplace publish flow. Migration, sqlc queries, visibility rules, and
openapi.yaml updated; types regenerated.

App: template editor gains a "List in the public catalog" checkbox;
Public badge on catalog cards and detail view.

Site: new templates.html catalog page - search, category filters, Official
vs Community badges, detail modal with variables and copyable import JSON.
Fetches the live catalog from a reachable instance (?api= or localStorage
override) and falls back to templates.json, generated from SeedTemplates
via cmd/dumptemplates. Shared styles extracted to style.css.

Vercel: project connected to GitHub repo with rootDirectory=site;
.vercelignore limits CLI uploads to site/ so `vercel deploy --prod` from
repo root matches git builds.

Authored By: TDvorak <[email protected]>

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-23 16:40:58 +02:00

467 lines
15 KiB
CSS

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('fonts/inter-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('fonts/inter-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400 800;
font-display: swap;
src: url('fonts/jbmono-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400 800;
font-display: swap;
src: url('fonts/jbmono-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
--bg-void: #0c0d0f;
--bg-base: #0e0f12;
--surface-card: #131518;
--surface-card-hover: #1a1d22;
--surface-muted: #1a1d22;
--border-subtle: rgba(255, 255, 255, 0.06);
--border-default: rgba(255, 255, 255, 0.1);
--border-strong: rgba(255, 255, 255, 0.18);
--text-primary: #ecedf0;
--text-secondary: #8b919e;
--text-tertiary: #575d68;
--accent: #b4e34a;
--accent-dim: rgba(180, 227, 74, 0.12);
--accent-on: #131507;
--mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
--sans: 'Inter', system-ui, -apple-system, sans-serif;
--radius: 14px;
--radius-sm: 9px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: var(--sans);
background: var(--bg-void);
color: var(--text-secondary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
line-height: 1.5;
}
body::before {
content: '';
position: fixed;
inset: 0;
background: radial-gradient(1000px 480px at 50% -8%, rgba(180, 227, 74, 0.05), transparent 60%);
pointer-events: none;
}
::selection { background: rgba(180, 227, 74, 0.25); color: var(--text-primary); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* ---------- nav ---------- */
nav {
position: sticky;
top: 0;
z-index: 50;
border-bottom: 1px solid var(--border-subtle);
background: rgba(14, 15, 18, 0.82);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.nav-inner {
display: flex;
align-items: center;
height: 60px;
gap: 28px;
}
.brand {
display: flex;
align-items: center;
gap: 9px;
font-weight: 800;
font-size: 15px;
letter-spacing: -0.02em;
color: var(--text-primary);
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
font-size: 13px;
padding: 6px 12px;
border-radius: var(--radius-sm);
color: var(--text-secondary);
transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--surface-muted); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.gh-link {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: var(--radius-sm);
border: 1px solid var(--border-subtle);
color: var(--text-secondary);
transition: color 0.15s, border-color 0.15s;
}
.gh-link:hover { color: var(--text-primary); border-color: var(--border-strong); }
.btn {
display: inline-flex;
align-items: center;
gap: 7px;
font-size: 13px;
font-weight: 600;
padding: 8px 16px;
border-radius: var(--radius-sm);
border: 1px solid transparent;
cursor: pointer;
transition: transform 0.15s, border-color 0.15s, background 0.15s;
white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-default); color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-strong); }
/* ---------- hero ---------- */
.hero { padding: 84px 0 0; }
.pill {
display: inline-flex;
align-items: center;
gap: 8px;
font-family: var(--mono);
font-size: 11px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-tertiary);
border: 1px solid var(--border-subtle);
background: var(--surface-card);
padding: 6px 14px;
border-radius: 999px;
}
.pill svg { color: var(--accent); }
.hero h1 {
margin-top: 22px;
font-size: clamp(34px, 5.4vw, 58px);
font-weight: 800;
letter-spacing: -0.035em;
line-height: 1.06;
color: var(--text-primary);
max-width: 22ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
margin-top: 18px;
font-size: 15.5px;
line-height: 1.65;
max-width: 46ch;
}
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-cta .btn { font-size: 14px; padding: 11px 22px; }
.shot-frame {
margin-top: 56px;
border: 1px solid var(--border-default);
border-radius: var(--radius);
background: var(--surface-card);
overflow: hidden;
box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.shot-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 14px;
border-bottom: 1px solid var(--border-subtle);
font-family: var(--mono);
font-size: 11px;
color: var(--text-tertiary);
}
.shot-bar .addr {
flex: 1;
text-align: center;
background: var(--bg-void);
border: 1px solid var(--border-subtle);
border-radius: 6px;
padding: 3px 0;
max-width: 320px;
margin: 0 auto;
}
.shot-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
/* ---------- install ---------- */
.install { padding: 72px 0 0; }
.install-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 28px;
border: 1px solid var(--border-default);
border-radius: var(--radius);
background: var(--bg-base);
padding: 26px 30px;
flex-wrap: wrap;
}
.install-copy h2 { font-size: 17px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.install-copy p { font-size: 13px; margin-top: 4px; }
.cmd {
display: flex;
align-items: center;
gap: 0;
font-family: var(--mono);
font-size: 12.5px;
background: var(--bg-void);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
overflow: hidden;
max-width: 100%;
}
.cmd code {
padding: 11px 14px;
color: var(--text-primary);
white-space: nowrap;
overflow-x: auto;
scrollbar-width: none;
}
.cmd code::-webkit-scrollbar { display: none; }
.cmd code::before { content: '$ '; color: var(--accent); }
.copy-btn {
border: none;
border-left: 1px solid var(--border-subtle);
background: transparent;
color: var(--text-tertiary);
padding: 11px 13px;
cursor: pointer;
display: flex;
align-items: center;
transition: color 0.15s, background 0.15s;
flex-shrink: 0;
}
.copy-btn:hover { color: var(--accent); background: var(--surface-muted); }
/* ---------- sections ---------- */
section { padding: 96px 0 0; }
.sec-head { margin-bottom: 40px; }
.sec-head h2 {
font-size: clamp(24px, 3vw, 32px);
font-weight: 800;
letter-spacing: -0.025em;
color: var(--text-primary);
max-width: 22ch;
}
.sec-head p { margin-top: 10px; font-size: 14.5px; max-width: 56ch; }
/* ---------- bento ---------- */
.bento {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 14px;
}
.cell {
grid-column: span 2;
border: 1px solid var(--border-subtle);
border-radius: var(--radius);
background: var(--surface-card);
padding: 22px;
transition: border-color 0.15s, transform 0.15s;
position: relative;
overflow: hidden;
}
.cell:hover { border-color: var(--border-default); transform: translateY(-2px); }
.cell.wide { grid-column: span 4; display: flex; gap: 26px; align-items: stretch; }
.cell h3 { font-size: 14.5px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.cell p { font-size: 12.5px; line-height: 1.6; margin-top: 8px; color: var(--text-tertiary); }
.cell .icon {
width: 32px;
height: 32px;
border-radius: 8px;
background: var(--accent-dim);
color: var(--accent);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 14px;
}
.cell.wide .icon { margin-bottom: 12px; }
.cell-media {
flex: 0 0 46%;
border-radius: 10px;
overflow: hidden;
border: 1px solid var(--border-subtle);
align-self: center;
}
.cell-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.cell.tinted { background: linear-gradient(160deg, rgba(180, 227, 74, 0.09), rgba(180, 227, 74, 0.02) 55%), var(--surface-card); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span {
font-family: var(--mono);
font-size: 10.5px;
color: var(--text-secondary);
background: var(--bg-void);
border: 1px solid var(--border-subtle);
border-radius: 6px;
padding: 3px 8px;
}
.snippet {
margin-top: 14px;
font-family: var(--mono);
font-size: 11.5px;
background: var(--bg-void);
border: 1px solid var(--border-subtle);
border-radius: 8px;
padding: 10px 12px;
color: var(--text-secondary);
overflow-x: auto;
white-space: nowrap;
scrollbar-width: none;
}
.snippet b { color: var(--accent); font-weight: 500; }
/* ---------- screenshots ---------- */
.shot-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.shot-tab {
font-family: var(--mono);
font-size: 11.5px;
color: var(--text-tertiary);
background: transparent;
border: 1px solid var(--border-subtle);
border-radius: 999px;
padding: 7px 15px;
cursor: pointer;
transition: all 0.15s;
}
.shot-tab:hover { color: var(--text-secondary); border-color: var(--border-default); }
.shot-tab.on { color: var(--accent); border-color: rgba(180, 227, 74, 0.4); background: var(--accent-dim); }
.gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border-default); }
.gallery .cap { font-size: 12.5px; color: var(--text-tertiary); margin-top: 12px; }
/* ---------- templates marquee ---------- */
.marquee {
overflow: hidden;
border: 1px solid var(--border-subtle);
border-radius: var(--radius);
background: var(--bg-base);
padding: 18px 0;
mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
display: flex;
gap: 10px;
width: max-content;
animation: scroll 46s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.tpl {
display: flex;
align-items: center;
gap: 8px;
font-size: 12.5px;
font-weight: 600;
color: var(--text-secondary);
border: 1px solid var(--border-subtle);
background: var(--surface-card);
border-radius: 999px;
padding: 8px 16px;
white-space: nowrap;
}
.tpl img { width: 15px; height: 15px; }
/* ---------- access ---------- */
.access {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
border-top: 1px solid var(--border-subtle);
}
.access > div { padding: 28px 28px 4px 0; }
.access > div + div { padding-left: 28px; border-left: 1px solid var(--border-subtle); }
.access h3 {
font-family: var(--mono);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent);
}
.access ul { list-style: none; margin-top: 14px; }
.access li { font-size: 13px; padding: 5px 0; color: var(--text-secondary); }
.access li::before { content: '- '; color: var(--text-tertiary); }
/* ---------- cta ---------- */
.cta { text-align: center; padding: 110px 0; }
.cta h2 {
font-size: clamp(30px, 4.5vw, 46px);
font-weight: 800;
letter-spacing: -0.03em;
color: var(--text-primary);
}
.cta p { margin: 14px auto 0; font-size: 14.5px; max-width: 46ch; }
.cta .hero-cta { justify-content: center; }
/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border-subtle); }
.foot {
display: flex;
align-items: center;
justify-content: space-between;
padding: 26px 0;
font-size: 12.5px;
color: var(--text-tertiary);
flex-wrap: wrap;
gap: 14px;
}
.foot .l { display: flex; align-items: center; gap: 8px; }
.foot img { width: 18px; height: 18px; border-radius: 5px; }
.foot nav { display: flex; gap: 20px; position: static; border: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.foot nav a:hover { color: var(--text-primary); }
/* ---------- reveal (JS-gated: content stays visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.marquee-track { animation: none; }
.reveal { opacity: 1; transform: none; transition: none; }
.btn-primary:hover, .cell:hover { transform: none; }
}
/* ---------- responsive ---------- */
@media (max-width: 860px) {
.nav-links { display: none; }
.bento { grid-template-columns: repeat(2, 1fr); }
.cell, .cell.wide { grid-column: span 2; }
.cell.wide { flex-direction: column; }
.cell-media { flex: none; }
.access { grid-template-columns: 1fr; }
.access > div { padding: 22px 0; }
.access > div + div { padding-left: 0; border-left: none; border-top: 1px solid var(--border-subtle); }
section { padding: 72px 0 0; }
.hero { padding-top: 56px; }
}
@media (max-width: 520px) {
.bento { grid-template-columns: 1fr; }
.cell, .cell.wide { grid-column: span 1; }
.install-inner { padding: 20px; }
}