-
Notifications
You must be signed in to change notification settings - Fork 3
메인페이지(주식리스트 테이블) 레이아웃 구현 #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d83b311
#61 refactor(fe): 주식상세 레이아웃 파일명 변경
handje 977c4dd
#61 feat(fe): 주식리스트 파일 생성
handje 51b552c
#61 feat(fe): 주식테이블 배치
handje 27c22ba
#61 feat(fe): 메인페이지 구현 및 meta태그 작성
handje 6406270
#61 fix(fe): 테이블 스타일링 수정
handje 8054126
#61 feat(fe): 헤더 적용
handje eb9c889
#61 fix(fe): 헤더 스타일링 수정
handje 523de77
#61 feat(fe): 상세페이지 이동버튼 임시 생성
handje f8d565b
Merge branch 'dev' of https://github.com/sgdevcamp2025/c_sharp into f…
handje File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,20 @@ | ||
| import { StocksList } from '@/src/features/stock'; | ||
| import { Button } from '@workspace/ui/components'; | ||
| import Link from 'next/link'; | ||
|
|
||
| export const metadata = { | ||
| title: '주식 리스트 - 실시간 주식 정보', | ||
| description: '삼성전자, SK하이닉스, 카카오, 네이버, 한화에어로스페이스의 실시간 주식 정보를 확인하세요.', | ||
| keywords: '주식, 삼성전자, SK하이닉스, 카카오, 네이버, 한화에어로스페이스, 주식 정보', | ||
| }; | ||
|
|
||
| export default function Page() { | ||
| // 버튼 예시 | ||
| return ( | ||
| <div className="flex items-center justify-center min-h-svh"> | ||
| <div className="flex flex-col items-center justify-center gap-4"> | ||
| <h1 className="text-2xl font-bold">Hello World</h1> | ||
| <Button size="sm"> | ||
| <Link href="/tesla">Button</Link> | ||
| </Button> | ||
| </div> | ||
| <div className="flex flex-col items-center justify-center min-h-svh"> | ||
| <Button size="sm"> | ||
| <Link href="/tesla">상세페이지로 이동</Link> | ||
| </Button> | ||
| <StocksList /> | ||
| </div> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export { default as StockLayout } from './stock-layout'; | ||
| export { default as StockDetailLayout } from './ui/stock-detail-layout'; | ||
| export { default as StocksList } from './ui/stocks-list'; |
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
src/frontend/apps/web/src/features/stock/ui/stock-detail-layout.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| const StockDetailLayout = () => { | ||
| return <div className="bg-gray-200 w-full h-full">123</div>; | ||
| }; | ||
|
|
||
| export default StockDetailLayout; |
52 changes: 52 additions & 0 deletions
52
src/frontend/apps/web/src/features/stock/ui/stocks-list.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| import { DataTable } from '@workspace/ui/components'; | ||
|
|
||
| const StocksList = () => { | ||
| const Stockdata = [ | ||
| { | ||
| id: '1', | ||
| name: '삼성전자', | ||
| currPrice: '53700', | ||
| fluctuation: '+0.00', | ||
| volume: '1000', | ||
| stockSlug: 'samsung-electronics', | ||
| }, | ||
| { | ||
| id: '2', | ||
| name: 'SK하이닉스', | ||
| currPrice: '221000', | ||
| fluctuation: '+0.68', | ||
| volume: '1000', | ||
| stockSlug: 'sk-hynix', | ||
| }, | ||
| { | ||
| id: '3', | ||
| name: '카카오', | ||
| currPrice: '35750', | ||
| fluctuation: '+0.00', | ||
| volume: '1000', | ||
| stockSlug: 'kakao', | ||
| }, | ||
| { | ||
| id: '4', | ||
| name: '네이버', | ||
| currPrice: '204000', | ||
| fluctuation: '-0.24', | ||
| volume: '1000', | ||
| stockSlug: 'naver', | ||
| }, | ||
| { | ||
| id: '5', | ||
| name: '한화에어로스페이스', | ||
| currPrice: '411500', | ||
| fluctuation: '+7.30', | ||
| volume: '1000', | ||
| stockSlug: 'hanwha-aerospace', | ||
| }, | ||
| ]; | ||
| return ( | ||
| <div className="w-3/4 shadow-s"> | ||
| <DataTable data={Stockdata} /> | ||
handje marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </div> | ||
| ); | ||
| }; | ||
| export default StocksList; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.