@@ -6,11 +6,9 @@ import Button from "@/shared/ui/Button";
66import { cn } from "@/shared/utils/cn" ;
77import { SectionTitle } from "@/shared/ui/SectionTitle" ;
88import { formatDate } from "@/shared/utils/formatDate" ;
9+ import { sloganStartDate , sloganEndDate } from "@/shared/config/authConfig" ;
910
10- const SLOGAN_YEAR = 2026 ;
11-
12- const SLOGAN_START = new Date ( `${ SLOGAN_YEAR } -05-18T00:00:00+09:00` ) ;
13- const SLOGAN_END = new Date ( `${ SLOGAN_YEAR } -05-28T23:59:59+09:00` ) ;
11+ const SLOGAN_YEAR = sloganStartDate . getFullYear ( ) ;
1412
1513const SloganSecondSection = ( ) => {
1614 const router = useRouter ( ) ;
@@ -20,7 +18,7 @@ const SloganSecondSection = () => {
2018 React . useEffect ( ( ) => {
2119 const checkPeriod = ( ) => {
2220 const now = new Date ( ) ;
23- setIsSloganPeriod ( now >= SLOGAN_START && now <= SLOGAN_END ) ;
21+ setIsSloganPeriod ( now >= sloganStartDate && now <= sloganEndDate ) ;
2422 } ;
2523
2624 checkPeriod ( ) ;
@@ -30,8 +28,8 @@ const SloganSecondSection = () => {
3028 } , [ ] ) ;
3129
3230 const submissionPeriodText = React . useMemo ( ( ) => {
33- const startText = formatDate ( SLOGAN_START ) ;
34- const endText = formatDate ( SLOGAN_END ) ;
31+ const startText = formatDate ( sloganStartDate ) ;
32+ const endText = formatDate ( sloganEndDate ) ;
3533 return `공모기간 : ${ SLOGAN_YEAR } .${ startText } ~${ endText } 24:00까지` ;
3634 } , [ ] ) ;
3735
0 commit comments