Redesign docs
Lint / lint (push) Successful in 26s

This commit is contained in:
Julien Valverdé
2026-08-31 01:11:37 +02:00
parent 0e2b4c1951
commit 112ffcddd3
4 changed files with 513 additions and 441 deletions
+2 -1
View File
@@ -65,6 +65,7 @@ const config: Config = {
themeConfig: {
// Replace with your project's social card
colorMode: {
defaultMode: "dark",
respectPrefersColorScheme: true,
},
navbar: {
@@ -139,7 +140,7 @@ const config: Config = {
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
darkTheme: prismThemes.oneDark,
},
} satisfies Preset.ThemeConfig,
}
+123 -27
View File
@@ -1,37 +1,133 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");
:root {
--ifm-color-primary: #0b6f74;
--ifm-color-primary-dark: #096469;
--ifm-color-primary-darker: #085e63;
--ifm-color-primary-darkest: #074d51;
--ifm-color-primary-light: #0d7a7f;
--ifm-color-primary-lighter: #0e8085;
--ifm-color-primary-lightest: #109096;
--ifm-background-color: #fffaf1;
--ifm-code-font-size: 95%;
--ifm-color-primary: #059669;
--ifm-color-primary-dark: #04835d;
--ifm-color-primary-darker: #047857;
--ifm-color-primary-darkest: #036348;
--ifm-color-primary-light: #0aa876;
--ifm-color-primary-lighter: #10b981;
--ifm-color-primary-lightest: #34d399;
--ifm-background-color: #ffffff;
--ifm-background-surface-color: #ffffff;
--ifm-navbar-background-color: #ffffff;
--ifm-footer-background-color: #09090b;
--ifm-code-font-size: 90%;
--ifm-font-family-base:
"Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
--docusaurus-highlighted-code-line-bg: rgba(11, 111, 116, 0.1);
"Inter", "Segoe UI", "Helvetica Neue", sans-serif;
--ifm-font-family-monospace:
"JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
monospace;
--ifm-heading-font-weight: 700;
--ifm-heading-letter-spacing: -0.02em;
--ifm-menu-color-background-active: rgba(5, 150, 105, 0.08);
--ifm-menu-color-background-hover: rgba(5, 150, 105, 0.06);
--docusaurus-highlighted-code-line-bg: rgba(5, 150, 105, 0.1);
--ev-zinc-50: #fafafa;
--ev-zinc-100: #f4f4f5;
--ev-zinc-200: #e4e4e7;
--ev-zinc-300: #d4d4d8;
--ev-zinc-400: #a1a1aa;
--ev-zinc-500: #71717a;
--ev-zinc-600: #52525b;
--ev-zinc-700: #3f3f46;
--ev-zinc-800: #27272a;
--ev-zinc-900: #18181b;
--ev-zinc-950: #09090b;
}
.button--primary {
--ifm-button-background-color: #0b6f74;
--ifm-button-border-color: #0b6f74;
html {
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
.button--secondary {
--ifm-button-background-color: #f4a636;
--ifm-button-border-color: #f4a636;
--ifm-button-color: #1f2526;
code,
pre,
kbd,
samp {
font-family: var(--ifm-font-family-monospace);
}
.navbar {
border-bottom: 1px solid var(--ev-zinc-200);
box-shadow: none;
}
.navbar__item {
font-family: var(--ifm-font-family-monospace);
font-size: 0.85rem;
font-weight: 500;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.navbar__brand {
font-weight: 800;
letter-spacing: -0.02em;
}
[data-theme="dark"] {
--ifm-color-primary: #7ad6d4;
--ifm-color-primary-dark: #5cccca;
--ifm-color-primary-darker: #4cc6c4;
--ifm-color-primary-darkest: #34aaa8;
--ifm-color-primary-light: #98e0de;
--ifm-color-primary-lighter: #a8e6e4;
--ifm-color-primary-lightest: #d5f4f3;
--ifm-background-color: #111c1f;
--docusaurus-highlighted-code-line-bg: rgba(122, 214, 212, 0.18);
--ifm-color-primary: #34d399;
--ifm-color-primary-dark: #1fcc8c;
--ifm-color-primary-darker: #10b981;
--ifm-color-primary-darkest: #0a9c6d;
--ifm-color-primary-light: #52dbab;
--ifm-color-primary-lighter: #6ee7b7;
--ifm-color-primary-lightest: #a7f3d0;
--ifm-background-color: #09090b;
--ifm-background-surface-color: #0c0c0f;
--ifm-navbar-background-color: #09090bee;
--ifm-toc-border-color: var(--ev-zinc-800);
--ifm-table-border-color: var(--ev-zinc-800);
--ifm-menu-color-background-active: rgba(52, 211, 153, 0.1);
--ifm-menu-color-background-hover: rgba(52, 211, 153, 0.06);
--docusaurus-highlighted-code-line-bg: rgba(52, 211, 153, 0.16);
}
[data-theme="dark"] .navbar {
border-bottom: 1px solid var(--ev-zinc-800);
backdrop-filter: blur(10px);
}
[data-theme="dark"] .footer {
--ifm-footer-color: var(--ev-zinc-400);
--ifm-footer-link-color: var(--ev-zinc-300);
--ifm-footer-title-color: var(--ev-zinc-100);
border-top: 1px solid var(--ev-zinc-900);
}
.footer {
font-family: var(--ifm-font-family-monospace);
}
.footer__title {
font-size: 0.78rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.footer__link-item {
font-size: 0.85rem;
}
.button--primary {
--ifm-button-background-color: var(--ifm-color-primary);
--ifm-button-border-color: var(--ifm-color-primary);
}
.menu__link--active,
.table-of-contents__link--active {
font-weight: 600;
}
[data-theme="dark"] .DocSearch-Button {
background: var(--ev-zinc-900);
border: 1px solid var(--ev-zinc-800);
}
+305 -352
View File
@@ -1,223 +1,265 @@
.page {
--home-ink: #102f31;
--home-muted: #506a6c;
--home-teal: #08777b;
--home-teal-bright: #16a3a1;
--home-amber: #e99526;
--home-paper: #fffdf8;
--home-card: rgba(255, 255, 255, 0.76);
--home-line: rgba(16, 47, 49, 0.12);
min-height: calc(100vh - var(--ifm-navbar-height));
--home-ink: #09090b;
--home-muted: #52525b;
--home-emerald: #059669;
--home-emerald-bright: #10b981;
--home-paper: #ffffff;
--home-card: #ffffff;
--home-line: #e4e4e7;
--home-card-hover-line: rgba(5, 150, 105, 0.4);
--home-terminal-bg: #09090b;
--home-terminal-line: #27272a;
background: var(--home-paper);
color: var(--home-ink);
overflow: hidden;
position: relative;
background:
radial-gradient(circle at 8% 5%, rgba(14, 145, 148, 0.2), transparent 28rem),
radial-gradient(circle at 92% 14%, rgba(240, 159, 48, 0.2), transparent 27rem),
linear-gradient(145deg, #f7f2e7 0%, #edf8f6 48%, #fff8ed 100%);
color: var(--home-ink);
}
:global([data-theme="dark"]) .page {
--home-ink: #f4f4f5;
--home-muted: #a1a1aa;
--home-emerald: #34d399;
--home-emerald-bright: #6ee7b7;
--home-paper: #09090b;
--home-card: #0c0c0f;
--home-line: #27272a;
--home-card-hover-line: rgba(52, 211, 153, 0.45);
--home-terminal-bg: #101012;
--home-terminal-line: #27272a;
}
/* ---------- Hero ---------- */
.hero {
overflow: hidden;
padding: 5.5rem 0 4rem;
position: relative;
}
.gridBackdrop {
background-image:
linear-gradient(rgba(16, 47, 49, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(16, 47, 49, 0.045) 1px, transparent 1px);
background-size: 48px 48px;
linear-gradient(var(--home-line) 1px, transparent 1px),
linear-gradient(90deg, var(--home-line) 1px, transparent 1px);
background-size: 56px 56px;
inset: 0;
mask-image: linear-gradient(to bottom, black, transparent 62%);
mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, black, transparent);
opacity: 0.6;
pointer-events: none;
position: absolute;
}
.hero {
.heroGlow {
background: radial-gradient(
ellipse 60% 55% at 50% -10%,
rgba(16, 185, 129, 0.22),
transparent 70%
);
height: 32rem;
inset: 0 0 auto 0;
pointer-events: none;
position: absolute;
}
.heroGrid {
align-items: center;
display: grid;
gap: clamp(3rem, 6vw, 6rem);
grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
min-height: min(820px, calc(100vh - var(--ifm-navbar-height)));
padding-bottom: 6rem;
padding-top: 6rem;
gap: clamp(2.5rem, 5vw, 5rem);
grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
position: relative;
z-index: 1;
}
.heroCopy {
max-width: 650px;
max-width: 600px;
}
.eyebrow,
.sectionKicker {
.eyebrow {
align-items: center;
color: var(--home-teal);
display: flex;
font-size: 0.76rem;
font-weight: 850;
gap: 0.65rem;
letter-spacing: 0.18em;
margin: 0 0 1.35rem;
border: 1px solid var(--home-line);
border-radius: 999px;
color: var(--home-muted);
display: inline-flex;
font-family: var(--ifm-font-family-monospace);
font-size: 0.78rem;
font-weight: 500;
gap: 0.55rem;
letter-spacing: 0.05em;
margin: 0 0 1.75rem;
padding: 0.45rem 1rem;
text-decoration: none !important;
text-transform: uppercase;
transition: border-color 160ms ease, color 160ms ease;
}
.pulse {
background: var(--home-teal-bright);
border-radius: 50%;
box-shadow: 0 0 0 5px rgba(22, 163, 161, 0.14);
height: 0.55rem;
width: 0.55rem;
.eyebrow:hover {
border-color: var(--home-card-hover-line);
color: var(--home-ink);
}
.eyebrowArrow {
color: var(--home-emerald);
transition: transform 160ms ease;
}
.eyebrow:hover .eyebrowArrow {
transform: translateX(2px);
}
.hero h1 {
color: var(--home-ink);
font-size: clamp(3.4rem, 6.4vw, 6.4rem);
font-weight: 780;
letter-spacing: -0.075em;
line-height: 0.92;
font-size: clamp(2.6rem, 4.6vw, 3.9rem);
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1.06;
margin: 0;
overflow-wrap: normal;
word-break: normal;
}
.hero h1 .unbreakable {
white-space: nowrap;
}
.hero h1 .heroAccent {
background: linear-gradient(105deg, var(--home-teal) 5%, #1a9793 48%, var(--home-amber));
background-clip: text;
color: transparent;
display: inline;
-webkit-background-clip: text;
}
.lede {
color: var(--home-muted);
font-size: clamp(1.08rem, 1.55vw, 1.32rem);
line-height: 1.65;
font-size: clamp(1.02rem, 1.4vw, 1.15rem);
line-height: 1.6;
margin: 1.5rem 0 0;
max-width: 520px;
}
.installBox {
align-items: center;
background: var(--home-terminal-bg);
border: 1px solid var(--home-terminal-line);
border-radius: 0.5rem;
display: flex;
font-family: var(--ifm-font-family-monospace);
font-size: 0.88rem;
gap: 0.7rem;
margin: 2rem 0 0;
max-width: 630px;
max-width: 420px;
padding: 0.75rem 1.1rem;
}
.installPrompt {
color: var(--home-emerald-bright);
font-weight: 700;
}
.installBox code {
background: transparent;
border: 0;
color: #e4e4e7;
padding: 0;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
margin-top: 2.3rem;
gap: 0.75rem;
margin-top: 1.75rem;
}
.primaryAction,
.secondaryAction,
.ctaAction {
align-items: center;
border-radius: 999px;
border-radius: 0.5rem;
display: inline-flex;
font-weight: 750;
gap: 0.8rem;
font-size: 0.92rem;
font-weight: 600;
gap: 0.6rem;
justify-content: center;
padding: 0.88rem 1.35rem;
padding: 0.72rem 1.25rem;
text-decoration: none !important;
transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
transition:
transform 160ms ease,
box-shadow 160ms ease,
background 160ms ease,
border-color 160ms ease;
}
.primaryAction {
background: var(--home-ink);
box-shadow: 0 12px 28px rgba(16, 47, 49, 0.2);
color: #f6fffd;
background: var(--home-emerald);
color: #fff;
}
.primaryAction:hover {
box-shadow: 0 16px 36px rgba(16, 47, 49, 0.28);
color: #fff;
transform: translateY(-2px);
background: var(--home-emerald-bright);
color: #06251c;
transform: translateY(-1px);
}
.secondaryAction {
background: rgba(255, 255, 255, 0.58);
background: transparent;
border: 1px solid var(--home-line);
color: var(--home-ink);
}
.secondaryAction:hover {
background: rgba(255, 255, 255, 0.9);
color: var(--home-teal);
transform: translateY(-2px);
}
.install {
align-items: center;
color: var(--home-muted);
display: flex;
font-size: 0.84rem;
gap: 0.7rem;
margin-top: 1.4rem;
}
.install span {
color: var(--home-amber);
font-family: var(--ifm-font-family-monospace);
font-weight: 800;
}
.install code {
background: transparent;
border: 0;
color: inherit;
padding: 0;
border-color: var(--home-card-hover-line);
color: var(--home-emerald);
transform: translateY(-1px);
}
.hotReload {
align-items: center;
color: var(--home-teal);
color: var(--home-muted);
display: inline-flex;
font-size: 0.82rem;
font-weight: 750;
font-family: var(--ifm-font-family-monospace);
font-size: 0.8rem;
gap: 0.5rem;
margin-top: 0.75rem;
margin-top: 1.25rem;
text-decoration: none !important;
}
.hotReload span {
color: var(--home-amber);
font-size: 1rem;
color: var(--home-emerald);
}
.hotReload:hover {
color: var(--home-teal-bright);
color: var(--home-ink);
}
/* ---------- Code showcase ---------- */
.codeStage {
min-width: 0;
perspective: 1200px;
perspective: 1400px;
position: relative;
}
.codeGlow {
background: linear-gradient(115deg, rgba(11, 133, 136, 0.48), rgba(238, 156, 40, 0.38));
filter: blur(55px);
inset: 8% 5%;
opacity: 0.55;
background: radial-gradient(
ellipse 70% 70% at 60% 30%,
rgba(16, 185, 129, 0.28),
transparent 70%
);
filter: blur(50px);
inset: 6% 4%;
opacity: 0.75;
position: absolute;
}
.codeWindow {
background: #101b1e;
border: 1px solid rgba(166, 225, 220, 0.2);
border-radius: 1.25rem;
box-shadow:
0 34px 90px rgba(18, 49, 52, 0.3),
0 2px 0 rgba(255, 255, 255, 0.06) inset;
background: var(--home-terminal-bg);
border: 1px solid var(--home-terminal-line);
border-radius: 0.75rem;
box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
overflow: hidden;
position: relative;
transform: rotateY(-2deg) rotateX(1deg);
transform: rotateY(-4deg) rotateX(2deg);
transition: transform 400ms ease;
}
.codeStage:hover .codeWindow {
transform: rotateY(-1deg) rotateX(0.5deg);
}
.windowBar {
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
color: #b6c9c9;
border-bottom: 1px solid var(--home-terminal-line);
color: #a1a1aa;
display: grid;
font-family: var(--ifm-font-family-monospace);
font-size: 0.73rem;
font-size: 0.72rem;
grid-template-columns: 1fr auto 1fr;
padding: 0.78rem 1rem;
padding: 0.75rem 1rem;
}
.windowDots {
@@ -226,26 +268,14 @@
}
.windowDots span {
background: #4f6d6e;
background: #3f3f46;
border-radius: 50%;
height: 0.55rem;
width: 0.55rem;
}
.windowDots span:first-child {
background: #ef8d5b;
}
.windowDots span:nth-child(2) {
background: #e9bc50;
}
.windowDots span:last-child {
background: #65bd92;
}
.windowStatus {
color: #74d2cd;
color: var(--home-emerald-bright);
justify-self: end;
}
@@ -256,50 +286,18 @@
}
.codeWindow :global(.theme-code-block pre) {
background: #101b1e !important;
color: #d7e5e4 !important;
font-size: 0.78rem;
background: var(--home-terminal-bg) !important;
font-size: 0.8rem;
line-height: 1.62;
max-height: none;
padding: 1.45rem 1.6rem !important;
}
.codeWindow :global(.token-line),
.codeWindow :global(.token.plain),
.codeWindow :global(.token.imports),
.codeWindow :global(.token.maybe-class-name),
.codeWindow :global(.token.punctuation),
.codeWindow :global(.token.operator),
.codeWindow :global(.token.plain-text),
.codeWindow :global(.token.property-access) {
color: #d7e5e4 !important;
}
.codeWindow :global(.token.keyword) {
color: #c792ea !important;
}
.codeWindow :global(.token.string) {
color: #c3e88d !important;
}
.codeWindow :global(.token.function),
.codeWindow :global(.token.method) {
color: #82aaff !important;
}
.codeWindow :global(.token.tag) {
color: #f07178 !important;
}
.codeWindow :global(.token.builtin) {
color: #ffcb6b !important;
padding: 1.4rem 1.6rem !important;
}
.codeLegend {
border-top: 1px solid rgba(255, 255, 255, 0.08);
color: #a9bcbc;
border-top: 1px solid var(--home-terminal-line);
color: #a1a1aa;
display: grid;
font-family: var(--ifm-font-family-monospace);
font-size: 0.7rem;
grid-template-columns: repeat(3, 1fr);
}
@@ -310,18 +308,18 @@
}
.codeLegend span + span {
border-left: 1px solid rgba(255, 255, 255, 0.08);
border-left: 1px solid var(--home-terminal-line);
}
.codeLegend b {
color: #e8a94b;
font-family: var(--ifm-font-family-monospace);
margin-right: 0.25rem;
color: var(--home-emerald-bright);
margin-right: 0.3rem;
}
/* ---------- Features ---------- */
.featuresSection {
padding-bottom: 7rem;
padding-top: 4rem;
padding-bottom: 6rem;
position: relative;
z-index: 1;
}
@@ -330,27 +328,35 @@
display: grid;
gap: 0 3rem;
grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
margin-bottom: 2.8rem;
margin-bottom: 2.5rem;
}
.sectionHeading .sectionKicker {
.sectionKicker {
color: var(--home-emerald);
font-family: var(--ifm-font-family-monospace);
font-size: 0.78rem;
font-weight: 600;
grid-column: 1 / -1;
letter-spacing: 0.04em;
margin: 0 0 1rem;
text-transform: uppercase;
}
.sectionHeading h2,
.cta h2 {
color: var(--home-ink);
font-size: clamp(2.25rem, 4vw, 4rem);
letter-spacing: -0.055em;
line-height: 1;
font-size: clamp(1.9rem, 3.2vw, 2.6rem);
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
margin: 0;
}
.sectionHeading > p:last-child {
align-self: end;
color: var(--home-muted);
font-size: 1.03rem;
line-height: 1.65;
font-size: 1rem;
line-height: 1.6;
margin: 0;
}
@@ -363,41 +369,22 @@
.featureCard {
background: var(--home-card);
border: 1px solid var(--home-line);
border-radius: 1.35rem;
border-radius: 0.75rem;
color: inherit;
display: flex;
flex-direction: column;
min-height: 310px;
overflow: hidden;
padding: 1.45rem;
position: relative;
min-height: 300px;
padding: 1.4rem;
text-decoration: none !important;
transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.featureCard::before {
background: linear-gradient(90deg, var(--home-teal-bright), var(--home-amber));
content: "";
height: 3px;
left: 1.45rem;
opacity: 0;
position: absolute;
right: 1.45rem;
top: 0;
transform: scaleX(0.5);
transition: opacity 180ms ease, transform 180ms ease;
transition:
border-color 160ms ease,
transform 160ms ease;
}
.featureCard:hover {
border-color: rgba(8, 119, 123, 0.35);
box-shadow: 0 24px 60px rgba(28, 65, 66, 0.12);
border-color: var(--home-card-hover-line);
color: inherit;
transform: translateY(-5px);
}
.featureCard:hover::before {
opacity: 1;
transform: scaleX(1);
transform: translateY(-3px);
}
.cardTopline {
@@ -408,36 +395,36 @@
.featureIcon {
align-items: center;
background: rgba(8, 119, 123, 0.1);
border: 1px solid rgba(8, 119, 123, 0.12);
border-radius: 0.8rem;
color: var(--home-teal);
background: rgba(5, 150, 105, 0.1);
border-radius: 0.4rem;
color: var(--home-emerald);
display: flex;
font-family: var(--ifm-font-family-monospace);
font-size: 1rem;
font-weight: 850;
height: 2.7rem;
font-size: 0.95rem;
font-weight: 700;
height: 2.4rem;
justify-content: center;
width: 2.7rem;
width: 2.4rem;
}
.cardIndex {
color: rgba(16, 47, 49, 0.32);
color: var(--home-muted);
font-family: var(--ifm-font-family-monospace);
font-size: 0.72rem;
}
.featureCard h3 {
color: var(--home-ink);
font-size: 1.25rem;
letter-spacing: -0.025em;
margin: 2rem 0 0.7rem;
font-size: 1.15rem;
font-weight: 650;
letter-spacing: -0.01em;
margin: 1.8rem 0 0.6rem;
}
.featureCard > p {
color: var(--home-muted);
font-size: 0.94rem;
line-height: 1.65;
font-size: 0.9rem;
line-height: 1.6;
margin: 0;
}
@@ -446,150 +433,120 @@
display: flex;
justify-content: space-between;
margin-top: auto;
padding-top: 1.5rem;
padding-top: 1.4rem;
}
.cardFooter code {
background: rgba(8, 119, 123, 0.08);
background: rgba(5, 150, 105, 0.1);
border: 0;
color: var(--home-teal);
font-size: 0.7rem;
padding: 0.35rem 0.5rem;
color: var(--home-emerald);
font-size: 0.68rem;
padding: 0.32rem 0.5rem;
}
.cardFooter > span {
color: var(--home-amber);
font-size: 1.1rem;
transition: transform 180ms ease;
color: var(--home-emerald);
font-size: 1rem;
transition: transform 160ms ease;
}
.featureCard:hover .cardFooter > span {
transform: translate(3px, -3px);
transform: translate(2px, -2px);
}
/* ---------- CTA ---------- */
.ctaWrap {
padding-bottom: 7rem;
padding-bottom: 6.5rem;
position: relative;
z-index: 1;
}
.cta {
align-items: center;
background:
radial-gradient(circle at 90% 20%, rgba(233, 149, 38, 0.22), transparent 20rem),
linear-gradient(125deg, #12383a, #10292c);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 1.75rem;
box-shadow: 0 28px 80px rgba(16, 47, 49, 0.2);
background: var(--home-terminal-bg);
border-radius: 1rem;
display: flex;
gap: 3rem;
gap: 2.5rem;
justify-content: space-between;
overflow: hidden;
padding: clamp(2rem, 5vw, 4rem);
padding: clamp(2rem, 4.5vw, 3.5rem);
position: relative;
}
.ctaGridBackdrop {
background-image:
linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
background-size: 40px 40px;
inset: 0;
mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, black, transparent);
pointer-events: none;
position: absolute;
}
.ctaCopy {
position: relative;
}
.cta .sectionKicker {
color: #79d5d1;
color: var(--home-emerald-bright);
}
.cta h2 {
color: #f7fffd;
color: #fafafa;
}
.cta p:last-child {
color: #b9cccc;
line-height: 1.65;
margin: 1rem 0 0;
max-width: 650px;
color: #a1a1aa;
line-height: 1.6;
margin: 0.85rem 0 0;
max-width: 620px;
}
.ctaAction {
background: #f0a13b;
color: #162d2e;
background: var(--home-emerald);
color: #fff;
flex: 0 0 auto;
position: relative;
}
.ctaAction:hover {
box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
color: #102526;
transform: translateY(-2px);
}
:global([data-theme="dark"]) .page {
--home-ink: #e9f7f5;
--home-muted: #a9bfbd;
--home-teal: #79d5d1;
--home-teal-bright: #5bc8c5;
--home-amber: #f1ad4e;
--home-card: rgba(20, 42, 45, 0.76);
--home-line: rgba(174, 221, 218, 0.14);
background:
radial-gradient(circle at 8% 5%, rgba(33, 154, 154, 0.17), transparent 28rem),
radial-gradient(circle at 92% 14%, rgba(209, 130, 31, 0.13), transparent 27rem),
linear-gradient(145deg, #0f1b1e 0%, #102426 48%, #161e1e 100%);
}
:global([data-theme="dark"]) .gridBackdrop {
background-image:
linear-gradient(rgba(174, 221, 218, 0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(174, 221, 218, 0.04) 1px, transparent 1px);
}
:global([data-theme="dark"]) .secondaryAction {
background: rgba(19, 43, 46, 0.75);
}
:global([data-theme="dark"]) .secondaryAction:hover {
background: rgba(27, 57, 60, 0.95);
}
:global([data-theme="dark"]) .primaryAction {
background: #dff8f5;
color: #123638;
}
:global([data-theme="dark"]) .primaryAction:hover {
color: #0b282a;
}
:global([data-theme="dark"]) .cardIndex {
color: rgba(220, 242, 239, 0.35);
background: var(--home-emerald-bright);
color: #06251c;
transform: translateY(-1px);
}
@media screen and (max-width: 1180px) {
.hero {
.heroGrid {
gap: 3rem;
grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
}
.hero h1 {
font-size: clamp(3.2rem, 6vw, 5rem);
font-size: clamp(2.4rem, 4.4vw, 3.2rem);
}
}
@media screen and (max-width: 996px) {
.hero {
.heroGrid {
grid-template-columns: minmax(0, 1fr);
padding-bottom: 4rem;
padding-top: 4.5rem;
}
.heroCopy,
.codeStage,
.codeWindow,
.codeWindow :global(.theme-code-block) {
.codeWindow {
min-width: 0;
width: 100%;
}
.heroCopy {
max-width: 760px;
max-width: 640px;
}
.codeStage {
margin: 0 auto;
max-width: 760px;
width: 100%;
max-width: 640px;
}
.codeWindow {
@@ -599,51 +556,43 @@
.featureGrid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media screen and (max-width: 700px) {
.hero {
box-sizing: border-box;
margin-left: 0;
margin-right: 0;
max-width: 100vw;
padding-left: 1.15rem;
padding-right: 1.15rem;
width: 100vw;
}
.heroCopy,
.codeStage {
max-width: calc(100vw - 2.3rem);
}
.hero h1 {
font-size: clamp(3rem, 15vw, 4.3rem);
}
.sectionHeading {
grid-template-columns: 1fr;
}
.sectionHeading > p:last-child {
margin-top: 1.25rem;
margin-top: 1rem;
}
}
@media screen and (max-width: 700px) {
.hero {
padding: 3.5rem 0 2.5rem;
}
.heroCopy,
.codeStage {
max-width: 100%;
}
.actions {
flex-direction: column;
}
.primaryAction,
.secondaryAction {
width: 100%;
}
.featureGrid {
grid-template-columns: 1fr;
}
.featureCard {
min-height: 275px;
}
.codeLegend {
grid-template-columns: 1fr;
}
.codeLegend span + span {
border-left: 0;
border-top: 1px solid rgba(255, 255, 255, 0.08);
.codeWindow :global(.theme-code-block pre) {
font-size: 0.72rem;
overflow-x: auto;
padding: 1.1rem !important;
}
.windowStatus {
@@ -654,25 +603,29 @@
grid-template-columns: 1fr auto;
}
.codeWindow :global(.theme-code-block pre) {
font-size: 0.69rem;
overflow-x: auto;
padding: 1.1rem !important;
}
.cta {
align-items: flex-start;
flex-direction: column;
}
.codeLegend {
grid-template-columns: 1fr;
}
.codeLegend span + span {
border-left: 0;
border-top: 1px solid var(--home-terminal-line);
}
}
@media (prefers-reduced-motion: reduce) {
.featureCard,
.featureCard::before,
.cardFooter > span,
.primaryAction,
.secondaryAction,
.ctaAction {
.ctaAction,
.eyebrow,
.eyebrowArrow,
.codeWindow {
transition: none;
}
}
+83 -61
View File
@@ -91,67 +91,88 @@ export default function Home(): ReactNode {
description="Write React function components as typed Effect programs"
>
<main className={styles.page}>
<div className={styles.gridBackdrop} aria-hidden="true" />
<section className={styles.hero}>
<div className={styles.gridBackdrop} aria-hidden="true" />
<div className={styles.heroGlow} aria-hidden="true" />
<section className={clsx("container", styles.hero)}>
<div className={styles.heroCopy}>
<div className={styles.eyebrow}>
<span className={styles.pulse} />
Effect View for React 19
</div>
<h1>
React <span className={styles.unbreakable}>components,</span>
<span className={styles.heroAccent}> powered by Effect.</span>
</h1>
<p className={styles.lede}>
Bring typed services, scoped resources, reactive state, server
queries, and schema-driven forms into React without hiding either
framework.
</p>
<div className={styles.actions}>
<Link className={styles.primaryAction} to="/docs/getting-started">
Start building
<span aria-hidden="true"></span>
<div className={clsx("container", styles.heroGrid)}>
<div className={styles.heroCopy}>
<Link className={styles.eyebrow} to="/docs/getting-started">
<span aria-hidden="true">{"//"}</span>
Effect View for React 19
<span aria-hidden="true" className={styles.eyebrowArrow}>
</span>
</Link>
<Link
className={styles.secondaryAction}
to="https://github.com/Thiladev/effect-view"
>
View on GitHub
</Link>
</div>
<div className={styles.install}>
<span aria-hidden="true">$</span>
<code>npm install effect-view effect@beta</code>
</div>
<Link
className={styles.hotReload}
to="/docs/getting-started#set-up-hot-reloading-with-vite"
>
<span aria-hidden="true"></span>
Hot reload with Vite Fast Refresh
</Link>
</div>
<h1>
React components,
<br />
powered by Effect.
</h1>
<div className={styles.codeStage}>
<div className={styles.codeGlow} aria-hidden="true" />
<div className={styles.codeWindow}>
<div className={styles.windowBar}>
<div className={styles.windowDots} aria-hidden="true">
<span />
<span />
<span />
</div>
<span>UserCard.tsx</span>
<span className={styles.windowStatus}>Effect + JSX</span>
<p className={styles.lede}>
Bring typed services, scoped resources, reactive state,
server queries, and schema-driven forms into React without
hiding either framework.
</p>
<div className={styles.installBox}>
<span className={styles.installPrompt} aria-hidden="true">
$
</span>
<code>npm install effect-view effect@rc</code>
</div>
<CodeBlock language="tsx">{componentExample}</CodeBlock>
<div className={styles.codeLegend}>
<span><b>01</b> Yield services</span>
<span><b>02</b> Own the lifecycle</span>
<span><b>03</b> Return JSX</span>
<div className={styles.actions}>
<Link
className={styles.primaryAction}
to="/docs/getting-started"
>
Start building
<span aria-hidden="true"></span>
</Link>
<Link
className={styles.secondaryAction}
to="https://github.com/Thiladev/effect-view"
>
View on GitHub
</Link>
</div>
<Link
className={styles.hotReload}
to="/docs/getting-started#set-up-hot-reloading-with-vite"
>
<span aria-hidden="true"></span>
Hot reload with Vite Fast Refresh
</Link>
</div>
<div className={styles.codeStage}>
<div className={styles.codeGlow} aria-hidden="true" />
<div className={styles.codeWindow}>
<div className={styles.windowBar}>
<div className={styles.windowDots} aria-hidden="true">
<span />
<span />
<span />
</div>
<span>UserCard.tsx</span>
<span className={styles.windowStatus}>Effect + JSX</span>
</div>
<CodeBlock language="tsx">{componentExample}</CodeBlock>
<div className={styles.codeLegend}>
<span>
<b>01</b> Yield services
</span>
<span>
<b>02</b> Own the lifecycle
</span>
<span>
<b>03</b> Return JSX
</span>
</div>
</div>
</div>
</div>
@@ -159,7 +180,7 @@ export default function Home(): ReactNode {
<section className={clsx("container", styles.featuresSection)}>
<div className={styles.sectionHeading}>
<p className={styles.sectionKicker}>Why Effect View</p>
<p className={styles.sectionKicker}>{"// Why Effect View"}</p>
<h2>One model from render to resources.</h2>
<p>
Effect View adds the pieces React deliberately leaves open while
@@ -193,12 +214,13 @@ export default function Home(): ReactNode {
<section className={clsx("container", styles.ctaWrap)}>
<div className={styles.cta}>
<div>
<p className={styles.sectionKicker}>Ready when React is</p>
<div className={styles.ctaGridBackdrop} aria-hidden="true" />
<div className={styles.ctaCopy}>
<p className={styles.sectionKicker}>{"// Ready when React is"}</p>
<h2>Start with one Effect component.</h2>
<p>
Add a runtime, cross the React boundary once, and grow into the
rest of the toolkit only when you need it.
Add a runtime, cross the React boundary once, and grow into
the rest of the toolkit only when you need it.
</p>
</div>
<Link className={styles.ctaAction} to="/docs/getting-started">