-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
635 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
interface BackButtonProps { | ||
width?: string; | ||
height?: string; | ||
} | ||
|
||
export const Button = styled.button<BackButtonProps>` | ||
cursor: pointer; | ||
border: none; | ||
background: transparent; | ||
width: ${(props) => props.width}; | ||
height: ${(props) => props.height}; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 0; | ||
svg { | ||
width: 70%; | ||
height: 70%; | ||
transition: all 0.3s ease-in-out; | ||
} | ||
&:hover { | ||
svg { | ||
color: gray; | ||
transform: translateX(-5px); | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/components/ui/CategoryButtons/CategoryButton.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import theme from '@/styles/theme'; | ||
import styled from '@emotion/styled'; | ||
|
||
export const StyledTag = styled.button<{ isSelected?: boolean }>` | ||
padding: 0.5rem 1.25rem; | ||
border-radius: 50px; | ||
border: 1px solid ${theme.colors.gray[300]}; | ||
background-color: ${(props) => (props.isSelected ? theme.colors.primary : theme.colors.white)}; | ||
color: ${(props) => (props.isSelected ? theme.colors.white : theme.colors.gray[500])}; | ||
font-family: ${theme.typography.body1.fontFamily}; | ||
font-size: ${theme.typography.body1.size}; | ||
font-weight: ${theme.typography.body1.weight}; | ||
line-height: ${theme.typography.body1.lineHeight}; | ||
cursor: pointer; | ||
transition: all 0.2s ease-in-out; | ||
flex-shrink: 0; | ||
&:hover { | ||
background-color: ${(props) => | ||
props.isSelected ? theme.colors.primary : theme.colors.gray[100]}; | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/components/ui/CategorySelectContainer/CategorySelectContainer.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import styled from '@emotion/styled'; | ||
import theme from '@/styles/theme'; | ||
|
||
export const Grid = styled.div` | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
gap: 1rem; | ||
`; | ||
|
||
export const CategoryCard = styled.button<{ isSelected: boolean }>` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: ${theme.colors.white}; | ||
border-radius: 1rem; | ||
padding: 1rem 0.5rem; | ||
cursor: pointer; | ||
border: 3px solid ${(props) => (props.isSelected ? theme.colors.primary : 'transparent')}; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); | ||
transition: all 0.2s ease-in-out; | ||
aspect-ratio: 1; | ||
width: 100%; | ||
&:hover { | ||
transform: translateY(-2px); | ||
} | ||
`; | ||
|
||
export const IconWrapper = styled.div` | ||
width: 2rem; | ||
height: 2rem; | ||
margin-bottom: 0.5rem; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
export const CategoryIcon = styled.img` | ||
width: 100%; | ||
height: 100%; | ||
object-fit: contain; | ||
`; | ||
|
||
export const TextContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 0.25rem; | ||
`; | ||
|
||
export const KoreanName = styled.span` | ||
color: ${theme.colors.primary}; | ||
font-size: 1rem; | ||
font-weight: ${theme.typography.weights.bold}; | ||
`; | ||
|
||
export const EnglishName = styled.span` | ||
color: ${theme.colors.gray[400]}; | ||
font-size: 0.6rem; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import styled from '@emotion/styled'; | ||
import theme from '@/styles/theme'; | ||
import { Avatar } from '@chakra-ui/react'; | ||
|
||
export const Container = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
`; | ||
|
||
export const CommentItem = styled.div` | ||
display: flex; | ||
gap: 1rem; | ||
border-bottom: 1px solid ${theme.colors.gray[300]}; | ||
cursor: pointer; | ||
&:hover { | ||
background: ${theme.colors.sub}; | ||
} | ||
padding: 0.75rem 0; | ||
`; | ||
|
||
export const StyledAvatar = styled(Avatar)` | ||
width: 3rem !important; | ||
height: 3rem !important; | ||
border-radius: 100% !important; | ||
& > img { | ||
border-radius: 100% !important; | ||
} | ||
`; | ||
|
||
export const CommentContent = styled.div` | ||
flex: 1; | ||
`; | ||
|
||
export const AuthorInfo = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
gap: 0.5rem; | ||
margin-bottom: 0.25rem; | ||
`; | ||
|
||
export const AuthorName = styled.span` | ||
color: ${theme.colors.gray[400]}; | ||
font-weight: ${theme.typography.weights.medium}; | ||
font-size: ${theme.typography.body2.size}; | ||
`; | ||
|
||
export const CreatedAt = styled.span` | ||
color: ${theme.colors.gray[200]}; | ||
font-size: ${theme.typography.body3.size}; | ||
`; | ||
|
||
export const Content = styled.p` | ||
color: ${theme.colors.black}; | ||
font-size: ${theme.typography.body2.size}; | ||
font-weight: ${theme.typography.weights.regular}; | ||
`; | ||
|
||
export const ActionButtons = styled.div` | ||
display: flex; | ||
margin-top: 0.5rem; | ||
`; |
Oops, something went wrong.