Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions examples/create-b3-cf-app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"chip": "Open Source",
"eyebrow": "Bun · Hono · Cloudflare · React",
"headline": "One command.",
"sub": "A full-stack Cloudflare Workers monorepo, scaffolded.",
"body": "One command scaffolds a Hono API and a React SPA on a single Worker: Drizzle + D1, Better Auth, typed RPC, Tailwind v4, Turborepo, Biome, and CI. Type-safe from the database row to the button.",
"features": [
{ "title": "Single Worker", "description": "API + SPA, one deploy", "icon": "stack" },
{ "title": "Typed end to end", "description": "Drizzle to RPC to React", "icon": "code" },
{ "title": "Auth built in", "description": "Better Auth + D1 sessions", "icon": "lock" },
{ "title": "CI + deploy ready", "description": "Turborepo, Biome, Actions", "icon": "bolt" }
],
"diagram": {
"kind": "filetree",
"root": "my-app/",
"files": [
{ "name": "apps/api", "highlight": true },
{ "name": "apps/web", "highlight": true },
{ "name": "packages/core" },
{ "name": "packages/ui" },
{ "name": "wrangler.jsonc" },
{ "name": "turbo.json" }
],
"callout": "One command"
},
"cta": {
"title": "npx create-b3-cf-app",
"url": "github.com/BitByBit-B3/b3-cf-stack"
}
}
2 changes: 1 addition & 1 deletion packages/core/src/templates/hero-card/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function HeroCardOg({ data }: HeroCardOgProps) {
}}
>
{Eyebrow({ text: data.eyebrow })}
{Headline({ text: data.headline })}
{Headline({ text: data.headline, compact: true })}
{Sub({ text: data.sub })}
<div style={{ height: 4, display: "flex" }} />
{FeatureRow({ items: data.features })}
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshot/__hashes__.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"announcement-og": "c7dc450151cfc9e12c8397d76f9de3ba124a95833c01c1c5920abf334af5ce14",
"announcement-vertical": "5e9d1a1ed4673355f3b5033b7e788c190d5c86450f7e4d33d2c2d6e904472281",
"hero-card-square": "e8acde3162db6496a8bfd6332a57173d1d347689ba28dc6de8e9128c1b108e74",
"hero-card-og": "e5863b4ac1fe62554c162cd70058fad47ec8f91f717b7150d006fa34d14e6fda",
"hero-card-og": "a47b06442b8442aacb1e9a6540397dd1ee4b2e2755f12802eba0d8d59b2bfab7",
"hero-card-vertical": "65725ecb2e375a3933495917314d312ffa4812a02d64188fff3ac7797bba3849",
"quote-square": "c2c9dcc2e5f05d73e146466acc2f5ea00fe8cc2b869091021f69ebcfca5c7749",
"quote-og": "e1ec6150af60eb1adf3c651207320aeb84fe8c0c93978bb3cbe96e57a4c3b148",
Expand Down
Binary file modified tests/snapshot/__rendered__/hero-card-og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading