create-huenei-template 0.2.16 → 0.2.17

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 (107) hide show
  1. package/dist/templates/frontend/pre-sales/.cursor/agents/pre-sales-builder.agent.md +92 -77
  2. package/dist/templates/frontend/pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +36 -0
  3. package/dist/templates/frontend/pre-sales/.cursor/agents/pre-sales-deploy.agent.md +87 -80
  4. package/dist/templates/frontend/pre-sales/.cursor/agents/qa-test-expert.agent.md +48 -49
  5. package/dist/templates/frontend/pre-sales/.cursor/commands/deploy-demo.md +73 -0
  6. package/dist/templates/frontend/pre-sales/.cursor/commands/new-component.md +192 -232
  7. package/dist/templates/frontend/pre-sales/.cursor/commands/prepare-deploy.md +135 -134
  8. package/dist/templates/frontend/pre-sales/.cursor/commands/ver-demo.md +58 -0
  9. package/dist/templates/frontend/pre-sales/.cursor/context/pre-sales.md +2 -0
  10. package/dist/templates/frontend/pre-sales/.cursor/hooks/injectPreSalesContext.ts +24 -1
  11. package/dist/templates/frontend/pre-sales/.cursor/hooks.json +23 -26
  12. package/dist/templates/frontend/pre-sales/.cursor/mcp.json +1 -5
  13. package/dist/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -206
  14. package/dist/templates/frontend/pre-sales/.cursor/rules/component-patterns.mdc +4 -0
  15. package/dist/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
  16. package/dist/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -0
  17. package/dist/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -60
  18. package/dist/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -42
  19. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -0
  20. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -0
  21. package/dist/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -0
  22. package/dist/templates/frontend/pre-sales/.impeccable.md +26 -0
  23. package/dist/templates/frontend/pre-sales/index.html +11 -2
  24. package/dist/templates/frontend/pre-sales/src/__tests__/components/layout/navbar.test.tsx +0 -1
  25. package/dist/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -68
  26. package/dist/templates/frontend/pre-sales/src/__tests__/hooks/useAuth.test.tsx +2 -1
  27. package/dist/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
  28. package/dist/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
  29. package/dist/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -58
  30. package/dist/templates/frontend/pre-sales/src/__tests__/routes/index.test.tsx +8 -43
  31. package/dist/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -75
  32. package/dist/templates/frontend/pre-sales/src/components/layout/sidebar.tsx +42 -30
  33. package/dist/templates/frontend/pre-sales/src/components/providers/auth-provider.tsx +60 -0
  34. package/dist/templates/frontend/pre-sales/src/components/ui/button.tsx +1 -1
  35. package/dist/templates/frontend/pre-sales/src/components/ui/card.tsx +1 -1
  36. package/dist/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
  37. package/dist/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -182
  38. package/dist/templates/frontend/pre-sales/src/components/ui/input.tsx +2 -0
  39. package/dist/templates/frontend/pre-sales/src/components/ui/textarea.tsx +2 -0
  40. package/dist/templates/frontend/pre-sales/src/components/ui/theme-toggle.tsx +35 -0
  41. package/dist/templates/frontend/pre-sales/src/data/dashboard.ts +249 -255
  42. package/dist/templates/frontend/pre-sales/src/hooks/useAuth.ts +13 -0
  43. package/dist/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -0
  44. package/dist/templates/frontend/pre-sales/src/index.css +282 -134
  45. package/dist/templates/frontend/pre-sales/src/main.tsx +3 -2
  46. package/dist/templates/frontend/pre-sales/src/routes/__root.tsx +62 -54
  47. package/dist/templates/frontend/pre-sales/src/routes/_authenticated/app.tsx +20 -0
  48. package/dist/templates/frontend/pre-sales/src/routes/_authenticated.tsx +5 -4
  49. package/dist/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -163
  50. package/dist/templates/frontend/pre-sales/src/routes/index.tsx +53 -198
  51. package/dist/templates/frontend/pre-sales/src/test/utils.tsx +2 -1
  52. package/dist/templates/frontend/pre-sales/src/vite-env.d.ts +11 -0
  53. package/package.json +1 -1
  54. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-builder.agent.md +92 -77
  55. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-demo-runner.agent.md +36 -0
  56. package/templates/frontend/pre-sales/.cursor/agents/pre-sales-deploy.agent.md +87 -80
  57. package/templates/frontend/pre-sales/.cursor/agents/qa-test-expert.agent.md +48 -49
  58. package/templates/frontend/pre-sales/.cursor/commands/deploy-demo.md +73 -0
  59. package/templates/frontend/pre-sales/.cursor/commands/new-component.md +192 -232
  60. package/templates/frontend/pre-sales/.cursor/commands/prepare-deploy.md +135 -134
  61. package/templates/frontend/pre-sales/.cursor/commands/ver-demo.md +58 -0
  62. package/templates/frontend/pre-sales/.cursor/context/pre-sales.md +2 -0
  63. package/templates/frontend/pre-sales/.cursor/hooks/injectPreSalesContext.ts +24 -1
  64. package/templates/frontend/pre-sales/.cursor/hooks.json +23 -26
  65. package/templates/frontend/pre-sales/.cursor/mcp.json +1 -5
  66. package/templates/frontend/pre-sales/.cursor/rules/architech.mdc +199 -206
  67. package/templates/frontend/pre-sales/.cursor/rules/component-patterns.mdc +4 -0
  68. package/templates/frontend/pre-sales/.cursor/rules/deployment-ready.mdc +52 -52
  69. package/templates/frontend/pre-sales/.cursor/rules/domain-business-bootstrap.mdc +74 -0
  70. package/templates/frontend/pre-sales/.cursor/rules/pre-sales-mode.mdc +104 -60
  71. package/templates/frontend/pre-sales/.cursor/rules/separation-of-concerns.mdc +41 -42
  72. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/SKILL.md +296 -0
  73. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -0
  74. package/templates/frontend/pre-sales/.cursor/skills/deploy-to-vercel/resources/deploy.sh +301 -0
  75. package/templates/frontend/pre-sales/.impeccable.md +26 -0
  76. package/templates/frontend/pre-sales/index.html +11 -2
  77. package/templates/frontend/pre-sales/pnpm-lock.yaml +6448 -0
  78. package/templates/frontend/pre-sales/skills-lock.json +10 -0
  79. package/templates/frontend/pre-sales/src/__tests__/components/layout/navbar.test.tsx +0 -1
  80. package/templates/frontend/pre-sales/src/__tests__/components/layout/sidebar.test.tsx +58 -68
  81. package/templates/frontend/pre-sales/src/__tests__/hooks/useAuth.test.tsx +2 -1
  82. package/templates/frontend/pre-sales/src/__tests__/lib/auth.test.ts +102 -102
  83. package/templates/frontend/pre-sales/src/__tests__/routes/__root.test.tsx +72 -72
  84. package/templates/frontend/pre-sales/src/__tests__/routes/_authenticated.test.tsx +57 -58
  85. package/templates/frontend/pre-sales/src/__tests__/routes/index.test.tsx +8 -43
  86. package/templates/frontend/pre-sales/src/components/layout/navbar.tsx +121 -75
  87. package/templates/frontend/pre-sales/src/components/layout/sidebar.tsx +42 -30
  88. package/templates/frontend/pre-sales/src/components/providers/auth-provider.tsx +60 -0
  89. package/templates/frontend/pre-sales/src/components/ui/button.tsx +1 -1
  90. package/templates/frontend/pre-sales/src/components/ui/card.tsx +1 -1
  91. package/templates/frontend/pre-sales/src/components/ui/combobox.tsx +308 -308
  92. package/templates/frontend/pre-sales/src/components/ui/command.tsx +179 -182
  93. package/templates/frontend/pre-sales/src/components/ui/input.tsx +2 -0
  94. package/templates/frontend/pre-sales/src/components/ui/textarea.tsx +2 -0
  95. package/templates/frontend/pre-sales/src/components/ui/theme-toggle.tsx +35 -0
  96. package/templates/frontend/pre-sales/src/data/dashboard.ts +249 -255
  97. package/templates/frontend/pre-sales/src/hooks/useAuth.ts +13 -0
  98. package/templates/frontend/pre-sales/src/hooks/useTheme.ts +73 -0
  99. package/templates/frontend/pre-sales/src/index.css +282 -134
  100. package/templates/frontend/pre-sales/src/main.tsx +3 -2
  101. package/templates/frontend/pre-sales/src/routes/__root.tsx +62 -54
  102. package/templates/frontend/pre-sales/src/routes/_authenticated/app.tsx +20 -0
  103. package/templates/frontend/pre-sales/src/routes/_authenticated.tsx +5 -4
  104. package/templates/frontend/pre-sales/src/routes/auth/iniciar-sesion.tsx +173 -163
  105. package/templates/frontend/pre-sales/src/routes/index.tsx +53 -198
  106. package/templates/frontend/pre-sales/src/test/utils.tsx +2 -1
  107. package/templates/frontend/pre-sales/src/vite-env.d.ts +11 -0
