diff --git a/src/frontend/apps/web/app/(main)/[stockSlug]/page.tsx b/src/frontend/apps/web/app/(main)/[stockSlug]/page.tsx new file mode 100644 index 00000000..8f386534 --- /dev/null +++ b/src/frontend/apps/web/app/(main)/[stockSlug]/page.tsx @@ -0,0 +1,31 @@ +import { ChatContainer } from '@/src/features/chat'; +import { StockLayout } from '@/src/features/stock'; + +// 주식데이터를 가지고 올수있는 방법이 필요합니다. + +export async function generateMetadata({ params }) { + const { stockSlug } = params; + + return { + title: `${stockSlug} - 주식 정보`, + description: `${stockSlug}의 최신 주식 정보를 확인하세요.`, + keywords: `주식, ${stockSlug}, 주식 정보`, + }; +} + +export default function StockDetailsPage({ params }) { + const { stockSlug } = params; + // console.log(1, params); + + return ( +
+
+ +
+ +
+ +
+
+ ); +} diff --git a/src/frontend/apps/web/app/(main)/layout.tsx b/src/frontend/apps/web/app/(main)/layout.tsx new file mode 100644 index 00000000..9a3cd07d --- /dev/null +++ b/src/frontend/apps/web/app/(main)/layout.tsx @@ -0,0 +1,19 @@ +import '@workspace/ui/globals.css'; + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + return ( + + +
Header
+
{children}
+ + + ); +} diff --git a/src/frontend/apps/web/app/page.tsx b/src/frontend/apps/web/app/(main)/page.tsx similarity index 70% rename from src/frontend/apps/web/app/page.tsx rename to src/frontend/apps/web/app/(main)/page.tsx index 7a7ab22e..fce4bc64 100644 --- a/src/frontend/apps/web/app/page.tsx +++ b/src/frontend/apps/web/app/(main)/page.tsx @@ -1,11 +1,15 @@ import { Button } from '@workspace/ui/components'; +import Link from 'next/link'; export default function Page() { + // 버튼 예시 return (

Hello World

- +
); diff --git a/src/frontend/apps/web/app/layout.tsx b/src/frontend/apps/web/app/layout.tsx index 7375d14e..f09e073d 100644 --- a/src/frontend/apps/web/app/layout.tsx +++ b/src/frontend/apps/web/app/layout.tsx @@ -1,7 +1,6 @@ import localFont from 'next/font/local'; import '@workspace/ui/globals.css'; -import { Providers } from '@/src/shared'; const geistSans = localFont({ src: './fonts/GeistVF.woff', @@ -22,9 +21,7 @@ export default function RootLayout({ lang="en" suppressHydrationWarning > - - {children} - + {children} ); } diff --git a/src/frontend/apps/web/app/not-found.tsx b/src/frontend/apps/web/app/not-found.tsx new file mode 100644 index 00000000..31285d04 --- /dev/null +++ b/src/frontend/apps/web/app/not-found.tsx @@ -0,0 +1,18 @@ +import Link from 'next/link'; +import { NextPage } from 'next'; +import { Button } from '@workspace/ui/components'; + +const NotFound: NextPage = () => { + return ( +
+
+
이 페이지는 존재하지 않습니다. 매인 페이지로 이동하세요.
+ +
+
+ ); +}; + +export default NotFound; diff --git a/src/frontend/apps/web/src/features/chat/.keep b/src/frontend/apps/web/src/features/chat/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/frontend/apps/web/src/features/chat/chat-container.tsx b/src/frontend/apps/web/src/features/chat/chat-container.tsx new file mode 100644 index 00000000..8ceb739f --- /dev/null +++ b/src/frontend/apps/web/src/features/chat/chat-container.tsx @@ -0,0 +1,5 @@ +const ChatContainer = () => { + return
123
; +}; + +export default ChatContainer; diff --git a/src/frontend/apps/web/src/features/chat/index.tsx b/src/frontend/apps/web/src/features/chat/index.tsx new file mode 100644 index 00000000..079b37c3 --- /dev/null +++ b/src/frontend/apps/web/src/features/chat/index.tsx @@ -0,0 +1 @@ +export { default as ChatContainer } from './chat-container'; diff --git a/src/frontend/apps/web/src/features/stock/.keep b/src/frontend/apps/web/src/features/stock/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/frontend/apps/web/src/features/stock/index.tsx b/src/frontend/apps/web/src/features/stock/index.tsx new file mode 100644 index 00000000..83a397e4 --- /dev/null +++ b/src/frontend/apps/web/src/features/stock/index.tsx @@ -0,0 +1 @@ +export { default as StockLayout } from './stock-layout'; diff --git a/src/frontend/apps/web/src/features/stock/stock-layout.tsx b/src/frontend/apps/web/src/features/stock/stock-layout.tsx new file mode 100644 index 00000000..7cbc75c2 --- /dev/null +++ b/src/frontend/apps/web/src/features/stock/stock-layout.tsx @@ -0,0 +1,5 @@ +const StockLayout = () => { + return
123
; +}; + +export default StockLayout;