diff --git a/package.json b/package.json index 74a4a342..f14362b6 100644 --- a/package.json +++ b/package.json @@ -34,17 +34,24 @@ "@emotion/styled": "11.11.0", "@prisma/client": "5.5.2", "@willbooster/shared-lib-react": "3.0.0", + "cookie": "0.6.0", "framer-motion": "10.16.4", "next": "14.0.1", + "nextjs-cors": "2.2.0", "pino": "8.16.0", "pino-pretty": "10.2.3", "pm2": "5.3.0", "react": "18.2.0", "react-dom": "18.2.0", + "react-icons": "4.12.0", + "supertokens-auth-react": "0.36.1", + "supertokens-node": "16.6.8", + "supertokens-web-js": "0.8.0", "zod": "3.22.4" }, "devDependencies": { "@chakra-ui/cli": "2.4.1", + "@types/cookie": "^0", "@types/eslint": "8.44.6", "@types/micromatch": "4.0.4", "@types/node": "20.8.10", diff --git a/src/app/(home)/layout.tsx b/src/app/(home)/layout.tsx new file mode 100644 index 00000000..aaddf265 --- /dev/null +++ b/src/app/(home)/layout.tsx @@ -0,0 +1,26 @@ +'use client'; + +import { Container, Spinner } from '@chakra-ui/react'; +import React, { Suspense } from 'react'; + +import { DefaultFooter } from '../../components/organisms/DefaultFooter'; +import { DefaultHeader } from '../../components/organisms/DefaultHeader'; +import type { LayoutComponent } from '../../types'; + +const DefaultLayout: LayoutComponent = ({ children }) => { + return ( + <> + + + }> + + {children} + + + + + + ); +}; + +export default DefaultLayout; diff --git a/src/app/page.tsx b/src/app/(home)/page.tsx similarity index 85% rename from src/app/page.tsx rename to src/app/(home)/page.tsx index eaa75f0e..2e911352 100644 --- a/src/app/page.tsx +++ b/src/app/(home)/page.tsx @@ -2,7 +2,7 @@ import { Button, Heading, Text, VStack } from '@chakra-ui/react'; import type { NextPage } from 'next'; import NextLink from 'next/link'; -import { prisma } from '../infrastructures/prisma'; +import { prisma } from '../../infrastructures/prisma'; const HomePage: NextPage = async () => { const users = await prisma.user.findMany(); @@ -13,7 +13,7 @@ const HomePage: NextPage = async () => { トレーシング力を鍛えよう -