@@ -1,134 +1,282 @@
1
- @import "tailwindcss";
2
- @import "tw-animate-css";
3
-
4
- @plugin "daisyui" {
5
- logs: true;
6
- }
7
-
8
- /* Main theme */
9
-
10
- @plugin "daisyui/theme" {
11
- name: "huenei";
12
- default: true;
13
- prefersdark: false;
14
- color-scheme: "light";
15
- --color-base-100: oklch(100% 0 0);
16
- --color-base-200: oklch(98% 0 0);
17
- --color-base-300: oklch(95% 0 0);
18
- --color-base-content: oklch(21% 0.006 285.885);
19
- --color-primary: #ff8300;
20
- --color-primary-content: oklch(93% 0.034 272.788);
21
- --color-secondary: #1a428a;
22
- --color-secondary-content: oklch(94% 0.028 342.258);
23
- --color-accent: #8331a7;
24
- --color-accent-content: oklch(98% 0.002 247.839);
25
- --color-neutral: oklch(14% 0.005 285.823);
26
- --color-neutral-content: oklch(92% 0.004 286.32);
27
- --color-info: oklch(68% 0.169 237.323);
28
- --color-info-content: oklch(92% 0 0);
29
- --color-success: oklch(76% 0.177 163.223);
30
- --color-success-content: oklch(37% 0.077 168.94);
31
- --color-warning: oklch(82% 0.189 84.429);
32
- --color-warning-content: oklch(41% 0.112 45.904);
33
- --color-error: oklch(71% 0.194 13.428);
34
- --color-error-content: oklch(27% 0.105 12.094);
35
- --radius-selector: 0.5rem;
36
- --radius-field: 0rem;
37
- --radius-box: 0.5rem;
38
- --size-selector: 0.21875rem;
39
- --size-field: 0.21875rem;
40
- --border: 0.5px;
41
- --depth: 1;
42
- --noise: 1;
43
- }
44
-
45
- /* Toastify theme */
46
- :root {
47
- --toastify-color-light: #fff;
48
- --toastify-color-dark: #121212;
49
- --toastify-color-info: #3498db;
50
- --toastify-color-success: #07bc0c;
51
- --toastify-color-warning: #f1c40f;
52
- --toastify-color-error: hsl(6, 78%, 57%);
53
- --toastify-color-transparent: rgba(255, 255, 255, 0.7);
54
-
55
- --toastify-icon-color-info: var(--toastify-color-info);
56
- --toastify-icon-color-success: var(--toastify-color-success);
57
- --toastify-icon-color-warning: var(--toastify-color-warning);
58
- --toastify-icon-color-error: var(--toastify-color-error);
59
-
60
- --toastify-container-width: fit-content;
61
- --toastify-toast-width: 320px;
62
- --toastify-toast-offset: 16px;
63
- --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
64
- --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
65
- --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
66
- --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
67
- --toastify-toast-background: #fff;
68
- --toastify-toast-padding: 14px;
69
- --toastify-toast-min-height: 64px;
70
- --toastify-toast-max-height: 800px;
71
- --toastify-toast-bd-radius: 6px;
72
- --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
73
- --toastify-font-family: sans-serif;
74
- --toastify-z-index: 9999;
75
- --toastify-text-color-light: #757575;
76
- --toastify-text-color-dark: #fff;
77
-
78
- /* Used only for colored theme */
79
- --toastify-text-color-info: #fff;
80
- --toastify-text-color-success: #fff;
81
- --toastify-text-color-warning: #fff;
82
- --toastify-text-color-error: #fff;
83
-
84
- --toastify-spinner-color: #616161;
85
- --toastify-spinner-color-empty-area: #e0e0e0;
86
- --toastify-color-progress-light: linear-gradient(
87
- to right,
88
- #4cd964,
89
- #5ac8fa,
90
- #007aff,
91
- #34aadc,
92
- #5856d6,
93
- #ff2d55
94
- );
95
- --toastify-color-progress-dark: #bb86fc;
96
- --toastify-color-progress-info: var(--toastify-color-info);
97
- --toastify-color-progress-success: var(--toastify-color-success);
98
- --toastify-color-progress-warning: var(--toastify-color-warning);
99
- --toastify-color-progress-error: var(--toastify-color-error);
100
- /* used to control the opacity of the progress trail */
101
- --toastify-color-progress-bgo: 0.2;
102
- --sidebar: hsl(0 0% 98%);
103
- --sidebar-foreground: hsl(240 5.3% 26.1%);
104
- --sidebar-primary: hsl(240 5.9% 10%);
105
- --sidebar-primary-foreground: hsl(0 0% 98%);
106
- --sidebar-accent: hsl(240 4.8% 95.9%);
107
- --sidebar-accent-foreground: hsl(240 5.9% 10%);
108
- --sidebar-border: hsl(220 13% 91%);
109
- --sidebar-ring: hsl(217.2 91.2% 59.8%);
110
- }
111
-
112
- @custom-variant dark (&:where([data-theme=night], [data-theme=night] *));
113
-
114
- .dark {
115
- --sidebar: hsl(240 5.9% 10%);
116
- --sidebar-foreground: hsl(240 4.8% 95.9%);
117
- --sidebar-primary: hsl(224.3 76.3% 48%);
118
- --sidebar-primary-foreground: hsl(0 0% 100%);
119
- --sidebar-accent: hsl(240 3.7% 15.9%);
120
- --sidebar-accent-foreground: hsl(240 4.8% 95.9%);
121
- --sidebar-border: hsl(240 3.7% 15.9%);
122
- --sidebar-ring: hsl(217.2 91.2% 59.8%);
123
- }
124
-
125
- @theme inline {
126
- --color-sidebar: var(--sidebar);
127
- --color-sidebar-foreground: var(--sidebar-foreground);
128
- --color-sidebar-primary: var(--sidebar-primary);
129
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
130
- --color-sidebar-accent: var(--sidebar-accent);
131
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
132
- --color-sidebar-border: var(--sidebar-border);
133
- --color-sidebar-ring: var(--sidebar-ring);
134
- }
1
+ @import "tailwindcss";
2
+ @import "tw-animate-css";
3
+
4
+ @plugin "daisyui" {
5
+ logs: true;
6
+ }
7
+
8
+ /* ── Light theme ─────────────────────────────────────────── */
9
+
10
+ @plugin "daisyui/theme" {
11
+ name: "huenei";
12
+ default: true;
13
+ prefersdark: false;
14
+ color-scheme: "light";
15
+ --color-base-100: oklch(99.2% 0.003 260);
16
+ --color-base-200: oklch(96.5% 0.006 260);
17
+ --color-base-300: oklch(92% 0.012 260);
18
+ --color-base-content: oklch(20% 0.02 260);
19
+ --color-primary: oklch(72% 0.17 55);
20
+ --color-primary-content: oklch(99% 0.003 55);
21
+ --color-secondary: oklch(38% 0.12 260);
22
+ --color-secondary-content: oklch(96% 0.006 260);
23
+ --color-accent: oklch(48% 0.16 310);
24
+ --color-accent-content: oklch(97% 0.005 310);
25
+ --color-neutral: oklch(18% 0.015 260);
26
+ --color-neutral-content: oklch(93% 0.005 260);
27
+ --color-info: oklch(62% 0.16 240);
28
+ --color-info-content: oklch(97% 0.005 240);
29
+ --color-success: oklch(68% 0.16 160);
30
+ --color-success-content: oklch(20% 0.06 160);
31
+ --color-warning: oklch(80% 0.16 85);
32
+ --color-warning-content: oklch(30% 0.08 85);
33
+ --color-error: oklch(62% 0.2 25);
34
+ --color-error-content: oklch(97% 0.005 25);
35
+ --radius-selector: 0.5rem;
36
+ --radius-field: 0.375rem;
37
+ --radius-box: 0.625rem;
38
+ --size-selector: 0.25rem;
39
+ --size-field: 0.25rem;
40
+ --border: 1px;
41
+ --depth: 1;
42
+ --noise: 0;
43
+ }
44
+
45
+ /* ── Dark theme ──────────────────────────────────────────── */
46
+
47
+ @plugin "daisyui/theme" {
48
+ name: "huenei-dark";
49
+ default: false;
50
+ prefersdark: true;
51
+ color-scheme: "dark";
52
+ --color-base-100: oklch(17% 0.015 260);
53
+ --color-base-200: oklch(21% 0.018 260);
54
+ --color-base-300: oklch(27% 0.015 260);
55
+ --color-base-content: oklch(93% 0.005 260);
56
+ --color-primary: oklch(74% 0.16 55);
57
+ --color-primary-content: oklch(18% 0.04 55);
58
+ --color-secondary: oklch(62% 0.12 260);
59
+ --color-secondary-content: oklch(97% 0.005 260);
60
+ --color-accent: oklch(65% 0.14 310);
61
+ --color-accent-content: oklch(18% 0.04 310);
62
+ --color-neutral: oklch(85% 0.008 260);
63
+ --color-neutral-content: oklch(18% 0.015 260);
64
+ --color-info: oklch(68% 0.14 240);
65
+ --color-info-content: oklch(18% 0.04 240);
66
+ --color-success: oklch(72% 0.14 160);
67
+ --color-success-content: oklch(18% 0.04 160);
68
+ --color-warning: oklch(82% 0.14 85);
69
+ --color-warning-content: oklch(22% 0.06 85);
70
+ --color-error: oklch(68% 0.18 25);
71
+ --color-error-content: oklch(18% 0.04 25);
72
+ --radius-selector: 0.5rem;
73
+ --radius-field: 0.375rem;
74
+ --radius-box: 0.625rem;
75
+ --size-selector: 0.25rem;
76
+ --size-field: 0.25rem;
77
+ --border: 1px;
78
+ --depth: 1;
79
+ --noise: 0;
80
+ }
81
+
82
+ /* ── Typography ──────────────────────────────────────────── */
83
+
84
+ :root {
85
+ --font-display: "Red Hat Display", system-ui, sans-serif;
86
+ --font-body: "Figtree", system-ui, sans-serif;
87
+
88
+ --toastify-color-light: oklch(99% 0.003 260);
89
+ --toastify-color-dark: oklch(17% 0.015 260);
90
+ --toastify-color-info: oklch(62% 0.16 240);
91
+ --toastify-color-success: oklch(68% 0.16 160);
92
+ --toastify-color-warning: oklch(80% 0.16 85);
93
+ --toastify-color-error: oklch(62% 0.2 25);
94
+ --toastify-color-transparent: oklch(99% 0.003 260 / 70%);
95
+ --toastify-icon-color-info: var(--toastify-color-info);
96
+ --toastify-icon-color-success: var(--toastify-color-success);
97
+ --toastify-icon-color-warning: var(--toastify-color-warning);
98
+ --toastify-icon-color-error: var(--toastify-color-error);
99
+ --toastify-container-width: fit-content;
100
+ --toastify-toast-width: 360px;
101
+ --toastify-toast-offset: 16px;
102
+ --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
103
+ --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
104
+ --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
105
+ --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
106
+ --toastify-toast-background: var(--color-base-100);
107
+ --toastify-toast-padding: 14px;
108
+ --toastify-toast-min-height: 56px;
109
+ --toastify-toast-max-height: 800px;
110
+ --toastify-toast-bd-radius: 0.625rem;
111
+ --toastify-toast-shadow: 0 4px 24px oklch(20% 0.02 260 / 12%);
112
+ --toastify-font-family: var(--font-body);
113
+ --toastify-z-index: 9999;
114
+ --toastify-text-color-light: oklch(35% 0.015 260);
115
+ --toastify-text-color-dark: oklch(93% 0.005 260);
116
+ --toastify-text-color-info: oklch(99% 0 0);
117
+ --toastify-text-color-success: oklch(99% 0 0);
118
+ --toastify-text-color-warning: oklch(20% 0.04 85);
119
+ --toastify-text-color-error: oklch(99% 0 0);
120
+ --toastify-spinner-color: oklch(50% 0.01 260);
121
+ --toastify-spinner-color-empty-area: oklch(90% 0.005 260);
122
+ --toastify-color-progress-light: oklch(72% 0.17 55);
123
+ --toastify-color-progress-dark: oklch(74% 0.16 55);
124
+ --toastify-color-progress-info: var(--toastify-color-info);
125
+ --toastify-color-progress-success: var(--toastify-color-success);
126
+ --toastify-color-progress-warning: var(--toastify-color-warning);
127
+ --toastify-color-progress-error: var(--toastify-color-error);
128
+ --toastify-color-progress-bgo: 0.2;
129
+
130
+ --sidebar: oklch(98% 0.004 260);
131
+ --sidebar-foreground: oklch(30% 0.02 260);
132
+ --sidebar-primary: oklch(20% 0.02 260);
133
+ --sidebar-primary-foreground: oklch(99% 0.003 260);
134
+ --sidebar-accent: oklch(95.5% 0.008 260);
135
+ --sidebar-accent-foreground: oklch(20% 0.02 260);
136
+ --sidebar-border: oklch(91% 0.01 260);
137
+ --sidebar-ring: oklch(62% 0.12 260);
138
+
139
+ --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
140
+ --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
141
+ --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
142
+ --duration-fast: 150ms;
143
+ --duration-normal: 250ms;
144
+ --duration-slow: 400ms;
145
+ --duration-entrance: 600ms;
146
+ }
147
+
148
+ @custom-variant dark (&:where([data-theme=huenei-dark], [data-theme=huenei-dark] *));
149
+
150
+ [data-theme="huenei-dark"] {
151
+ --sidebar: oklch(19% 0.018 260);
152
+ --sidebar-foreground: oklch(90% 0.005 260);
153
+ --sidebar-primary: oklch(62% 0.12 260);
154
+ --sidebar-primary-foreground: oklch(99% 0 0);
155
+ --sidebar-accent: oklch(24% 0.015 260);
156
+ --sidebar-accent-foreground: oklch(90% 0.005 260);
157
+ --sidebar-border: oklch(27% 0.015 260);
158
+ --sidebar-ring: oklch(62% 0.12 260);
159
+ }
160
+
161
+ @theme inline {
162
+ --font-sans: "Figtree", system-ui, sans-serif;
163
+ --font-display: "Red Hat Display", system-ui, sans-serif;
164
+
165
+ --color-sidebar: var(--sidebar);
166
+ --color-sidebar-foreground: var(--sidebar-foreground);
167
+ --color-sidebar-primary: var(--sidebar-primary);
168
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
169
+ --color-sidebar-accent: var(--sidebar-accent);
170
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
171
+ --color-sidebar-border: var(--sidebar-border);
172
+ --color-sidebar-ring: var(--sidebar-ring);
173
+ }
174
+
175
+ /* ── Base styles ─────────────────────────────────────────── */
176
+
177
+ html {
178
+ font-family: var(--font-body);
179
+ -webkit-font-smoothing: antialiased;
180
+ -moz-osx-font-smoothing: grayscale;
181
+ }
182
+
183
+ h1, h2, h3, h4, h5, h6 {
184
+ font-family: var(--font-display);
185
+ letter-spacing: -0.02em;
186
+ }
187
+
188
+ body {
189
+ max-width: 100vw;
190
+ overflow-x: hidden;
191
+ }
192
+
193
+ /* ── Animation system ────────────────────────────────────── */
194
+
195
+ @keyframes fade-in-up {
196
+ from {
197
+ opacity: 0;
198
+ transform: translateY(12px);
199
+ }
200
+ to {
201
+ opacity: 1;
202
+ transform: translateY(0);
203
+ }
204
+ }
205
+
206
+ @keyframes fade-in {
207
+ from { opacity: 0; }
208
+ to { opacity: 1; }
209
+ }
210
+
211
+ @keyframes fade-in-scale {
212
+ from {
213
+ opacity: 0;
214
+ transform: scale(0.97);
215
+ }
216
+ to {
217
+ opacity: 1;
218
+ transform: scale(1);
219
+ }
220
+ }
221
+
222
+ @keyframes slide-in-left {
223
+ from { transform: translateX(-100%); }
224
+ to { transform: translateX(0); }
225
+ }
226
+
227
+ @keyframes slide-in-right {
228
+ from { transform: translateX(16px); opacity: 0; }
229
+ to { transform: translateX(0); opacity: 1; }
230
+ }
231
+
232
+ .animate-fade-in-up {
233
+ animation: fade-in-up var(--duration-slow) var(--ease-out-quart) both;
234
+ }
235
+
236
+ .animate-fade-in {
237
+ animation: fade-in var(--duration-normal) var(--ease-out-quart) both;
238
+ }
239
+
240
+ .animate-fade-in-scale {
241
+ animation: fade-in-scale var(--duration-slow) var(--ease-out-quart) both;
242
+ }
243
+
244
+ .stagger-1 { animation-delay: 0ms; }
245
+ .stagger-2 { animation-delay: 80ms; }
246
+ .stagger-3 { animation-delay: 160ms; }
247
+ .stagger-4 { animation-delay: 240ms; }
248
+ .stagger-5 { animation-delay: 320ms; }
249
+ .stagger-6 { animation-delay: 400ms; }
250
+ .stagger-7 { animation-delay: 480ms; }
251
+ .stagger-8 { animation-delay: 560ms; }
252
+
253
+ /* ── View Transition: circle theme toggle ────────────────── */
254
+
255
+ ::view-transition-old(root) {
256
+ animation: none;
257
+ z-index: -1;
258
+ }
259
+
260
+ ::view-transition-new(root) {
261
+ animation: vt-circle-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1);
262
+ }
263
+
264
+ @keyframes vt-circle-reveal {
265
+ from {
266
+ clip-path: circle(0% at var(--vt-x, 50%) var(--vt-y, 50%));
267
+ }
268
+ to {
269
+ clip-path: circle(150% at var(--vt-x, 50%) var(--vt-y, 50%));
270
+ }
271
+ }
272
+
273
+ /* ── Reduced motion ──────────────────────────────────────── */
274
+
275
+ @media (prefers-reduced-motion: reduce) {
276
+ *, *::before, *::after {
277
+ animation-duration: 0.01ms !important;
278
+ animation-iteration-count: 1 !important;
279
+ transition-duration: 0.01ms !important;
280
+ scroll-behavior: auto !important;
281
+ }
282
+ }
@@ -8,7 +8,8 @@ import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
8
8
  import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
