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

Feat(design-system): 홈 배너 상단 캐러셀 구현 #80

Merged
merged 18 commits into from
Jan 16, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat: 홈배너 상단 캐러셀 구현
  • Loading branch information
seueooo committed Jan 14, 2025
commit eed4783b8b1bfb388dc655a5630f7d839031604f
7 changes: 7 additions & 0 deletions apps/client/src/pages/home/page/home.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { style } from '@vanilla-extract/css';
import { themeVars } from '@confeti/design-system/styles';

export const mainStyle = style({
paddingTop: '3rem',
background: themeVars.color.confeti_purple_grad,
});
6 changes: 5 additions & 1 deletion apps/client/src/pages/home/page/home.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { Footer, TopCarousel } from '@confeti/design-system';
import { performData } from '@shared/mocks/top-carousel-mock';
import * as styles from './home.css';

const Home = () => {
return (
<>
<TopCarousel></TopCarousel>
<div className={styles.mainStyle}>
<TopCarousel performData={performData}></TopCarousel>
</div>
<Footer />
</>
);
Original file line number Diff line number Diff line change
@@ -3,48 +3,55 @@ export const performData = [
performanceId: 1,
type: 'concert',
title: '오아시스 내한공연',
subTitle: 'LIVE NATION PRESENTS COLDPLAY',
performanceAt: '2025.10.21',
posterUrl: 'https://dummyimage.com/197x262',
},
{
performanceId: 2,
type: 'festival',
title: '오아시스 내한공연',
subTitle: '',
performanceAt: '2025.10.21',
posterUrl: 'https://dummyimage.com/197x262',
},
{
performanceId: 3,
type: 'festival',
title: '오아시스 내한공연3',
subTitle: 'LIVE NATION PRESENTS COLDPLAY',
performanceAt: '2025.10.21',
posterUrl: 'https://dummyimage.com/197x262',
},
{
performanceId: 4,
type: 'festival',
title: '오아시스 내한공연4',
subTitle: '',
performanceAt: '2025.10.21',
posterUrl: 'https://dummyimage.com/197x262',
},
{
performanceId: 5,
type: 'festival',
title: '오아시스 내한공연5',
subTitle: 'LIVE NATION PRESENTS COLDPLAY',
performanceAt: '2025.10.21',
posterUrl: 'https://dummyimage.com/197x262',
},
{
performanceId: 6,
type: 'festival',
title: '오아시스 내한공연6',
subTitle: 'LIVE NATION PRESENTS COLDPLAY',
performanceAt: '2025.10.21',
posterUrl: 'https://dummyimage.com/197x262',
},
{
performanceId: 7,
type: 'festival',
title: '오아시스 내한공연7',
subTitle: '',
performanceAt: '2025.10.21',
posterUrl: 'https://dummyimage.com/197x262',
},

This file was deleted.

10 changes: 0 additions & 10 deletions packages/design-system/src/components/top-carousel/card.tsx

This file was deleted.

172 changes: 0 additions & 172 deletions packages/design-system/src/components/top-carousel/slick-theme.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,62 @@
.topContainer {
width: 100%;
background-color: black;
@keyframes fadeInOut {
0% {
opacity: 0;
}

50% {
opacity: 0.5;
}

100% {
opacity: 1;
}
}

.banner-title {
margin-top: 3rem;
margin-bottom: 2.4rem;
height: 10.3rem;
}

.title-date {
color: var(--grayscale-white, #fff);
text-align: center;
margin-bottom: 1.2rem;

/* subtitle/subtitle5_sb_12 */
font-size: 1.2rem;
font-style: normal;
font-weight: 600;
line-height: 140%; /* 16.8px */
animation: fadeInOut 1s ease-out forwards; /* 4초마다 반복되는 애니메이션 */
}

.title-name {
color: var(--grayscale-white, #fff);
text-align: center;
margin-bottom: 4px;
/* title/title1_b_24 */
font-size: 2.4rem;
font-style: normal;
font-weight: 700;
line-height: normal;
animation: fadeInOut 1s ease-out forwards; /* 4초마다 반복되는 애니메이션 */
}

.title-sub {
color: var(--grayscale-gray500, #93959d);
text-align: center;
/* body/body3_m_14 */
font-size: 1.4rem;
font-style: normal;
font-weight: 500;
line-height: normal;
animation: fadeInOut 1s ease-out forwards; /* 4초마다 반복되는 애니메이션 */
}

.card {
width: 19.7rem;
height: 26.2rem;
border-radius: 10px;
box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.25);
}
Loading