diff --git a/.idea/workspace.xml b/.idea/workspace.xml index eff2dff..223af97 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,15 +5,8 @@ - - - - - - - + - diff --git a/components/SearchBar.tsx b/components/SearchBar.tsx new file mode 100644 index 0000000..c985e1a --- /dev/null +++ b/components/SearchBar.tsx @@ -0,0 +1,41 @@ +import { IconArrowDown, IconSearch } from '@/public/icons'; + +const SearchBar = ()=>{ + return ( +
+
+
+ All +
+ { + alert('검색 더보기 클릭!'); + }} + > +
+
+ + + { + alert('검색 돋보기 클릭!'); + }} + > +
+
+ + + ); +} + +export default SearchBar; \ No newline at end of file diff --git a/pages/home.tsx b/pages/home.tsx index 4b63643..81544fe 100644 --- a/pages/home.tsx +++ b/pages/home.tsx @@ -4,6 +4,7 @@ import Logo from '@/public/images/small-logo.png'; import Image from 'next/image'; import { useRouter } from 'next/router'; import BookList from '@/components/BookList'; +import SearchBar from '@/components/SearchBar'; // 더미 데이터 const writingBooks = [ @@ -103,39 +104,10 @@ function Home() { return (
+
{/*검색창*/} -
-
-
- All -
- { - alert('검색 더보기 클릭!'); - }} - > -
-
- - - { - alert('검색 돋보기 클릭!'); - }} - > -
-
+ {/*이야기 만들기 베너*/}