Skip to content

Commit

Permalink
Show AdditionalInformationSection on HistoryPage
Browse files Browse the repository at this point in the history
  • Loading branch information
dongzoolee committed Sep 18, 2024
1 parent 282df1c commit d669670
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import styled from "styled-components";

import { AwardBadge } from "@ui/award-badge/award-badge";

const Bold = styled.span`
font-weight: bold;
`;
const _AdditionalInformationSection = ({
className,
}: {
className?: string;
}) => {
return (
<div className={className}>
<Bold>#</Bold> = 순위, <Bold>=</Bold> = 푼 문제 수 / 점수
<br />
<AwardBadge variant="winner" /> = 우승,
<AwardBadge variant="gold" /> = 금상,
<AwardBadge variant="silver" /> = 은상,
<AwardBadge variant="bronze" /> = 동상
<br />
<AwardBadge variant="special" /> = 기타 수상
<br />
<AwardBadge variant="advanced" /> = 다음 라운드 진출
<br />
HM = Honorable Mention
</div>
);
};

export const AdditionalInformationSection = styled(
_AdditionalInformationSection,
)`
line-height: 1.4rem;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import { useHistoryDataContext } from "../../contexts/history-data-context";
import { SelectedHistoryContextProvider } from "./contexts/selected-history-context";
import { HistoryDisplay } from "./history-display/history-display";
import constants from "../../contexts/assets/constants";
import { AdditionalInformationSection } from "./additional-information-section";

const GrayText = styled.div`
font-size: 0.9rem;
color: ${({ theme }) => theme.gray[500]};
margin-top: 8px;
margin-top: 24px;
`;
const HeroImage = styled.img`
width: 100%;
Expand Down Expand Up @@ -44,6 +45,7 @@ const _HistoryPage = ({ className }: { className?: string }) => {
</Section.Title>
<Section.Body>
<HistoryDisplay />
<AdditionalInformationSection />
<GrayText>
*2019년 이전의 기록에는 누락된 정보가 있을 수 있습니다.
<br />
Expand Down

0 comments on commit d669670

Please sign in to comment.