Skip to content

Commit

Permalink
design(mainPage) 메인 페이지 카드 영역 디자인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-Dongwook committed Oct 12, 2023
1 parent 65601bb commit c547a73
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions client/src/components/MainPage/MainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,33 @@ function MainPage() {
<br />
<hr />
<div className="ShowList">
{travelList.map((item) => (
<Card style={{
{travelList.map((item) => (
<Card
style={{
display: 'inline-block',
width: '20%',
height: '200px',
margin: '0 30px'
}} key={item.id} onClick={(e) => movetoSubPage(item.id)}>
<h4>제목 : {item.title}</h4>
<h4>인원 현황 : {item.currentNum} / {item.recruitNum}</h4>
<h4>여행 기간 : {item.startingDate} ~ {item.comingDate}</h4>
</Card>
))}
margin: '0 30px',
padding: '15px',
borderRadius: '10px',
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',
cursor: 'pointer',
textAlign: 'left',
transition: 'transform 0.3s ease-in-out',
}}
key={item.id}
onClick={(e) => movetoSubPage(item.id)}
>
<h4 style={{ marginBottom: '10px', color: '#333' }}>제목: {item.title}</h4>
<div style={{ marginBottom: '10px', color: '#666' }}>
<strong>인원 현황:</strong> {item.currentNum} / {item.recruitNum}
</div>
<div style={{ color: '#666' }}>
<strong>여행 기간:</strong> {item.startingDate} ~ {item.comingDate}
</div>
</Card>
))}

</div>
<hr />
<Footer />
Expand Down

0 comments on commit c547a73

Please sign in to comment.