9
9
  import { router } from "./router";
10
10
  import { queryClient } from "@/lib/queryClient";
11
- import { AuthProvider, useAuth } from "@/hooks/useAuth";
11
+ import { AuthProvider } from "@/components/providers/auth-provider";
12
+ import { useAuth } from "@/hooks/useAuth";
12
13
  import "./index.css";
13
14
 
14
15
  function InnerApp() {
@@ -47,7 +48,7 @@ createRoot(document.getElementById("root")!).render(
47
48
  pauseOnFocusLoss
48
49
  draggable
49
50
  pauseOnHover
50
- theme="light"
51
+ theme="colored"
51
52
  />
52
53
  </QueryClientProvider>
53
54
  </StrictMode>,
@@ -1,54 +1,62 @@
1
- import { createRootRouteWithContext, Link, Outlet, useLocation } from "@tanstack/react-router";
2
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
3
- import { Button } from "@/components/ui/button";
4
- import { Navbar } from "@/components/layout/navbar";
5
- import type { RouterContext } from "@/router";
6
-
7
- function NotFound() {
8
- return (
9
- <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
10
- <Card>
11
- <CardHeader>
12
- <CardTitle className="text-4xl">404 - Página no encontrada</CardTitle>
13
- <CardDescription>La página que buscas no existe o ha sido movida.</CardDescription>
14
- </CardHeader>
15
- <CardContent>
16
- <Button asChild>
17
- <Link to="/">Volver al inicio</Link>
18
- </Button>
19
- </CardContent>
20
- </Card>
21
- </div>
22
- );
23
- }
24
-
25
- function RootComponent() {
26
- const location = useLocation();
27
- const isAuthRoute = location.pathname.startsWith("/auth");
28
-
29
- return (
30
- <div className="min-h-screen bg-base-100">
31
- {!isAuthRoute && <Navbar />}
32
-
33
- <main>
34
- <Outlet />
35
- </main>
36
-
37
- {!isAuthRoute && (
38
- <footer className="bg-base-100 border-t border-base-300 mt-16">
39
- <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
40
- <div className="text-center text-base-content/70">
41
- <p>&copy; {new Date().getFullYear()} Huenei. Todos los derechos reservados.</p>
42
- <p className="mt-2 text-sm">Template base para proyectos de frontend</p>
43
- </div>
44
- </div>
45
- </footer>
46
- )}
47
- </div>
48
- );
49
- }
50
-
51
- export const Route = createRootRouteWithContext<RouterContext>()({
52
- component: RootComponent,
53
- notFoundComponent: NotFound,
54
- });
1
+ import { createRootRouteWithContext, Link, Outlet, useLocation } from "@tanstack/react-router";
2
+ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
3
+ import { Button } from "@/components/ui/button";
4
+ import { Navbar } from "@/components/layout/navbar";
5
+ import type { RouterContext } from "@/router";
6
+
7
+ function NotFound() {
8
+ return (
9
+ <div className="mx-auto max-w-7xl px-4 py-24 sm:px-6 lg:px-8">
10
+ <Card className="mx-auto max-w-lg text-center">
11
+ <CardHeader>
12
+ <CardTitle className="font-display text-6xl font-bold tracking-tight">404</CardTitle>
13
+ <CardDescription className="text-base">
14
+ La página que buscás no existe o fue movida.
15
+ </CardDescription>
16
+ </CardHeader>
17
+ <CardContent>
18
+ <Button asChild>
19
+ <Link to="/">Volver al inicio</Link>
20
+ </Button>
21
+ </CardContent>
22
+ </Card>
23
+ </div>
24
+ );
25
+ }
26
+
27
+ function RootComponent() {
28
+ const location = useLocation();
29
+ const isAuthRoute = location.pathname.startsWith("/auth");
30
+ const isHome = location.pathname === "/";
31
+ const showChrome = !isAuthRoute && !isHome;
32
+
33
+ return (
34
+ <div className="min-h-screen bg-base-100 text-base-content">
35
+ {showChrome && <Navbar />}
36
+
37
+ <main>
38
+ <Outlet />
39
+ </main>
40
+
41
+ {showChrome && (
42
+ <footer className="border-t border-base-300/50 bg-base-100">
43
+ <div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
44
+ <div className="flex items-center justify-center py-8">
45
+ <div className="flex items-center gap-2">
46
+ <span className="font-display text-sm font-bold text-base-content">Huenei</span>
47
+ <span className="text-sm text-base-content/40">
48
+ &copy; {new Date().getFullYear()}
49
+ </span>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </footer>
54
+ )}
55
+ </div>
56
+ );
57
+ }
58
+
59
+ export const Route = createRootRouteWithContext<RouterContext>()({
60
+ component: RootComponent,
61
+ notFoundComponent: NotFound,
62
+ });
@@ -0,0 +1,20 @@
1
+ import { createFileRoute } from "@tanstack/react-router";
2
+
3
+ export const Route = createFileRoute("/_authenticated/app")({
4
+ component: ProtectedWorkspacePage,
5
+ });
6
+
7
+ function ProtectedWorkspacePage() {
8
+ return (
9
+ <div className="mx-auto max-w-5xl px-6 py-16">
10
+ <div className="rounded-xl border border-base-300/60 bg-base-100 p-8">
11
+ <h1 className="font-display text-2xl font-bold text-base-content">
12
+ Espacio protegido listo para construir
13
+ </h1>
14
+ <p className="mt-3 text-base text-base-content/60">
15
+ Esta ruta existe solo como infraestructura base para nuevos flujos autenticados.
16
+ </p>
17
+ </div>
18
+ </div>
19
+ );
20
+ }
@@ -16,21 +16,22 @@ function AuthenticatedLayout() {
16
16
  const [sidebarOpen, setSidebarOpen] = useState(false);
17
17
 
18
18
  return (
19
- <div className="flex min-h-[calc(100vh-(--spacing(20)))]">
19
+ <div className="flex min-h-[calc(100vh-var(--spacing-16,4rem))]">
20
20
  <Sidebar open={sidebarOpen} onClose={() => setSidebarOpen(false)} />
21
21
 
22
22
  <div className="flex-1 min-w-0">
23
- <div className="sticky top-0 z-10 flex items-center gap-2 bg-base-100/80 backdrop-blur px-4 py-2 lg:hidden">
23
+ <div className="sticky top-16 z-10 flex items-center gap-2 border-b border-base-300/40 bg-base-100/80 px-4 py-2.5 backdrop-blur-md lg:hidden">
24
24
  <button
25
25
  onClick={() => setSidebarOpen(true)}
26
- className="p-2 rounded-md hover:bg-base-200"
26
+ className="inline-flex size-8 items-center justify-center rounded-lg text-base-content/60 hover:bg-base-200 transition-colors"
27
27
  aria-label="Abrir menú"
28
28
  >
29
29
  <Menu className="size-5" />
30
30
  </button>
31
+ <span className="font-display text-sm font-semibold text-base-content/70">Menú</span>
31
32
  </div>
32
33
 
33
- <main className="bg-base-200/40 min-h-full">
34
+ <main className="bg-base-200/30 min-h-full">
34
35
  <Outlet />
35
36
  </main>
36
37
  </div>