Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import YoutubeIcon from '@/assets/images/icons/sns/youtube_icon.svg';
import DefaultCover from '@/assets/images/logos/default_cover_image.png';
import DefaultLogo from '@/assets/images/logos/default_profile_image.svg';
import ClubStateBox from '@/components/ClubStateBox/ClubStateBox';
import { USER_EVENT } from '@/constants/eventName';
import useMixpanelTrack from '@/hooks/useMixpanelTrack';
import { SNSPlatform } from '@/types/club';
import * as Styled from './ClubProfileCard.styles';

Expand All @@ -27,7 +25,6 @@ const ClubProfileCard = ({
socialLinks,
introDescription,
}: Props) => {
const trackEvent = useMixpanelTrack();
const navigate = useNavigate();

const handleBackClick = () => {
Expand Down Expand Up @@ -59,18 +56,22 @@ const ClubProfileCard = ({

return (
<Styled.Container>
{/* 커버 이미지 */}
<Styled.CoverImageWrapper>
<Styled.BackButton onClick={handleBackClick} aria-label='뒤로가기'>
<img src={PrevButton} alt='' />
</Styled.BackButton>
<Styled.CoverImage src={cover || DefaultCover} alt='클럽 커버' />
</Styled.CoverImageWrapper>

{/* 로고 */}
<Styled.LogoWrapper>
<Styled.Logo src={logo || DefaultLogo} alt={`${name} 로고`} />
</Styled.LogoWrapper>

{/* 클럽 정보 */}
<Styled.Content>
{/* 클럽명 + 뱃지 */}
<Styled.Header>
<Styled.ClubName>{name}</Styled.ClubName>
{recruitmentStatus && <ClubStateBox state={recruitmentStatus} />}
Expand All @@ -94,13 +95,6 @@ const ClubProfileCard = ({
href={url}
target='_blank'
rel='noopener noreferrer'
onClick={() => {
trackEvent(USER_EVENT.SNS_LINK_CLICKED, {
platform,
url,
clubName: name,
});
}}
>
<Styled.SocialIcon src={icon} alt={platform} />
<Styled.SocialText>
Expand All @@ -112,9 +106,12 @@ const ClubProfileCard = ({
})}
</Styled.SocialLinksWrapper>

{/* 소개 섹션 */}
<Styled.IntroSection>
<Styled.IntroTitle>{name}를 소개할게요</Styled.IntroTitle>
<Styled.IntroDescription>{introDescription}</Styled.IntroDescription>
<Styled.IntroDescription>
{introDescription}
</Styled.IntroDescription>
</Styled.IntroSection>
</Styled.Content>
</Styled.Container>
Expand Down