Skip to content

Commit 29e5063

Browse files
committed
Update Camp Contest not held
1 parent b0d4486 commit 29e5063

File tree

4 files changed

+28
-35
lines changed

4 files changed

+28
-35
lines changed

.env.development

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
NEXT_PUBLIC_CURRENT_SUAPC_SEASON="2024 Winter"
2-
NEXT_PUBLIC_CURRENT_HALLOFFAME_SEASON="2023 Summer"
2+
NEXT_PUBLIC_CURRENT_HALLOFFAME_SEASON="2024 Winter"
33
NEXT_PUBLIC_URL="http://localhost:4789"

.env.production

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
NEXT_PUBLIC_CURRENT_SUAPC_SEASON="2024 Winter"
2-
NEXT_PUBLIC_CURRENT_HALLOFFAME_SEASON="2023 Summer"
2+
NEXT_PUBLIC_CURRENT_HALLOFFAME_SEASON="2024 Winter"
33
NEXT_PUBLIC_URL="https://icpc-sinchon.io"

pages/campcontest.page.js

+24-31
Original file line numberDiff line numberDiff line change
@@ -196,37 +196,30 @@ const CampContest = ({ seasonList_, seasonData_ }) => {
196196
</ArchiveButton>
197197
</ArchiveWrap>
198198
)}
199-
<TextWrap
200-
title={
201-
currentSeasonData.length !== 0
202-
? "콘테스트 일자"
203-
: "이 곳의 주인공이 되세요"
204-
}
205-
content={
206-
currentSeasonData.length !== 0
207-
? currentSeasonData.date
208-
: "이 곳의 주인공이 되세요"
209-
}
210-
/>
211-
<TextWrap
212-
title={
213-
currentSeasonData.length !== 0
214-
? "캠프 콘테스트 소개"
215-
: "이 곳의 주인공이 되세요"
216-
}
217-
content={
218-
currentSeasonData.length !== 0
219-
? `캠프 콘테스트는 캠프 기간동안 배운 알고리즘을 적용해볼 수 있는 모의고사 형식의 대회입니다.
220-
개인전으로 진행되며, ICPC Sinchon Algorithm Camp 참가자만 참여할 수 있습니다.`
221-
: "이 곳의 주인공이 되세요"
222-
}
223-
/>
224-
<TextWrap
225-
title={"출제 경향"}
226-
content={
227-
"ICPC Sinchon Algorithm Camp을 통해 학습한 대부분의 알고리즘을 문제로 다루는 것을 목표로 합니다."
228-
}
229-
/>
199+
{currentSeasonData.length !== 0 && currentSeasonData.date ? (
200+
<>
201+
<TextWrap
202+
title={"콘테스트 일자"}
203+
content={currentSeasonData.date}
204+
/>
205+
<TextWrap
206+
title={"캠프 콘테스트 소개"}
207+
content={`캠프 콘테스트는 캠프 기간동안 배운 알고리즘을 적용해볼 수 있는 모의고사 형식의 대회입니다.
208+
개인전으로 진행되며, ICPC Sinchon Algorithm Camp 참가자만 참여할 수 있습니다.`}
209+
/>
210+
<TextWrap
211+
title={"출제 경향"}
212+
content={
213+
"ICPC Sinchon Algorithm Camp을 통해 학습한 대부분의 알고리즘을 문제로 다루는 것을 목표로 합니다."
214+
}
215+
/>
216+
</>
217+
) : (
218+
<TextWrap
219+
title={"이번 시즌에는 Camp Contest가 진행되지 않았습니다"}
220+
content={"다음 시즌을 기대해 주세요"}
221+
/>
222+
)}
230223
{currentSeasonData.studies &&
231224
Array.from(currentSeasonData.studies).map((study) => {
232225
return (

pages/suapc.page.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ const Suapc = () => {
204204
<span style={{ fontSize: "smaller" }}>12/05부터</span>
205205
</AdmissionButton> */}
206206
<AdmissionButton
207-
disabled={!Boolean(currentSeasonData.fileNames.posterImage)}
207+
disabled={!Boolean(currentSeasonData?.fileNames?.posterImage)}
208208
href={`https://api.suapc.kr/${currentYear}${
209209
currentSeason === "Winter" ? "w" : "s"
210-
}/${currentSeasonData.fileNames.posterImage}`}
210+
}/${currentSeasonData?.fileNames?.posterImage}`}
211211
>
212212
공식 포스터
213213
</AdmissionButton>

0 commit comments

Comments
 (0)