Skip to content

Commit bffeaea

Browse files
authored
[28기] iOS 추가 채용 (#204)
2 parents faefd37 + 943aca6 commit bffeaea

6 files changed

Lines changed: 28 additions & 2 deletions

File tree

components/recruit/RecruitBanner/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
LINK_BY_STATUS,
33
RECRUITING_DEADLINE,
4+
RECRUITING_EXTRA_DEADLINE,
45
RECRUITING_START,
56
RECRUITING_STATUS,
67
RecruitStatus,
@@ -36,6 +37,8 @@ function RecruitBanner() {
3637
return new Date(RECRUITING_START);
3738
case RecruitStatus.ACTIVE:
3839
return new Date(RECRUITING_DEADLINE);
40+
case RecruitStatus.EXTRA:
41+
return new Date(RECRUITING_EXTRA_DEADLINE);
3942
default:
4043
return new Date();
4144
}

components/recruit/RecruitField/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ function RecruitField(): ReactElement {
3838
key={field.name}
3939
variants={itemVariants}
4040
onClick={() => {
41-
if (status === RecruitStatus.ACTIVE && field.url) {
41+
if (
42+
(status === RecruitStatus.ACTIVE && field.url) ||
43+
(field.name === 'iOS' && status === RecruitStatus.EXTRA)
44+
) {
4245
window.open(field.url, '_blank');
4346
}
4447
}}

constants/status.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
import Yapp from './yapp';
22

3-
/* 리크루팅 상태: PRE(모집 오픈 전), ACTIVE(모집 중), POST(모집 마감) */
3+
/* 리크루팅 상태: PRE(모집 오픈 전), ACTIVE(모집 중), POST(모집 마감), EXTRA(추가 모집) */
44
export enum RecruitStatus {
55
PRE = 'PRE',
66
ACTIVE = 'ACTIVE',
77
POST = 'POST',
8+
EXTRA = 'EXTRA',
89
}
910

1011
export const RECRUITING_START = '2026-04-17T00:00:00';
1112
export const RECRUITING_DEADLINE = '2026-04-26T23:59:59';
13+
export const RECRUITING_EXTRA_DEADLINE = '2026-04-28T23:59:59';
1214

1315
export const RECRUITING_STATUS = (): RecruitStatus => {
1416
const now = new Date();
1517
const start = new Date(RECRUITING_START);
1618
const deadline = new Date(RECRUITING_DEADLINE);
19+
const extraDeadline = new Date(RECRUITING_EXTRA_DEADLINE);
1720

1821
if (now < start) return RecruitStatus.PRE;
22+
if (now > deadline && now <= extraDeadline) return RecruitStatus.EXTRA;
1923
if (now > deadline) return RecruitStatus.POST;
2024
return RecruitStatus.ACTIVE;
2125
};
@@ -24,4 +28,5 @@ export const LINK_BY_STATUS: Record<RecruitStatus, string> = {
2428
[RecruitStatus.PRE]: Yapp.PREVIOUS_GENERATION_RECRUIT_LINK,
2529
[RecruitStatus.ACTIVE]: Yapp.YAPP_RECRUIT_ALL,
2630
[RecruitStatus.POST]: Yapp.NEXT_GENERATION_RECRUIT_LINK,
31+
[RecruitStatus.EXTRA]: Yapp.YAPP_RECRUIT_ALL,
2732
};

constants/yapp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const Yapp = {
1515

1616
// 공고 링크
1717
YAPP_RECRUIT_ALL: 'https://yapp-recruit.career.greetinghr.com/ko/apply',
18+
YAPP_RECRUIT_EXTRA: 'https://yapp-recruit.career.greetinghr.com/ko/apply',
1819
YAPP_RECRUIT_PROJECT_MANAGER:
1920
'https://yapp-recruit.career.greetinghr.com/o/210447',
2021
YAPP_RECRUIT_DESIGNER: 'https://yapp-recruit.career.greetinghr.com/o/210451',

database/home.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,16 @@ export const HOME_BANNER_POST = {
217217
buttonName: `${Number(Yapp.YAPP_GENERATION) + 1}기 모집 알림 신청하기`,
218218
};
219219

220+
export const HOME_BANNER_EXTRA = {
221+
title: 'MOMENT OF DISCOVERY',
222+
subTitle: `YAPP ${Number(Yapp.YAPP_GENERATION)}기 iOS 추가 모집중`,
223+
date: '4.27(월) - 4.28(화)',
224+
buttonName: `${Number(Yapp.YAPP_GENERATION)}기 iOS 지원하기`,
225+
};
226+
220227
export const HOME_BANNER_BY_STATUS: Record<RecruitStatus, RecruitBannerInfo> = {
221228
[RecruitStatus.PRE]: HOME_BANNER_PRE,
222229
[RecruitStatus.ACTIVE]: HOME_BANNER_ACTIVE,
223230
[RecruitStatus.POST]: HOME_BANNER_POST,
231+
[RecruitStatus.EXTRA]: HOME_BANNER_EXTRA,
224232
};

database/recruit.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ const RECRUIT_BANNER_ACTIVE: RecruitBannerInfo = {
2020
buttonName: `${Yapp.YAPP_GENERATION}기 지원하기`,
2121
};
2222

23+
const RECRUIT_BANNER_EXTRA: RecruitBannerInfo = {
24+
title: '28기 iOS 추가 모집',
25+
buttonName: `${Yapp.YAPP_GENERATION}기 iOS 지원하기`,
26+
};
27+
2328
const RECRUIT_BANNER_POST: RecruitBannerInfo = {
2429
title: '지금은 모집기간이 아닙니다',
2530
buttonName: `${Number(Yapp.YAPP_GENERATION) + 1}기 모집 알림 신청하기`,
@@ -32,6 +37,7 @@ export const RECRUIT_BANNER_BY_STATUS: Record<
3237
[RecruitStatus.PRE]: RECRUIT_BANNER_PRE,
3338
[RecruitStatus.ACTIVE]: RECRUIT_BANNER_ACTIVE,
3439
[RecruitStatus.POST]: RECRUIT_BANNER_POST,
40+
[RecruitStatus.EXTRA]: RECRUIT_BANNER_EXTRA,
3541
};
3642

3743
/** 세션일정 개요 */

0 commit comments

Comments
 (0)