Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Carousel): 웨일비 캐러셀에 모집기관과 운영기간을 나눠서 보여주도록 변경 #291

Merged
merged 1 commit into from
Dec 1, 2023
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
16 changes: 9 additions & 7 deletions src/components/Carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import Slider from 'react-slick';
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';

interface WhalebeData {
export interface WhalebeData {
title: string;
date: string;
imgUrl: string;
operating_period: string;
recruitment_period: string;
imgurl: string;
link: string;
}

Expand Down Expand Up @@ -47,10 +48,11 @@ const Carousel = () => {
onClick={() => window.open(data.link, '_blank')}
>
<SliderWrapper>
<img src={data.imgUrl} width="100%" height={200} />
<img src={data.imgurl} width="100%" height={200} />
</SliderWrapper>
<Title>{data.title}</Title>
<Date>모집기간: ~ {data.date}</Date>
<Date>모집기간: {data.recruitment_period}</Date>
<Date>운영기간: {data.operating_period}</Date>
<DisplayCenterWrapper>
<Button>자세히보기</Button>
</DisplayCenterWrapper>
Expand Down Expand Up @@ -80,14 +82,14 @@ const SliderWrapper = styled.div`
const Title = styled.div`
font-weight: bold;
font-size: 1rem;
height: 2rem;
height: 3rem;
overflow: hidden;
text-overflow: ellipsis;
`;

const Date = styled.div`
color: ${THEME.TEXT.GRAY};
margin-top: 2rem;
margin-top: 0.3rem;
font-size: 0.8rem;
`;

Expand Down