-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat] 홈 QSet 생성 로직 수정
- Loading branch information
Showing
10 changed files
with
146 additions
and
56 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
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,51 @@ | ||
"use client"; | ||
import styled from "styled-components"; | ||
import Flex from "src/components/common/Flex"; | ||
import Text from "../common/Text"; | ||
import { colors } from "styles/theme"; | ||
import Icon from "../Icon/Icon"; | ||
|
||
export interface InputProps { | ||
value: string; | ||
placeholder?: string; | ||
onChange: any; | ||
message?: string; | ||
isError?: boolean; | ||
readonly?: boolean; | ||
} | ||
|
||
const InputFillDefault = ({ ...props }: InputProps) => { | ||
return ( | ||
<InputWrapper> | ||
<Input | ||
value={props.value} | ||
placeholder={props.placeholder} | ||
onChange={props.onChange} | ||
readOnly={props.readonly} | ||
onFocus={(e) => { | ||
e.preventDefault(); | ||
}} | ||
/> | ||
<Icon icon="SearchHeart" /> | ||
</InputWrapper> | ||
); | ||
}; | ||
|
||
const InputWrapper = styled(Flex)` | ||
width: 100%; | ||
min-height: 48px; | ||
padding: 12px 20px; | ||
background: ${colors.light_gray3}; | ||
border-radius: 48px; | ||
`; | ||
|
||
const Input = styled.input` | ||
width: 80vw; | ||
color: ${colors.light_qwhite}; | ||
transform: scale(0.75); | ||
transform-origin: left; | ||
`; | ||
|
||
export default InputFillDefault; |
File renamed without changes.
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
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
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