-
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.
- Loading branch information
Showing
6 changed files
with
250 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { createFileRoute } from '@tanstack/react-router'; | ||
|
||
export const Route = createFileRoute('/_auth/$project/board')({ | ||
component: RouteComponent, | ||
}); | ||
|
||
function RouteComponent() { | ||
const { project } = Route.useParams(); | ||
return <div>안녕하세요, {project} 칸반 보드 페이지</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,10 @@ | ||
import { createFileRoute } from '@tanstack/react-router'; | ||
|
||
export const Route = createFileRoute('/_auth/$project/')({ | ||
component: RouteComponent, | ||
}); | ||
|
||
function RouteComponent() { | ||
const { project } = Route.useParams(); | ||
return <div>안녕하세요, {project} 대시보드 페이지</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,10 @@ | ||
import { createFileRoute } from '@tanstack/react-router'; | ||
|
||
export const Route = createFileRoute('/_auth/$project/settings')({ | ||
component: RouteComponent, | ||
}); | ||
|
||
function RouteComponent() { | ||
const { project } = Route.useParams(); | ||
return <div>안녕하세요, {project} 설정 페이지</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,49 @@ | ||
import { createFileRoute, Link, Outlet } from '@tanstack/react-router'; | ||
|
||
export const Route = createFileRoute('/_auth/$project')({ | ||
component: ProjectLayout, | ||
}); | ||
|
||
function ProjectLayout() { | ||
const { project } = Route.useParams(); | ||
|
||
return ( | ||
<> | ||
<nav className="h-9 border-b px-6"> | ||
<ul className="flex h-full items-center gap-4 text-sm"> | ||
<li> | ||
<Link | ||
to="/$project" | ||
params={{ project }} | ||
activeOptions={{ exact: true }} | ||
className="[&.active]:font-semibold" | ||
> | ||
Overview | ||
</Link> | ||
</li> | ||
<li> | ||
<Link | ||
to="/$project/board" | ||
params={{ project }} | ||
activeOptions={{ exact: true }} | ||
className="[&.active]:font-semibold" | ||
> | ||
Board | ||
</Link> | ||
</li> | ||
<li> | ||
<Link | ||
to="/$project/settings" | ||
params={{ project }} | ||
activeOptions={{ exact: true }} | ||
className="[&.active]:font-semibold" | ||
> | ||
Settings | ||
</Link> | ||
</li> | ||
</ul> | ||
</nav> | ||
<Outlet /> | ||
</> | ||
); | ||
} |
Oops, something went wrong.