Skip to content

Commit

Permalink
Merge pull request #128 from KakaoTech-BootCamp-Team-2/dev
Browse files Browse the repository at this point in the history
🚀 Deploy
  • Loading branch information
Goldchae authored Sep 10, 2024
2 parents ac581f1 + bfb12e1 commit 9530da1
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_BASE_URL = https://api.kaboo.site:8081
VITE_BASE_URL = https://api.kaboo.site:8081
89 changes: 76 additions & 13 deletions src/pages/PeopleListPage/PeopleListPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const PeopleListPage = () => {
setMembers(membersData.data.memberList);
} else {
console.error('Invalid data structure:', membersData);
setMembers([]); // 데이터 구조가 올바르지 않을 경우 빈 배열 설정
setMembers([]);
}
setIsLoading(false);
} catch (error) {
Expand All @@ -33,28 +33,91 @@ export const PeopleListPage = () => {
}
};

displayMembers();
//displayMembers();
}, []);

const handleCardClick = () => {
navigate('/details');
};

if (isLoading) return <div>로딩 중...</div>;
if (error) return <div>에러 발생: {error.message}</div>;
// if (isLoading) return <div>로딩 중...</div>;
// if (error) return <div>에러 발생: {error.message}</div>;

return (
<Layout>
<MiniLayout text="카부인 전당" layerWidth="80%">
{members.map((member, index) => (
<PeopleCard
key={index}
image={dummyImages1} // 임시 이미지
name={`${member.englishName} (${member.koreaName})`}
affiliation={`카카오 부트캠프 1기 : ${member.course}`}
onClick={handleCardClick}
/>
))}
<PeopleCard
image="src/assets/dummyImages/peopleList.jpeg" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList2.png" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList.jpeg" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList2.png" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList.jpeg" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList2.png" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList.jpeg" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList2.png" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList.jpeg" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList2.png" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList.jpeg" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
<PeopleCard
image="src/assets/dummyImages/peopleList2.png" // 더미이미지
name="celina.jung (정은체)" // 임시 하드코딩
affiliation="카카오 부트캠프 1기 : AI"
onClick={handleCardClick}
/>
</MiniLayout>
</Layout>
);
Expand Down

0 comments on commit 9530da1

Please sign in to comment.