-
Before you install
-
+
+
Which projects can I use it for?
Start a new, single-module Spring MVC app on macOS or Linux. The alpha uses Spring Initializr for the template and Maven for the build. Existing POM imports, Gradle and multi-module projects are outside its current scope.
@@ -142,20 +204,32 @@ Before you install
+
+
+
+

+
Start with one command.
+
Install the CLI, then follow the quick start to a running endpoint, a passing test and a JAR.
+
+
+
npm i -g java-npm-cli@alpha
+
+
+
+
+
Open the quick start
+
+
+
diff --git a/site/social.png b/site/social.png
index 516bbc2..d1de043 100644
Binary files a/site/social.png and b/site/social.png differ
diff --git a/site/style.css b/site/style.css
index 3e61b9a..74b0e34 100644
--- a/site/style.css
+++ b/site/style.css
@@ -13,49 +13,50 @@
font-display: swap;
}
+/* One dark theme: the mark erupts out of the night. Warm greys only; blue acts, lava highlights. */
:root {
- color-scheme: light dark;
- --paper: #fafbf7;
- --ink: #17251e;
- --muted: #526057;
- --rule: #cdd6ca;
- --accent: #206142;
- --surface: #eff3eb;
- --code-paper: #f4f6f1;
- --code-ink: #275f44;
+ color-scheme: dark;
+ --night: #07080b;
+ --night-2: #0b0d11;
+ --surface: rgba(255, 244, 228, .035);
+ --surface-2: rgba(255, 244, 228, .06);
+ --ink: #f3efe7;
+ --ink-2: #d6d0c5;
+ --muted: #9d978d;
+ --faint: #8a847b;
+ --rule: rgba(255, 240, 220, .085);
+ --rule-2: rgba(255, 240, 220, .16);
+ --blue: #2a74a8;
+ --blue-hi: #3786be;
+ --lava-1: #ffe3a1;
+ --lava-2: #ff8a2b;
+ --lava-3: #ff2a1a;
+ --code: #ffb877;
+ --lava-text: linear-gradient(95deg, var(--lava-1) 0%, var(--lava-2) 38%, var(--lava-3) 88%);
--sans: "Geist", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
--serif: "Instrument Serif", Georgia, "Times New Roman", serif;
- --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
-}
-@media (prefers-color-scheme: dark) {
- :root {
- --paper: #131c17;
- --ink: #f0f4ed;
- --muted: #b3c0b4;
- --rule: #3b4b3f;
- --accent: #a2deb7;
- --surface: #202d24;
- --code-paper: #18251d;
- --code-ink: #b1dfbd;
- }
+ --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
+ --ease-out: cubic-bezier(.2, .8, .2, 1);
+ --header: 4.25rem;
}
* { box-sizing: border-box; }
+html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
body {
margin: 0;
- background: var(--paper);
+ background: var(--night);
color: var(--ink);
- font: 1rem/1.55 var(--sans);
+ font: 1rem/1.6 var(--sans);
-webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: .22em; }
-a:hover { color: var(--accent); }
-button, input { font: inherit; }
+button, input { font: inherit; color: inherit; }
button, label[for] { -webkit-tap-highlight-color: transparent; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3, p, pre, figure { margin: 0; }
-:focus-visible { outline: 3px solid #318653; outline-offset: 4px; }
-::selection { background: #bfdcc5; color: #18261d; }
-.wrap { width: min(76rem, calc(100% - 6rem)); margin-inline: auto; }
+:focus-visible { outline: 2px solid var(--lava-2); outline-offset: 3px; border-radius: .3rem; }
+::selection { background: rgba(255, 138, 43, .35); color: #fff; }
+.wrap { width: min(72rem, calc(100% - 5rem)); margin-inline: auto; }
.sr-only, .flow-choice {
position: absolute;
width: 1px; height: 1px;
@@ -64,210 +65,403 @@ h1, h2, h3, p, pre, figure { margin: 0; }
white-space: nowrap; border: 0;
}
.skip {
- position: fixed; top: .5rem; left: .5rem; z-index: 5;
- padding: .6rem 1rem; background: var(--paper);
- transform: translateY(-180%);
+ position: fixed; top: .6rem; left: .6rem; z-index: 30;
+ padding: .6rem 1rem; border-radius: .5rem; background: var(--ink); color: var(--night);
+ transform: translateY(-200%);
}
.skip:focus { transform: none; }
-.site-header { border-bottom: 1px solid var(--rule); }
-.nav, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
-.nav { min-height: 4.75rem; }
-.brand { display: inline-flex; align-items: center; flex: none; }
-.brand img { display: block; width: 3.8rem; height: auto; }
-.navlinks { display: flex; gap: 1.65rem; align-items: center; font-size: .92rem; font-weight: 500; }
-.navlinks a, .footer-row a { text-decoration: none; }
-.navlinks a:hover, .footer-row a:hover { text-decoration: underline; }
-.navlinks .language { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
-.hero {
- display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
- gap: clamp(2rem, 5vw, 5.25rem);
- align-items: center;
- padding-block: clamp(3.5rem, 6.6vw, 6.25rem);
-}
+
+/* ---------- header ---------- */
+.site-header {
+ position: fixed; inset: 0 0 auto; z-index: 20;
+ border-bottom: 1px solid transparent;
+ transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
+}
+.site-header.scrolled {
+ background: rgba(7, 8, 11, .72);
+ border-color: var(--rule);
+ backdrop-filter: blur(14px) saturate(1.4);
+ -webkit-backdrop-filter: blur(14px) saturate(1.4);
+}
+.nav { display: flex; align-items: center; gap: 1.1rem; min-height: var(--header); }
+.brand { display: inline-flex; align-items: center; flex: none; border-radius: .4rem; }
+.brand img { display: block; width: 2.9rem; height: auto; }
.release {
- display: inline-flex; gap: .6rem; align-items: center;
- font: .81rem/1.3 var(--mono); letter-spacing: .015em; text-decoration: none;
-}
-.release b {
- padding: .22rem .6rem; border: 1px solid var(--accent); border-radius: 2rem;
- color: var(--accent); font: 600 .76rem/1.1 var(--sans);
+ display: inline-flex; align-items: center; gap: .5rem;
+ padding: .3rem .7rem .3rem .6rem; border: 1px solid var(--rule); border-radius: 99px;
+ color: var(--muted); font: 500 .74rem/1 var(--mono); letter-spacing: .01em; text-decoration: none;
+ transition: color .2s ease, border-color .2s ease;
+}
+.release::before {
+ content: ""; width: .42rem; height: .42rem; border-radius: 50%;
+ background: var(--lava-2); box-shadow: 0 0 10px var(--lava-2);
+}
+.release:hover { color: var(--ink); border-color: var(--rule-2); }
+.navlinks { display: flex; gap: 1.5rem; align-items: center; margin-left: auto; font-size: .9rem; font-weight: 500; }
+.navlinks a { color: var(--ink-2); text-decoration: none; transition: color .2s ease; }
+.navlinks a:hover { color: var(--ink); }
+.navlinks a[aria-current="page"] { color: var(--ink); }
+.navlinks .language { padding-left: 1.4rem; border-left: 1px solid var(--rule-2); }
+
+/* ---------- hero ---------- */
+.hero {
+ position: relative; isolation: isolate; overflow: clip;
+ min-height: 100svh;
+ display: flex; flex-direction: column; justify-content: center;
+ padding: calc(var(--header) + 1.5rem) 1.25rem 4.5rem;
+}
+.stage { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
+.sky {
+ position: absolute; inset: 0;
+ background:
+ radial-gradient(120% 70% at 50% 118%, rgba(255, 80, 30, .17), transparent 60%),
+ radial-gradient(80% 60% at 50% -10%, rgba(42, 116, 168, .13), transparent 70%);
+}
+.heat {
+ position: absolute; inset: 0; opacity: 0;
+ background: radial-gradient(60% 55% at var(--fx, 50%) var(--fy, 45%), rgba(255, 120, 40, .32), rgba(255, 40, 20, .08) 45%, transparent 70%);
+}
+.flash {
+ position: absolute; inset: 0; opacity: 0;
+ background: radial-gradient(35% 35% at var(--fx, 50%) var(--fy, 45%), rgba(255, 236, 190, .9), rgba(255, 120, 40, .35) 40%, transparent 75%);
+ mix-blend-mode: screen;
+}
+.grain, .site-footer::before {
+ position: absolute; inset: 0; opacity: .05; pointer-events: none;
+ background-image: radial-gradient(rgba(255, 255, 255, .7) .6px, transparent .6px);
+ background-size: 3px 3px;
+}
+.stage::after {
+ /* fade the stage into the page below */
+ content: ""; position: absolute; inset: auto 0 0; height: 9rem;
+ background: linear-gradient(transparent, var(--night));
+}
+canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; }
+.chips { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
+.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
+.mark { display: block; width: min(320px, 28vw, 35svh); min-width: 200px; height: auto; overflow: visible; }
+.mark g, .mark ellipse { transform-box: fill-box; }
+#jIn, #j { transform-origin: 50% 100%; }
+#p, #m { transform-origin: 0% 100%; }
+#lava { transform-origin: 50% 50%; opacity: .45; transform: scale(1.05); }
+#sway { transform-origin: 50% 100%; }
+.replay { display: block; padding: 0; border: 0; border-radius: 1rem; background: none; color: inherit; }
+.replay:enabled { cursor: pointer; }
+.replay:focus-visible { outline: 2px solid var(--lava-2); outline-offset: .6rem; }
+.hero-paused .chip .inner { animation-play-state: paused; }
+
+.hero h1 {
+ margin-top: clamp(.7rem, 2.2svh, 1.5rem);
+ font-weight: 600; font-size: clamp(2.55rem, min(6.2vw, 7.6svh), 5.4rem);
+ line-height: 1; letter-spacing: -.045em; text-wrap: balance;
}
-.release:hover span { text-decoration: underline; }
-h1 { margin-block: 1.25rem 1.35rem; font-size: clamp(3.3rem, 5.65vw, 5.65rem); }
-h1, h2 { font-weight: 540; letter-spacing: -.072em; line-height: 1.015; }
+.hero h1 span, .hero h1 em { display: block; }
h1 em, h2 em {
- color: var(--accent); font: italic 400 1.09em/.95 var(--serif); letter-spacing: -.035em;
+ font: italic 400 1.08em/1.02 var(--serif); letter-spacing: -.02em; padding: 0 .04em .07em 0;
+ background: var(--lava-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
-.hero h1 span, .hero h1 em { display: block; }
-.hero h1 em { margin-top: .03em; font-size: 1em; }
-.lede { max-width: 35rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; }
-.install {
- display: flex; align-items: stretch; width: fit-content; max-width: 100%; margin-top: 1.65rem;
- border: 1px solid #223328; border-radius: .45rem; background: #1b2b21; color: #f2f8ed;
+.lede {
+ max-width: 36rem; margin: clamp(.9rem, 2.2svh, 1.4rem) auto 0;
+ color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; text-wrap: pretty;
+}
+
+/* install: channel switcher, command, copy */
+.install { display: grid; justify-items: center; gap: .7rem; margin-top: clamp(1.1rem, 2.8svh, 1.8rem); }
+html:not(.js) .channels { display: none; }
+.channels {
+ display: inline-flex; gap: .2rem; padding: .2rem;
+ border: 1px solid var(--rule); border-radius: 99px; background: var(--surface);
+}
+.channels button {
+ border: 0; border-radius: 99px; background: none; color: var(--muted);
+ padding: .3rem .85rem; font-size: .8rem; font-weight: 500; cursor: pointer;
+ transition: color .2s ease, background-color .2s ease;
+}
+.channels button:hover { color: var(--ink); }
+.channels button[aria-pressed="true"] { background: rgba(255, 244, 228, .1); color: var(--ink); }
+.command {
+ position: relative; display: flex; align-items: stretch; max-width: 100%;
+ border: 1px solid var(--rule-2); border-radius: .75rem;
+ background: linear-gradient(180deg, rgba(255, 244, 228, .06), rgba(255, 244, 228, .02)), rgba(10, 11, 15, .7);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -24px rgba(255, 90, 30, .35);
+ backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.install-command {
- align-self: center; min-width: 0; padding: .86rem .85rem .86rem 1rem;
- font-size: clamp(.78rem, 1.04vw, .92rem); line-height: 1.55; overflow-wrap: anywhere;
- user-select: all;
+ align-self: center; min-width: 0; padding: .9rem .5rem .9rem 1.05rem;
+ font-size: clamp(.82rem, 1.05vw, .95rem); line-height: 1.5; white-space: nowrap; overflow-x: auto;
+ user-select: all; scrollbar-width: none;
}
-.install-command::before { content: "$"; margin-right: .5em; color: #a3dfb0; }
+.install-command::before { content: "$"; margin-right: .65em; color: var(--lava-2); user-select: none; }
.copy {
- display: none; align-items: center; justify-content: center; flex: none; width: 2.85rem;
- margin: .35rem 0; border: 0; border-left: 1px solid #516555; color: #f0f6ed; background: none;
- cursor: pointer;
+ display: none; align-items: center; justify-content: center; flex: none; width: 2.9rem;
+ margin: .4rem .4rem .4rem 0; border: 0; border-radius: .5rem; background: none; color: var(--muted);
+ cursor: pointer; transition: color .2s ease, background-color .2s ease, transform .15s ease;
}
.copy.ready { display: inline-flex; }
-.copy:hover, .copy.copied { color: #abedb4; }
-.copy:focus-visible { outline-offset: -3px; }
-.copy svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
+.copy:hover { color: var(--ink); background: var(--surface-2); }
+.copy:active { transform: scale(.94); }
+.copy.copied { color: #9fe0a8; }
+.copy svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.copy .tick, .copy.copied .sheets { display: none; }
.copy.copied .tick { display: block; }
-.install-meta { color: var(--muted); font-size: .88rem; margin: .6rem 0 1.3rem; }
-.install-meta span { padding-inline: .18rem; }
-.text-link { font-weight: 570; text-decoration-thickness: 1px; }
+.install-meta { color: var(--faint); font: .78rem/1.4 var(--mono); }
-/* A pocket terminal. The three physical keys are the native radio controls' labels. */
-.console {
- position: relative; isolation: isolate; min-width: 0; margin: 0;
- padding: clamp(.9rem, 1.8vw, 1.55rem) clamp(.9rem, 1.9vw, 1.65rem) 1.15rem;
- border: 1px solid #879984; border-bottom: 5px solid #879a83; border-radius: 1.65rem;
- background: linear-gradient(125deg, #e1ecd5, #becfb6 92%);
- box-shadow: inset 0 2px 1px #f1f6e8, 0 8px 0 -5px #667e6438, 0 18px 35px -25px #14241385;
- color: #1a3421;
-}
-.chassis { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: .04rem .2rem .85rem; }
-.etch { display: flex; gap: .5rem; align-items: center; font: 600 .78rem/1 var(--mono); letter-spacing: .045em; }
-.etch svg { width: 1.48rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-linecap: round; stroke-width: 1.6; }
-.vents {
- width: 3.2rem; height: .67rem; opacity: .7;
- background: repeating-linear-gradient(100deg, transparent 0 4px, #688266 4.5px 6.5px, #eff6e9 7px 8px);
- transform: skewX(-5deg);
-}
-.glass {
- padding: .3rem; border-radius: .88rem; background: #96a88e;
- box-shadow: inset 0 2px 3px #536d52, 0 1px 0 #f0f7e3;
-}
-.screen {
- min-height: clamp(12.3rem, 17.6vw, 14.8rem); padding: clamp(1rem, 2.1vw, 1.85rem);
- border: 1px solid #26382a; border-radius: .65rem;
- color: #eff5e9; background-color: #17251e;
- background-image: radial-gradient(ellipse at top left, #2a3e3080, transparent 78%),
- repeating-linear-gradient(0deg, transparent 0px 2px, #a4cab406 2px 3px);
- box-shadow: inset 0 2px 12px #0c1713b5;
+.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: clamp(1.2rem, 3svh, 1.9rem); }
+.btn {
+ display: inline-flex; align-items: center; gap: .5rem;
+ padding: .74rem 1.2rem; border-radius: .65rem;
+ font-size: .95rem; font-weight: 550; text-decoration: none; white-space: nowrap;
+ transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
+}
+.btn:active { transform: translateY(1px) scale(.985); }
+.btn.primary {
+ background: var(--blue); color: #fff;
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px -12px rgba(55, 134, 190, .9);
+}
+.btn.primary:hover { background: var(--blue-hi); }
+.btn.primary .arrow { transition: transform .2s var(--ease-out); }
+.btn.primary:hover .arrow { transform: translateX(3px); }
+.btn.ghost { border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--surface); }
+.btn.ghost:hover { color: var(--ink); border-color: rgba(255, 240, 220, .28); }
+.btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
+
+/* ---------- hero states (only with JavaScript) ---------- */
+/* Before the first frame: hide what the intro reveals. hero.js adds hero-running / hero-done. */
+.js:not(.hero-done) #p, .js:not(.hero-done) #m { opacity: 0; }
+.js:not(.hero-done) #steamWipe { transform: translateY(880px); }
+.js:not(.hero-running):not(.hero-done) .mark { visibility: hidden; }
+.js .hero .reveal { transition: opacity .7s ease, transform .9s var(--ease-out); }
+.js:not(.hero-done) .hero .reveal, .js:not(.hero-done) .site-header { opacity: 0; transform: translateY(18px); }
+.js .site-header { transition: opacity .7s ease, transform .9s var(--ease-out), background-color .3s ease, border-color .3s ease; }
+.js:not(.hero-done) .site-header { transform: translateY(-10px); }
+.hero-done:not(.hero-skipped) .hero .reveal:nth-child(2) { transition-delay: .08s; }
+.hero-done:not(.hero-skipped) .hero .reveal:nth-child(3) { transition-delay: .16s; }
+.hero-done:not(.hero-skipped) .hero .reveal:nth-child(4) { transition-delay: .24s; }
+.hero-done:not(.hero-skipped) .hero .reveal:nth-child(5) { transition-delay: .32s; }
+.hero-skipped .hero .reveal, .hero-skipped .site-header { transition-duration: .35s; }
+
+/* ---------- tool chips ---------- */
+.chip { position: absolute; left: 0; top: 0; will-change: transform; }
+.chip .inner { display: grid; justify-items: center; gap: .5rem; }
+.chip .tile {
+ display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 1rem;
+ border: 1px solid rgba(255, 255, 255, .11);
+ background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015)), rgba(14, 16, 22, .82);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 30px -14px rgba(0, 0, 0, .9);
+ transition: box-shadow 1.4s ease, border-color 1.4s ease;
+}
+.chip svg { width: 1.7rem; height: 1.7rem; fill: var(--brand); transition: filter 1.4s ease; }
+.chip b { font: 500 .72rem/1 var(--mono); color: #aaa398; letter-spacing: .01em; white-space: nowrap; transition: opacity .6s ease; }
+.chip.hot .tile { border-color: rgba(255, 160, 80, .95); box-shadow: 0 0 26px rgba(255, 110, 30, .85), inset 0 0 14px rgba(255, 140, 50, .55); }
+.chip.hot svg { filter: brightness(1.6) sepia(.6) saturate(3) hue-rotate(-15deg); }
+.chip.hot b { opacity: 0; }
+.chip.landed .inner { animation: bob var(--bob, 6s) ease-in-out infinite alternate; }
+@keyframes bob { from { transform: translateY(-5px) rotate(-1deg); } to { transform: translateY(5px) rotate(1deg); } }
+
+/* ---------- sections ---------- */
+.section { position: relative; padding-block: clamp(4rem, 8vw, 7rem) clamp(4.5rem, 9vw, 7.5rem); }
+.section + .section { border-top: 1px solid var(--rule); }
+.eyebrow {
+ display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
+ color: var(--lava-2); font: 500 .76rem/1 var(--mono); letter-spacing: .04em;
+}
+.eyebrow::before { content: ""; width: 1.4rem; height: 1px; background: currentColor; opacity: .7; }
+h2 {
+ font-size: clamp(2.2rem, 4.3vw, 3.7rem); font-weight: 580;
+ line-height: 1.04; letter-spacing: -.042em; text-wrap: balance;
+}
+h2 em { display: block; }
+.section-copy { max-width: 31rem; margin-top: 1.2rem; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
+.section-copy code, .faq-item code {
+ padding: .08em .35em; border-radius: .3rem; background: var(--surface-2); color: var(--ink-2); font-size: .88em;
+}
+.text-link {
+ display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.6rem;
+ color: var(--ink); font-weight: 550; text-decoration: none;
+ border-bottom: 1px solid var(--rule-2); padding-bottom: .15rem;
+ transition: border-color .2s ease, gap .2s var(--ease-out);
+}
+.text-link::after { content: "→"; color: var(--lava-2); }
+.text-link:hover { border-color: var(--lava-2); gap: .6rem; }
+.split {
+ display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
+ gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center;
}
+
+/* npm → jpm */
+.map { display: grid; border: 1px solid var(--rule); border-radius: 1rem; background: var(--surface); overflow: hidden; }
+.map-row {
+ display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1.25fr); align-items: center; gap: .9rem;
+ padding: .95rem 1.25rem; font: .9rem/1.4 var(--mono);
+ transition: background-color .25s ease;
+}
+.map-row + .map-row { border-top: 1px solid var(--rule); }
+.map-row:hover { background: var(--surface-2); }
+.map-row .from { color: var(--faint); }
+.map-row .to { color: var(--ink); }
+.map-row .to b { color: var(--code); font-weight: 500; }
+.map-row .arrow { color: var(--faint); text-align: center; transition: color .25s ease, transform .25s var(--ease-out); }
+.map-row:hover .arrow { color: var(--lava-2); transform: translateX(2px); }
+.map-head { padding-block: .7rem; background: rgba(255, 244, 228, .025); font: 500 .72rem/1 var(--sans); letter-spacing: .04em; color: var(--faint); }
+.map-head:hover { background: rgba(255, 244, 228, .025); }
+
+/* terminal walkthrough */
+.walk-head { max-width: 40rem; }
+.console {
+ position: relative; min-width: 0; margin: clamp(2.2rem, 5vw, 3.5rem) 0 0; padding: 0;
+ border: 1px solid var(--rule-2); border-radius: 1.1rem; overflow: hidden;
+ background: linear-gradient(180deg, #121419, #0c0e12);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 50px 120px -50px rgba(255, 80, 30, .32), 0 30px 60px -40px rgba(0, 0, 0, .9);
+}
+.console::before {
+ content: ""; position: absolute; inset: -40% 20% auto; height: 70%; pointer-events: none;
+ background: radial-gradient(closest-side, rgba(255, 110, 40, .12), transparent);
+}
+.console-bar {
+ display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem;
+ border-bottom: 1px solid var(--rule); background: rgba(255, 244, 228, .02);
+}
+.lights { display: flex; gap: .4rem; }
+.lights i { width: .66rem; height: .66rem; border-radius: 50%; background: rgba(255, 244, 228, .14); }
+.console-keys { display: flex; gap: .2rem; margin-left: auto; padding: .2rem; border: 1px solid var(--rule); border-radius: 99px; }
+.console-keys label {
+ padding: .28rem .85rem; border-radius: 99px; color: var(--muted);
+ font-size: .8rem; font-weight: 500; cursor: pointer; transition: color .2s ease, background-color .2s ease;
+}
+.console-keys label:hover { color: var(--ink); }
+#flow-create:checked ~ .console-bar [for="flow-create"],
+#flow-serve:checked ~ .console-bar [for="flow-serve"],
+#flow-build:checked ~ .console-bar [for="flow-build"] { background: rgba(255, 244, 228, .1); color: var(--ink); }
+#flow-create:focus-visible ~ .console-bar [for="flow-create"],
+#flow-serve:focus-visible ~ .console-bar [for="flow-serve"],
+#flow-build:focus-visible ~ .console-bar [for="flow-build"] { outline: 2px solid var(--lava-2); outline-offset: 2px; }
+.screen { position: relative; min-height: clamp(14rem, 22vw, 17rem); padding: clamp(1.3rem, 3vw, 2.2rem); }
.trace { display: none; }
-#flow-create:checked ~ .glass .trace-create,
-#flow-serve:checked ~ .glass .trace-serve,
-#flow-build:checked ~ .glass .trace-build { display: block; }
-.trace pre {
- font-size: clamp(.8rem, 1.12vw, .99rem); line-height: 1.8; font-weight: 450;
- white-space: pre-wrap; overflow-wrap: anywhere;
-}
-.prompt { color: #a3e9a8; user-select: none; }
-.note { color: #b6c5b3; }
-.answer { color: #a8efad; }
+#flow-create:checked ~ .screen .trace-create,
+#flow-serve:checked ~ .screen .trace-serve,
+#flow-build:checked ~ .screen .trace-build { display: block; animation: type-in .45s var(--ease-out); }
+@keyframes type-in { from { opacity: 0; transform: translateY(6px); } }
+.trace pre { font-size: clamp(.82rem, 1.15vw, .98rem); line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
+.prompt { color: var(--lava-2); user-select: none; }
+.note { color: var(--faint); }
+.answer { color: #9fe0a8; }
.cursor {
- display: block; width: .58em; height: 1em; margin-top: .85rem; background: #adebb2;
+ display: block; width: .55em; height: 1.1em; margin-top: .7rem; background: var(--ink-2);
+ animation: blink 1.1s steps(1) infinite;
}
-.console-keys { display: flex; gap: .48rem; margin: .85rem .05rem 0; }
-.console-keys label {
- display: inline-flex; align-items: center; justify-content: center;
- min-height: 2.5rem; padding: .3rem .82rem;
- border: 1px solid #899e84; border-bottom-width: 3px; border-radius: .4rem;
- color: #283c2a; background: #dce7d3;
- box-shadow: inset 0 1px 0 #f3f8ec; font-size: .84rem; font-weight: 550; cursor: pointer;
-}
-.console-keys label:hover { background: #eaf4e1; }
-#flow-create:checked ~ .console-keys [for="flow-create"],
-#flow-serve:checked ~ .console-keys [for="flow-serve"],
-#flow-build:checked ~ .console-keys [for="flow-build"] {
- border-color: #375640; color: #f5fff0; background: #3d6248; box-shadow: inset 0 1px 1px #314f38;
-}
-#flow-create:focus-visible ~ .console-keys [for="flow-create"],
-#flow-serve:focus-visible ~ .console-keys [for="flow-serve"],
-#flow-build:focus-visible ~ .console-keys [for="flow-build"] { outline: 3px solid #152e1e; outline-offset: 3px; }
+@keyframes blink { 50% { opacity: 0; } }
-.inside, .faq { border-top: 1px solid var(--rule); }
-.inside-grid, .faq-grid {
- display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1fr);
- gap: clamp(2rem, 7.2vw, 7rem); padding-block: clamp(3.5rem, 6vw, 5.5rem); align-items: center;
-}
-h2 { font-size: clamp(2.45rem, 4vw, 4rem); }
-.inside h2 em { display: block; }
-.section-copy { max-width: 33rem; margin: 1.1rem 0; color: var(--muted); }
-.manifest { min-width: 0; border: 1px solid var(--rule); border-radius: .7rem; overflow: hidden; background: var(--code-paper); }
+/* package.json */
+.manifest {
+ min-width: 0; border: 1px solid var(--rule-2); border-radius: 1rem; overflow: hidden;
+ background: linear-gradient(180deg, #121419, #0c0e12);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 90px -50px rgba(42, 116, 168, .55);
+}
.file-bar {
- display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--rule);
- background: var(--surface); font: 500 .82rem/1.5 var(--mono);
-}
-.file-bar svg { fill: none; stroke: currentColor; stroke-width: 1.45; width: 1rem; height: 1rem; color: var(--accent); }
-.file-bar small { margin-left: auto; color: var(--muted); font-size: .76rem; }
-.manifest pre {
- padding: 1.15rem; font-size: clamp(.8rem, 1.1vw, .93rem); line-height: 1.75;
- white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
-}
-.manifest .key { color: var(--code-ink); }
-.faq { background: var(--surface); }
-.faq-grid { align-items: start; }
-.faq h2 { max-width: 10em; }
+ display: flex; align-items: center; gap: .6rem; padding: .8rem 1.15rem;
+ border-bottom: 1px solid var(--rule); color: var(--ink-2); font: 500 .8rem/1.5 var(--mono);
+}
+.file-bar svg { width: 1rem; height: 1rem; fill: none; stroke: var(--lava-2); stroke-width: 1.45; }
+.file-bar small { margin-left: auto; color: var(--faint); font-size: .74rem; }
+.manifest pre { padding: 1.3rem 1.25rem 1.5rem; font-size: clamp(.8rem, 1.1vw, .93rem); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); tab-size: 2; }
+.manifest .key { color: var(--code); }
+.manifest .hl { display: inline-block; margin-inline: -.4rem; padding-inline: .4rem; border-radius: .3rem; background: rgba(255, 138, 43, .1); box-shadow: inset 2px 0 0 var(--lava-2); }
+.manifest-foot {
+ display: flex; align-items: center; gap: .6rem; padding: .85rem 1.15rem;
+ border-top: 1px solid var(--rule); color: var(--muted); font: .78rem/1.4 var(--mono);
+}
+.manifest-foot b { color: var(--ink-2); font-weight: 500; }
+.manifest-foot .ok { color: #9fe0a8; }
+
+/* FAQ */
+.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: start; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-item summary {
display: flex; align-items: center; justify-content: space-between; gap: 1rem;
- list-style: none; padding: 1rem .1rem; font-weight: 560; cursor: pointer;
+ list-style: none; padding: 1.25rem .1rem; font-size: 1.05rem; font-weight: 550; cursor: pointer;
+ transition: color .2s ease;
}
+.faq-item summary:hover { color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
-.faq-item summary::after { content: "+"; flex: none; color: var(--accent); font: 1.25rem/1 var(--mono); }
-.faq-item[open] summary::after { content: "−"; }
-.faq-item p { padding: 0 1.45rem 1.1rem .1rem; color: var(--muted); line-height: 1.65; }
-.site-footer { border-top: 1px solid var(--rule); }
-.footer-row { min-height: 5rem; flex-wrap: wrap; padding-block: 1.15rem; }
-.footer-info, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--muted); }
-.site-footer .brand img { width: 3rem; }
-.footer-links { gap: 1.3rem; }
-:lang(zh-CN) h1, :lang(zh-CN) h2 { letter-spacing: -.045em; line-height: 1.17; }
-:lang(zh-CN) h1 em, :lang(zh-CN) h2 em {
- font-family: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: .89em;
- letter-spacing: -.045em; line-height: 1.25; font-style: normal;
+.faq-item summary::after {
+ content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .3rem;
+ border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
+ transform: translateY(-25%) rotate(45deg); transition: transform .3s var(--ease-out);
}
+.faq-item[open] summary::after { transform: translateY(15%) rotate(-135deg); }
+.faq-item p { max-width: 38rem; padding: 0 2rem 1.35rem .1rem; color: var(--muted); line-height: 1.7; }
+
+/* closing call to action */
+.finale { overflow: clip; text-align: center; }
+.finale::before {
+ content: ""; position: absolute; inset: auto 0 -30% 0; height: 90%; pointer-events: none;
+ background: radial-gradient(50% 60% at 50% 100%, rgba(255, 90, 30, .2), transparent 70%);
+}
+.finale .wrap { position: relative; display: grid; justify-items: center; }
+.finale img { width: 4.6rem; height: auto; margin-bottom: 1.8rem; filter: drop-shadow(0 10px 30px rgba(255, 90, 30, .35)); }
+.finale h2 em { display: inline; }
+.finale .section-copy { margin-inline: auto; }
+.finale .install { margin-top: 2rem; }
+
+/* footer */
+.site-footer { position: relative; border-top: 1px solid var(--rule); background: var(--night-2); }
+.site-footer::before { content: ""; }
+.footer-row {
+ position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem;
+ min-height: 5.5rem; padding-block: 1.4rem;
+}
+.footer-info, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; color: var(--faint); font-size: .85rem; }
+.footer-info .brand img { width: 2.6rem; }
+.footer-row a { text-decoration: none; transition: color .2s ease; }
+.footer-row a:hover { color: var(--ink); }
-@media (min-width: 77rem) {
- .hero { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
+/* scroll reveals (app.js marks .rise elements pending, then in) */
+.rise.pending { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform 1s var(--ease-out); }
+.rise.pending.in { opacity: 1; transform: none; }
+.rise.pending.delay { transition-delay: .12s; }
+
+/* Chinese headings: serif italics fall back to a CJK serif */
+:lang(zh-CN) h1, :lang(zh-CN) h2 { letter-spacing: -.03em; line-height: 1.16; }
+:lang(zh-CN) h1 em, :lang(zh-CN) h2 em {
+ font-family: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-style: normal; font-weight: 600;
+ font-size: .94em; letter-spacing: -.02em; line-height: 1.22;
}
+
@media (max-width: 62rem) {
- .wrap { width: calc(100% - 4rem); }
- .hero { gap: 2rem; }
- h1 { font-size: clamp(3rem, 5.8vw, 4rem); }
- .inside-grid, .faq-grid { gap: 2.5rem; }
-}
-@media (max-width: 52rem) {
- .wrap { width: min(38rem, calc(100% - 2.5rem)); }
- .nav { min-height: 3.95rem; }
- .brand img { width: 3.1rem; }
- .navlinks { gap: .95rem; font-size: .85rem; }
- .navlinks .language { padding-left: .85rem; }
- .hero, .inside-grid, .faq-grid { grid-template-columns: 1fr; }
- .hero { padding-block: 2.6rem 3rem; gap: 2rem; }
- h1 { font-size: clamp(3rem, 9.5vw, 4.5rem); margin: .95rem 0 1rem; }
- .install-command { padding-left: .7rem; }
- .console { padding: 1rem 1rem .92rem; }
- .screen { min-height: 11.8rem; padding: 1.15rem; }
- .trace pre { font-size: clamp(.79rem, 2.8vw, .91rem); }
- .inside-grid, .faq-grid { padding-block: 2.9rem; gap: 1.65rem; }
- .footer-row { align-items: flex-start; gap: .85rem; }
-}
-@media (max-width: 23rem) {
- .wrap { width: calc(100% - 1.8rem); }
- .navlinks { gap: .7rem; }
- .navlinks .language { padding-left: .55rem; }
- .console { padding-inline: .7rem; }
- .screen { padding: .85rem; }
+ .wrap { width: calc(100% - 3.5rem); }
+ .split, .faq-grid { grid-template-columns: 1fr; }
+ .release { display: none; }
+}
+@media (max-width: 760px) {
+ :root { --header: 3.9rem; }
+ .wrap { width: calc(100% - 2.5rem); }
+ .navlinks { gap: 1rem; font-size: .86rem; }
+ .navlinks .language { padding-left: .9rem; }
+ .navlinks .hide-sm { display: none; }
+ .hero { padding-bottom: 3.5rem; }
+ .chip.optional { display: none; }
+ .chip .tile { width: 2.5rem; height: 2.5rem; border-radius: .75rem; }
+ .chip svg { width: 1.25rem; height: 1.25rem; }
+ .chip b { display: none; }
+ .chip.landed .inner { opacity: .3; filter: blur(.4px); transition: opacity 1.2s ease, filter 1.2s ease; }
+ .map-row { grid-template-columns: 1fr; gap: .25rem; padding: .85rem 1rem; }
+ .map-row .arrow { display: none; }
+ .map-row .from::after { content: " →"; color: var(--faint); }
+ .map-head { display: none; }
+ .console-bar { flex-wrap: wrap; }
+ .lights { display: none; }
+ .console-keys { margin-left: 0; }
+}
+@media (prefers-reduced-motion: reduce) {
+ html { scroll-behavior: auto; }
+ .cursor, .chip.landed .inner { animation: none; }
+ .trace { animation: none !important; }
}
@media (forced-colors: active) {
- .copy, .faq-item summary::after { color: ButtonText; }
- .console-keys label { border: 1px solid ButtonText; }
- #flow-create:checked ~ .console-keys [for="flow-create"],
- #flow-serve:checked ~ .console-keys [for="flow-serve"],
- #flow-build:checked ~ .console-keys [for="flow-build"] { outline: 2px solid Highlight; }
+ .copy, .faq-item summary::after { color: ButtonText; border-color: ButtonText; }
+ h1 em, h2 em { color: CanvasText; background: none; }
+ #flow-create:checked ~ .console-bar [for="flow-create"],
+ #flow-serve:checked ~ .console-bar [for="flow-serve"],
+ #flow-build:checked ~ .console-bar [for="flow-build"] { outline: 2px solid Highlight; }
}
diff --git a/site/zh/guide/index.html b/site/zh/guide/index.html
index 396f807..84b3c58 100644
--- a/site/zh/guide/index.html
+++ b/site/zh/guide/index.html
@@ -1,7 +1,7 @@
-
+
跑起你的第一个 Spring Boot 应用 · jpm
@@ -9,18 +9,15 @@
-
+
跳到正文
diff --git a/site/zh/index.html b/site/zh/index.html
index 9cbda96..7433287 100644
--- a/site/zh/index.html
+++ b/site/zh/index.html
@@ -3,7 +3,8 @@