diff --git a/app/globals.css b/app/globals.css
index 38f33e1..a6e8026 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -130,7 +130,6 @@ pre,
[data-tone="bench"] { --tone: #f5e4d8; }
[data-tone="integrations"] { --tone: #f2e9da; }
[data-tone="hanko"] { --tone: #f6e6dc; }
-[data-tone="learn"] { --tone: #ede2cf; }
/* dark: the clips play in the darkest room, the numbers glow a little red */
.dark[data-tone="contract"] { --tone: #1e1815; }
.dark[data-tone="playground"] { --tone: #161210; }
@@ -138,7 +137,6 @@ pre,
.dark[data-tone="bench"] { --tone: #24150f; }
.dark[data-tone="integrations"] { --tone: #1b1715; }
.dark[data-tone="hanko"] { --tone: #21130f; }
-.dark[data-tone="learn"] { --tone: #14100e; }
/* Lenis scrolls the page itself; the browser's own smoothing would fight it */
html.lenis {
@@ -169,3 +167,7 @@ html.lenis {
}
}
+
+/* A grid item may shrink below its content (a code window, a long package name), so no page
+ scrolls sideways on a phone; what is too wide scrolls inside its own box. */
+.grid > * { min-width: 0; }
diff --git a/app/page.tsx b/app/page.tsx
index 095b541..c499a0b 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -8,7 +8,7 @@ import { Hero } from "@/components/landing/hero";
import { Contract } from "@/components/landing/contract";
import { Playground } from "@/components/landing/playground";
import { Clips } from "@/components/landing/clips";
-import { Bench, Integrations, Learn } from "@/components/landing/sections";
+import { Bench, Integrations, Start } from "@/components/landing/sections";
import { Hanko } from "@/components/landing/hanko";
import { pageMeta } from "@/lib/site";
import { app } from "@/server/app";
@@ -53,7 +53,7 @@ export default function Home() {
印 hanko
diff --git a/components/landing/hero.tsx b/components/landing/hero.tsx index 5af8b87..f79f395 100644 --- a/components/landing/hero.tsx +++ b/components/landing/hero.tsx @@ -98,7 +98,7 @@ export function Hero() { return (- or start from a working project: npx @vxnsin/inkan examples + a project with a store, auth and tests · into one you have:{" "} + npm i @vxnsin/inkan
印 how fast
-
Requests per second, with plain 印 inkan learn
- A tutorial that watches your file as you save it. Each quest says what to build, checks it against a real app and
- tells you what is missing. Offline, no account.
- 印 start
+ Pick a store, logins and a frontend. You get a project that passes
+
+ what it asks
+
+ ·
+
+ when to pick something else
+
+ ·
+
+ the code
+
+ node:http as 100. Every server runs at once
and the measurements take turns, so a slow moment of the machine hits everyone alike.
@@ -110,6 +110,16 @@ const add = useMutation(q.post("/teas"));`,
const server = await serve(app, { port: 3000 });
// HTTPS, a gentle close, SIGTERM: all there`,
},
+ {
+ key: "bun",
+ name: "@inkanjs/bun",
+ line: "On Bun.serve, WebSocket routes included, through app.upgrade.",
+ file: "server.ts",
+ code: `import { serve } from "@inkanjs/bun";
+
+const server = await serve(app, { port: 3000 });
+// bun run server.ts: HTTP and app.ws routes on Bun's own sockets`,
+ },
];
export function Integrations() {
@@ -159,57 +169,34 @@ export function Integrations() {
);
}
-/* ---------- learn ---------- */
-
-const QUEST = [
- { text: " 印 inkan learn · quest 3 of 12 · rules for a body", cls: "font-bold text-term-ink" },
- { text: "", cls: "" },
- { text: " A body schema is checked before your handler", cls: "text-[#8a7d72]" },
- { text: " runs. A body that breaks it never reaches you.", cls: "text-[#8a7d72]" },
- { text: "", cls: "" },
- { text: " Add POST /teas: name at least 1 character,", cls: "text-term-ink" },
- { text: " grams a whole number of at least 1.", cls: "text-term-ink" },
- { text: "", cls: "" },
- { text: " ✗ POST /teas with { grams: -5 } answered 201:", cls: "text-hot" },
- { text: " it got in. Give grams a .min(1)", cls: "text-term-ink" },
- { text: " ✓ quest 3 done! rules for a body", cls: "font-bold text-ok" },
-];
+/* ---------- start ---------- */
-export function Learn() {
- const ref = useRefTwelve quests, in your terminal.
-
- $ npx @vxnsin/inkan learn
-
-
- {QUEST.map((l, i) => (
-
- One command to a checked API.
+ inkan check{" "}
+ and its own tests, with CI, before you write a line.
+
+ $ npm create inkan@latest my-api
+
+ ] [--auth] [--frontend