@digilogiclabs/create-saas-app 2.8.0 → 2.9.0

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 (94) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/generators/template-generator.js +8 -8
  3. package/dist/generators/template-generator.js.map +1 -1
  4. package/dist/templates/shared/quality/web/src/__tests__/accessibility.test.tsx +3 -3
  5. package/dist/templates/web/ai-platform/template/src/app/page.tsx +207 -207
  6. package/dist/templates/web/base/template/package.json +1 -3
  7. package/dist/templates/web/base/template/src/app/auth/callback/route.ts +32 -18
  8. package/dist/templates/web/base/template/src/app/dashboard/page.tsx +6 -43
  9. package/dist/templates/web/base/template/src/app/globals.css +158 -157
  10. package/dist/templates/web/base/template/src/app/page.tsx +2 -2
  11. package/dist/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +800 -800
  12. package/dist/templates/web/ui-auth/template/src/app/globals.css +96 -95
  13. package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +109 -109
  14. package/dist/templates/web/ui-auth/template/src/app/page.tsx +4 -3
  15. package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -128
  16. package/dist/templates/web/ui-auth-ai/template/src/app/globals.css +35 -40
  17. package/dist/templates/web/ui-auth-ai/template/src/app/layout.tsx +1 -0
  18. package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +3 -3
  19. package/dist/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +10 -49
  20. package/dist/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +800 -800
  21. package/dist/templates/web/ui-auth-payments/template/src/app/globals.css +212 -211
  22. package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -109
  23. package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +350 -350
  24. package/dist/templates/web/ui-auth-payments/template/src/app/setup/page.tsx +506 -506
  25. package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -128
  26. package/dist/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +143 -143
  27. package/dist/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +184 -184
  28. package/dist/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +143 -233
  29. package/dist/templates/web/ui-auth-payments-ai/template/src/app/dashboard/page.tsx +10 -50
  30. package/dist/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +800 -800
  31. package/dist/templates/web/ui-auth-payments-ai/template/src/app/globals.css +97 -96
  32. package/dist/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +325 -364
  33. package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +1 -1
  34. package/dist/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +389 -532
  35. package/dist/templates/web/ui-auth-payments-ai/template/src/app/setup/page.tsx +644 -644
  36. package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +119 -163
  37. package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +158 -201
  38. package/dist/templates/web/ui-auth-payments-ai-rag/template/package.json +1 -2
  39. package/dist/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +10 -51
  40. package/dist/templates/web/ui-auth-payments-audio/template/src/app/globals.css +97 -96
  41. package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +402 -403
  42. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +143 -143
  43. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +184 -184
  44. package/dist/templates/web/ui-auth-payments-video/template/src/app/globals.css +229 -228
  45. package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +1 -1
  46. package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +4 -7
  47. package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
  48. package/dist/templates/web/ui-only/template/src/app/globals.css +43 -42
  49. package/package.json +1 -1
  50. package/src/templates/shared/quality/web/src/__tests__/accessibility.test.tsx +3 -3
  51. package/src/templates/web/ai-platform/template/src/app/page.tsx +207 -207
  52. package/src/templates/web/base/template/package.json +1 -3
  53. package/src/templates/web/base/template/src/app/auth/callback/route.ts +32 -18
  54. package/src/templates/web/base/template/src/app/dashboard/page.tsx +6 -43
  55. package/src/templates/web/base/template/src/app/globals.css +158 -157
  56. package/src/templates/web/base/template/src/app/page.tsx +2 -2
  57. package/src/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +800 -800
  58. package/src/templates/web/ui-auth/template/src/app/globals.css +96 -95
  59. package/src/templates/web/ui-auth/template/src/app/login/page.tsx +109 -109
  60. package/src/templates/web/ui-auth/template/src/app/page.tsx +4 -3
  61. package/src/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -128
  62. package/src/templates/web/ui-auth-ai/template/src/app/globals.css +35 -40
  63. package/src/templates/web/ui-auth-ai/template/src/app/layout.tsx +1 -0
  64. package/src/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +3 -3
  65. package/src/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +10 -49
  66. package/src/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +800 -800
  67. package/src/templates/web/ui-auth-payments/template/src/app/globals.css +212 -211
  68. package/src/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -109
  69. package/src/templates/web/ui-auth-payments/template/src/app/page.tsx +350 -350
  70. package/src/templates/web/ui-auth-payments/template/src/app/setup/page.tsx +506 -506
  71. package/src/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -128
  72. package/src/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +143 -143
  73. package/src/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +184 -184
  74. package/src/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +143 -233
  75. package/src/templates/web/ui-auth-payments-ai/template/src/app/dashboard/page.tsx +10 -50
  76. package/src/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +800 -800
  77. package/src/templates/web/ui-auth-payments-ai/template/src/app/globals.css +97 -96
  78. package/src/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +325 -364
  79. package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +1 -1
  80. package/src/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +389 -532
  81. package/src/templates/web/ui-auth-payments-ai/template/src/app/setup/page.tsx +644 -644
  82. package/src/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +119 -163
  83. package/src/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +158 -201
  84. package/src/templates/web/ui-auth-payments-ai-rag/template/package.json +1 -2
  85. package/src/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +10 -51
  86. package/src/templates/web/ui-auth-payments-audio/template/src/app/globals.css +97 -96
  87. package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +402 -403
  88. package/src/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +143 -143
  89. package/src/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +184 -184
  90. package/src/templates/web/ui-auth-payments-video/template/src/app/globals.css +229 -228
  91. package/src/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +1 -1
  92. package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +4 -7
  93. package/src/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
  94. package/src/templates/web/ui-only/template/src/app/globals.css +43 -42
