diff --git a/apps/web/public/images/univs/chungang.png b/apps/web/public/images/univs/chungang.png new file mode 100644 index 00000000..1ce0f9bb Binary files /dev/null and b/apps/web/public/images/univs/chungang.png differ diff --git a/apps/web/src/constants/university.ts b/apps/web/src/constants/university.ts index d4e37f4d..3214db0c 100644 --- a/apps/web/src/constants/university.ts +++ b/apps/web/src/constants/university.ts @@ -18,6 +18,7 @@ export const REGIONS_KO = ["유럽권", "미주권", "아시아권", "중국권" export const HOME_UNIVERSITY_SLUG_MAP: Record = { inha: HomeUniversity.INHA, kyunghee: HomeUniversity.KYUNGHEE, + chungang: HomeUniversity.CHUNGANG, }; /** @@ -26,6 +27,7 @@ export const HOME_UNIVERSITY_SLUG_MAP: Record = { [HomeUniversity.INHA]: "inha", [HomeUniversity.KYUNGHEE]: "kyunghee", + [HomeUniversity.CHUNGANG]: "chungang", }; /** @@ -65,6 +67,18 @@ export const HOME_UNIVERSITY_LIST: HomeUniversityInfo[] = [ description: "경희대학교 교환학생 프로그램", color: "#8C1515", }, + { + homeUniversityId: 3, + name: HomeUniversity.CHUNGANG, + slug: "chungang", + shortName: "중앙대", + // TODO: 중앙대 실제 지원 가능 대학 수 확인 필요. + // 이 목록에 없을 때 적용되던 DEFAULT_MAX_CHOICE_COUNT 와 같은 값이라 현재 동작은 그대로다. + maxChoiceCount: DEFAULT_MAX_CHOICE_COUNT, + logoUrl: "/images/univs/chungang.png", + description: "중앙대학교 교환학생 프로그램", + color: "#006DB4", + }, ]; /** @@ -114,7 +128,7 @@ export const getHomeUniversitySlugByName = (value: string | null | undefined): H /** * 유효한 홈 대학교 슬러그 목록 */ -export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee"]; +export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee", "chungang"]; export const COUNTRIES_KO = [ // 2024-2 기준 diff --git a/apps/web/src/types/university.ts b/apps/web/src/types/university.ts index bf14111b..71217591 100644 --- a/apps/web/src/types/university.ts +++ b/apps/web/src/types/university.ts @@ -3,11 +3,12 @@ export type RegionKo = "유럽권" | "미주권" | "아시아권" | "중국권"; export enum HomeUniversityName { INHA = "인하대학교", KYUNGHEE = "경희대학교", + CHUNGANG = "중앙대학교", } export { HomeUniversityName as HomeUniversity }; -export type HomeUniversitySlug = "inha" | "kyunghee"; +export type HomeUniversitySlug = "inha" | "kyunghee" | "chungang"; export interface RegionOption { value: string;