Skip to content

Commit

Permalink
๐ŸŽจ Publish(#120): ๋กœ๊ทธ์ธ ์ƒํƒœ์— ๋”ฐ๋ฅธ ScrollableContainer margin-top ์กฐ์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetree7878 committed Jan 31, 2025
1 parent 69a9cc1 commit e70f63c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/features/learn/ui/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const SectionBoxWrapper = styled.div`
align-items: center;
justify-content: space-between;
width: 100%;
margin-top: 45px;
${media.mobile} {
margin-top: 65px;
Expand Down
5 changes: 4 additions & 1 deletion src/pages/learn/Learn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export default function Learn() {
/>
</S.ProgressBarWrapper>
)}
<S.ScrollableContainer $show={showComponents}>
<S.ScrollableContainer
$show={showComponents}
$isLoggedIn={isLoggedIn(user)}
>
<SelectSection />
</S.ScrollableContainer>
<SectionGroup>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/learn/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { media } from '@style/media';

interface ScrollableContainerProps {
$show: boolean;
$isLoggedIn: boolean;
}

export const ScrollableContainer = styled.div<ScrollableContainerProps>`
Expand All @@ -14,6 +15,11 @@ export const ScrollableContainer = styled.div<ScrollableContainerProps>`
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: ${({ $isLoggedIn }) => ($isLoggedIn ? '45px' : '25px')};
${media.mobile} {
margin-top: ${({ $isLoggedIn }) => ($isLoggedIn ? '0' : '-20px')};
}
`;

export const SectionGroup = styled.div`
Expand Down

0 comments on commit e70f63c

Please sign in to comment.