issue # Header, Sidebar 구현 중
This commit is contained in:
@@ -1,5 +1,14 @@
|
|||||||
import {
|
import { Label } from '@/components/ui/label';
|
||||||
Drawer,
|
import { SidebarTrigger } from '@/components/ui/sidebar';
|
||||||
DrawerTrigger
|
import { useState } from 'react';
|
||||||
} from "@/components/ui/drawer";
|
import Routing from './RoutingData';
|
||||||
import { useState } from 'react';
|
|
||||||
|
export default function Header() {
|
||||||
|
return (
|
||||||
|
<header className="flex shrink-0 items-center gap-2 border-b px-4 w-full h-12">
|
||||||
|
<SidebarTrigger className="-ml-1" />
|
||||||
|
<Separator orientation="vertical" className="mr-2 data-[orientation=vertical]:h-4"/>
|
||||||
|
<Label>{import.meta.env.BASE_URL}</Label>
|
||||||
|
</header>
|
||||||
|
);
|
||||||
|
}
|
||||||
20
src/ui/component/RoutingData.ts
Normal file
20
src/ui/component/RoutingData.ts
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
type PageRoutingInfo = {
|
||||||
|
path: string;
|
||||||
|
title: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const PageRouting: Record<string, PageRoutingInfo> = {
|
||||||
|
LOGIN: { path: "login", title: "" },
|
||||||
|
SIGN_UP: { path: "signup", title: "" },
|
||||||
|
RESET_PASSWORD: { path: "reset-password", title: "" },
|
||||||
|
HOME: { path: "home", title: "홈" },
|
||||||
|
SCHEDULES: { path: "schedules", title: "일정" },
|
||||||
|
SCHEDULES_NEW: { path: "schedules/new", title: "일정 생성" },
|
||||||
|
SCHEDULES_EDIT: { path: "schedules/edit", title: "일정 수정" },
|
||||||
|
SCHEDULES_DETAIL: { path: "schedules/detail", title: "일정 상세" },
|
||||||
|
USER_INFO: { path: "info", title: "사용자 정보" },
|
||||||
|
USER_FOLLOWING: { path: "info/following", title: "팔로잉 목록" },
|
||||||
|
USER_FOLLOWER: { path: "info/follower", title: "팔로워 목록" },
|
||||||
|
SETTINGS: { path: "settings", title: "설정" },
|
||||||
|
NOT_FOUD: { path: "not-found", title: "존재하지 않는 페이지" },
|
||||||
|
} as const;
|
||||||
11
src/ui/component/SideBar.tsx
Normal file
11
src/ui/component/SideBar.tsx
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { useState } from 'react';
|
||||||
|
import {
|
||||||
|
Sidebar,
|
||||||
|
SidebarContent,
|
||||||
|
SidebarFooter,
|
||||||
|
SidebarHeader
|
||||||
|
} from './components/ui/sidebar';
|
||||||
|
|
||||||
|
export default function SideBar() {
|
||||||
|
return (<Sidebar></Sidebar>)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user