@@ -1,95 +1,96 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- /* Import SaaS Factory UI styles */
6
- @import '@digilogiclabs/saas-factory-ui/dist/index.css';
7
-
8
- @layer base {
9
- :root {
10
- --background: 0 0% 100%;
11
- --foreground: 222.2 84% 4.9%;
12
- --card: 0 0% 100%;
13
- --card-foreground: 222.2 84% 4.9%;
14
- --primary: 221.2 83.2% 53.3%;
15
- --primary-foreground: 210 40% 98%;
16
- --secondary: 210 40% 96%;
17
- --secondary-foreground: 222.2 84% 4.9%;
18
- --border: 214.3 31.8% 91.4%;
19
- --radius: 0.5rem;
20
- }
21
-
22
- .dark {
23
- --background: 222.2 84% 4.9%;
24
- --foreground: 210 40% 98%;
25
- --card: 222.2 84% 4.9%;
26
- --card-foreground: 210 40% 98%;
27
- --primary: 217.2 91.2% 59.8%;
28
- --primary-foreground: 222.2 84% 4.9%;
29
- --secondary: 217.2 32.6% 17.5%;
30
- --secondary-foreground: 210 40% 98%;
31
- --border: 217.2 32.6% 17.5%;
32
- }
33
- }
34
-
35
- @layer base {
36
- * {
37
- @apply border-border;
38
- }
39
- body {
40
- @apply bg-background text-foreground;
41
- }
42
- }
43
-
44
- /* Custom animations for enhanced visual effects */
45
- @keyframes slide-down {
46
- from {
47
- opacity: 0;
48
- transform: translateY(-10px);
49
- }
50
- to {
51
- opacity: 1;
52
- transform: translateY(0);
53
- }
54
- }
55
-
56
- @keyframes fade-in-up {
57
- from {
58
- opacity: 0;
59
- transform: translateY(10px);
60
- }
61
- to {
62
- opacity: 1;
63
- transform: translateY(0);
64
- }
65
- }
66
-
67
- @keyframes marquee {
68
- 0% {
69
- transform: translateX(100%);
70
- }
71
- 100% {
72
- transform: translateX(-100%);
73
- }
74
- }
75
-
76
- .animate-slide-down {
77
- animation: slide-down 0.6s ease-out;
78
- }
79
-
80
- .animate-fade-in-up {
81
- animation: fade-in-up 0.6s ease-out;
82
- animation-fill-mode: both;
83
- }
84
-
85
- .animate-marquee {
86
- animation: marquee 20s linear infinite;
87
- }
88
-
89
- .animation-delay-2000 {
90
- animation-delay: 2s;
91
- }
92
-
93
- .animation-delay-4000 {
94
- animation-delay: 4s;
95
- }
1
+ /* Import SaaS Factory UI styles */
2
+ @import '@digilogiclabs/saas-factory-ui/dist/index.css';
3
+
4
+ @tailwind base;
5
+ @tailwind components;
6
+ @tailwind utilities;
7
+
8
+
9
+ @layer base {
10
+ :root {
11
+ --background: 0 0% 100%;
12
+ --foreground: 222.2 84% 4.9%;
13
+ --card: 0 0% 100%;
14
+ --card-foreground: 222.2 84% 4.9%;
15
+ --primary: 221.2 83.2% 53.3%;
16
+ --primary-foreground: 210 40% 98%;
17
+ --secondary: 210 40% 96%;
18
+ --secondary-foreground: 222.2 84% 4.9%;
19
+ --border: 214.3 31.8% 91.4%;
20
+ --radius: 0.5rem;
21
+ }
22
+
23
+ .dark {
24
+ --background: 222.2 84% 4.9%;
25
+ --foreground: 210 40% 98%;
26
+ --card: 222.2 84% 4.9%;
27
+ --card-foreground: 210 40% 98%;
28
+ --primary: 217.2 91.2% 59.8%;
29
+ --primary-foreground: 222.2 84% 4.9%;
30
+ --secondary: 217.2 32.6% 17.5%;
31
+ --secondary-foreground: 210 40% 98%;
32
+ --border: 217.2 32.6% 17.5%;
33
+ }
34
+ }
35
+
36
+ @layer base {
37
+ * {
38
+ @apply border-border;
39
+ }
40
+ body {
41
+ @apply bg-background text-foreground;
42
+ }
43
+ }
44
+
45
+ /* Custom animations for enhanced visual effects */
46
+ @keyframes slide-down {
47
+ from {
48
+ opacity: 0;
49
+ transform: translateY(-10px);
50
+ }
51
+ to {
52
+ opacity: 1;
53
+ transform: translateY(0);
54
+ }
55
+ }
56
+
57
+ @keyframes fade-in-up {
58
+ from {
59
+ opacity: 0;
60
+ transform: translateY(10px);
61
+ }
62
+ to {
63
+ opacity: 1;
64
+ transform: translateY(0);
65
+ }
66
+ }
67
+
68
+ @keyframes marquee {
69
+ 0% {
70
+ transform: translateX(100%);
71
+ }
72
+ 100% {
73
+ transform: translateX(-100%);
74
+ }
75
+ }
76
+
77
+ .animate-slide-down {
78
+ animation: slide-down 0.6s ease-out;
79
+ }
80
+
81
+ .animate-fade-in-up {
82
+ animation: fade-in-up 0.6s ease-out;
83
+ animation-fill-mode: both;
84
+ }
85
+
86
+ .animate-marquee {
87
+ animation: marquee 20s linear infinite;
88
+ }
89
+
90
+ .animation-delay-2000 {
91
+ animation-delay: 2s;
92
+ }
93
+
94
+ .animation-delay-4000 {
95
+ animation-delay: 4s;
96
+ }
@@ -1,109 +1,109 @@
1
- 'use client';
2
-
3
- import React, { useState } from 'react';
4
- import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
5
- import { useAuth } from '@digilogiclabs/app-sdk';
6
- import { useRouter } from 'next/navigation';
7
-
8
- export default function LoginPage() {
9
- const [email, setEmail] = useState('');
10
- const [password, setPassword] = useState('');
11
- const { signIn, signInWithOAuth, loading, error, user } = useAuth();
12
- const router = useRouter();
13
-
14
- // Redirect if already logged in
15
- React.useEffect(() => {
16
- if (user) {
17
- router.push('/');
18
- }
19
- }, [user, router]);
20
-
21
- const handleLogin = async (e: React.FormEvent) => {
22
- e.preventDefault();
23
- try {
24
- await signIn(email, password);
25
- router.push('/');
26
- } catch (err) {
27
- console.error('Login error:', err);
28
- }
29
- };
30
-
31
- const handleGoogleLogin = async () => {
32
- try {
33
- await signInWithOAuth('google', window.location.origin);
34
- } catch (err) {
35
- console.error('Google login error:', err);
36
- }
37
- };
38
-
39
- if (loading) {
40
- return (
41
- <div className="flex items-center justify-center min-h-screen bg-gray-100">
42
- <div>Loading...</div>
43
- </div>
44
- );
45
- }
46
-
47
- return (
48
- <div className="flex items-center justify-center min-h-screen bg-gray-100">
49
- <Card className="w-full max-w-md p-8">
50
- <h1 className="text-2xl font-bold text-center mb-6">Sign In</h1>
51
-
52
- {error && (
53
- <div className="mb-4 p-3 bg-red-100 border border-red-400 text-red-700 rounded">
54
- {error.message}
55
- </div>
56
- )}
57
-
58
- <form onSubmit={handleLogin} className="space-y-4">
59
- <div>
60
- <Label htmlFor="email">Email</Label>
61
- <Input
62
- id="email"
63
- type="email"
64
- value={email}
65
- onChange={(e) => setEmail(e.target.value)}
66
- placeholder="Enter your email"
67
- required
68
- disabled={loading}
69
- />
70
- </div>
71
- <div>
72
- <Label htmlFor="password">Password</Label>
73
- <Input
74
- id="password"
75
- type="password"
76
- value={password}
77
- onChange={(e) => setPassword(e.target.value)}
78
- placeholder="Enter your password"
79
- required
80
- disabled={loading}
81
- />
82
- </div>
83
- <Button type="submit" className="w-full" disabled={loading}>
84
- {loading ? 'Signing In...' : 'Sign In'}
85
- </Button>
86
- <Button
87
- type="button"
88
- variant="outline"
89
- className="w-full"
90
- onClick={handleGoogleLogin}
91
- disabled={loading}
92
- >
93
- Sign in with Google
94
- </Button>
95
- </form>
96
-
97
- <div className="mt-4 text-center">
98
- <p className="text-sm text-gray-600">
99
- Don&apos;t have an account?{' '}
100
- <a href="/signup" className="text-blue-600 hover:underline">
101
- Sign up
102
- </a>
103
- </p>
104
- </div>
105
- </Card>
106
- </div>
107
- );
108
- }
109
-
1
+ 'use client';
2
+
3
+ import React, { useState } from 'react';
4
+ import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
5
+ import { useAuth } from '@digilogiclabs/app-sdk';
6
+ import { useRouter } from 'next/navigation';
7
+
8
+ export default function LoginPage() {
9
+ const [email, setEmail] = useState('');
10
+ const [password, setPassword] = useState('');
11
+ const { signIn, signInWithOAuth, loading, error, user } = useAuth();
12
+ const router = useRouter();
13
+
14
+ // Redirect if already logged in
15
+ React.useEffect(() => {
16
+ if (user) {
17
+ router.push('/');
18
+ }
19
+ }, [user, router]);
20
+
21
+ const handleLogin = async (e: React.FormEvent) => {
22
+ e.preventDefault();
23
+ try {
24
+ await signIn(email, password);
25
+ router.push('/');
26
+ } catch (err) {
27
+ console.error('Login error:', err);
28
+ }
29
+ };
30
+
31
+ const handleGoogleLogin = async () => {
32
+ try {
33
+ await signInWithOAuth('google');
34
+ } catch (err) {
35
+ console.error('Google login error:', err);
36
+ }
37
+ };
38
+
39
+ if (loading) {
40
+ return (
41
+ <div className="flex items-center justify-center min-h-screen bg-gray-100">
42
+ <div>Loading...</div>
43
+ </div>
44
+ );
45
+ }
46
+
47
+ return (
48
+ <div className="flex items-center justify-center min-h-screen bg-gray-100">
49
+ <Card className="w-full max-w-md p-8">
50
+ <h1 className="text-2xl font-bold text-center mb-6">Sign In</h1>
51
+
52
+ {error && (
53
+ <div className="mb-4 p-3 bg-red-100 border border-red-400 text-red-700 rounded">
54
+ {error.message}
55
+ </div>
56
+ )}
57
+
58
+ <form onSubmit={handleLogin} className="space-y-4">
59
+ <div>
60
+ <Label htmlFor="email">Email</Label>
61
+ <Input
62
+ id="email"
63
+ type="email"
64
+ value={email}
65
+ onChange={(e) => setEmail(e.target.value)}
66
+ placeholder="Enter your email"
67
+ required
68
+ disabled={loading}
69
+ />
70
+ </div>
71
+ <div>
72
+ <Label htmlFor="password">Password</Label>
73
+ <Input
74
+ id="password"
75
+ type="password"
76
+ value={password}
77
+ onChange={(e) => setPassword(e.target.value)}
78
+ placeholder="Enter your password"
79
+ required
80
+ disabled={loading}
81
+ />
82
+ </div>
83
+ <Button type="submit" className="w-full" disabled={loading}>
84
+ {loading ? 'Signing In...' : 'Sign In'}
85
+ </Button>
86
+ <Button
87
+ type="button"
88
+ variant="outline"
89
+ className="w-full"
90
+ onClick={handleGoogleLogin}
91
+ disabled={loading}
92
+ >
93
+ Sign in with Google
94
+ </Button>
95
+ </form>
96
+
97
+ <div className="mt-4 text-center">
98
+ <p className="text-sm text-gray-600">
99
+ Don&apos;t have an account?{' '}
100
+ <a href="/signup" className="text-blue-600 hover:underline">
101
+ Sign up
102
+ </a>
103
+ </p>
104
+ </div>
105
+ </Card>
106
+ </div>
107
+ );
108
+ }
109
+
@@ -41,7 +41,7 @@ export default function Home() {
41
41
  badge: {
42
42
  text: "🔒 Secure & Modern",
43
43
  variant: "secondary" as const,
44
- icon: CheckCircle
44
+ icon: <CheckCircle className="w-4 h-4" />
45
45
  },
46
46
  title: {
47
47
  text: `Welcome to ${projectName}`,
@@ -151,7 +151,7 @@ export default function Home() {
151
151
  {/* Component Showcase */}
152
152
  <NetworkAwareContent
153
153
  showOnSlow={
154
- <ResponsiveGrid columns={gridConfig.columns_1_sm2} gap="lg" className="mb-16">
154
+ <ResponsiveGrid columns={gridConfig.columns_1_sm2} gap={6} className="mb-16">
155
155
  <SwipeableCard
156
156
  rightActions={[
157
157
  {
@@ -202,7 +202,7 @@ export default function Home() {
202
202
  </ResponsiveGrid>
203
203
  }
204
204
  >
205
- <ResponsiveGrid columns={gridConfig.columns_1_sm2_md3} gap="lg" className="mb-16">
205
+ <ResponsiveGrid columns={gridConfig.columns_1_sm2_md3} gap={6} className="mb-16">
206
206
  <SwipeableCard
207
207
  rightActions={[
208
208
  {
@@ -298,6 +298,7 @@ export default function Home() {
298
298
  </div>
299
299
  </Card>
300
300
  </MobileContainer>
301
+ </div>
301
302
  </main>
302
303
  </OfflineWrapper>
303
304
  </PageTransition>