@@ -3,13 +3,14 @@ import styled from 'styled-components';
33import Router from 'next/router' ;
44import { SectionTemplate } from 'components/home' ;
55import { Button , Carousel } from 'components/common' ;
6- import { CAROUSEL_DATA } from 'database/home' ;
6+ import { CAROUSEL_DATA , PROJECT_SECTION } from 'database/home' ;
77import media from 'styles/media' ;
88import SectionTitle from 'components/common/SectionTitle' ;
99import { motion } from 'framer-motion' ;
1010import { useScrollAnimation } from 'hooks/useScrollAnimation' ;
1111
1212function ProjectSection ( ) : ReactElement {
13+ const { title, subTitle } = PROJECT_SECTION ;
1314 const { ref, controls, containerVariants } = useScrollAnimation ( {
1415 containerVariants : {
1516 hidden : { opacity : 0 , y : 40 } ,
@@ -32,13 +33,13 @@ function ProjectSection(): ReactElement {
3233 fontColor = "black_100"
3334 subFontColor = "black_60"
3435 align = "center"
35- title = "YAPP의 서비스들"
36- subTitle = "YAPP에서 활동하는 구성원인 ‘야뿌’들이 만들어낸 프로젝트들이에요."
36+ title = { title }
37+ subTitle = { subTitle }
3738 />
3839 < Carousel data = { CAROUSEL_DATA } />
39- < StyledButton variant = "black" onClick = { ( ) => Router . push ( '/project' ) } >
40+ < Button variant = "black" onClick = { ( ) => Router . push ( '/project' ) } >
4041 프로젝트 더보기
41- </ StyledButton >
42+ </ Button >
4243 </ ProjectContainer >
4344 ) ;
4445}
@@ -48,20 +49,6 @@ const ProjectContainer = styled(SectionTemplate)`
4849 display: flex;
4950 flex-direction: column;
5051 align-items: center;
51- gap: 48px;
52- ` ;
53-
54- const StyledButton = styled ( Button ) `
55- transition: background-color 0.5s;
56-
57- &:hover {
58- background-color: ${ ( { theme } ) => theme . palette . grey_700 } ;
59- }
60-
61- ${ media . mobile } {
62- width: 162px;
63- height: 56px;
64- }
6552` ;
6653
6754export default ProjectSection ;
0 commit comments