Skip to content

Commit

Permalink
#227 design: canvas 라이브러리 및 버튼 크기 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
misung-dev committed Sep 4, 2024
1 parent cd306f1 commit bf3f70d
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/pages/AttendancePage/AttendanceSignPage.style.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ export const CanvasPlaceholder = styled.p`
`;

export const SignatureCanvasContainer = styled.div`
width: 900px;
/* width: 100%; */
/* max-width: 900px; */
height: auto;
aspect-ratio: 900 / 400;
aspect-ratio: 900 / 300;
flex-grow: 1;
canvas {
width: 100%;
Expand All @@ -118,13 +119,13 @@ export const SignatureCanvasContainer = styled.div`

export const ButtonContainer = styled.div`
display: flex;
justify-content: center;
width: 100%;
gap: 20px;
@media (max-width: ${BREAKPOINTS[0]}px) {
width: 100%;
gap: 10px;
padding: 10px;
margin: 10px 0 20px;
}
`;

Expand All @@ -137,8 +138,12 @@ export const CancelButton = styled.button`
font-weight: 600;
color: var(--DG-2, #818181);
@media (max-width: ${BREAKPOINTS[0]}px) {
@media (max-width: ${BREAKPOINTS[1]}px) {
width: 100%;
height: 50px;
font-size: 24px;
}
@media (max-width: ${BREAKPOINTS[0]}px) {
height: 40px;
font-size: 20px;
}
Expand Down Expand Up @@ -167,8 +172,12 @@ export const CompletedButton = styled.button`
cursor: pointer;
`}
@media (max-width: ${BREAKPOINTS[0]}px) {
@media (max-width: ${BREAKPOINTS[1]}px) {
width: 100%;
height: 50px;
font-size: 24px;
}
@media (max-width: ${BREAKPOINTS[0]}px) {
height: 40px;
font-size: 20px;
}
Expand Down

0 comments on commit bf3f70d

Please sign in to comment.