Skip to content

Commit

Permalink
Feat: 멘토 소속 넣기
Browse files Browse the repository at this point in the history
  • Loading branch information
choo121600 committed Dec 11, 2023
1 parent 7482086 commit 49140f9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
21 changes: 18 additions & 3 deletions src/components/SeminarMentorCard.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
const { mentorName, mentorImg, seminarTitle, seminarLink, linkedIn, github, instagram } = Astro.props;
const { mentorName, mentorImg, mentorCompany, seminarTitle, seminarLink, linkedIn, github, instagram } = Astro.props;
interface Props {
mentorName: string;
mentorCompany: string;
mentorImg: string;
seminarTitle: string;
seminarLink: string;
Expand All @@ -17,10 +18,24 @@ interface Props {
<img class="object-cover w-32 h-32 rounded-full ring-4 ring-gray-300" src={mentorImg} alt="orgImage">

<h1 class="mt-4 text-2xl font-semibold text-gray-700 capitalize dark:text-white">{mentorName}</h1>
<p class="mt-2 text-gray-500 capitalize dark:text-gray-300">{mentorCompany}</p>

<p class="mt-2 text-gray-500 capitalize dark:text-gray-300">{seminarTitle}</p>
<p class="mt-2 text-gray-500 capitalize dark:text-gray-300">세미나 제목: {seminarTitle}</p>

<a href={seminarLink} class="mt-2 text-gray-500 capitalize dark:text-gray-300">세미나 다시보기</p>
<!-- 다시보기 버튼 -->
<a href={seminarLink} class="mt-4 text-sm font-semibold text-gray-700 capitalize dark:text-white">
<div class="flex items-center">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-7 w-7 mr-2"
fill="currentColor"
style="color: #ff0000"
viewBox="0 0 24 24">
<path
d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z" />
</svg>
다시보기
</div>

<div class="flex mt-3 -mx-2">
{linkedIn && (
Expand Down
1 change: 1 addition & 0 deletions src/content/seminarMentors/hyunah_yoo.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
mentorName: "유현아"
mentorCompany: "위민후코드 서울"
mentorImg: "images/seminarMentor/hyunah_yoo.jpg"
seminarTitle: "AI분야의 커리어"
seminarLink: "https://youtu.be/N5eFE39Exvc?feature=shared"
Expand Down
2 changes: 1 addition & 1 deletion src/content/studyMentors/yeonguk.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
mentorName: "추영욱"
mentorImg: "images/studyMentor/yeonguk.webp"
mentorBio: "재미난 프로젝트를 찾아 돌아다니며 공부하는 탐험가입니다. 최근엔 Swift와 인공지능을 좀 찍먹하고 있습니다 ㅎㅎ"
mentorBio: "재미난 프로젝트를 찾아 돌아다는 탐험가입니다."
techStack: ["SwiftUI", "Pytorch", "Python", "CV", "ReactNative"]
github: "https://github.com/choo121600"
linkedIn: "https://linkedin.com/in/keith-choo-yu991216"
Expand Down
1 change: 1 addition & 0 deletions src/pages/mentors/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const seminarMentors = await getCollection("seminarMentors");
<SeminarMentorCard
mentorName={mentor.data.mentorName}
mentorImg={mentor.data.mentorImg}
mentorCompany={mentor.data.mentorCompany}
seminarTitle={mentor.data.seminarTitle}
seminarLink={mentor.data.seminarLink}
github={mentor.data.github}
Expand Down

0 comments on commit 49140f9

Please sign in to comment.