open-experiments / gallery.css
abidlabs's picture
abidlabs HF Staff
Compact agent-friendly hero
c181faf verified
Raw
History Blame Contribute Delete
4.68 kB
:root {
--paper: #fdfcf9;
--panel: #ffffff;
--ink: #1f2937;
--muted: #6b7280;
--line: #e5e7eb;
--accent: #f97316;
--accent-strong: #ea580c;
--accent-soft: #fff7ed;
--grid-line: rgba(31, 41, 55, 0.045);
--code-bg: #f3f4f6;
--radius: 14px;
--serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
sans-serif;
--mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
background-color: var(--paper);
background-image:
linear-gradient(var(--grid-line) 1px, transparent 1px),
linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
background-size: 26px 26px;
color: var(--ink);
font-family: var(--sans);
-webkit-font-smoothing: antialiased;
min-height: 100vh;
}
#hero {
border-bottom: 1px solid var(--line);
background: linear-gradient(180deg, #17181c 0%, #1e2027 100%);
color: #fff;
}
.hero-inner {
max-width: 1120px;
margin: 0 auto;
padding: 24px 32px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 34px;
flex-wrap: wrap;
}
.hero-text {
max-width: 500px;
}
#hero h1 {
font-family: var(--serif);
font-size: 26px;
letter-spacing: -0.01em;
margin: 0 0 6px;
}
.tagline {
color: #c3c4cb;
margin: 0;
font-size: 14px;
line-height: 1.55;
}
.tagline em {
color: #fff;
font-style: normal;
font-weight: 600;
}
.count {
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.04em;
color: #fdba74;
font-weight: 400;
}
.term {
flex: 1;
min-width: 330px;
max-width: 540px;
background: #0f1013;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
overflow: hidden;
}
.term-bar {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
background: #1e2027;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.term-bar span {
width: 10px;
height: 10px;
border-radius: 50%;
background: #3a3b45;
}
.term-bar em {
margin-left: auto;
font-style: normal;
font-family: var(--mono);
font-size: 11px;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #fdba74;
}
.term pre {
margin: 0;
padding: 14px 16px;
font-family: var(--mono);
font-size: 12.5px;
line-height: 1.7;
color: #e7e7ea;
overflow-x: auto;
}
.term .c {
color: #7a7d87;
}
.term .p {
color: #fdba74;
}
main {
max-width: 1120px;
margin: 0 auto;
padding: 34px 32px 60px;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 22px;
}
.loading,
.empty {
color: var(--muted);
padding: 40px 0;
font-size: 15px;
}
.card {
display: flex;
flex-direction: column;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
overflow: hidden;
text-decoration: none;
color: inherit;
transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}
.card:hover {
border-color: #cfcbe0;
box-shadow: 0 12px 34px rgba(30, 20, 80, 0.1);
transform: translateY(-2px);
}
.preview {
height: 208px;
overflow: hidden;
background: #17181c;
border-bottom: 1px solid var(--line);
position: relative;
}
.preview iframe {
width: 1180px;
height: 720px;
border: 0;
transform: scale(0.322);
transform-origin: top left;
pointer-events: none;
}
.preview .ph {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: #6b6d78;
font-family: var(--mono);
font-size: 13px;
}
.card-body {
padding: 15px 17px 17px;
display: flex;
flex-direction: column;
gap: 7px;
flex: 1;
}
.card-title {
font-family: var(--serif);
font-size: 19px;
line-height: 1.25;
letter-spacing: -0.01em;
}
.card-owner {
font-size: 13px;
color: var(--accent-strong);
font-weight: 600;
}
.card-meta {
margin-top: auto;
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
padding-top: 8px;
}
.chip {
font-family: var(--mono);
font-size: 11.5px;
background: var(--code-bg);
color: var(--muted);
border-radius: 999px;
padding: 3px 10px;
}
.chip.exp {
background: var(--accent-soft);
color: var(--accent-strong);
}
#foot {
text-align: center;
color: var(--muted);
font-size: 13px;
padding: 0 32px 48px;
}
#foot code {
font-family: var(--mono);
background: var(--code-bg);
padding: 2px 7px;
border-radius: 6px;
font-size: 12px;
}
@media (max-width: 640px) {
#hero h1 {
font-size: 30px;
}
.hero-inner {
padding: 34px 20px 30px;
}
main {
padding: 24px 18px 40px;
}
}