-
Notifications
You must be signed in to change notification settings - Fork 0
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
12 changed files
with
280 additions
and
162 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { css } from '@emotion/react' | ||
import { colors, flexCenter } from '../../styles/theme' | ||
|
||
const EmptyMylog = () => { | ||
return ( | ||
<div css={container}> | ||
<div className="image">이미지</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default EmptyMylog | ||
|
||
const container = css` | ||
height: calc(100vh - 10rem); | ||
${flexCenter} | ||
flex-direction: column; | ||
.image { | ||
width: 120px; | ||
height: 120px; | ||
background-color: #c5c5c5; | ||
margin-bottom: 8rem; | ||
} | ||
button { | ||
font-weight: 700; | ||
color: ${colors.main1}; | ||
} | ||
` |
This file was deleted.
Oops, something went wrong.
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 { css } from '@emotion/react' | ||
import { faMagnifyingGlass } from '@fortawesome/free-solid-svg-icons' | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
import { useState } from 'react' | ||
import { calcRem, flexCenter } from '../styles/theme' | ||
|
||
interface ISearchBarProps { | ||
/**검색어 placeholder */ | ||
placeHolder: string | ||
} | ||
|
||
/**검색바 */ | ||
const SearchBar = ({ placeHolder }: ISearchBarProps) => { | ||
const [searchKeyWord, setSearchKeyWord] = useState('') | ||
|
||
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => { | ||
setSearchKeyWord(e.target.value) | ||
} | ||
|
||
return ( | ||
<div css={search}> | ||
<div css={searchContainer}> | ||
<input type="text" placeholder={placeHolder} onChange={handleChange} /> | ||
<button> | ||
<FontAwesomeIcon icon={faMagnifyingGlass} size="lg" color="#836565" /> | ||
</button> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default SearchBar | ||
|
||
const search = css` | ||
margin-top: 4rem; | ||
width: 100%; | ||
max-width: 26rem; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
position: fixed; | ||
top: 0; | ||
background-color: #ffffff; | ||
${flexCenter} | ||
flex-direction: row; | ||
height: ${calcRem(50)}; | ||
z-index: 10; | ||
` | ||
|
||
const searchContainer = css` | ||
display: flex; | ||
align-items: center; | ||
width: ${calcRem(253)}; | ||
height: ${calcRem(32)}; | ||
border: 1px solid #836565; | ||
input { | ||
font-weight: 500; | ||
width: 100%; | ||
background: transparent; | ||
padding: ${calcRem(5)} ${calcRem(10)}; | ||
border: none; | ||
} | ||
` |
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
Oops, something went wrong.