Skip to content

Commit

Permalink
Update Camp Contest mobile button links
Browse files Browse the repository at this point in the history
  • Loading branch information
2093ab authored and derug committed Oct 9, 2023
1 parent 9533c21 commit 994a5e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions pages/campcontest.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,15 +357,18 @@ const CampContest = ({ seasonList_, seasonData_ }) => {
</TopicWrap>
);
})}
{currentSeasonData.hasPDF && (
{currentSeasonData.fileNames && (
<ItemWrap className="show-if-mobile" css={ArchiveWrap}>
<ArchiveButton href={currentSeasonData.links[0]}>
문제(BOJ 링크)
</ArchiveButton>
<ArchiveButton
href={`https://api.suapc.kr/${currentYear}${
currentSeason === "Winter" ? "w" : "s"
}/cc-solution`}
href={
(currentSeasonIdx !== 0 ? "https://api.suapc.kr/" : "/res/") +
`${currentYear}${currentSeason === "Winter" ? "w" : "s"}/${
currentSeasonData.fileNames.solutionPdf
}`
}
>
해설 PDF
</ArchiveButton>
Expand Down
2 changes: 1 addition & 1 deletion public/history/halloffame/2021 Summer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"solutionPdf": "21s-Camp-Contest-Solutions.zip"
},
"links": [
"https://www.acmicpc.net/category/499",
"https://www.acmicpc.net/category/796",
"https://www.acmicpc.net/contest/spotboard/676",
"https://www.acmicpc.net/contest/spotboard/677"
],
Expand Down
2 changes: 1 addition & 1 deletion public/history/halloffame/2022 Summer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"solutionPdf": "22s-Camp-Contest-Solution.pdf"
},
"links": [
"https://www.acmicpc.net/category/499",
"https://www.acmicpc.net/category/798",
"https://www.acmicpc.net/contest/spotboard/841",
"https://www.acmicpc.net/contest/spotboard/842"
],
Expand Down
2 changes: 1 addition & 1 deletion public/history/halloffame/2022 Winter.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"solutionPdf": "22w-Camp-Contest-Solution.pdf"
},
"links": [
"https://www.acmicpc.net/category/499",
"https://www.acmicpc.net/category/797",
"https://www.acmicpc.net/contest/spotboard/759",
"https://www.acmicpc.net/contest/spotboard/758"
],
Expand Down

0 comments on commit 994a5e9

Please sign in to comment.