create-frootkit 1.2.1 → 1.2.3
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.
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/templates/auth/src/app/dashboard/layout.tsx +9 -9
- package/templates/auth/src/app/dashboard/page.tsx +16 -16
- package/templates/auth/src/app/login/page.tsx +2 -2
- package/templates/auth/src/app/page.tsx +77 -37
- package/templates/auth/src/app/signup/page.tsx +2 -2
- package/templates/auth/src/components/AuthForm.tsx +25 -17
- package/templates/auth/src/components/DashboardNav.tsx +53 -29
- package/templates/auth/src/components/MetricCard.tsx +4 -4
- package/templates/auth/src/components/Navbar.tsx +10 -8
- package/templates/auth/src/styles.css +19 -11
- package/templates/blog/src/app/blog/[slug]/page.tsx +9 -9
- package/templates/blog/src/app/page.tsx +26 -12
- package/templates/blog/src/components/Footer.tsx +5 -5
- package/templates/blog/src/components/Navbar.tsx +8 -6
- package/templates/blog/src/components/Newsletter.tsx +16 -10
- package/templates/blog/src/components/PostCard.tsx +60 -13
- package/templates/blog/src/styles.css +19 -11
- package/templates/ecommerce/src/app/cart/page.tsx +2 -2
- package/templates/ecommerce/src/app/page.tsx +20 -29
- package/templates/ecommerce/src/app/products/[id]/page.tsx +19 -18
- package/templates/ecommerce/src/components/CartDrawer.tsx +12 -12
- package/templates/ecommerce/src/components/Footer.tsx +5 -5
- package/templates/ecommerce/src/components/Navbar.tsx +13 -8
- package/templates/ecommerce/src/components/ProductCard.tsx +14 -13
- package/templates/ecommerce/src/styles.css +19 -11
- package/templates/empty/src/app/page.tsx +9 -9
- package/templates/empty/src/styles.css +19 -11
- package/templates/starter/src/app/page.tsx +75 -74
- package/templates/starter/src/components/FeatureCard.tsx +10 -6
- package/templates/starter/src/components/Footer.tsx +5 -5
- package/templates/starter/src/components/Header.tsx +5 -5
- package/templates/starter/src/components/TerminalPreview.tsx +28 -28
- package/templates/starter/src/styles.css +19 -11
- package/dist/templates/auth.d.ts +0 -3
- package/dist/templates/auth.d.ts.map +0 -1
- package/dist/templates/auth.js +0 -487
- package/dist/templates/auth.js.map +0 -1
- package/dist/templates/blog.d.ts +0 -3
- package/dist/templates/blog.d.ts.map +0 -1
- package/dist/templates/blog.js +0 -369
- package/dist/templates/blog.js.map +0 -1
- package/dist/templates/common.d.ts +0 -5
- package/dist/templates/common.d.ts.map +0 -1
- package/dist/templates/common.js +0 -116
- package/dist/templates/common.js.map +0 -1
- package/dist/templates/ecommerce.d.ts +0 -3
- package/dist/templates/ecommerce.d.ts.map +0 -1
- package/dist/templates/ecommerce.js +0 -474
- package/dist/templates/ecommerce.js.map +0 -1
- package/dist/templates/empty.d.ts +0 -3
- package/dist/templates/empty.d.ts.map +0 -1
- package/dist/templates/empty.js +0 -85
- package/dist/templates/empty.js.map +0 -1
- package/dist/templates/starter.d.ts +0 -3
- package/dist/templates/starter.d.ts.map +0 -1
- package/dist/templates/starter.js +0 -308
- package/dist/templates/starter.js.map +0 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export function Navbar() {
|
|
2
2
|
return (
|
|
3
|
-
<header class="border-b border-
|
|
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-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
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 class="w-4 h-4" 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-
|
|
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-
|
|
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 class="w-3.5 h-3.5" 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="
|
|
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-
|
|
6
|
-
<a href={`/products/${product.id}`} class="block relative aspect-[4/3] overflow-hidden bg-
|
|
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
|
|
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
|
|
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-
|
|
22
|
-
<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
|
|
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-
|
|
37
|
+
<div class="pt-4 border-t border-[#1a2333] flex items-center justify-between">
|
|
37
38
|
<div>
|
|
38
|
-
<span class="text-
|
|
39
|
-
<span class="text-lg font-
|
|
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-
|
|
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
|
-
|
|
47
|
+
Details
|
|
47
48
|
</a>
|
|
48
49
|
</div>
|
|
49
50
|
</div>
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
2
|
|
|
3
3
|
@theme {
|
|
4
|
-
--color-brand-
|
|
5
|
-
--color-brand-
|
|
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
|
+
--color-brand-primary: #10b981;
|
|
5
|
+
--color-brand-hover: #34d399;
|
|
15
6
|
}
|
|
16
7
|
|
|
17
8
|
:root {
|
|
18
9
|
color-scheme: dark;
|
|
19
10
|
}
|
|
11
|
+
|
|
12
|
+
html {
|
|
13
|
+
background-color: #06090f;
|
|
14
|
+
color: #f8fafc;
|
|
15
|
+
scroll-behavior: smooth;
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Accessibility: Mandatory Reduced Motion */
|
|
20
|
+
@media (prefers-reduced-motion: reduce) {
|
|
21
|
+
*, *::before, *::after {
|
|
22
|
+
animation-duration: 0.01ms !important;
|
|
23
|
+
animation-iteration-count: 1 !important;
|
|
24
|
+
transition-duration: 0.01ms !important;
|
|
25
|
+
scroll-behavior: auto !important;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -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-
|
|
10
|
-
<div class="w-
|
|
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
|
|
14
|
-
<p class="text-slate-400 text-sm mb-6">
|
|
15
|
-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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,27 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
2
|
|
|
3
3
|
@theme {
|
|
4
|
-
--color-brand-
|
|
5
|
-
--color-brand-
|
|
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
|
+
--color-brand-primary: #10b981;
|
|
5
|
+
--color-brand-hover: #34d399;
|
|
15
6
|
}
|
|
16
7
|
|
|
17
8
|
:root {
|
|
18
9
|
color-scheme: dark;
|
|
19
10
|
}
|
|
11
|
+
|
|
12
|
+
html {
|
|
13
|
+
background-color: #06090f;
|
|
14
|
+
color: #f8fafc;
|
|
15
|
+
scroll-behavior: smooth;
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Accessibility: Mandatory Reduced Motion */
|
|
20
|
+
@media (prefers-reduced-motion: reduce) {
|
|
21
|
+
*, *::before, *::after {
|
|
22
|
+
animation-duration: 0.01ms !important;
|
|
23
|
+
animation-iteration-count: 1 !important;
|
|
24
|
+
transition-duration: 0.01ms !important;
|
|
25
|
+
scroll-behavior: auto !important;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -4,85 +4,36 @@ 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
|
|
8
|
-
description: '
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
<div class="
|
|
64
|
-
<div class="
|
|
65
|
-
<span class="w-1.5 h-1.5 rounded-full bg-emerald-400" />
|
|
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">
|
|
66
20
|
Next.js App Router Conventions • Zero Overhead
|
|
67
21
|
</div>
|
|
68
22
|
|
|
69
|
-
<h1 class="text-4xl sm:text-
|
|
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-
|
|
77
|
-
Sub-millisecond Preact SSR, nested file-based layouts, native Tailwind CSS v4,
|
|
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
|
|
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-
|
|
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
38
|
Explore Documentation →
|
|
88
39
|
</a>
|
|
@@ -90,9 +41,9 @@ export default function HomePage() {
|
|
|
90
41
|
href="https://github.com/orbitnorth/frootkit"
|
|
91
42
|
target="_blank"
|
|
92
43
|
rel="noreferrer"
|
|
93
|
-
class="px-
|
|
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
|
|
46
|
+
<svg class="w-4 h-4 fill-current" 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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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 class="w-5 h-5" 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 class="w-5 h-5" 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 class="w-5 h-5" 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 class="w-5 h-5" 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 class="w-5 h-5" 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 class="w-5 h-5" 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({
|
|
10
|
+
export function FeatureCard({ badge, title, description, children }: FeatureCardProps) {
|
|
9
11
|
return (
|
|
10
|
-
<div class="rounded-
|
|
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
|
-
<
|
|
13
|
-
|
|
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-
|
|
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-
|
|
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 © {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-
|
|
10
|
-
<a href="https://frootjs.org" class="hover:text-
|
|
11
|
-
<a href="/api/health" class="hover:text-
|
|
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>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function Header() {
|
|
2
2
|
return (
|
|
3
|
-
<header class="border-b border-
|
|
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
5
|
<div class="flex items-center gap-3">
|
|
6
|
-
<span class="text-
|
|
7
|
-
<span class="
|
|
6
|
+
<span class="text-white font-extrabold text-lg tracking-tight flex items-center gap-2">
|
|
7
|
+
<span class="w-3 h-3 rounded-full bg-emerald-500 inline-block" />
|
|
8
8
|
FrootKit
|
|
9
9
|
</span>
|
|
10
|
-
<span class="px-2 py-0.5 text-[11px] font-mono
|
|
10
|
+
<span class="px-2 py-0.5 text-[11px] font-mono text-slate-400 rounded-md bg-[#0a0f18] border border-[#1a2333]">
|
|
11
11
|
v1.3.1
|
|
12
12
|
</span>
|
|
13
13
|
</div>
|
|
@@ -23,7 +23,7 @@ export function Header() {
|
|
|
23
23
|
</a>
|
|
24
24
|
<a
|
|
25
25
|
href="/api/health"
|
|
26
|
-
class="text-
|
|
26
|
+
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"
|
|
27
27
|
>
|
|
28
28
|
/api/health
|
|
29
29
|
</a>
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
export function TerminalPreview() {
|
|
2
2
|
return (
|
|
3
|
-
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-
|
|
4
|
-
<div class="rounded-
|
|
5
|
-
<div class="flex items-center justify-between
|
|
3
|
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-5xl mx-auto w-full mb-16">
|
|
4
|
+
<div class="rounded-xl border border-[#1a2333] bg-[#0a0f18] overflow-hidden">
|
|
5
|
+
<div class="flex items-center justify-between px-4 py-2.5 bg-[#0f1624] border-b border-[#1a2333]">
|
|
6
6
|
<div class="flex items-center gap-2">
|
|
7
|
-
<span class="w-
|
|
8
|
-
<span class="w-
|
|
9
|
-
<span class="w-
|
|
7
|
+
<span class="w-2.5 h-2.5 rounded-full bg-slate-700" />
|
|
8
|
+
<span class="w-2.5 h-2.5 rounded-full bg-slate-700" />
|
|
9
|
+
<span class="w-2.5 h-2.5 rounded-full bg-slate-700" />
|
|
10
10
|
<span class="ml-2 text-xs font-mono text-slate-400">src/app/page.tsx</span>
|
|
11
11
|
</div>
|
|
12
|
-
<span class="text-[11px] font-mono text-emerald-400
|
|
12
|
+
<span class="text-[11px] font-mono text-emerald-400 bg-emerald-500/10 px-2 py-0.5 rounded border border-emerald-500/20">
|
|
13
13
|
Preact SSR
|
|
14
14
|
</span>
|
|
15
15
|
</div>
|
|
16
|
-
<div class="font-mono text-xs
|
|
16
|
+
<div class="p-5 font-mono text-xs text-slate-300 space-y-2 select-all leading-relaxed">
|
|
17
17
|
<p><span class="text-purple-400 font-semibold">export default function</span> <span class="text-blue-400">HomePage</span>() {</p>
|
|
18
18
|
<p class="pl-4"><span class="text-purple-400 font-semibold">return</span> (</p>
|
|
19
19
|
<p class="pl-8 text-emerald-300"><<span class="text-blue-300 font-semibold">main</span> <span class="text-teal-400">class</span>=<span class="text-amber-300">"min-h-screen p-8"</span>></p>
|
|
20
|
-
<p class="pl-12 text-slate-100"><<span class="text-blue-300 font-semibold">h1</span>>
|
|
20
|
+
<p class="pl-12 text-slate-100"><<span class="text-blue-300 font-semibold">h1</span>>Production FrootKit Application</<span class="text-blue-300 font-semibold">h1</span>></p>
|
|
21
21
|
<p class="pl-8 text-emerald-300"></<span class="text-blue-300 font-semibold">main</span>></p>
|
|
22
22
|
<p class="pl-4">);</p>
|
|
23
23
|
<p>}</p>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
|
-
<div class="rounded-
|
|
28
|
-
<div class="flex items-center justify-between
|
|
27
|
+
<div class="rounded-xl border border-[#1a2333] bg-[#0a0f18] overflow-hidden">
|
|
28
|
+
<div class="flex items-center justify-between px-4 py-2.5 bg-[#0f1624] border-b border-[#1a2333]">
|
|
29
29
|
<div class="flex items-center gap-2">
|
|
30
|
-
<span class="w-
|
|
31
|
-
<span class="w-
|
|
32
|
-
<span class="w-
|
|
30
|
+
<span class="w-2.5 h-2.5 rounded-full bg-slate-700" />
|
|
31
|
+
<span class="w-2.5 h-2.5 rounded-full bg-slate-700" />
|
|
32
|
+
<span class="w-2.5 h-2.5 rounded-full bg-slate-700" />
|
|
33
33
|
<span class="ml-2 text-xs font-mono text-slate-400">terminal</span>
|
|
34
34
|
</div>
|
|
35
|
-
<span class="text-[11px] font-mono text-cyan-400
|
|
35
|
+
<span class="text-[11px] font-mono text-cyan-400 bg-cyan-500/10 px-2 py-0.5 rounded border border-cyan-500/20">
|
|
36
36
|
CLI
|
|
37
37
|
</span>
|
|
38
38
|
</div>
|
|
39
|
-
<div class="font-mono text-xs
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
<span class="text-
|
|
43
|
-
</
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
<span class="text-
|
|
47
|
-
</
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
<span class="text-
|
|
51
|
-
</
|
|
39
|
+
<div class="p-5 font-mono text-xs text-slate-300 space-y-3 leading-relaxed">
|
|
40
|
+
<div>
|
|
41
|
+
<span class="text-slate-500 block text-[11px]"># Run dev server with Tailwind compiler</span>
|
|
42
|
+
<span class="text-emerald-400 font-semibold">$ frootkit dev</span>
|
|
43
|
+
</div>
|
|
44
|
+
<div>
|
|
45
|
+
<span class="text-slate-500 block text-[11px]"># Build static export and API manifest</span>
|
|
46
|
+
<span class="text-cyan-400 font-semibold">$ frootkit build</span>
|
|
47
|
+
</div>
|
|
48
|
+
<div>
|
|
49
|
+
<span class="text-slate-500 block text-[11px]"># Test dynamic route handler</span>
|
|
50
|
+
<span class="text-amber-400 font-semibold">$ curl http://localhost:3000/api/health</span>
|
|
51
|
+
</div>
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
2
|
|
|
3
3
|
@theme {
|
|
4
|
-
--color-brand-
|
|
5
|
-
--color-brand-
|
|
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
|
+
--color-brand-primary: #10b981;
|
|
5
|
+
--color-brand-hover: #34d399;
|
|
15
6
|
}
|
|
16
7
|
|
|
17
8
|
:root {
|
|
18
9
|
color-scheme: dark;
|
|
19
10
|
}
|
|
11
|
+
|
|
12
|
+
html {
|
|
13
|
+
background-color: #06090f;
|
|
14
|
+
color: #f8fafc;
|
|
15
|
+
scroll-behavior: smooth;
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Accessibility: Mandatory Reduced Motion */
|
|
20
|
+
@media (prefers-reduced-motion: reduce) {
|
|
21
|
+
*, *::before, *::after {
|
|
22
|
+
animation-duration: 0.01ms !important;
|
|
23
|
+
animation-iteration-count: 1 !important;
|
|
24
|
+
transition-duration: 0.01ms !important;
|
|
25
|
+
scroll-behavior: auto !important;
|
|
26
|
+
}
|
|
27
|
+
}
|
package/dist/templates/auth.d.ts
DELETED