Skip to content

Commit

Permalink
πŸ’„ : #492 - FootPrintList 슀크둀 μœ„ν•΄ height μ„€μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
MinwooP committed Apr 23, 2024
1 parent e71a5be commit 37638f0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 22 deletions.
60 changes: 41 additions & 19 deletions src/app/footprints/_Components/FootPrintList/FootPrintList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,31 @@ const dummyFootPrintList: FootPrintItemType[] = [
{
id: 3,
iconNumber: 1,
title: '발자취1',
title: '발자취3',
createdAt: '2024.04.22',
ajajas: 3,
tags: ['νƒœκ·Έ1', 'νƒœκ·Έ2', 'νƒœκ·Έ3', 'νƒœκ·Έ4', 'νƒœκ·Έ5'],
},
{
id: 4,
iconNumber: 0,
title: '발자취4',
createdAt: '2024.04.22',
ajajas: 1,
tags: ['νƒœκ·Έ1', 'νƒœκ·Έ2', 'νƒœκ·Έ3', 'νƒœκ·Έ4', 'νƒœκ·Έ5'],
},
{
id: 5,
iconNumber: 1,
title: '발자취5',
createdAt: '2024.04.22',
ajajas: 2,
tags: ['νƒœκ·Έ1', 'νƒœκ·Έ2', 'νƒœκ·Έ3', 'νƒœκ·Έ4', 'νƒœκ·Έ5'],
},
{
id: 6,
iconNumber: 1,
title: '발자취6',
createdAt: '2024.04.22',
ajajas: 3,
tags: ['νƒœκ·Έ1', 'νƒœκ·Έ2', 'νƒœκ·Έ3', 'νƒœκ·Έ4', 'νƒœκ·Έ5'],
Expand All @@ -51,24 +75,22 @@ export default function FootPrintList({ year, plan }: FootPrintListProps) {
// - plan.planId === -2 => ν•΄λ‹Ή year에 ν•΄λ‹Ήν•˜λŠ” κ³„νšμ΄ μ—†λŠ” 것

return (
<>
<ul className={classNames('footprint-list')}>
{dummyFootPrintList.map((item) => {
return (
<FootprintItem
key={item.id}
id={item.id}
iconNumber={item.iconNumber}
title={item.title}
createdAt={item.createdAt}
ajajas={item.ajajas}
tags={item.tags}
/>
);
})}
</ul>
<div>{`${year}와 ${plan.planTitle}에 ν•΄λ‹Ήν•˜λŠ” FootPrintList 좜λ ₯`}</div>
</>
<ul className={classNames('footprint-list')}>
{dummyFootPrintList.map((item) => {
return (
<FootprintItem
key={item.id}
id={item.id}
iconNumber={item.iconNumber}
title={item.title}
createdAt={item.createdAt}
ajajas={item.ajajas}
tags={item.tags}
/>
);
})}
<div>{`${year}와 ${plan}에 ν•΄λ‹Ήν•˜λŠ” FootPrintList`}</div>
</ul>
// TODO: `${year}와 ${plan.planTitle}에 ν•΄λ‹Ήν•˜λŠ” FootPrintList 좜λ ₯`
);
}
2 changes: 1 addition & 1 deletion src/app/footprints/_Components/MyFootPrints/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.my-footprints {
margin-top: 0.5rem;
height: calc(100% - 2rem - 34px);
display: flex;
flex-direction: column;
gap: 1rem;
Expand Down
4 changes: 2 additions & 2 deletions src/app/footprints/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.footprint-page {
display: flex;
flex-direction: column;
gap: 1.5rem;
gap: 1rem;
width: 100%;
height: 100%;
height: calc(100% - 1rem);
}

0 comments on commit 37638f0

Please sign in to comment.