-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-#35-BE-cicd
- Loading branch information
Showing
16 changed files
with
300 additions
and
50 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,27 @@ | ||
import { useState } from 'react'; | ||
|
||
export const useLotusSearch = () => { | ||
const [search, setSearch] = useState(''); | ||
|
||
const onChangeSearch = (searchValue: string) => { | ||
setSearch(searchValue); | ||
}; | ||
|
||
const onClickSearchLotus = (searchValue: string) => { | ||
if (!searchValue) return; | ||
|
||
// TODO: queryClient.invalidateQueries 새로운 검색어로 검색 수행 | ||
console.log('검색!: ', searchValue); | ||
}; | ||
|
||
const onSearchInputKeyDown = (event: React.KeyboardEvent<HTMLInputElement>, searchValue: string) => { | ||
if (event.key === 'Enter') onClickSearchLotus(searchValue); | ||
}; | ||
|
||
return { | ||
search, | ||
onChangeSearch, | ||
onClickSearchLotus, | ||
onSearchInputKeyDown | ||
}; | ||
}; |
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,9 @@ | ||
import { createFileRoute } from '@tanstack/react-router'; | ||
|
||
export const Route = createFileRoute('/')({ | ||
component: RouteComponent | ||
}); | ||
|
||
function RouteComponent() { | ||
return <div>페이지 : 시작 페이지임!! - 아마 여기가 온보딩 페이지?</div>; | ||
} |
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,9 @@ | ||
import { createFileRoute } from '@tanstack/react-router'; | ||
|
||
export const Route = createFileRoute('/lotus/detail/')({ | ||
component: RouteComponent | ||
}); | ||
|
||
function RouteComponent() { | ||
return <div>Lotus 디테일 페이지</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,16 @@ | ||
import { createFileRoute } from '@tanstack/react-router'; | ||
import { LotusCardList } from '@/widget/LotusList/LotusCardList'; | ||
import { LotusSearchBar } from '@/widget/LotusList/LotusSearchBar'; | ||
|
||
export const Route = createFileRoute('/lotus/')({ | ||
component: RouteComponent | ||
}); | ||
|
||
function RouteComponent() { | ||
return ( | ||
<div className="flex flex-col gap-8"> | ||
<LotusSearchBar /> | ||
<LotusCardList /> | ||
</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,17 @@ | ||
import { Outlet, createFileRoute } from '@tanstack/react-router'; | ||
import { Header } from '@/widget/Header'; | ||
|
||
export const Route = createFileRoute('/lotus')({ | ||
component: RouteComponent | ||
}); | ||
|
||
function RouteComponent() { | ||
return ( | ||
<div className="flex justify-center min-h-screen"> | ||
<div className="w-full max-w-screen-xl pb-20 px-4 sm:px-6 lg:px-8"> | ||
<Header /> | ||
<Outlet /> | ||
</div> | ||
</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,25 @@ | ||
import { Button, Heading } from '@froxy/design/components'; | ||
|
||
export function Header() { | ||
// TODO: 로그인 여부 확인하는 로직 추가 필요 | ||
const isLogin = false; | ||
|
||
return ( | ||
<div className="w-full py-7 px-2 flex justify-between items-center"> | ||
<div className="flex items-center gap-4"> | ||
<img className="w-14 h-14" src="/image/logoIcon.svg" alt="로고" /> | ||
<Heading size="lg">Froxy</Heading> | ||
</div> | ||
<div className="flex items-center gap-4"> | ||
{isLogin ? ( | ||
<> | ||
<Button variant={'outline'}>create Lotus</Button> | ||
<img className="w-10 h-10 rounded-full" src="/image/exampleImage.jpeg" alt="프로필 사진" /> | ||
</> | ||
) : ( | ||
<Button variant={'default'}>Login</Button> | ||
)} | ||
</div> | ||
</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
Oops, something went wrong.