Skip to content

Commit

Permalink
refactor : 석차메모 반응형 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jihye9549 committed Aug 3, 2023
1 parent cf3f9b2 commit dfda71f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/pages/GameResult/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,16 @@ const Ranking = styled.div`
& > img {
height: 53vh;
}
@media (min-width: 769px) {
align-items: center;
}
@media (max-width: 768px) {
padding-top: 6.6rem;
width: 35vw;
height: 30vh;
margin-left: 3rem;
background-size: 35vw 30vh;
}
`;

const Medal = styled.img<{ rank: number }>`
Expand All @@ -259,6 +269,10 @@ const Medal = styled.img<{ rank: number }>`
return `content: url(${BronzeMedal});`;
}
}}
@media (max-width: 768px) {
width: 2.3rem;
margin-left: 6rem;
}
`;

const UserInRanking = styled.span<{ rank: number }>`
Expand All @@ -273,4 +287,7 @@ const UserInRanking = styled.span<{ rank: number }>`
return '#bc00fe';
}
}};
@media (max-width: 768px) {
font-size: 2.5rem;
}
`;

0 comments on commit dfda71f

Please sign in to comment.