Skip to content

Commit

Permalink
design: 회전 아이콘 변경, mobile 페이지 적용 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
selfishAltruism committed Mar 18, 2024
1 parent 313192e commit d164955
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions src/pages/circle/home/components/Slider/CircleSlideCard.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { css } from '@emotion/react';
import styled from '@emotion/styled';
import ChangeCircleIcon from '@mui/icons-material/ChangeCircle';
import { memo, useState } from 'react';
import { generatePath, useHistory } from 'react-router';

// import { Icons } from '@/assets';
import { Article } from '@/assets/icons';
import { ClearButton } from '@/components';
import { PAGE_URL } from '@/configs/path';
import { usePageUiStore } from '@/hooks';
Expand Down Expand Up @@ -38,7 +38,7 @@ export const CircleSlideCard: React.FC<{ model: Model.Circle }> = memo(
<Footer>
<Name className="text-ellipsis-line">{name}</Name>
<ClearButton onClick={handleFlip}>
<Icon active={isFlipped} />
<Icon />
</ClearButton>
</Footer>
</Inner>
Expand Down Expand Up @@ -74,10 +74,9 @@ const Body = styled.div`

const Cover = styled.div<{ mainImage: string | null }>`
top: 6px;
left: 6px;
width: calc(100% - 12px);
left: 10px;
width: calc(100% - 20px);
height: calc(100% - 6px);
border-radius: 5px;
${({ mainImage }) =>
mainImage
Expand All @@ -88,11 +87,12 @@ const Cover = styled.div<{ mainImage: string | null }>`
background: center / contain no-repeat url('/images/empty.png');
background-size: 65%;
`}
background-color: #efefef;
background-color: white;
border-bottom: 1px solid #dadada;
`;

const Name = styled.h3`
margin: 0 35px 0 13px;
margin: 2px 35px 0 13px;
line-height: 36px;
font-size: 12px;
font-weight: bold;
Expand Down Expand Up @@ -133,8 +133,8 @@ const Footer = styled.div`
height: 40px;
`;

const Icon = styled(Article)`
const Icon = styled(ChangeCircleIcon)`
position: absolute;
top: 9px;
right: 5px;
top: 7px;
right: 12px;
`;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { css } from '@emotion/react';
import styled from '@emotion/styled';
import ChangeCircleIcon from '@mui/icons-material/ChangeCircle';
import { memo, useState } from 'react';
import { generatePath, useHistory } from 'react-router';

import { Article } from '@/assets/icons';
import { ClearButton } from '@/components';
import { PAGE_URL } from '@/configs/path';
import { usePageUiStore } from '@/hooks';
Expand Down Expand Up @@ -37,7 +37,7 @@ export const CircleWebSlideCard: React.FC<{ model: Model.Circle }> = memo(
<Footer>
<Name className="text-ellipsis-line">{name}</Name>
<ClearButton onClick={handleFlip}>
<Icon active={isFlipped} />
<Icon />
</ClearButton>
</Footer>
</Inner>
Expand Down Expand Up @@ -92,7 +92,7 @@ const Cover = styled.div<{ mainImage: string | null }>`
`;

const Name = styled.h3`
margin: 0 35px 0 13px;
margin: 2px 35px 0 13px;
line-height: 36px;
font-size: 12px;
font-weight: bold;
Expand Down Expand Up @@ -133,8 +133,8 @@ const Footer = styled.div`
height: 40px;
`;

const Icon = styled(Article)`
const Icon = styled(ChangeCircleIcon)`
position: absolute;
top: 5px;
top: 7px;
right: 12px;
`;

0 comments on commit d164955

Please sign in to comment.