Skip to content

Commit

Permalink
Merge pull request #57 from prgrms-web-devcourse-final-project/15-fea…
Browse files Browse the repository at this point in the history
…ture/common-components

[Feature] #15 CloseButton, PrevButton
  • Loading branch information
shlee9999 authored Nov 21, 2024
2 parents 5239048 + b2e6e26 commit 5d9e1c1
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Button/CloseButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { IconBaseProps } from 'react-icons'
import * as S from './styles'

type CloseButtonProps = IconBaseProps
export default function CloseButton({ ...rest }: CloseButtonProps) {
return <S.CloseButton cursor='pointer' {...rest} />
}
10 changes: 10 additions & 0 deletions src/components/Button/CloseButton/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { styled } from 'styled-components'
import { MdClose } from 'react-icons/md'

export const CloseButton = styled(MdClose)`
position: absolute;
width: 28px;
height: 28px;
top: 12px;
right: 20px;
`
12 changes: 12 additions & 0 deletions src/components/Button/PrevButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { IconBaseProps } from 'react-icons'
import * as S from './styles'

type PrevButtonProps = IconBaseProps

export default function PrevButton({ ...rest }: PrevButtonProps) {
return (
<S.PrevButton cursor='pointer' {...rest}>
PrevButton
</S.PrevButton>
)
}
10 changes: 10 additions & 0 deletions src/components/Button/PrevButton/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { styled } from 'styled-components'
import { GrPrevious } from 'react-icons/gr'

export const PrevButton = styled(GrPrevious)`
position: absolute;
left: 20px;
top: 14px;
width: 28px;
height: 28px;
`

0 comments on commit 5d9e1c1

Please sign in to comment.