update(front): front 폴더명 frontend로 변경
This commit is contained in:
1 parent
698d4e72d4
commit
16848e9f63
85 files changed
No files matched your search
@@ -0,0 +1,49 @@
|
||||
import { useNavigate } from 'react-router'
|
||||
import { List } from 'lucide-react'
|
||||
import { cn, interactive } from '@/lib'
|
||||
import { MainLayout, MainHeaderBar } from '@/layouts'
|
||||
import { ChatContainer, ItemSection, RemainingTime } from '@/features/chat'
|
||||
import { SidebarFooter } from '@/features/auth'
|
||||
|
||||
export function ChatPage() {
|
||||
return (
|
||||
<MainLayout
|
||||
sidebarWidth="chat"
|
||||
scrollX
|
||||
logoAction={<ListNavButton />}
|
||||
sidebar={<Sidebar />}
|
||||
header={
|
||||
<MainHeaderBar className="px-[140px]">
|
||||
<RemainingTime />
|
||||
</MainHeaderBar>
|
||||
}
|
||||
>
|
||||
<ChatContainer />
|
||||
</MainLayout>
|
||||
)
|
||||
}
|
||||
|
||||
function ListNavButton() {
|
||||
const navigate = useNavigate()
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
aria-label="목록으로 이동"
|
||||
onClick={() => navigate('/list')}
|
||||
className={cn('text-foreground', interactive)}
|
||||
>
|
||||
<List size={24} />
|
||||
</button>
|
||||
)
|
||||
}
|
||||
|
||||
function Sidebar() {
|
||||
return (
|
||||
<>
|
||||
<ItemSection />
|
||||
<SidebarFooter />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default ChatPage
|
||||
@@ -0,0 +1,30 @@
|
||||
import { MainLayout, MainHeaderBar } from '@/layouts'
|
||||
import { FilterContainer, ContentContainer } from '@/features/list'
|
||||
import { SidebarFooter } from '@/features/auth'
|
||||
|
||||
export function ListPage() {
|
||||
return (
|
||||
<MainLayout
|
||||
sidebarWidth="list"
|
||||
sidebar={<Sidebar />}
|
||||
header={
|
||||
<MainHeaderBar align="center" className="px-[81px]">
|
||||
<span className="text-xl font-bold whitespace-nowrap">견적 선택</span>
|
||||
</MainHeaderBar>
|
||||
}
|
||||
>
|
||||
<ContentContainer />
|
||||
</MainLayout>
|
||||
)
|
||||
}
|
||||
|
||||
function Sidebar() {
|
||||
return (
|
||||
<>
|
||||
<FilterContainer />
|
||||
<SidebarFooter />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default ListPage
|
||||
@@ -0,0 +1,21 @@
|
||||
import { Logo } from '@/components'
|
||||
import { LoginForm } from '@/features/auth'
|
||||
|
||||
export function LoginPage() {
|
||||
return (
|
||||
<main className="flex min-h-svh w-full items-center justify-center px-6">
|
||||
<div className="flex w-full max-w-100 flex-col items-center gap-10">
|
||||
<header className="flex flex-col items-center justify-center gap-4">
|
||||
<Logo size="md" />
|
||||
<h1 className="text-2xl font-bold leading-[30px] tracking-[-0.48px]">
|
||||
로그인
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<LoginForm />
|
||||
</div>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
export default LoginPage
|
||||
Reference in new issue
Block a user