Skip to content

Commit

Permalink
✨ feat: 주가지수, top5 반응형 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Dec 4, 2024
1 parent 8f58092 commit 1eef1cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FE/src/components/StockIndex/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function Card({ name, id, initialData }: StockIndexChartProps) {
}, [prices]);

return (
<div className='flex h-[100px] w-full items-center justify-between rounded-lg bg-juga-grayscale-50 p-3'>
<div className='flex h-[100px] w-full flex-1 items-center justify-between rounded-lg bg-juga-grayscale-50 p-3'>
<div className='flex h-full w-[108px] flex-1 flex-col items-start justify-center text-sm'>
<p className='font-semibold'>{name}</p>
<p className='text-lg font-bold'>{stockIndexValue.curr_value}</p>
Expand Down
2 changes: 1 addition & 1 deletion FE/src/components/StockIndex/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function StockIndex() {
const { KOSPI, KOSDAQ, KOSPI200, KSQ150 } = data;

return (
<div className='flex items-center justify-between w-full gap-2 my-2'>
<div className='grid w-full grid-cols-1 gap-2 my-2 sm:grid-cols-2 lg:grid-cols-4'>
<Card name='코스피' id='KOSPI' initialData={KOSPI} />
<Card name='코스닥' id='KOSDAQ' initialData={KOSDAQ} />
<Card name='코스피200' id='KOSPI200' initialData={KOSPI200} />
Expand Down
4 changes: 3 additions & 1 deletion FE/src/components/TopFive/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export default function TopFive() {
return (
<div className='flex flex-col gap-4'>
<Nav />
<div className={'flex flex-row justify-between gap-[64px]'}>
<div
className={'grid grid-cols-1 justify-between gap-[64px] sm:grid-cols-2'}
>
<List listTitle={'급상승 Top 5'} data={data?.high} />
<List listTitle={'급하락 Top 5'} data={data?.low} />
</div>
Expand Down

0 comments on commit 1eef1cf

Please sign in to comment.