Skip to content

Commit 5f31db9

Browse files
committed
feat: add hero screenshot
1 parent de2745b commit 5f31db9

7 files changed

Lines changed: 2972 additions & 5533 deletions

File tree

AGENTS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- intent-skills:start -->
2+
## Skill Loading
3+
4+
Before substantial work:
5+
- Skill check: run `pnpm dlx @tanstack/intent@latest list`, or use skills already listed in context.
6+
- Skill guidance: if one local skill clearly matches the task, run `pnpm dlx @tanstack/intent@latest load <package>#<skill>` and follow the returned `SKILL.md`.
7+
- Monorepos: when working across packages, run the skill check from the workspace root and prefer the local skill for the package being changed.
8+
- Multiple matches: prefer the most specific local skill for the package or concern you are changing; load additional skills only when the task spans multiple packages or concerns.
9+
<!-- intent-skills:end -->

TODO.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Devtool:
1212

1313
Doc:
1414

15+
1. MIGRATE TO DOCUSAURUS
1516
1. Fix npm install/doc links
1617
1. Add performance compare doc
1718
1. DONE Remove wa-sqlite from hyperdb-lib. Move wa-sqlite support to recipe
@@ -33,3 +34,6 @@ Doc:
3334
1. adopt styling of trpc
3435
1. move devtool to separate package
3536
1. how to isolate devtool styling?
37+
38+
Others:
39+
1. intent skills css tanstack support

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@
2727
"devDependencies": {
2828
"@changesets/cli": "^2.31.0",
2929
"prettier": "^3.8.4"
30+
},
31+
"dependencies": {
32+
"@tanstack/ai": "^0.32.0",
33+
"@tanstack/ai-openai": "^0.15.2"
3034
}
3135
}
740 KB
Loading

packages/hyperdb-doc/src/content/docs/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ hero:
2020

2121
import { Card, CardGrid, LinkCard } from "@astrojs/starlight/components";
2222

23+
<div class="hero-screenshot not-content">
24+
![HyperDB schema, selector, and action code running unchanged in the browser and on the server](../../assets/hero-code.png)
25+
</div>
26+
2327
## Why HyperDB
2428

2529
HyperDB brings the developer experience of a backend like

packages/hyperdb-doc/src/styles/theme.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,49 @@
119119
color: currentColor;
120120
}
121121

122+
/* Center the hero copy & actions (tRPC-style).
123+
Starlight reserves a 7fr/4fr two-column grid for a hero image; with no
124+
image we collapse it to a single centered column. `div.hero` outranks
125+
Starlight's `:where()`-scoped rule without needing !important. */
126+
div.hero {
127+
grid-template-columns: 100%;
128+
justify-items: center;
129+
padding-bottom: 4rem;
130+
padding-top: 1rem;
131+
}
132+
133+
.hero > .stack {
134+
align-items: center;
135+
text-align: center;
136+
}
137+
138+
.hero .copy {
139+
align-items: center;
140+
}
141+
142+
.hero .tagline {
143+
margin-inline: auto;
144+
}
145+
146+
.hero .actions {
147+
justify-content: center;
148+
}
149+
150+
/* Code screenshot under the hero (tRPC-style) */
151+
.hero-screenshot {
152+
margin: 0 auto 3rem;
153+
max-width: 1100px;
154+
text-align: center;
155+
}
156+
157+
.hero-screenshot img {
158+
width: 100%;
159+
height: auto;
160+
border-radius: 14px;
161+
border: 1px solid var(--sl-color-hairline-shade);
162+
box-shadow: 0 24px 70px -30px rgba(109, 94, 252, 0.45);
163+
}
164+
122165
/* ===========================================================================
123166
Cards (feature grid on the splash page)
124167
========================================================================= */

0 commit comments

Comments
 (0)