-
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.
* feat: 헤더 검색, 좋아요, 로그인으로 변경 * feat: 검색 바 * feat: tab 레이아웃 * feat: 검색 전체 레이아웃 * feat: gatheringCard CSS * feat: useCustomInfiniteQuery hook * feat: 페이지 이동 및 새로고침 시, 상태 관리 로직 추가
- Loading branch information
Showing
30 changed files
with
574 additions
and
147 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './archive'; | ||
export * from './gathering'; | ||
|
||
export * from './search'; |
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 @@ | ||
export * from './ui'; |
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,17 @@ | ||
.container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 40%; | ||
min-width: 300px; | ||
padding: 0.8rem 1.3rem; | ||
color: $secondary-color; | ||
background-color: $primary-color; | ||
border-radius: 20px; | ||
|
||
input { | ||
flex: 1; | ||
padding: 0.5rem; | ||
color: $secondary-color; | ||
} | ||
} |
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,26 @@ | ||
import { faSearch } from '@fortawesome/free-solid-svg-icons'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
|
||
import styles from './SearchBar.module.scss'; | ||
|
||
export const SearchBar = ({ | ||
searchText, | ||
setSearchText, | ||
}: { | ||
searchText: string; | ||
setSearchText: (t: string) => void; | ||
}) => { | ||
return ( | ||
<div className={styles.container}> | ||
<input | ||
onChange={e => { | ||
setSearchText(e.target.value); | ||
}} | ||
placeholder='검색어를 입력해주세요' | ||
type='text' | ||
value={searchText} | ||
/> | ||
<FontAwesomeIcon className={styles.icon} icon={faSearch} /> | ||
</div> | ||
); | ||
}; |
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 @@ | ||
export * from './SearchBar'; |
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,12 @@ | ||
.wrapper { | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
gap: 2rem; | ||
align-items: center; | ||
padding: 4rem 8rem; | ||
|
||
@media (width <= 768px) { | ||
padding: 4rem; | ||
} | ||
} |
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,18 @@ | ||
import { useState } from 'react'; | ||
|
||
import styles from './SearchPage.module.scss'; | ||
|
||
import { SearchBar } from '@/features'; | ||
import { SearchTap } from '@/widgets'; | ||
|
||
export const SearchPage = () => { | ||
const [searchText, setSearchText] = useState(''); | ||
const [activeTab, setActiveTab] = useState('전체'); | ||
|
||
return ( | ||
<div className={styles.wrapper}> | ||
<SearchBar searchText={searchText} setSearchText={setSearchText} /> | ||
<SearchTap activeTab={activeTab} setActiveTab={setActiveTab} /> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.
0419250
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚡ Lighthouse report for http://localhost:3000/
Detailed Metrics