Skip to content

Commit

Permalink
Design fix on the news page (#75)
Browse files Browse the repository at this point in the history
* Design fix on the news page

* Delete package-lock.json
  • Loading branch information
CheddarChoi authored Dec 7, 2024
1 parent e9cc88c commit 909043b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/NewsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@ export const ReadMoreButton = styled.button`
`

const TimelineDot = styled.div<{ labelsOnLeft?: boolean }>`
width: 16px;
width: 6.4%;
height: 2px;
background-color: ${Color.orange900};
position: absolute;
left: ${props => (props.labelsOnLeft ? '-20px' : 'calc(100% + 22px)')};
left: ${props => (props.labelsOnLeft ? 'calc(-3.2%)' : 'calc(100% + 3.2%)')};
top: 28px;
transform: translate(-50%, -50%);
z-index: -1;
@media (max-width: ${ScreenSize.md}) {
display: none;
}
`

interface Props {
Expand Down
3 changes: 3 additions & 0 deletions src/components/NewsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const ModalContainer = styled.div`

const ModalCard = styled.div`
width: 70%;
max-width: ${ScreenSize.max};
background-color: ${Color.white};
padding: 48px;
border-radius: 5px;
Expand All @@ -30,6 +31,8 @@ const ModalCard = styled.div`
@media (max-width: ${ScreenSize.lg}) {
width: 90%;
max-height: 90%;
padding: 24px 16px;
}
`

Expand Down

0 comments on commit 909043b

Please sign in to comment.