Skip to content

Commit

Permalink
이미지, 파일 소스에서 api.suapc.kr 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
witch-factory committed Jun 25, 2024
1 parent 9d59f9e commit f11b3e4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 37 deletions.
2 changes: 1 addition & 1 deletion pages/sponser.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const Sponser = () => {
<SponserItem>
<SponserImgWrap>
<img
src="/res/sponser-ci/autoever.jpg"
src="/res/sponser-ci/autoever.png"
alt="hyundai-autoever-logo"
/>
</SponserImgWrap>
Expand Down
57 changes: 21 additions & 36 deletions pages/suapc.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,20 +154,17 @@ const Suapc = () => {
<ArchiveButton
disabled={!Boolean(currentSeasonData.fileNames.testPdf)}
disabledText="문제 PDF가 제공되지 않는 대회입니다."
href={`https://api.suapc.kr/${currentYear}${
href={`/res/${currentYear}${
currentSeason === "Winter" ? "w" : "s"
}/${currentSeasonData.fileNames.testPdf}`}
>
문제 PDF
</ArchiveButton>
<ArchiveButton
disabled={!Boolean(currentSeasonData.fileNames.solutionPdf)}
href={
(currentSeasonIdx > 1 ? "https://api.suapc.kr/" : "/res/") +
`${currentYear}${currentSeason === "Winter" ? "w" : "s"}/${
currentSeasonData.fileNames.solutionPdf
}`
}
href={`/res/${currentYear}${
currentSeason === "Winter" ? "w" : "s"
}/${currentSeasonData.fileNames.solutionPdf}`}
>
해설 PDF
</ArchiveButton>
Expand All @@ -179,12 +176,9 @@ const Suapc = () => {
</ArchiveButton>
<ArchiveButton
disabled={!Boolean(currentSeasonData.fileNames.posterImage)}
href={
(currentSeasonIdx > 1 ? "https://api.suapc.kr/" : "/res/") +
`${currentYear}${currentSeason === "Winter" ? "w" : "s"}/${
currentSeasonData.fileNames.posterImage
}`
}
href={`/res/${currentYear}${
currentSeason === "Winter" ? "w" : "s"
}/${currentSeasonData.fileNames.posterImage}`}
>
공식 포스터
</ArchiveButton>
Expand All @@ -205,7 +199,7 @@ const Suapc = () => {
</AdmissionButton> */}
<AdmissionButton
disabled={!Boolean(currentSeasonData?.fileNames?.posterImage)}
href={`https://api.suapc.kr/${currentYear}${
href={`/res/${currentYear}${
currentSeason === "Winter" ? "w" : "s"
}/${currentSeasonData?.fileNames?.posterImage}`}
>
Expand All @@ -223,11 +217,11 @@ const Suapc = () => {
<ItemWrap>
<ItemTitle>참여 대학</ItemTitle>
<SchoolLogoWrap>
<SchoolLogo src="https://api.suapc.kr/school-logo/sogang.png" />
<SchoolLogo src="https://api.suapc.kr/school-logo/sookmyung.png" />
<SchoolLogo src="https://api.suapc.kr/school-logo/yonsei.png" />
<SchoolLogo src="https://api.suapc.kr/school-logo/ewha.png" />
<SchoolLogo src="https://api.suapc.kr/school-logo/hongik.png" />
<SchoolLogo src="/school-logo/sogang.png" />
<SchoolLogo src="/school-logo/sookmyung.png" />
<SchoolLogo src="/school-logo/yonsei.png" />
<SchoolLogo src="/school-logo/ewha.png" />
<SchoolLogo src="/school-logo/hongik.png" />
</SchoolLogoWrap>
</ItemWrap>
<ItemWrap>
Expand All @@ -239,10 +233,7 @@ const Suapc = () => {
return (
<SponserCI
key={"sponser-" + data}
src={`https://api.suapc.kr/sponser-ci/${data}.png`}
onError={(e) => {
e.target.src = `/res/sponser-ci/${data}.png`;
}}
src={`/res/sponser-ci/${data}.png`}
/>
);
})}
Expand Down Expand Up @@ -316,20 +307,17 @@ const Suapc = () => {
<ArchiveButton
disabled={!Boolean(currentSeasonData.fileNames.testPdf)}
disabledText="문제 PDF가 제공되지 않는 대회입니다."
href={`https://api.suapc.kr/${currentYear}${
href={`/res/${currentYear}${
currentSeason === "Winter" ? "w" : "s"
}/${currentSeasonData.fileNames.testPdf}`}
>
문제 PDF
</ArchiveButton>
<ArchiveButton
disabled={!Boolean(currentSeasonData.fileNames.solutionPdf)}
href={
(currentSeasonIdx > 1 ? "https://api.suapc.kr/" : "/res/") +
`${currentYear}${currentSeason === "Winter" ? "w" : "s"}/${
currentSeasonData.fileNames.solutionPdf
}`
}
href={`/res/${currentYear}${
currentSeason === "Winter" ? "w" : "s"
}/${currentSeasonData.fileNames.solutionPdf}`}
>
해설 PDF
</ArchiveButton>
Expand All @@ -341,12 +329,9 @@ const Suapc = () => {
</ArchiveButton>
<ArchiveButton
disabled={!Boolean(currentSeasonData.fileNames.posterImage)}
href={
(currentSeasonIdx > 1 ? "https://api.suapc.kr/" : "/res/") +
`${currentYear}${currentSeason === "Winter" ? "w" : "s"}/${
currentSeasonData.fileNames.posterImage
}`
}
href={`/res/${currentYear}${
currentSeason === "Winter" ? "w" : "s"
}/${currentSeasonData.fileNames.posterImage}`}
>
공식 포스터
</ArchiveButton>
Expand Down

0 comments on commit f11b3e4

Please sign in to comment.