create-thexjs-app 0.1.2 → 0.1.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 +42 -20
- package/package.json +2 -7
- package/templates/basic/src/components/Link.tsx +6 -12
- package/templates/basic/src/pages/placeholder.tsx +2 -1
- package/templates/default/src/pages/index.tsx +1 -1
- package/templates/landing/src/components/code-block.tsx +104 -10
- package/templates/landing/src/layouts/main.tsx +48 -18
- package/templates/landing/src/pages/docs/_layout.tsx +26 -14
- package/templates/landing/src/pages/docs/api-routes.tsx +1 -1
- package/templates/landing/src/pages/docs/build-deploy.tsx +1 -1
- package/templates/landing/src/pages/docs/configuration.tsx +1 -1
- package/templates/landing/src/pages/docs/content-collections.tsx +1 -1
- package/templates/landing/src/pages/docs/data-layer.tsx +1 -1
- package/templates/landing/src/pages/docs/getting-started.tsx +4 -4
- package/templates/landing/src/pages/docs/installation.tsx +16 -20
- package/templates/landing/src/pages/docs/introduction.tsx +8 -11
- package/templates/landing/src/pages/docs/layouts.tsx +1 -1
- package/templates/landing/src/pages/docs/middleware.tsx +1 -1
- package/templates/landing/src/pages/docs/packages/cli.tsx +10 -7
- package/templates/landing/src/pages/docs/packages/core.tsx +7 -3
- package/templates/landing/src/pages/docs/packages/env.tsx +3 -3
- package/templates/landing/src/pages/docs/pages.tsx +1 -1
- package/templates/landing/src/pages/docs/routing.tsx +1 -1
- package/templates/landing/src/pages/docs/server-functions.tsx +1 -1
- package/templates/landing/src/pages/index.tsx +91 -126
- package/templates/landing/src/styles/globals.css +81 -45
- package/templates/saas/src/pages/dashboard/settings.tsx +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=IBM+Plex+Mono:wght@400;500&family=Syne:wght@600;700;800&display=swap");
|
|
2
2
|
|
|
3
3
|
@import "tailwindcss";
|
|
4
4
|
@import "tw-animate-css";
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
@custom-variant dark (&:is(.dark *));
|
|
7
7
|
|
|
8
8
|
@theme inline {
|
|
9
|
-
--font-
|
|
10
|
-
--font-
|
|
9
|
+
--font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
|
|
10
|
+
--font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
|
|
11
|
+
--font-mono: "IBM Plex Mono", ui-monospace, monospace;
|
|
11
12
|
--color-background: var(--background);
|
|
12
13
|
--color-foreground: var(--foreground);
|
|
13
14
|
--color-card: var(--card);
|
|
@@ -23,49 +24,42 @@
|
|
|
23
24
|
--color-accent: var(--accent);
|
|
24
25
|
--color-accent-foreground: var(--accent-foreground);
|
|
25
26
|
--color-destructive: var(--destructive);
|
|
26
|
-
--color-destructive-foreground: var(--destructive-foreground);
|
|
27
27
|
--color-border: var(--border);
|
|
28
28
|
--color-input: var(--input);
|
|
29
29
|
--color-ring: var(--ring);
|
|
30
|
-
--color-sidebar: var(--sidebar);
|
|
31
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
32
|
-
--color-sidebar-primary: var(--sidebar-primary);
|
|
33
|
-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
34
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
35
|
-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
36
|
-
--color-sidebar-border: var(--sidebar-border);
|
|
37
|
-
--color-sidebar-ring: var(--sidebar-ring);
|
|
38
30
|
--animate-float: float 3s ease-in-out infinite;
|
|
39
|
-
--animate-pulse-glow: pulse-glow
|
|
31
|
+
--animate-pulse-glow: pulse-glow 2.8s ease-in-out infinite;
|
|
32
|
+
--animate-cursor: cursor-blink 1.1s step-end infinite;
|
|
40
33
|
}
|
|
41
34
|
|
|
42
35
|
:root {
|
|
43
|
-
--radius: 0.
|
|
44
|
-
--background:
|
|
45
|
-
--foreground:
|
|
46
|
-
--card:
|
|
47
|
-
--card-foreground:
|
|
48
|
-
--popover:
|
|
49
|
-
--popover-foreground:
|
|
50
|
-
--primary:
|
|
51
|
-
--primary-foreground:
|
|
52
|
-
--secondary:
|
|
53
|
-
--secondary-foreground:
|
|
54
|
-
--muted:
|
|
55
|
-
--muted-foreground:
|
|
56
|
-
--accent:
|
|
57
|
-
--accent-foreground:
|
|
58
|
-
--destructive:
|
|
59
|
-
--border:
|
|
60
|
-
--input:
|
|
61
|
-
--ring:
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
--
|
|
36
|
+
--radius: 0.625rem;
|
|
37
|
+
--background: #060910;
|
|
38
|
+
--foreground: #e4eaf4;
|
|
39
|
+
--card: #0c1018;
|
|
40
|
+
--card-foreground: #e4eaf4;
|
|
41
|
+
--popover: #0c1018;
|
|
42
|
+
--popover-foreground: #e4eaf4;
|
|
43
|
+
--primary: #e8952f;
|
|
44
|
+
--primary-foreground: #0a0d14;
|
|
45
|
+
--secondary: #3dd6c6;
|
|
46
|
+
--secondary-foreground: #060910;
|
|
47
|
+
--muted: #121824;
|
|
48
|
+
--muted-foreground: #7b879c;
|
|
49
|
+
--accent: #e8952f;
|
|
50
|
+
--accent-foreground: #0a0d14;
|
|
51
|
+
--destructive: #f07178;
|
|
52
|
+
--border: #1a2233;
|
|
53
|
+
--input: #1a2233;
|
|
54
|
+
--ring: #e8952f;
|
|
55
|
+
--terminal-bg: #05080f;
|
|
56
|
+
--terminal-bar: #0a0f18;
|
|
57
|
+
--terminal-border: #1c2638;
|
|
58
|
+
--terminal-text: #d8e1f0;
|
|
59
|
+
--terminal-muted: #6b7f9a;
|
|
60
|
+
--terminal-prompt: #e8952f;
|
|
61
|
+
--terminal-label: #5a6d88;
|
|
62
|
+
--terminal-glow: 0 24px 80px -20px rgba(232, 149, 47, 0.12);
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
@layer base {
|
|
@@ -73,28 +67,70 @@
|
|
|
73
67
|
@apply border-border outline-ring/50;
|
|
74
68
|
}
|
|
75
69
|
body {
|
|
76
|
-
@apply bg-background text-foreground
|
|
70
|
+
@apply bg-background font-sans text-foreground antialiased;
|
|
71
|
+
}
|
|
72
|
+
h1,
|
|
73
|
+
h2,
|
|
74
|
+
h3 {
|
|
75
|
+
@apply font-display tracking-tight;
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
|
79
|
+
/* Docs prose rhythm */
|
|
80
|
+
.doc-content h2 {
|
|
81
|
+
@apply mt-14 scroll-mt-24 border-t border-border/40 pt-10 text-xl font-bold first:mt-0 first:border-0 first:pt-0;
|
|
82
|
+
}
|
|
83
|
+
.doc-content h3 {
|
|
84
|
+
@apply mt-8 text-lg font-semibold;
|
|
85
|
+
}
|
|
86
|
+
.doc-content p {
|
|
87
|
+
@apply mt-3 leading-relaxed text-muted-foreground;
|
|
88
|
+
}
|
|
89
|
+
.doc-content ul {
|
|
90
|
+
@apply mt-4 list-inside list-disc space-y-2 text-muted-foreground;
|
|
91
|
+
}
|
|
92
|
+
.doc-content a:not(.no-doc-link) {
|
|
93
|
+
@apply text-primary underline underline-offset-2 transition-colors hover:text-primary/80;
|
|
94
|
+
}
|
|
95
|
+
.doc-content code:not(pre code) {
|
|
96
|
+
@apply rounded-md bg-muted px-1.5 py-0.5 font-mono text-sm text-foreground;
|
|
97
|
+
}
|
|
98
|
+
|
|
80
99
|
@keyframes float {
|
|
81
100
|
0%,
|
|
82
101
|
100% {
|
|
83
|
-
transform: translateY(
|
|
102
|
+
transform: translateY(0);
|
|
84
103
|
}
|
|
85
104
|
50% {
|
|
86
|
-
transform: translateY(-
|
|
105
|
+
transform: translateY(-8px);
|
|
87
106
|
}
|
|
88
107
|
}
|
|
89
108
|
|
|
90
109
|
@keyframes pulse-glow {
|
|
91
110
|
0%,
|
|
92
111
|
100% {
|
|
93
|
-
opacity: 0.
|
|
94
|
-
|
|
112
|
+
opacity: 0.45;
|
|
113
|
+
transform: scale(0.98);
|
|
95
114
|
}
|
|
96
115
|
50% {
|
|
116
|
+
opacity: 0.85;
|
|
117
|
+
transform: scale(1);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@keyframes cursor-blink {
|
|
122
|
+
0%,
|
|
123
|
+
100% {
|
|
97
124
|
opacity: 1;
|
|
98
|
-
|
|
125
|
+
}
|
|
126
|
+
50% {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media (prefers-reduced-motion: reduce) {
|
|
132
|
+
.animate-pulse-glow,
|
|
133
|
+
.animate-cursor {
|
|
134
|
+
animation: none !important;
|
|
99
135
|
}
|
|
100
136
|
}
|
|
@@ -53,7 +53,7 @@ export default function SettingsPage({ loaderData }: RouteProps) {
|
|
|
53
53
|
/>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
|
-
<button className="inline-flex items-center gap-2 rounded-xl bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary/20 transition-all hover:bg-primary/90">
|
|
56
|
+
<button type="button" className="inline-flex items-center gap-2 rounded-xl bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary/20 transition-all hover:bg-primary/90">
|
|
57
57
|
<Save className="h-4 w-4" />
|
|
58
58
|
Save Changes
|
|
59
59
|
</button>
|
|
@@ -95,7 +95,7 @@ export default function SettingsPage({ loaderData }: RouteProps) {
|
|
|
95
95
|
<p className="text-sm text-muted-foreground mb-4">
|
|
96
96
|
Permanently delete your account and all associated data.
|
|
97
97
|
</p>
|
|
98
|
-
<button className="rounded-xl border border-destructive/50 bg-destructive/10 px-5 py-2.5 text-sm font-semibold text-destructive transition-all hover:bg-destructive/20">
|
|
98
|
+
<button type="button" className="rounded-xl border border-destructive/50 bg-destructive/10 px-5 py-2.5 text-sm font-semibold text-destructive transition-all hover:bg-destructive/20">
|
|
99
99
|
Delete Account
|
|
100
100
|
</button>
|
|
101
101
|
</div>
|