create-einja-app 0.1.1
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/README.md +307 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1041 -0
- package/dist/cli.js.map +1 -0
- package/package.json +62 -0
- package/templates/turborepo-pandacss/.biomeignore +15 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/biome-format.sh +49 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/design-doc-check.sh +61 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/detect-secrets.sh +62 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/large-file-warning.sh +42 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/playwright-resize.sh +36 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/typecheck.sh +37 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/unset-volta-recursion.sh +32 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/validate-git-commit.sh +239 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/warn-index-ts.sh +34 -0
- package/templates/turborepo-pandacss/.claude/hooks/einja/warn-relative-import.sh +48 -0
- package/templates/turborepo-pandacss/.claude/settings.json +174 -0
- package/templates/turborepo-pandacss/.claude/skills/create-einja-app-release/SKILL.md +186 -0
- package/templates/turborepo-pandacss/.claude/skills/dev-cli-release/SKILL.md +173 -0
- package/templates/turborepo-pandacss/.cursor/commands/spec-create.md +227 -0
- package/templates/turborepo-pandacss/.cursor/commands/start-dev.md +98 -0
- package/templates/turborepo-pandacss/.cursor/commands/task-exec.md +287 -0
- package/templates/turborepo-pandacss/.cursor/commands/task-vibe-kanban-loop.md +532 -0
- package/templates/turborepo-pandacss/.cursor/commands/update-docs-by-task-specs.md +448 -0
- package/templates/turborepo-pandacss/.cursor/mcp.json +45 -0
- package/templates/turborepo-pandacss/.cursor/rules/api-rules.mdc +171 -0
- package/templates/turborepo-pandacss/.cursor/rules/api-test-rules.mdc +181 -0
- package/templates/turborepo-pandacss/.cursor/rules/base-code.mdc +70 -0
- package/templates/turborepo-pandacss/.cursor/rules/base-commit-rules.mdc +174 -0
- package/templates/turborepo-pandacss/.cursor/rules/base-design.mdc +12 -0
- package/templates/turborepo-pandacss/.cursor/rules/base-rules.mdc +231 -0
- package/templates/turborepo-pandacss/.cursor/rules/error-handling-rules.mdc +188 -0
- package/templates/turborepo-pandacss/.cursor/rules/refactor-rules.mdc +93 -0
- package/templates/turborepo-pandacss/.dockerignore +126 -0
- package/templates/turborepo-pandacss/.einja-sync.json +35 -0
- package/templates/turborepo-pandacss/.env.ci +25 -0
- package/templates/turborepo-pandacss/.env.example +35 -0
- package/templates/turborepo-pandacss/.env.personal.example +27 -0
- package/templates/turborepo-pandacss/.envrc +4 -0
- package/templates/turborepo-pandacss/.gitattributes +5 -0
- package/templates/turborepo-pandacss/.husky/pre-commit +1 -0
- package/templates/turborepo-pandacss/.lintstagedrc.js +24 -0
- package/templates/turborepo-pandacss/.mcp.json +45 -0
- package/templates/turborepo-pandacss/.node-version +1 -0
- package/templates/turborepo-pandacss/.templateignore +60 -0
- package/templates/turborepo-pandacss/.vscode/extensions.json +3 -0
- package/templates/turborepo-pandacss/CLAUDE.md +415 -0
- package/templates/turborepo-pandacss/README.md +322 -0
- package/templates/turborepo-pandacss/apps/web/middleware.ts +28 -0
- package/templates/turborepo-pandacss/apps/web/next.config.ts +10 -0
- package/templates/turborepo-pandacss/apps/web/package.json +80 -0
- package/templates/turborepo-pandacss/apps/web/panda.config.ts +114 -0
- package/templates/turborepo-pandacss/apps/web/postcss.config.cjs +6 -0
- package/templates/turborepo-pandacss/apps/web/public/file.svg +1 -0
- package/templates/turborepo-pandacss/apps/web/public/globe.svg +1 -0
- package/templates/turborepo-pandacss/apps/web/public/next.svg +1 -0
- package/templates/turborepo-pandacss/apps/web/public/vercel.svg +1 -0
- package/templates/turborepo-pandacss/apps/web/public/window.svg +1 -0
- package/templates/turborepo-pandacss/apps/web/src/app/(authenticated)/dashboard/page.tsx +79 -0
- package/templates/turborepo-pandacss/apps/web/src/app/(authenticated)/data/_components/UserTable.tsx +203 -0
- package/templates/turborepo-pandacss/apps/web/src/app/(authenticated)/data/page.tsx +57 -0
- package/templates/turborepo-pandacss/apps/web/src/app/(authenticated)/layout-client.tsx +31 -0
- package/templates/turborepo-pandacss/apps/web/src/app/(authenticated)/layout.tsx +17 -0
- package/templates/turborepo-pandacss/apps/web/src/app/(authenticated)/profile/page.tsx +59 -0
- package/templates/turborepo-pandacss/apps/web/src/app/api/auth/[...nextauth]/route.ts +3 -0
- package/templates/turborepo-pandacss/apps/web/src/app/api/auth/signup/route.ts +70 -0
- package/templates/turborepo-pandacss/apps/web/src/app/error.tsx +106 -0
- package/templates/turborepo-pandacss/apps/web/src/app/favicon.ico +0 -0
- package/templates/turborepo-pandacss/apps/web/src/app/global-error.tsx +110 -0
- package/templates/turborepo-pandacss/apps/web/src/app/globals.css +121 -0
- package/templates/turborepo-pandacss/apps/web/src/app/layout.tsx +28 -0
- package/templates/turborepo-pandacss/apps/web/src/app/not-found.tsx +54 -0
- package/templates/turborepo-pandacss/apps/web/src/app/page.module.css +165 -0
- package/templates/turborepo-pandacss/apps/web/src/app/page.test.tsx +52 -0
- package/templates/turborepo-pandacss/apps/web/src/app/page.tsx +284 -0
- package/templates/turborepo-pandacss/apps/web/src/app/signin/page.tsx +296 -0
- package/templates/turborepo-pandacss/apps/web/src/app/signup/page.tsx +395 -0
- package/templates/turborepo-pandacss/apps/web/src/application/use-cases/UserUseCases.test.ts +229 -0
- package/templates/turborepo-pandacss/apps/web/src/application/use-cases/UserUseCases.ts +115 -0
- package/templates/turborepo-pandacss/apps/web/src/components/auth/login-button.tsx +35 -0
- package/templates/turborepo-pandacss/apps/web/src/components/auth/logout-button.tsx +24 -0
- package/templates/turborepo-pandacss/apps/web/src/components/auth/user-avatar.test.tsx +68 -0
- package/templates/turborepo-pandacss/apps/web/src/components/auth/user-avatar.tsx +43 -0
- package/templates/turborepo-pandacss/apps/web/src/components/dashboard/dashboard-stats.tsx +128 -0
- package/templates/turborepo-pandacss/apps/web/src/components/providers/query-provider.tsx +30 -0
- package/templates/turborepo-pandacss/apps/web/src/components/providers/session-provider.tsx +12 -0
- package/templates/turborepo-pandacss/apps/web/src/components/shared/Sidebar.tsx +175 -0
- package/templates/turborepo-pandacss/apps/web/src/components/shared/header.tsx +166 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/accordion.tsx +64 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/alert-dialog.tsx +135 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/alert.tsx +60 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/aspect-ratio.tsx +9 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/avatar.tsx +41 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/badge.tsx +39 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/breadcrumb.tsx +101 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/button.tsx +56 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/card.tsx +75 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/checkbox.tsx +29 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/data-table.tsx +189 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/dialog-hook.tsx +210 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/dialog.tsx +129 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/drawer.tsx +124 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/dropdown-menu.tsx +228 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/form.tsx +152 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/hover-card.tsx +38 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/input.tsx +21 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/label.tsx +21 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/pagination.tsx +105 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/popover.tsx +42 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/progress.tsx +28 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/select.tsx +170 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/separator.tsx +28 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/skeleton.tsx +13 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/sonner.tsx +25 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/table.tsx +92 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/tabs.tsx +54 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/textarea.tsx +18 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/tooltip.tsx +57 -0
- package/templates/turborepo-pandacss/apps/web/src/components/ui/typography.tsx +158 -0
- package/templates/turborepo-pandacss/apps/web/src/lib/auth/guard.ts +36 -0
- package/templates/turborepo-pandacss/apps/web/src/lib/auth/index.ts +22 -0
- package/templates/turborepo-pandacss/apps/web/src/lib/prisma.ts +3 -0
- package/templates/turborepo-pandacss/apps/web/src/lib/utils.ts +6 -0
- package/templates/turborepo-pandacss/apps/web/test/globals.d.ts +1 -0
- package/templates/turborepo-pandacss/apps/web/test/matchers.d.ts +1 -0
- package/templates/turborepo-pandacss/apps/web/test/setup.ts +22 -0
- package/templates/turborepo-pandacss/apps/web/tsconfig.json +37 -0
- package/templates/turborepo-pandacss/apps/web/vitest.config.ts +20 -0
- package/templates/turborepo-pandacss/apps/web/vitest.d.ts +2 -0
- package/templates/turborepo-pandacss/biome.json +60 -0
- package/templates/turborepo-pandacss/components.json +21 -0
- package/templates/turborepo-pandacss/docker-compose.yml +27 -0
- package/templates/turborepo-pandacss/middleware.ts +32 -0
- package/templates/turborepo-pandacss/next.config.ts +10 -0
- package/templates/turborepo-pandacss/package-lock.json +9346 -0
- package/templates/turborepo-pandacss/package.json +64 -0
- package/templates/turborepo-pandacss/packages/config/package.json +41 -0
- package/templates/turborepo-pandacss/packages/config/panda.config.ts +114 -0
- package/templates/turborepo-pandacss/packages/config/src/index.ts +24 -0
- package/templates/turborepo-pandacss/packages/config/src/worktree-config-loader.ts +129 -0
- package/templates/turborepo-pandacss/packages/config/src/worktree-config.ts +75 -0
- package/templates/turborepo-pandacss/packages/config/tsconfig.build.json +19 -0
- package/templates/turborepo-pandacss/packages/config/tsconfig.json +24 -0
- package/templates/turborepo-pandacss/packages/config/typescript/base.json +19 -0
- package/templates/turborepo-pandacss/packages/front-core/package.json +24 -0
- package/templates/turborepo-pandacss/packages/front-core/src/auth/config.ts +84 -0
- package/templates/turborepo-pandacss/packages/front-core/src/auth/index.ts +5 -0
- package/templates/turborepo-pandacss/packages/front-core/src/auth/types/next-auth.d.ts +20 -0
- package/templates/turborepo-pandacss/packages/front-core/src/auth/utils.ts +29 -0
- package/templates/turborepo-pandacss/packages/front-core/src/context/index.ts +2 -0
- package/templates/turborepo-pandacss/packages/front-core/src/hooks/index.ts +2 -0
- package/templates/turborepo-pandacss/packages/front-core/src/index.ts +4 -0
- package/templates/turborepo-pandacss/packages/front-core/src/utils/index.ts +2 -0
- package/templates/turborepo-pandacss/packages/front-core/tsconfig.json +14 -0
- package/templates/turborepo-pandacss/packages/server-core/package.json +32 -0
- package/templates/turborepo-pandacss/packages/server-core/prisma/schema.prisma +102 -0
- package/templates/turborepo-pandacss/packages/server-core/prisma/seed.ts +67 -0
- package/templates/turborepo-pandacss/packages/server-core/prisma.config.ts +8 -0
- package/templates/turborepo-pandacss/packages/server-core/src/__generated__/fabbrica/index.d.ts +270 -0
- package/templates/turborepo-pandacss/packages/server-core/src/__generated__/fabbrica/index.js +484 -0
- package/templates/turborepo-pandacss/packages/server-core/src/core/result.test.ts +78 -0
- package/templates/turborepo-pandacss/packages/server-core/src/core/result.ts +53 -0
- package/templates/turborepo-pandacss/packages/server-core/src/domain/.gitkeep +0 -0
- package/templates/turborepo-pandacss/packages/server-core/src/domain/entities/User.test.ts +232 -0
- package/templates/turborepo-pandacss/packages/server-core/src/domain/entities/User.ts +105 -0
- package/templates/turborepo-pandacss/packages/server-core/src/domain/repository-interfaces/IUserRepository.ts +101 -0
- package/templates/turborepo-pandacss/packages/server-core/src/infrastructure/database/client.ts +15 -0
- package/templates/turborepo-pandacss/packages/server-core/src/infrastructure/database/mappers/UserMapper.test.ts +278 -0
- package/templates/turborepo-pandacss/packages/server-core/src/infrastructure/database/mappers/UserMapper.ts +103 -0
- package/templates/turborepo-pandacss/packages/server-core/src/infrastructure/database/repositories/UserRepository.test.ts +317 -0
- package/templates/turborepo-pandacss/packages/server-core/src/infrastructure/database/repositories/UserRepository.ts +169 -0
- package/templates/turborepo-pandacss/packages/server-core/src/testing/factories/index.ts +22 -0
- package/templates/turborepo-pandacss/packages/server-core/src/testing/factories/user.factory.ts +123 -0
- package/templates/turborepo-pandacss/packages/server-core/src/testing/fixtures/users.ts +92 -0
- package/templates/turborepo-pandacss/packages/server-core/src/testing/helpers/date.ts +49 -0
- package/templates/turborepo-pandacss/packages/server-core/src/testing/helpers/password.ts +50 -0
- package/templates/turborepo-pandacss/packages/server-core/src/testing/index.ts +26 -0
- package/templates/turborepo-pandacss/packages/server-core/tsconfig.json +14 -0
- package/templates/turborepo-pandacss/packages/server-core/vitest.config.ts +15 -0
- package/templates/turborepo-pandacss/packages/ui/package.json +37 -0
- package/templates/turborepo-pandacss/packages/ui/src/accordion.tsx +66 -0
- package/templates/turborepo-pandacss/packages/ui/src/alert-dialog.tsx +157 -0
- package/templates/turborepo-pandacss/packages/ui/src/alert.tsx +66 -0
- package/templates/turborepo-pandacss/packages/ui/src/aspect-ratio.tsx +11 -0
- package/templates/turborepo-pandacss/packages/ui/src/avatar.tsx +53 -0
- package/templates/turborepo-pandacss/packages/ui/src/badge.tsx +46 -0
- package/templates/turborepo-pandacss/packages/ui/src/breadcrumb.tsx +108 -0
- package/templates/turborepo-pandacss/packages/ui/src/button.tsx +59 -0
- package/templates/turborepo-pandacss/packages/ui/src/card.tsx +92 -0
- package/templates/turborepo-pandacss/packages/ui/src/checkbox.tsx +32 -0
- package/templates/turborepo-pandacss/packages/ui/src/data-table.tsx +216 -0
- package/templates/turborepo-pandacss/packages/ui/src/dialog-hook.tsx +226 -0
- package/templates/turborepo-pandacss/packages/ui/src/dialog.tsx +143 -0
- package/templates/turborepo-pandacss/packages/ui/src/drawer.tsx +135 -0
- package/templates/turborepo-pandacss/packages/ui/src/dropdown-menu.tsx +257 -0
- package/templates/turborepo-pandacss/packages/ui/src/form.tsx +168 -0
- package/templates/turborepo-pandacss/packages/ui/src/hover-card.tsx +44 -0
- package/templates/turborepo-pandacss/packages/ui/src/input.tsx +21 -0
- package/templates/turborepo-pandacss/packages/ui/src/label.tsx +24 -0
- package/templates/turborepo-pandacss/packages/ui/src/lib/utils.ts +6 -0
- package/templates/turborepo-pandacss/packages/ui/src/pagination.tsx +126 -0
- package/templates/turborepo-pandacss/packages/ui/src/popover.tsx +48 -0
- package/templates/turborepo-pandacss/packages/ui/src/progress.tsx +31 -0
- package/templates/turborepo-pandacss/packages/ui/src/select.tsx +185 -0
- package/templates/turborepo-pandacss/packages/ui/src/separator.tsx +28 -0
- package/templates/turborepo-pandacss/packages/ui/src/skeleton.tsx +13 -0
- package/templates/turborepo-pandacss/packages/ui/src/sonner.tsx +25 -0
- package/templates/turborepo-pandacss/packages/ui/src/table.tsx +116 -0
- package/templates/turborepo-pandacss/packages/ui/src/tabs.tsx +66 -0
- package/templates/turborepo-pandacss/packages/ui/src/textarea.tsx +18 -0
- package/templates/turborepo-pandacss/packages/ui/src/tooltip.tsx +61 -0
- package/templates/turborepo-pandacss/packages/ui/src/typography.tsx +187 -0
- package/templates/turborepo-pandacss/packages/ui/tsconfig.json +20 -0
- package/templates/turborepo-pandacss/panda.config.ts +114 -0
- package/templates/turborepo-pandacss/pnpm-lock.yaml +9032 -0
- package/templates/turborepo-pandacss/pnpm-workspace.yaml +11 -0
- package/templates/turborepo-pandacss/postcss.config.cjs +6 -0
- package/templates/turborepo-pandacss/prisma/schema.prisma +82 -0
- package/templates/turborepo-pandacss/public/file.svg +1 -0
- package/templates/turborepo-pandacss/public/globe.svg +1 -0
- package/templates/turborepo-pandacss/public/next.svg +1 -0
- package/templates/turborepo-pandacss/public/vercel.svg +1 -0
- package/templates/turborepo-pandacss/public/window.svg +1 -0
- package/templates/turborepo-pandacss/scripts/cli-template-update.ts +387 -0
- package/templates/turborepo-pandacss/scripts/env-show.ts +129 -0
- package/templates/turborepo-pandacss/scripts/env.ts +555 -0
- package/templates/turborepo-pandacss/scripts/init.sh +92 -0
- package/templates/turborepo-pandacss/scripts/setup-dev.ts +640 -0
- package/templates/turborepo-pandacss/scripts/template-update.ts +277 -0
- package/templates/turborepo-pandacss/scripts/worktree/dev.ts +872 -0
- package/templates/turborepo-pandacss/test/globals.d.ts +1 -0
- package/templates/turborepo-pandacss/test/setup.ts +22 -0
- package/templates/turborepo-pandacss/tsconfig.json +46 -0
- package/templates/turborepo-pandacss/turbo.json +57 -0
- package/templates/turborepo-pandacss/vitest.config.ts +20 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
@layer reset, base, tokens, recipes, utilities;
|
|
6
|
+
|
|
7
|
+
@theme inline {
|
|
8
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
9
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
10
|
+
--radius-lg: var(--radius);
|
|
11
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
12
|
+
--color-background: var(--background);
|
|
13
|
+
--color-foreground: var(--foreground);
|
|
14
|
+
--color-card: var(--card);
|
|
15
|
+
--color-card-foreground: var(--card-foreground);
|
|
16
|
+
--color-popover: var(--popover);
|
|
17
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
18
|
+
--color-primary: var(--primary);
|
|
19
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
20
|
+
--color-secondary: var(--secondary);
|
|
21
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
22
|
+
--color-muted: var(--muted);
|
|
23
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
24
|
+
--color-accent: var(--accent);
|
|
25
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
26
|
+
--color-destructive: var(--destructive);
|
|
27
|
+
--color-border: var(--border);
|
|
28
|
+
--color-input: var(--input);
|
|
29
|
+
--color-ring: var(--ring);
|
|
30
|
+
--color-chart-1: var(--chart-1);
|
|
31
|
+
--color-chart-2: var(--chart-2);
|
|
32
|
+
--color-chart-3: var(--chart-3);
|
|
33
|
+
--color-chart-4: var(--chart-4);
|
|
34
|
+
--color-chart-5: var(--chart-5);
|
|
35
|
+
--color-sidebar: var(--sidebar);
|
|
36
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
37
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
38
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
39
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
40
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
41
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
42
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:root {
|
|
46
|
+
--radius: 0.625rem;
|
|
47
|
+
--background: oklch(1 0 0);
|
|
48
|
+
--foreground: oklch(0.145 0 0);
|
|
49
|
+
--card: oklch(1 0 0);
|
|
50
|
+
--card-foreground: oklch(0.145 0 0);
|
|
51
|
+
--popover: oklch(1 0 0);
|
|
52
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
53
|
+
--primary: oklch(0.205 0 0);
|
|
54
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
55
|
+
--secondary: oklch(0.97 0 0);
|
|
56
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
57
|
+
--muted: oklch(0.97 0 0);
|
|
58
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
59
|
+
--accent: oklch(0.97 0 0);
|
|
60
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
61
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
62
|
+
--border: oklch(0.922 0 0);
|
|
63
|
+
--input: oklch(0.922 0 0);
|
|
64
|
+
--ring: oklch(0.708 0 0);
|
|
65
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
66
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
67
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
68
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
69
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
70
|
+
--sidebar: oklch(0.985 0 0);
|
|
71
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
72
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
73
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
74
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
75
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
76
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
77
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dark {
|
|
81
|
+
--background: oklch(0.145 0 0);
|
|
82
|
+
--foreground: oklch(0.985 0 0);
|
|
83
|
+
--card: oklch(0.205 0 0);
|
|
84
|
+
--card-foreground: oklch(0.985 0 0);
|
|
85
|
+
--popover: oklch(0.205 0 0);
|
|
86
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
87
|
+
--primary: oklch(0.922 0 0);
|
|
88
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
89
|
+
--secondary: oklch(0.269 0 0);
|
|
90
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
91
|
+
--muted: oklch(0.269 0 0);
|
|
92
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
93
|
+
--accent: oklch(0.269 0 0);
|
|
94
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
95
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
96
|
+
--border: oklch(1 0 0 / 10%);
|
|
97
|
+
--input: oklch(1 0 0 / 15%);
|
|
98
|
+
--ring: oklch(0.556 0 0);
|
|
99
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
100
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
101
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
102
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
103
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
104
|
+
--sidebar: oklch(0.205 0 0);
|
|
105
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
106
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
107
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
108
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
109
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
110
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
111
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@layer base {
|
|
115
|
+
* {
|
|
116
|
+
@apply border-border outline-ring/50;
|
|
117
|
+
}
|
|
118
|
+
body {
|
|
119
|
+
@apply bg-background text-foreground;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./globals.css";
|
|
2
|
+
import { QueryProvider } from "@/components/providers/query-provider";
|
|
3
|
+
import { AuthProvider } from "@/components/providers/session-provider";
|
|
4
|
+
import type { Metadata } from "next";
|
|
5
|
+
|
|
6
|
+
export const metadata: Metadata = {
|
|
7
|
+
title: {
|
|
8
|
+
default: "管理システム",
|
|
9
|
+
template: "%s | 管理システム",
|
|
10
|
+
},
|
|
11
|
+
description: "管理システム",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default function RootLayout({
|
|
15
|
+
children,
|
|
16
|
+
}: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}) {
|
|
19
|
+
return (
|
|
20
|
+
<html lang="ja">
|
|
21
|
+
<body>
|
|
22
|
+
<QueryProvider>
|
|
23
|
+
<AuthProvider>{children}</AuthProvider>
|
|
24
|
+
</QueryProvider>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { css } from "@/styled-system/css";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
|
|
4
|
+
export default function NotFound() {
|
|
5
|
+
return (
|
|
6
|
+
<div
|
|
7
|
+
className={css({
|
|
8
|
+
minH: "100vh",
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDir: "column",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
p: "4",
|
|
14
|
+
bg: "white",
|
|
15
|
+
})}
|
|
16
|
+
>
|
|
17
|
+
<div
|
|
18
|
+
className={css({
|
|
19
|
+
textAlign: "center",
|
|
20
|
+
})}
|
|
21
|
+
>
|
|
22
|
+
<h1 className={css({ mb: "4" })}>404 - Page Not Found</h1>
|
|
23
|
+
<p
|
|
24
|
+
className={css({
|
|
25
|
+
color: "gray.600",
|
|
26
|
+
mb: "8",
|
|
27
|
+
fontSize: "lg",
|
|
28
|
+
})}
|
|
29
|
+
>
|
|
30
|
+
申し訳ありません。お探しのページが見つかりませんでした。
|
|
31
|
+
</p>
|
|
32
|
+
<Link
|
|
33
|
+
href="/"
|
|
34
|
+
className={css({
|
|
35
|
+
display: "inline-flex",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
justifyContent: "center",
|
|
38
|
+
px: "6",
|
|
39
|
+
py: "3",
|
|
40
|
+
bg: "blue.500",
|
|
41
|
+
color: "white",
|
|
42
|
+
fontWeight: "semibold",
|
|
43
|
+
rounded: "md",
|
|
44
|
+
_hover: { bg: "blue.600" },
|
|
45
|
+
_active: { bg: "blue.700" },
|
|
46
|
+
transition: "all 0.2s",
|
|
47
|
+
})}
|
|
48
|
+
>
|
|
49
|
+
トップページへ戻る
|
|
50
|
+
</Link>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
.page {
|
|
2
|
+
--gray-rgb: 0, 0, 0;
|
|
3
|
+
--gray-alpha-200: rgba(var(--gray-rgb), 0.08);
|
|
4
|
+
--gray-alpha-100: rgba(var(--gray-rgb), 0.05);
|
|
5
|
+
|
|
6
|
+
--button-primary-hover: #383838;
|
|
7
|
+
--button-secondary-hover: #f2f2f2;
|
|
8
|
+
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-rows: 20px 1fr 20px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-items: center;
|
|
13
|
+
min-height: 100svh;
|
|
14
|
+
padding: 80px;
|
|
15
|
+
gap: 64px;
|
|
16
|
+
font-family: var(--font-geist-sans);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-color-scheme: dark) {
|
|
20
|
+
.page {
|
|
21
|
+
--gray-rgb: 255, 255, 255;
|
|
22
|
+
--gray-alpha-200: rgba(var(--gray-rgb), 0.145);
|
|
23
|
+
--gray-alpha-100: rgba(var(--gray-rgb), 0.06);
|
|
24
|
+
|
|
25
|
+
--button-primary-hover: #ccc;
|
|
26
|
+
--button-secondary-hover: #1a1a1a;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.main {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: 32px;
|
|
34
|
+
grid-row-start: 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.main ol {
|
|
38
|
+
font-family: var(--font-geist-mono);
|
|
39
|
+
padding-left: 0;
|
|
40
|
+
margin: 0;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
line-height: 24px;
|
|
43
|
+
letter-spacing: -0.01em;
|
|
44
|
+
list-style-position: inside;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.main li:not(:last-of-type) {
|
|
48
|
+
margin-bottom: 8px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.main code {
|
|
52
|
+
font-family: inherit;
|
|
53
|
+
background: var(--gray-alpha-100);
|
|
54
|
+
padding: 2px 4px;
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ctas {
|
|
60
|
+
display: flex;
|
|
61
|
+
gap: 16px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ctas a {
|
|
65
|
+
appearance: none;
|
|
66
|
+
border-radius: 128px;
|
|
67
|
+
height: 48px;
|
|
68
|
+
padding: 0 20px;
|
|
69
|
+
border: none;
|
|
70
|
+
border: 1px solid transparent;
|
|
71
|
+
transition: background 0.2s, color 0.2s, border-color 0.2s;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
font-size: 16px;
|
|
77
|
+
line-height: 20px;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
a.primary {
|
|
82
|
+
background: var(--foreground);
|
|
83
|
+
color: var(--background);
|
|
84
|
+
gap: 8px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
a.secondary {
|
|
88
|
+
border-color: var(--gray-alpha-200);
|
|
89
|
+
min-width: 158px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.footer {
|
|
93
|
+
grid-row-start: 3;
|
|
94
|
+
display: flex;
|
|
95
|
+
gap: 24px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.footer a {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 8px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.footer img {
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Enable hover only on non-touch devices */
|
|
109
|
+
@media (hover: hover) and (pointer: fine) {
|
|
110
|
+
a.primary:hover {
|
|
111
|
+
background: var(--button-primary-hover);
|
|
112
|
+
border-color: transparent;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
a.secondary:hover {
|
|
116
|
+
background: var(--button-secondary-hover);
|
|
117
|
+
border-color: transparent;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.footer a:hover {
|
|
121
|
+
text-decoration: underline;
|
|
122
|
+
text-underline-offset: 4px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (max-width: 600px) {
|
|
127
|
+
.page {
|
|
128
|
+
padding: 32px;
|
|
129
|
+
padding-bottom: 80px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.main {
|
|
133
|
+
align-items: center;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.main ol {
|
|
137
|
+
text-align: center;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ctas {
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.ctas a {
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
height: 40px;
|
|
147
|
+
padding: 0 16px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
a.secondary {
|
|
151
|
+
min-width: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.footer {
|
|
155
|
+
flex-wrap: wrap;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (prefers-color-scheme: dark) {
|
|
162
|
+
.logo {
|
|
163
|
+
filter: invert();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { render, screen } from "@testing-library/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { describe, expect, it, vi } from "vitest";
|
|
4
|
+
import Home from "./page";
|
|
5
|
+
|
|
6
|
+
// UserAvatarコンポーネントをモック
|
|
7
|
+
vi.mock("@/components/auth/user-avatar", () => ({
|
|
8
|
+
UserAvatar: () => <div data-testid="user-avatar">UserAvatar</div>,
|
|
9
|
+
}));
|
|
10
|
+
|
|
11
|
+
describe("ホームページ", () => {
|
|
12
|
+
it("管理画面テンプレートのタイトルが表示される", () => {
|
|
13
|
+
render(<Home />);
|
|
14
|
+
|
|
15
|
+
expect(screen.getByText("Einja Management Template")).toBeInTheDocument();
|
|
16
|
+
expect(screen.getByText("管理画面テンプレート")).toBeInTheDocument();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it("技術スタックのセクションが表示される", () => {
|
|
20
|
+
render(<Home />);
|
|
21
|
+
|
|
22
|
+
expect(screen.getByText("🚀 技術スタック")).toBeInTheDocument();
|
|
23
|
+
expect(screen.getByText("• Next.js 15 (App Router)")).toBeInTheDocument();
|
|
24
|
+
expect(screen.getByText("• TypeScript (Strict Mode)")).toBeInTheDocument();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("主な機能のセクションが表示される", () => {
|
|
28
|
+
render(<Home />);
|
|
29
|
+
|
|
30
|
+
expect(screen.getByText("✨ 主な機能")).toBeInTheDocument();
|
|
31
|
+
expect(screen.getByText("• メール・パスワード認証")).toBeInTheDocument();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it("セットアップ手順が表示される", () => {
|
|
35
|
+
render(<Home />);
|
|
36
|
+
|
|
37
|
+
expect(screen.getByText("🔧 セットアップ手順")).toBeInTheDocument();
|
|
38
|
+
expect(screen.getByText("npm install")).toBeInTheDocument();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it("ナビゲーションリンクが表示される", () => {
|
|
42
|
+
render(<Home />);
|
|
43
|
+
|
|
44
|
+
const signupLink = screen.getByRole("link", { name: "新規登録" });
|
|
45
|
+
const signinLink = screen.getByRole("link", { name: "ログイン" });
|
|
46
|
+
|
|
47
|
+
expect(signupLink).toBeInTheDocument();
|
|
48
|
+
expect(signupLink).toHaveAttribute("href", "/signup");
|
|
49
|
+
expect(signinLink).toBeInTheDocument();
|
|
50
|
+
expect(signinLink).toHaveAttribute("href", "/signin");
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { UserAvatar } from "@/components/auth/user-avatar";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { css } from "../../styled-system/css";
|
|
5
|
+
|
|
6
|
+
export default function Home() {
|
|
7
|
+
return (
|
|
8
|
+
<main
|
|
9
|
+
className={css({
|
|
10
|
+
minHeight: "screen",
|
|
11
|
+
padding: { base: "4", md: "8" },
|
|
12
|
+
background: "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
|
13
|
+
color: "white",
|
|
14
|
+
})}
|
|
15
|
+
>
|
|
16
|
+
<header
|
|
17
|
+
className={css({
|
|
18
|
+
marginBottom: { base: "6", md: "12" },
|
|
19
|
+
})}
|
|
20
|
+
>
|
|
21
|
+
<nav
|
|
22
|
+
className={css({
|
|
23
|
+
display: "flex",
|
|
24
|
+
justifyContent: "space-between",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
padding: { base: "4", md: "6" },
|
|
27
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
28
|
+
borderRadius: "lg",
|
|
29
|
+
backdropFilter: "blur(10px)",
|
|
30
|
+
})}
|
|
31
|
+
>
|
|
32
|
+
<h1
|
|
33
|
+
className={css({
|
|
34
|
+
fontSize: { base: "xl", md: "2xl" },
|
|
35
|
+
fontWeight: "bold",
|
|
36
|
+
})}
|
|
37
|
+
>
|
|
38
|
+
Einja Management Template
|
|
39
|
+
</h1>
|
|
40
|
+
<UserAvatar />
|
|
41
|
+
</nav>
|
|
42
|
+
</header>
|
|
43
|
+
|
|
44
|
+
<div
|
|
45
|
+
className={css({
|
|
46
|
+
maxWidth: "4xl",
|
|
47
|
+
margin: "0 auto",
|
|
48
|
+
padding: { base: "4", md: "8" },
|
|
49
|
+
})}
|
|
50
|
+
>
|
|
51
|
+
<section
|
|
52
|
+
className={css({
|
|
53
|
+
textAlign: "center",
|
|
54
|
+
marginBottom: { base: "8", md: "12" },
|
|
55
|
+
})}
|
|
56
|
+
>
|
|
57
|
+
<h2
|
|
58
|
+
className={css({
|
|
59
|
+
fontSize: { base: "2xl", md: "4xl" },
|
|
60
|
+
fontWeight: "bold",
|
|
61
|
+
marginBottom: "4",
|
|
62
|
+
textShadow: "0 2px 4px rgba(0,0,0,0.3)",
|
|
63
|
+
})}
|
|
64
|
+
>
|
|
65
|
+
管理画面テンプレート
|
|
66
|
+
</h2>
|
|
67
|
+
<p
|
|
68
|
+
className={css({
|
|
69
|
+
fontSize: { base: "lg", md: "xl" },
|
|
70
|
+
opacity: "0.9",
|
|
71
|
+
lineHeight: "relaxed",
|
|
72
|
+
})}
|
|
73
|
+
>
|
|
74
|
+
Next.js 15 + TypeScript + PandaCSS + NextAuth を使用した
|
|
75
|
+
<br />
|
|
76
|
+
モダンな管理画面テンプレートです
|
|
77
|
+
</p>
|
|
78
|
+
</section>
|
|
79
|
+
|
|
80
|
+
<div
|
|
81
|
+
className={css({
|
|
82
|
+
display: "grid",
|
|
83
|
+
gridTemplateColumns: { base: "1fr", md: "repeat(2, 1fr)" },
|
|
84
|
+
gap: { base: "4", md: "8" },
|
|
85
|
+
marginBottom: { base: "8", md: "12" },
|
|
86
|
+
})}
|
|
87
|
+
>
|
|
88
|
+
<div
|
|
89
|
+
className={css({
|
|
90
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
91
|
+
padding: { base: "4", md: "6" },
|
|
92
|
+
borderRadius: "lg",
|
|
93
|
+
backdropFilter: "blur(10px)",
|
|
94
|
+
})}
|
|
95
|
+
>
|
|
96
|
+
<h3
|
|
97
|
+
className={css({
|
|
98
|
+
fontSize: { base: "lg", md: "xl" },
|
|
99
|
+
fontWeight: "semibold",
|
|
100
|
+
marginBottom: "3",
|
|
101
|
+
})}
|
|
102
|
+
>
|
|
103
|
+
🚀 技術スタック
|
|
104
|
+
</h3>
|
|
105
|
+
<ul
|
|
106
|
+
className={css({
|
|
107
|
+
fontSize: "sm",
|
|
108
|
+
lineHeight: "relaxed",
|
|
109
|
+
opacity: "0.9",
|
|
110
|
+
})}
|
|
111
|
+
>
|
|
112
|
+
<li>• Next.js 15 (App Router)</li>
|
|
113
|
+
<li>• TypeScript (Strict Mode)</li>
|
|
114
|
+
<li>• PandaCSS (CSS-in-JS)</li>
|
|
115
|
+
<li>• NextAuth v5 (認証)</li>
|
|
116
|
+
<li>• Prisma ORM + PostgreSQL</li>
|
|
117
|
+
<li>• shadcn/ui コンポーネント</li>
|
|
118
|
+
<li>• Biome (Linting & Formatting)</li>
|
|
119
|
+
</ul>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div
|
|
123
|
+
className={css({
|
|
124
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
125
|
+
padding: { base: "4", md: "6" },
|
|
126
|
+
borderRadius: "lg",
|
|
127
|
+
backdropFilter: "blur(10px)",
|
|
128
|
+
})}
|
|
129
|
+
>
|
|
130
|
+
<h3
|
|
131
|
+
className={css({
|
|
132
|
+
fontSize: { base: "lg", md: "xl" },
|
|
133
|
+
fontWeight: "semibold",
|
|
134
|
+
marginBottom: "3",
|
|
135
|
+
})}
|
|
136
|
+
>
|
|
137
|
+
✨ 主な機能
|
|
138
|
+
</h3>
|
|
139
|
+
<ul
|
|
140
|
+
className={css({
|
|
141
|
+
fontSize: "sm",
|
|
142
|
+
lineHeight: "relaxed",
|
|
143
|
+
opacity: "0.9",
|
|
144
|
+
})}
|
|
145
|
+
>
|
|
146
|
+
<li>• メール・パスワード認証</li>
|
|
147
|
+
<li>• ユーザー登録・ログイン</li>
|
|
148
|
+
<li>• 認証保護されたダッシュボード</li>
|
|
149
|
+
<li>• レスポンシブデザイン</li>
|
|
150
|
+
<li>• Docker対応(PostgreSQL)</li>
|
|
151
|
+
<li>• Vercel デプロイ対応</li>
|
|
152
|
+
<li>• 拡張可能なアーキテクチャ</li>
|
|
153
|
+
</ul>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<section
|
|
158
|
+
className={css({
|
|
159
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
160
|
+
padding: { base: "4", md: "6" },
|
|
161
|
+
borderRadius: "lg",
|
|
162
|
+
backdropFilter: "blur(10px)",
|
|
163
|
+
marginBottom: { base: "6", md: "8" },
|
|
164
|
+
})}
|
|
165
|
+
>
|
|
166
|
+
<h3
|
|
167
|
+
className={css({
|
|
168
|
+
fontSize: { base: "lg", md: "xl" },
|
|
169
|
+
fontWeight: "semibold",
|
|
170
|
+
marginBottom: "4",
|
|
171
|
+
})}
|
|
172
|
+
>
|
|
173
|
+
🔧 セットアップ手順
|
|
174
|
+
</h3>
|
|
175
|
+
<div
|
|
176
|
+
className={css({
|
|
177
|
+
fontSize: "sm",
|
|
178
|
+
lineHeight: "relaxed",
|
|
179
|
+
opacity: "0.9",
|
|
180
|
+
})}
|
|
181
|
+
>
|
|
182
|
+
<ol
|
|
183
|
+
className={css({
|
|
184
|
+
listStyleType: "decimal",
|
|
185
|
+
paddingLeft: "4",
|
|
186
|
+
gap: "2",
|
|
187
|
+
display: "flex",
|
|
188
|
+
flexDirection: "column",
|
|
189
|
+
})}
|
|
190
|
+
>
|
|
191
|
+
<li>
|
|
192
|
+
<strong>依存関係のインストール:</strong> <code>npm install</code>
|
|
193
|
+
</li>
|
|
194
|
+
<li>
|
|
195
|
+
<strong>データベース起動:</strong> <code>docker-compose up postgres -d</code>
|
|
196
|
+
</li>
|
|
197
|
+
<li>
|
|
198
|
+
<strong>環境変数設定:</strong> <code>.env.example</code> を <code>.env</code>{" "}
|
|
199
|
+
にコピー
|
|
200
|
+
</li>
|
|
201
|
+
<li>
|
|
202
|
+
<strong>データベースセットアップ:</strong> <code>npm run db:push</code>
|
|
203
|
+
</li>
|
|
204
|
+
<li>
|
|
205
|
+
<strong>開発サーバー起動:</strong> <code>npm run dev</code>
|
|
206
|
+
</li>
|
|
207
|
+
</ol>
|
|
208
|
+
</div>
|
|
209
|
+
</section>
|
|
210
|
+
|
|
211
|
+
<div
|
|
212
|
+
className={css({
|
|
213
|
+
display: "flex",
|
|
214
|
+
justifyContent: "center",
|
|
215
|
+
gap: "4",
|
|
216
|
+
flexWrap: "wrap",
|
|
217
|
+
})}
|
|
218
|
+
>
|
|
219
|
+
<Link
|
|
220
|
+
href="/signup"
|
|
221
|
+
className={css({
|
|
222
|
+
backgroundColor: "white",
|
|
223
|
+
color: "#667eea",
|
|
224
|
+
padding: { base: "3 6", md: "4 8" },
|
|
225
|
+
borderRadius: "lg",
|
|
226
|
+
fontWeight: "semibold",
|
|
227
|
+
fontSize: { base: "sm", md: "base" },
|
|
228
|
+
textDecoration: "none",
|
|
229
|
+
transition: "all 0.2s",
|
|
230
|
+
boxShadow: "0 4px 6px rgba(0,0,0,0.1)",
|
|
231
|
+
_hover: {
|
|
232
|
+
transform: "translateY(-2px)",
|
|
233
|
+
boxShadow: "0 6px 12px rgba(0,0,0,0.15)",
|
|
234
|
+
},
|
|
235
|
+
})}
|
|
236
|
+
>
|
|
237
|
+
新規登録
|
|
238
|
+
</Link>
|
|
239
|
+
<Link
|
|
240
|
+
href="/signin"
|
|
241
|
+
className={css({
|
|
242
|
+
backgroundColor: "transparent",
|
|
243
|
+
color: "white",
|
|
244
|
+
padding: { base: "3 6", md: "4 8" },
|
|
245
|
+
borderRadius: "lg",
|
|
246
|
+
fontWeight: "semibold",
|
|
247
|
+
fontSize: { base: "sm", md: "base" },
|
|
248
|
+
textDecoration: "none",
|
|
249
|
+
border: "2px solid white",
|
|
250
|
+
transition: "all 0.2s",
|
|
251
|
+
_hover: {
|
|
252
|
+
backgroundColor: "white",
|
|
253
|
+
color: "#667eea",
|
|
254
|
+
transform: "translateY(-2px)",
|
|
255
|
+
},
|
|
256
|
+
})}
|
|
257
|
+
>
|
|
258
|
+
ログイン
|
|
259
|
+
</Link>
|
|
260
|
+
<Link
|
|
261
|
+
href="/dashboard"
|
|
262
|
+
className={css({
|
|
263
|
+
backgroundColor: "rgba(255, 255, 255, 0.2)",
|
|
264
|
+
color: "white",
|
|
265
|
+
padding: { base: "3 6", md: "4 8" },
|
|
266
|
+
borderRadius: "lg",
|
|
267
|
+
fontWeight: "semibold",
|
|
268
|
+
fontSize: { base: "sm", md: "base" },
|
|
269
|
+
textDecoration: "none",
|
|
270
|
+
border: "1px solid rgba(255, 255, 255, 0.3)",
|
|
271
|
+
transition: "all 0.2s",
|
|
272
|
+
_hover: {
|
|
273
|
+
backgroundColor: "rgba(255, 255, 255, 0.3)",
|
|
274
|
+
transform: "translateY(-2px)",
|
|
275
|
+
},
|
|
276
|
+
})}
|
|
277
|
+
>
|
|
278
|
+
デモを見る
|
|
279
|
+
</Link>
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
</main>
|
|
283
|
+
);
|
|
284
|
+
}
|