create-frootkit 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
  3. package/templates/auth/src/app/dashboard/layout.tsx +9 -9
  4. package/templates/auth/src/app/dashboard/page.tsx +20 -20
  5. package/templates/auth/src/app/layout.tsx +7 -1
  6. package/templates/auth/src/app/login/page.tsx +2 -2
  7. package/templates/auth/src/app/page.tsx +78 -37
  8. package/templates/auth/src/app/signup/page.tsx +2 -2
  9. package/templates/auth/src/components/AuthForm.tsx +28 -17
  10. package/templates/auth/src/components/DashboardNav.tsx +66 -33
  11. package/templates/auth/src/components/MetricCard.tsx +9 -7
  12. package/templates/auth/src/components/Navbar.tsx +11 -8
  13. package/templates/auth/src/styles.css +29 -11
  14. package/templates/blog/src/app/blog/[slug]/page.tsx +11 -11
  15. package/templates/blog/src/app/layout.tsx +7 -1
  16. package/templates/blog/src/app/page.tsx +26 -12
  17. package/templates/blog/src/components/Footer.tsx +5 -5
  18. package/templates/blog/src/components/Navbar.tsx +8 -6
  19. package/templates/blog/src/components/Newsletter.tsx +16 -10
  20. package/templates/blog/src/components/PostCard.tsx +61 -14
  21. package/templates/blog/src/styles.css +29 -11
  22. package/templates/ecommerce/src/app/cart/page.tsx +2 -2
  23. package/templates/ecommerce/src/app/layout.tsx +7 -1
  24. package/templates/ecommerce/src/app/page.tsx +20 -29
  25. package/templates/ecommerce/src/app/products/[id]/page.tsx +21 -20
  26. package/templates/ecommerce/src/components/CartDrawer.tsx +13 -13
  27. package/templates/ecommerce/src/components/Footer.tsx +5 -5
  28. package/templates/ecommerce/src/components/Navbar.tsx +13 -8
  29. package/templates/ecommerce/src/components/ProductCard.tsx +14 -13
  30. package/templates/ecommerce/src/styles.css +29 -11
  31. package/templates/empty/src/app/layout.tsx +6 -0
  32. package/templates/empty/src/app/page.tsx +9 -9
  33. package/templates/empty/src/styles.css +29 -11
  34. package/templates/starter/src/app/layout.tsx +7 -1
  35. package/templates/starter/src/app/page.tsx +77 -76
  36. package/templates/starter/src/components/FeatureCard.tsx +10 -6
  37. package/templates/starter/src/components/Footer.tsx +5 -5
  38. package/templates/starter/src/components/Header.tsx +6 -6
  39. package/templates/starter/src/components/TerminalPreview.tsx +28 -28
  40. package/templates/starter/src/styles.css +29 -11
