feat: add render graph driven renderer architecture
Amp-Thread-ID: https://ampcode.com/threads/T-019f9d91-77c1-7206-a60f-ed6554ce92ab Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Vendored
+255
@@ -0,0 +1,255 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
font-family:
|
||||
Inter,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
sans-serif;
|
||||
background: #0b0d11;
|
||||
color: #f5f5f4;
|
||||
}
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
max-width: 1180px;
|
||||
margin: 0 auto;
|
||||
padding: 64px 28px 40px;
|
||||
background:
|
||||
radial-gradient(circle at 8% 0%, #ed570018, transparent 26rem),
|
||||
radial-gradient(circle at 95% 8%, #6286ff12, transparent 24rem);
|
||||
}
|
||||
.hero {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.7fr);
|
||||
align-items: end;
|
||||
gap: 48px;
|
||||
padding: 52px 0 68px;
|
||||
border-bottom: 1px solid #282b31;
|
||||
}
|
||||
.eyebrow {
|
||||
display: block;
|
||||
margin-bottom: 14px;
|
||||
color: #f07834;
|
||||
font-size: 0.73rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
h1 {
|
||||
max-width: 780px;
|
||||
margin-bottom: 24px;
|
||||
font-size: clamp(3rem, 7vw, 6.4rem);
|
||||
font-weight: 670;
|
||||
letter-spacing: -0.065em;
|
||||
line-height: 0.92;
|
||||
}
|
||||
h1 em {
|
||||
color: #f07834;
|
||||
font-style: normal;
|
||||
}
|
||||
.hero p {
|
||||
max-width: 680px;
|
||||
margin-bottom: 0;
|
||||
color: #aaaeb7;
|
||||
font-size: 1.08rem;
|
||||
line-height: 1.65;
|
||||
}
|
||||
.architecture {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 20px;
|
||||
color: #c7cad0;
|
||||
background: #14171cbb;
|
||||
border: 1px solid #30343c;
|
||||
border-radius: 12px;
|
||||
font:
|
||||
650 0.8rem/1.2 ui-monospace,
|
||||
SFMono-Regular,
|
||||
Menlo,
|
||||
monospace;
|
||||
}
|
||||
.architecture span {
|
||||
padding: 11px 13px;
|
||||
background: #1d2026;
|
||||
border: 1px solid #343840;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.architecture i {
|
||||
padding-left: 14px;
|
||||
color: #f07834;
|
||||
font-style: normal;
|
||||
}
|
||||
main {
|
||||
padding: 68px 0;
|
||||
}
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 32px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
h2 {
|
||||
margin-bottom: 0;
|
||||
font-size: clamp(1.8rem, 3vw, 2.55rem);
|
||||
letter-spacing: -0.035em;
|
||||
}
|
||||
.section-heading > p {
|
||||
margin-bottom: 4px;
|
||||
color: #858a94;
|
||||
}
|
||||
.gallery {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20px;
|
||||
}
|
||||
.gallery a {
|
||||
display: block;
|
||||
padding: 18px;
|
||||
overflow: hidden;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
background: #15181d;
|
||||
border: 1px solid #2b2f36;
|
||||
border-radius: 12px;
|
||||
transition: 160ms ease;
|
||||
}
|
||||
.gallery a:hover {
|
||||
border-color: #f07834;
|
||||
box-shadow: 0 18px 48px #0007;
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
.gallery img {
|
||||
display: block;
|
||||
width: calc(100% + 36px);
|
||||
aspect-ratio: 16 / 9;
|
||||
margin: -18px -18px 18px;
|
||||
object-fit: cover;
|
||||
border-bottom: 1px solid #30343b;
|
||||
}
|
||||
.gallery strong {
|
||||
display: block;
|
||||
margin: 6px 0 7px;
|
||||
font-size: 1.28rem;
|
||||
}
|
||||
.gallery p {
|
||||
margin-bottom: 0;
|
||||
color: #9297a1;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.tag {
|
||||
color: #f07834;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.gallery .featured {
|
||||
grid-column: 1 / -1;
|
||||
min-height: 210px;
|
||||
padding: 34px;
|
||||
background:
|
||||
linear-gradient(100deg, #181b21 0%, #181b21e8 54%, #211913c9),
|
||||
radial-gradient(circle at 90% 50%, #ed570055, transparent 30%);
|
||||
}
|
||||
.featured strong {
|
||||
max-width: 600px;
|
||||
margin-top: 12px;
|
||||
font-size: clamp(1.8rem, 4vw, 3rem);
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
.featured p {
|
||||
max-width: 600px;
|
||||
}
|
||||
.open {
|
||||
display: block;
|
||||
margin-top: 28px;
|
||||
color: #f5f5f4;
|
||||
font-weight: 700;
|
||||
}
|
||||
.open b {
|
||||
margin-left: 6px;
|
||||
color: #f07834;
|
||||
}
|
||||
.labs {
|
||||
margin-top: 72px;
|
||||
padding-top: 54px;
|
||||
border-top: 1px solid #282b31;
|
||||
}
|
||||
.labs nav {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
.labs a {
|
||||
min-height: 108px;
|
||||
padding: 16px;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
background: #13161a;
|
||||
border: 1px solid #292d33;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.labs a:hover {
|
||||
background: #1a1d22;
|
||||
border-color: #f07834;
|
||||
}
|
||||
.labs strong,
|
||||
.labs span {
|
||||
display: block;
|
||||
}
|
||||
.labs strong {
|
||||
margin-bottom: 9px;
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
.labs span {
|
||||
color: #858a94;
|
||||
font-size: 0.76rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
footer {
|
||||
padding: 24px 0 4px;
|
||||
color: #6f747e;
|
||||
border-top: 1px solid #282b31;
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
@media (max-width: 820px) {
|
||||
body {
|
||||
padding: 28px 18px;
|
||||
}
|
||||
.hero {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 34px 0 48px;
|
||||
}
|
||||
.architecture {
|
||||
display: none;
|
||||
}
|
||||
.section-heading {
|
||||
align-items: start;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.gallery {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.gallery .featured {
|
||||
grid-column: auto;
|
||||
}
|
||||
.labs nav {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
@media (max-width: 460px) {
|
||||
.labs nav {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user