Skip to content

Commit

Permalink
Merge pull request #1581 from woowacourse/refactor/1579-article_button
Browse files Browse the repository at this point in the history
Refactor/#1579 모바일 버전일 때 아티클 글쓰기 버튼 디자인을 변경한다
  • Loading branch information
hae-on authored Oct 6, 2023
2 parents 384bae1 + 0754422 commit 4159d63
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion frontend/src/pages/ArticleListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { css } from '@emotion/react';
import ArticleBookmarkFilter from '../../components/Article/ArticleBookmarkFIlter';
import { useGetFilteredArticleQuery } from '../../hooks/queries/article';
import { UserContext } from '../../contexts/UserProvider';
import MEDIA_QUERY from '../../constants/mediaQuery';

const CATEGORY_OPTIONS = [
{ value: 'all', label: '전체보기' },
Expand Down Expand Up @@ -81,7 +82,7 @@ const ArticleListPage = () => {
onClick={goNewArticlePage}
cssProps={WriteButtonStyle}
>
글쓰기
<ButtonText>글쓰기</ButtonText>
</Button>
)}
</Container>
Expand All @@ -106,6 +107,10 @@ const FilteringWrapper = styled.div`

const SelectBoxWrapper = styled.div`
width: 150px;
${MEDIA_QUERY.sm} {
width: 130px;
}
`;

export const WriteButtonStyle = css`
Expand All @@ -121,4 +126,18 @@ export const WriteButtonStyle = css`
:hover {
background-color: ${COLOR.DARK_BLUE_600};
}
${MEDIA_QUERY.sm} {
width: 42px;
& > img {
margin: 0;
}
}
`;

const ButtonText = styled.span`
${MEDIA_QUERY.sm} {
display: none;
}
`;

0 comments on commit 4159d63

Please sign in to comment.