@@ -11,23 +11,23 @@ export function CartDrawer() {
11
11
  const total = subtotal + shipping;
12
12
 
13
13
  return (
14
- <div class="rounded-2xl border border-slate-800 bg-slate-900/60 p-6 backdrop-blur-md">
15
- <h2 class="text-lg font-bold text-white mb-4 flex items-center justify-between">
14
+ <div class="rounded-xl border border-[#1a2333] bg-[#0a0f18] p-6 sm:p-8">
15
+ <h2 class="text-lg font-bold text-white mb-6 flex items-center justify-between border-b border-[#1a2333] pb-4">
16
16
  <span>Order Summary</span>
17
17
  <span class="text-xs font-mono text-emerald-400 font-semibold">{cartItems.length} items</span>
18
18
  </h2>
19
19
 
20
20
  <div class="space-y-4 mb-6">
21
21
  {cartItems.map(({ product, quantity }) => (
22
- <div key={product.id} class="flex items-center gap-3 pb-3 border-b border-slate-800/60">
22
+ <div key={product.id} class="flex items-center gap-4 pb-4 border-b border-[#1a2333]">
23
23
  <img
24
24
  src={product.image}
25
25
  alt={product.name}
26
- class="w-12 h-12 rounded-lg object-cover bg-slate-950"
26
+ class="w-14 h-14 rounded-lg object-cover bg-[#06090f] border border-[#1a2333]"
27
27
  />
28
28
  <div class="flex-1 min-w-0">
29
- <h4 class="text-xs font-semibold text-white truncate">{product.name}</h4>
30
- <div class="text-[11px] text-slate-400">Qty: {quantity} &times; ${product.price}</div>
29
+ <h4 class="text-sm font-semibold text-white truncate">{product.name}</h4>
30
+ <div class="text-xs text-slate-400 font-mono mt-0.5">Qty: {quantity} &times; ${product.price.toFixed(2)}</div>
31
31
  </div>
32
32
  <div class="font-bold text-sm text-white font-mono">
33
33
  ${(product.price * quantity).toFixed(2)}
@@ -36,27 +36,27 @@ export function CartDrawer() {
36
36
  ))}
37
37
  </div>
38
38
 
39
- <div class="space-y-2 text-xs text-slate-400 mb-6 font-mono">
39
+ <div class="space-y-2.5 text-xs text-slate-300 mb-6 font-mono">
40
40
  <div class="flex justify-between">
41
- <span>Subtotal</span>
41
+ <span class="text-slate-400">Subtotal</span>
42
42
  <span class="text-white font-bold">${subtotal.toFixed(2)}</span>
43
43
  </div>
44
44
  <div class="flex justify-between">
45
- <span>Estimated Shipping</span>
45
+ <span class="text-slate-400">Standard Shipping</span>
46
46
  <span class="text-emerald-400 font-semibold">{shipping === 0 ? 'FREE' : `$${shipping.toFixed(2)}`}</span>
47
47
  </div>
48
- <div class="pt-3 border-t border-slate-800 flex justify-between text-sm text-white font-bold">
48
+ <div class="pt-3 border-t border-[#1a2333] flex justify-between text-sm text-white font-bold">
49
49
  <span>Total</span>
50
- <span class="text-emerald-400 text-base font-black">${total.toFixed(2)}</span>
50
+ <span class="text-emerald-400 text-base font-mono font-black">${total.toFixed(2)}</span>
51
51
  </div>
52
52
  </div>
53
53
 
54
54
  <form action="/api/checkout" method="POST">
55
55
  <button
56
56
  type="submit"
57
- class="w-full py-3 rounded-xl bg-emerald-500 text-slate-950 font-bold text-sm hover:bg-emerald-400 transition-colors shadow-lg shadow-emerald-500/20"
57
+ class="w-full py-3 rounded-lg bg-emerald-500 text-slate-950 font-semibold text-sm hover:bg-emerald-400 transition-colors"
58
58
  >
59
- Proceed to Checkout &rarr;
59
+ Proceed to Checkout →
60
60
  </button>
61
61
  </form>
62
62
  </div>
@@ -1,14 +1,14 @@
1
1
  export function Footer() {
2
2
  return (
3
- <footer class="border-t border-slate-900 bg-slate-950/60 py-8 text-center text-xs text-slate-500">
4
- <div class="max-w-6xl mx-auto px-6 flex flex-col sm:flex-row items-center justify-between gap-4">
3
+ <footer class="border-t border-[#1a2333] bg-[#06090f] py-8 text-xs text-slate-400">
4
+ <div class="max-w-6xl mx-auto px-6 flex flex-col sm:flex-row items-center justify-between gap-4 font-mono">
5
5
  <div>
6
6
  FrootStore &copy; {new Date().getFullYear()} OrbitNorth LLC. MIT Licensed.
7
7
  </div>
8
8
  <div class="flex items-center gap-6">
9
- <a href="https://github.com/orbitnorth/frootkit" class="hover:text-slate-400 transition-colors">GitHub</a>
10
- <a href="https://frootjs.org" class="hover:text-slate-400 transition-colors">Documentation</a>
11
- <a href="/api/products" class="hover:text-slate-400 transition-colors">Products API</a>
9
+ <a href="https://github.com/orbitnorth/frootkit" class="hover:text-white transition-colors">GitHub</a>
10
+ <a href="https://frootjs.org" class="hover:text-white transition-colors">Documentation</a>
11
+ <a href="/api/products" class="hover:text-white transition-colors">Products API</a>
12
12
  </div>
13
13
  </div>
14
14
  </footer>
@@ -1,11 +1,13 @@
1
1
  export function Navbar() {
2
2
  return (
3
- <header class="border-b border-slate-800/80 bg-slate-950/70 backdrop-blur-md sticky top-0 z-50">
3
+ <header class="border-b border-[#1a2333] bg-[#06090f]/95 sticky top-0 z-50">
4
4
  <div class="max-w-6xl mx-auto px-6 h-16 flex items-center justify-between">
5
- <a href="/" class="flex items-center gap-3 font-extrabold text-white text-lg tracking-tight hover:opacity-90">
6
- <span class="w-8 h-8 rounded-xl bg-gradient-to-tr from-emerald-500 to-teal-400 flex items-center justify-center text-slate-950 font-black text-sm">
7
- 🛒
8
- </span>
5
+ <a href="/" class="flex items-center gap-3 font-bold text-white text-base tracking-tight hover:text-emerald-400 transition-colors">
6
+ <div class="w-8 h-8 rounded-lg bg-emerald-500/10 border border-emerald-500/30 flex items-center justify-center text-emerald-400">
7
+ <svg width="16" height="16" class="w-4 h-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
8
+ <path stroke-linecap="round" stroke-linejoin="round" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z" />
9
+ </svg>
10
+ </div>
9
11
  <span>Froot<span class="text-emerald-400">Store</span></span>
10
12
  </a>
11
13
 
@@ -13,15 +15,18 @@ export function Navbar() {
13
15
  <a href="/" class="text-slate-300 hover:text-white transition-colors">
14
16
  Catalog
15
17
  </a>
16
- <a href="/api/products" class="text-slate-400 hover:text-emerald-400 font-mono text-xs px-2 py-1 rounded bg-slate-900 border border-slate-800 transition-colors">
18
+ <a href="/api/products" class="text-emerald-400 hover:text-emerald-300 font-mono text-xs px-2.5 py-1 rounded-md bg-[#0a0f18] border border-[#1a2333] transition-colors">
17
19
  /api/products
18
20
  </a>
19
21
  <a
20
22
  href="/cart"
21
- class="flex items-center gap-2 px-3.5 py-1.5 rounded-xl bg-slate-900 border border-slate-800 text-slate-200 hover:border-emerald-500/50 hover:text-emerald-400 transition-all font-semibold text-xs"
23
+ class="flex items-center gap-2 px-3.5 py-1.5 rounded-lg bg-[#0a0f18] border border-[#1a2333] text-slate-200 hover:border-slate-700 hover:text-white transition-colors text-xs font-semibold"
22
24
  >
25
+ <svg width="14" height="14" class="w-3.5 h-3.5 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
26
+ <path stroke-linecap="round" stroke-linejoin="round" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z" />
27
+ </svg>
23
28
  <span>Cart</span>
24
- <span class="w-5 h-5 rounded-full bg-emerald-500 text-slate-950 flex items-center justify-center font-bold text-[10px]">
29
+ <span class="px-1.5 py-0.2 rounded bg-emerald-500 text-slate-950 font-bold text-[10px]">
25
30
  2
26
31
  </span>
27
32
  </a>
@@ -2,27 +2,28 @@ import type { Product } from '../data/products.js';
2
2
 
3
3
  export function ProductCard({ product }: { product: Product }) {
4
4
  return (
5
- <div class="rounded-2xl border border-slate-800/80 bg-slate-900/30 overflow-hidden backdrop-blur-sm hover:border-emerald-500/40 transition-all hover:-translate-y-1 group flex flex-col justify-between">
6
- <a href={`/products/${product.id}`} class="block relative aspect-[4/3] overflow-hidden bg-slate-950">
5
+ <div class="rounded-xl border border-[#1a2333] bg-[#0a0f18] overflow-hidden hover:border-slate-700 transition-colors flex flex-col justify-between">
6
+ <a href={`/products/${product.id}`} class="block relative aspect-[4/3] overflow-hidden bg-[#06090f]">
7
7
  <img
8
8
  src={product.image}
9
9
  alt={product.name}
10
- class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"
10
+ class="w-full h-full object-cover transition-transform duration-200"
11
11
  loading="lazy"
12
12
  />
13
- <span class="absolute top-3 right-3 px-2 py-0.5 rounded-full bg-slate-950/80 backdrop-blur-md text-[11px] font-mono text-slate-300 border border-slate-700/60">
13
+ <span class="absolute top-3 right-3 px-2 py-0.5 rounded bg-[#06090f]/90 text-[11px] font-mono text-slate-300 border border-[#1a2333]">
14
14
  {product.category}
15
15
  </span>
16
16
  </a>
17
17
 
18
18
  <div class="p-5 flex-1 flex flex-col justify-between">
19
19
  <div>
20
- <div class="flex items-center gap-1.5 mb-2 text-xs">
21
- <span class="text-amber-400 font-bold">&#9733; {product.rating}</span>
22
- <span class="text-slate-500">({product.reviewsCount})</span>
20
+ <div class="flex items-center gap-1.5 mb-2 text-xs font-mono text-slate-400">
21
+ <span class="text-emerald-400 font-bold">{product.rating.toFixed(1)}</span>
22
+ <span>/ 5.0</span>
23
+ <span class="text-slate-500">({product.reviewsCount} reviews)</span>
23
24
  </div>
24
25
 
25
- <h3 class="font-bold text-white text-base mb-2 group-hover:text-emerald-400 transition-colors line-clamp-1">
26
+ <h3 class="font-bold text-white text-base mb-2 hover:text-emerald-400 transition-colors line-clamp-1">
26
27
  <a href={`/products/${product.id}`}>
27
28
  {product.name}
28
29
  </a>
@@ -33,17 +34,17 @@ export function ProductCard({ product }: { product: Product }) {
33
34
  </p>
34
35
  </div>
35
36
 
36
- <div class="pt-4 border-t border-slate-800/60 flex items-center justify-between">
37
+ <div class="pt-4 border-t border-[#1a2333] flex items-center justify-between">
37
38
  <div>
38
- <span class="text-xs text-slate-500 block">Price</span>
39
- <span class="text-lg font-black text-white">${product.price.toFixed(2)}</span>
39
+ <span class="text-[11px] font-mono text-slate-500 block">Price</span>
40
+ <span class="text-lg font-bold text-white font-mono">${product.price.toFixed(2)}</span>
40
41
  </div>
41
42
 
42
43
  <a
43
44
  href={`/products/${product.id}`}
44
- class="px-3.5 py-2 rounded-xl bg-emerald-500 text-slate-950 font-bold text-xs hover:bg-emerald-400 transition-colors shadow-md shadow-emerald-500/10"
45
+ class="px-3.5 py-1.5 rounded-lg bg-emerald-500 text-slate-950 font-semibold text-xs hover:bg-emerald-400 transition-colors"
45
46
  >
46
- View Details
47
+ Details
47
48
  </a>
48
49
  </div>
49
50
  </div>
@@ -1,19 +1,37 @@
1
1
  @import "tailwindcss";
2
2
 
3
3
  @theme {
4
- --color-brand-50: #ecfdf5;
5
- --color-brand-100: #d1fae5;
6
- --color-brand-200: #a7f3d0;
7
- --color-brand-300: #6ee7b7;
8
- --color-brand-400: #34d399;
9
- --color-brand-500: #10b981;
10
- --color-brand-600: #059669;
11
- --color-brand-700: #047857;
12
- --color-brand-800: #065f46;
13
- --color-brand-900: #064e3b;
14
- --color-brand-950: #022c22;
4
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
5
+ --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
6
+
7
+ --color-brand-primary: #10b981;
8
+ --color-brand-hover: #34d399;
15
9
  }
16
10
 
17
11
  :root {
18
12
  color-scheme: dark;
19
13
  }
14
+
15
+ html {
16
+ background-color: #06090f;
17
+ color: #f8fafc;
18
+ font-family: var(--font-sans);
19
+ scroll-behavior: smooth;
20
+ -webkit-font-smoothing: antialiased;
21
+ }
22
+
23
+ /* SVG safety: prevents flex ballooning across all browsers */
24
+ svg {
25
+ flex-shrink: 0;
26
+ max-width: 100%;
27
+ }
28
+
29
+ /* Accessibility: Mandatory Reduced Motion */
30
+ @media (prefers-reduced-motion: reduce) {
31
+ *, *::before, *::after {
32
+ animation-duration: 0.01ms !important;
33
+ animation-iteration-count: 1 !important;
34
+ transition-duration: 0.01ms !important;
35
+ scroll-behavior: auto !important;
36
+ }
37
+ }
@@ -19,6 +19,12 @@ export default function RootLayout({ children, metadata }: RootLayoutProps) {
19
19
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
20
20
  <title>{title}</title>
21
21
  <meta name="description" content={description} />
22
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
23
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
24
+ <link
25
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap"
26
+ rel="stylesheet"
27
+ />
22
28
  <link rel="stylesheet" href="/styles.css" />
23
29
  </head>
24
30
  <body class="bg-slate-950 text-slate-100 min-h-screen antialiased">
@@ -5,29 +5,29 @@ export const metadata = {
5
5
 
6
6
  export default function HomePage() {
7
7
  return (
8
- <main class="min-h-screen flex items-center justify-center p-6">
9
- <div class="max-w-md w-full text-center border border-slate-800 bg-slate-900/40 rounded-2xl p-8 backdrop-blur-sm">
10
- <div class="w-12 h-12 rounded-xl bg-emerald-500/10 border border-emerald-500/30 flex items-center justify-center mx-auto mb-4 text-emerald-400 font-bold text-xl">
8
+ <main class="min-h-screen bg-[#06090f] text-slate-100 flex items-center justify-center p-6">
9
+ <div class="max-w-md w-full text-center border border-[#1a2333] bg-[#0a0f18] rounded-xl p-8">
10
+ <div class="w-10 h-10 rounded-lg bg-emerald-500/10 border border-emerald-500/30 flex items-center justify-center mx-auto mb-4 text-emerald-400 font-bold text-lg font-mono">
11
11
  F
12
12
  </div>
13
- <h1 class="text-2xl font-bold text-white mb-2">Blank Slate</h1>
14
- <p class="text-slate-400 text-sm mb-6">
15
- Edit <code class="font-mono text-emerald-400 bg-slate-800/80 px-1.5 py-0.5 rounded">src/app/page.tsx</code> to get started.
13
+ <h1 class="text-2xl font-bold text-white mb-2">Blank Canvas</h1>
14
+ <p class="text-slate-400 text-sm mb-6 leading-relaxed">
15
+ Start building by editing <code class="font-mono text-emerald-400 bg-[#06090f] border border-[#1a2333] px-1.5 py-0.5 rounded">src/app/page.tsx</code>.
16
16
  </p>
17
17
  <div class="flex justify-center gap-3 text-xs font-medium">
18
18
  <a
19
19
  href="https://frootjs.org"
20
20
  target="_blank"
21
21
  rel="noreferrer"
22
- class="px-4 py-2 rounded-lg bg-emerald-500 text-slate-950 font-bold hover:bg-emerald-400 transition-colors"
22
+ class="px-4 py-2 rounded-lg bg-emerald-500 text-slate-950 font-semibold hover:bg-emerald-400 transition-colors"
23
23
  >
24
- Docs
24
+ Documentation
25
25
  </a>
26
26
  <a
27
27
  href="https://github.com/orbitnorth/frootkit"
28
28
  target="_blank"
29
29
  rel="noreferrer"
30
- class="px-4 py-2 rounded-lg bg-slate-800 text-slate-200 hover:bg-slate-700 transition-colors"
30
+ class="px-4 py-2 rounded-lg bg-[#06090f] border border-[#1a2333] text-slate-300 hover:text-white transition-colors"
31
31
  >
32
32
  GitHub
33
33
  </a>
@@ -1,19 +1,37 @@
1
1
  @import "tailwindcss";
2
2
 
3
3
  @theme {
4
- --color-brand-50: #ecfdf5;
5
- --color-brand-100: #d1fae5;
6
- --color-brand-200: #a7f3d0;
7
- --color-brand-300: #6ee7b7;
8
- --color-brand-400: #34d399;
9
- --color-brand-500: #10b981;
10
- --color-brand-600: #059669;
11
- --color-brand-700: #047857;
12
- --color-brand-800: #065f46;
13
- --color-brand-900: #064e3b;
14
- --color-brand-950: #022c22;
4
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
5
+ --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
6
+
7
+ --color-brand-primary: #10b981;
8
+ --color-brand-hover: #34d399;
15
9
  }
16
10
 
17
11
  :root {
18
12
  color-scheme: dark;
19
13
  }
14
+
15
+ html {
16
+ background-color: #06090f;
17
+ color: #f8fafc;
18
+ font-family: var(--font-sans);
19
+ scroll-behavior: smooth;
20
+ -webkit-font-smoothing: antialiased;
21
+ }
22
+
23
+ /* SVG safety: prevents flex ballooning across all browsers */
24
+ svg {
25
+ flex-shrink: 0;
26
+ max-width: 100%;
27
+ }
28
+
29
+ /* Accessibility: Mandatory Reduced Motion */
30
+ @media (prefers-reduced-motion: reduce) {
31
+ *, *::before, *::after {
32
+ animation-duration: 0.01ms !important;
33
+ animation-iteration-count: 1 !important;
34
+ transition-duration: 0.01ms !important;
35
+ scroll-behavior: auto !important;
36
+ }
37
+ }
@@ -21,9 +21,15 @@ export default function RootLayout({ children, metadata }: RootLayoutProps) {
21
21
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
22
22
  <title>{title}</title>
23
23
  <meta name="description" content={description} />
24
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
25
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
26
+ <link
27
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap"
28
+ rel="stylesheet"
29
+ />
24
30
  <link rel="stylesheet" href="/styles.css" />
25
31
  </head>
26
- <body class="bg-[#030712] text-slate-100 min-h-screen antialiased selection:bg-emerald-500/20 selection:text-emerald-300">
32
+ <body class="bg-[#030712] text-slate-100 min-h-screen antialiased selection:bg-emerald-500/20 selection:text-emerald-300 font-sans">
27
33
  {children}
28
34
  </body>
29
35
  </html>
@@ -4,95 +4,46 @@ import { TerminalPreview } from '../components/TerminalPreview.js';
4
4
  import { Footer } from '../components/Footer.js';
5
5
 
6
6
  export const metadata = {
7
- title: 'FrootKit — Next.js Alternative for Preact & Froot',
8
- description: 'Ultra-fast Preact SSR, nested layouts, native Tailwind CSS v4, and dynamic API routes.',
7
+ title: 'FrootKit — Next.js Alternative for Preact',
8
+ description: 'Sub-millisecond Preact SSR, nested file-based layouts, native Tailwind CSS v4, and dynamic API routes.',
9
9
  };
10
10
 
11
11
  export default function HomePage() {
12
- const features = [
13
- {
14
- icon: '⚡',
15
- badge: '0.1ms render',
16
- title: 'Sub-Millisecond SSR',
17
- description: 'Preact VNode streaming and monomorphic rendering ensure blistering speed with near-zero memory footprint.',
18
- },
19
- {
20
- icon: '🎨',
21
- badge: 'Tailwind v4',
22
- title: 'Native CSS Pipeline',
23
- description: 'Zero postcss.config.js or tailwind.config.js required. Tailwind CSS v4 is compiled instantly on every change.',
24
- },
25
- {
26
- icon: '📁',
27
- badge: 'App Router',
28
- title: 'Nested Layouts',
29
- description: 'Intuitive file-based routing with layout.tsx, page.tsx, and loading.tsx mirroring modern Next.js conventions.',
30
- },
31
- {
32
- icon: '🔌',
33
- badge: 'Fullstack API',
34
- title: 'Route Handlers',
35
- description: 'Build backend logic seamlessly in src/app/api/**/route.ts handling GET, POST, PUT, DELETE with standard Web APIs.',
36
- },
37
- {
38
- icon: '📦',
39
- badge: 'Static Export',
40
- title: 'SSG & Edge Ready',
41
- description: 'Run frootkit build to pre-render static HTML and bundle dynamic endpoints for serverless and edge clouds.',
42
- },
43
- {
44
- icon: '🤖',
45
- badge: 'Agent Friendly',
46
- title: 'AI Native Scaffolding',
47
- description: 'Comes with pre-configured AGENT.md guidelines, strict TypeScript, and biome/eslint support.',
48
- },
49
- ];
50
-
51
12
  return (
52
- <div class="min-h-screen flex flex-col justify-between">
53
- {/* Background glow effects */}
54
- <div class="fixed inset-0 overflow-hidden pointer-events-none -z-10">
55
- <div class="absolute -top-40 left-1/2 -translate-x-1/2 w-[800px] h-[500px] bg-gradient-to-tr from-emerald-500/15 via-teal-500/10 to-cyan-500/5 blur-[120px] rounded-full" />
56
- <div class="absolute top-1/2 -left-40 w-[600px] h-[400px] bg-emerald-600/10 blur-[140px] rounded-full" />
57
- </div>
58
-
13
+ <div class="min-h-screen bg-[#06090f] text-slate-100 flex flex-col justify-between">
59
14
  <Header />
60
15
 
61
- {/* Hero Section */}
62
- <main class="max-w-6xl mx-auto px-6 py-16 sm:py-24 flex-1 flex flex-col justify-center">
63
- <div class="text-center max-w-3xl mx-auto mb-16">
64
- <div class="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-emerald-500/10 border border-emerald-500/25 text-xs font-semibold text-emerald-400 mb-8 shadow-sm shadow-emerald-950">
65
- <span class="w-1.5 h-1.5 rounded-full bg-emerald-400" />
66
- Next.js App Router Conventions &bull; Zero Overhead
16
+ <main class="max-w-6xl mx-auto px-6 py-16 flex-1 flex flex-col justify-center">
17
+ {/* Hero Section */}
18
+ <div class="max-w-3xl mb-16">
19
+ <div class="text-xs font-mono font-medium text-emerald-400 mb-3 tracking-wide uppercase">
20
+ Next.js App Router Conventions • Zero Overhead
67
21
  </div>
68
22
 
69
- <h1 class="text-4xl sm:text-6xl md:text-7xl font-extrabold text-white tracking-tight mb-6 leading-tight sm:leading-none">
70
- The Next.js Alternative Built for{' '}
71
- <span class="bg-gradient-to-r from-emerald-400 via-teal-300 to-cyan-400 bg-clip-text text-transparent">
72
- Speed & Simplicity
73
- </span>
23
+ <h1 class="text-4xl sm:text-5xl lg:text-6xl font-extrabold text-white tracking-tight leading-tight mb-6">
24
+ The Next.js Alternative Built for Speed & Simplicity.
74
25
  </h1>
75
26
 
76
- <p class="text-slate-300 text-lg sm:text-xl leading-relaxed mb-10 max-w-2xl mx-auto">
77
- Sub-millisecond Preact SSR, nested file-based layouts, native Tailwind CSS v4, instant static site export, and built-in API routes.
27
+ <p class="text-base sm:text-lg text-slate-300 leading-relaxed mb-8 max-w-2xl">
28
+ Sub-millisecond Preact SSR, nested file-based layouts, native Tailwind CSS v4, dynamic API routes, and instant static site generation.
78
29
  </p>
79
30
 
80
- <div class="flex flex-wrap items-center justify-center gap-4">
31
+ <div class="flex flex-wrap items-center gap-4">
81
32
  <a
82
33
  href="https://frootjs.org"
83
34
  target="_blank"
84
35
  rel="noreferrer"
85
- class="px-6 py-3 rounded-xl bg-emerald-500 text-slate-950 font-bold hover:bg-emerald-400 transition-all shadow-lg shadow-emerald-500/25 hover:shadow-emerald-500/40 hover:-translate-y-0.5"
36
+ class="px-5 py-2.5 rounded-lg bg-emerald-500 text-slate-950 font-semibold hover:bg-emerald-400 transition-colors text-sm"
86
37
  >
87
- Explore Documentation &rarr;
38
+ Explore Documentation →
88
39
  </a>
89
40
  <a
90
41
  href="https://github.com/orbitnorth/frootkit"
91
42
  target="_blank"
92
43
  rel="noreferrer"
93
- class="px-6 py-3 rounded-xl bg-slate-900 border border-slate-800 text-slate-200 font-semibold hover:bg-slate-800/80 hover:border-slate-700 transition-all hover:-translate-y-0.5 flex items-center gap-2"
44
+ class="px-5 py-2.5 rounded-lg bg-[#0a0f18] border border-[#1a2333] text-slate-200 font-semibold hover:border-slate-700 hover:text-white transition-colors text-sm flex items-center gap-2"
94
45
  >
95
- <svg class="w-4 h-4 fill-current text-slate-300" viewBox="0 0 24 24">
46
+ <svg width="16" height="16" class="w-4 h-4 fill-current shrink-0" viewBox="0 0 24 24">
96
47
  <path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" />
97
48
  </svg>
98
49
  Star on GitHub
@@ -102,17 +53,67 @@ export default function HomePage() {
102
53
 
103
54
  <TerminalPreview />
104
55
 
105
- {/* Feature Grid */}
56
+ {/* Feature Grid with Real SVG Icons */}
106
57
  <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
107
- {features.map((f) => (
108
- <FeatureCard
109
- key={f.title}
110
- icon={f.icon}
111
- badge={f.badge}
112
- title={f.title}
113
- description={f.description}
114
- />
115
- ))}
58
+ <FeatureCard
59
+ badge="0.1ms render"
60
+ title="Sub-Millisecond SSR"
61
+ description="Preact VNode streaming and monomorphic rendering ensure blistering response times with near-zero memory footprint."
62
+ >
63
+ <svg width="20" height="20" class="w-5 h-5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
64
+ <path stroke-linecap="round" stroke-linejoin="round" d="M13 10V3L4 14h7v7l9-11h-7z" />
65
+ </svg>
66
+ </FeatureCard>
67
+
68
+ <FeatureCard
69
+ badge="Tailwind v4"
70
+ title="Native CSS Pipeline"
71
+ description="Zero postcss or tailwind config files required. Native Tailwind CSS v4 compiles in single-digit milliseconds."
72
+ >
73
+ <svg width="20" height="20" class="w-5 h-5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
74
+ <path stroke-linecap="round" stroke-linejoin="round" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01" />
75
+ </svg>
76
+ </FeatureCard>
77
+
78
+ <FeatureCard
79
+ badge="App Router"
80
+ title="Nested File Layouts"
81
+ description="Intuitive file-based routing with layout.tsx, page.tsx, and loading.tsx mirroring modern Next.js conventions."
82
+ >
83
+ <svg width="20" height="20" class="w-5 h-5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
84
+ <path stroke-linecap="round" stroke-linejoin="round" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
85
+ </svg>
86
+ </FeatureCard>
87
+
88
+ <FeatureCard
89
+ badge="Fullstack API"
90
+ title="Dynamic Route Handlers"
91
+ description="Build backend endpoints in src/app/api/**/route.ts handling GET, POST, PUT, DELETE with standard Web Fetch APIs."
92
+ >
93
+ <svg width="20" height="20" class="w-5 h-5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
94
+ <path stroke-linecap="round" stroke-linejoin="round" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
95
+ </svg>
96
+ </FeatureCard>
97
+
98
+ <FeatureCard
99
+ badge="Static Export"
100
+ title="SSG & Edge Ready"
101
+ description="Run frootkit build to pre-render static HTML and bundle dynamic endpoints for serverless and edge clouds in seconds."
102
+ >
103
+ <svg width="20" height="20" class="w-5 h-5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
104
+ <path stroke-linecap="round" stroke-linejoin="round" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4" />
105
+ </svg>
106
+ </FeatureCard>
107
+
108
+ <FeatureCard
109
+ badge="AI Native"
110
+ title="Agent Guidelines"
111
+ description="Comes with pre-configured AGENT.md guidelines, strict TypeScript, and biome/eslint support for agentic development."
112
+ >
113
+ <svg width="20" height="20" class="w-5 h-5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2">
114
+ <path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
115
+ </svg>
116
+ </FeatureCard>
116
117
  </div>
117
118
  </main>
118
119
 
@@ -1,20 +1,24 @@
1
+ import type { ComponentChildren } from 'preact';
2
+
1
3
  export interface FeatureCardProps {
2
- icon: string;
3
4
  badge: string;
4
5
  title: string;
5
6
  description: string;
7
+ children?: ComponentChildren;
6
8
  }
7
9
 
8
- export function FeatureCard({ icon, badge, title, description }: FeatureCardProps) {
10
+ export function FeatureCard({ badge, title, description, children }: FeatureCardProps) {
9
11
  return (
10
- <div class="rounded-2xl border border-slate-800/80 bg-slate-900/30 p-6 backdrop-blur-sm hover:border-emerald-500/40 transition-all hover:-translate-y-1 group">
12
+ <div class="rounded-xl border border-[#1a2333] bg-[#0a0f18] p-6 hover:border-slate-700 transition-colors">
11
13
  <div class="flex items-center justify-between mb-4">
12
- <span class="text-3xl">{icon}</span>
13
- <span class="text-xs font-mono font-medium px-2 py-0.5 rounded-full bg-slate-800 text-slate-300 border border-slate-700/60 group-hover:border-emerald-500/40 transition-colors">
14
+ <div class="w-9 h-9 rounded-lg bg-[#0f1624] border border-[#1a2333] flex items-center justify-center text-emerald-400">
15
+ {children}
16
+ </div>
17
+ <span class="text-xs font-mono font-medium px-2 py-0.5 rounded bg-[#0f1624] text-slate-300 border border-[#1a2333]">
14
18
  {badge}
15
19
  </span>
16
20
  </div>
17
- <h3 class="text-lg font-bold text-white mb-2 group-hover:text-emerald-400 transition-colors">
21
+ <h3 class="text-base font-bold text-white mb-2">
18
22
  {title}
19
23
  </h3>
20
24
  <p class="text-slate-400 text-sm leading-relaxed">
@@ -1,14 +1,14 @@
1
1
  export function Footer() {
2
2
  return (
3
- <footer class="border-t border-slate-900 bg-slate-950/60 py-8 text-center text-xs text-slate-500">
4
- <div class="max-w-6xl mx-auto px-6 flex flex-col sm:flex-row items-center justify-between gap-4">
3
+ <footer class="border-t border-[#1a2333] bg-[#06090f] py-8 text-xs text-slate-400">
4
+ <div class="max-w-6xl mx-auto px-6 flex flex-col sm:flex-row items-center justify-between gap-4 font-mono">
5
5
  <div>
6
6
  FrootKit &copy; {new Date().getFullYear()} OrbitNorth LLC. MIT Licensed.
7
7
  </div>
8
8
  <div class="flex items-center gap-6">
9
- <a href="https://github.com/orbitnorth/frootkit" class="hover:text-slate-400 transition-colors">GitHub</a>
10
- <a href="https://frootjs.org" class="hover:text-slate-400 transition-colors">Documentation</a>
11
- <a href="/api/health" class="hover:text-slate-400 transition-colors">Health API</a>
9
+ <a href="https://github.com/orbitnorth/frootkit" class="hover:text-white transition-colors">GitHub</a>
10
+ <a href="https://frootjs.org" class="hover:text-white transition-colors">Documentation</a>
11
+ <a href="/api/health" class="hover:text-white transition-colors">Health API</a>
12
12
  </div>
13
13
  </div>
14
14
  </footer>