This repository has been archived by the owner on Dec 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
14 changed files
with
124 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# env | ||
.env |
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 |
---|---|---|
@@ -1,15 +1,23 @@ | ||
import { useNavigate } from "@tanstack/react-router"; | ||
import { FC, ReactNode } from "react"; | ||
|
||
type Props = { | ||
name: string; | ||
path: string; | ||
icon: ReactNode; | ||
}; | ||
export const MenuButton: FC<Props> = (props) => { | ||
const { name, icon } = props; | ||
const { name, path, icon } = props; | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<button type="button" className="inline-flex flex-col items-center justify-center px-5 hover:bg-gray-50 group"> | ||
<button | ||
type="button" | ||
className="inline-flex flex-col items-center justify-center px-5 hover:bg-gray-50 group" | ||
onClick={() => navigate({ to: path })} | ||
> | ||
{icon} | ||
<span className="text-sm text-gray-500 group-hover:text-blue-600">{name}</span> | ||
<span className="text-sm text-blue-600 group-hover:text-blue-600">{name}</span> | ||
</button> | ||
); | ||
}; |
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
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
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,3 @@ | ||
export * from "./Header"; | ||
export * from "./Menu"; | ||
export * from "./icons"; |
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
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 { createLazyFileRoute } from "@tanstack/react-router"; | ||
import { Header, Menu } from "../../../features/common/components"; | ||
|
||
export const Route = createLazyFileRoute("/quests/analytics/")({ | ||
component: () => <Analytics />, | ||
}); | ||
|
||
const Analytics = () => { | ||
return ( | ||
<> | ||
<Header /> | ||
<div>統計レポートページです。</div> | ||
<Menu /> | ||
</> | ||
); | ||
}; |
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,16 @@ | ||
import { createLazyFileRoute } from "@tanstack/react-router"; | ||
import { Header, Menu } from "../../../features/common/components"; | ||
|
||
export const Route = createLazyFileRoute("/quests/manage/")({ | ||
component: () => <Manage />, | ||
}); | ||
|
||
const Manage = () => { | ||
return ( | ||
<> | ||
<Header /> | ||
<div>クエスト作成・編集ページです。</div> | ||
<Menu /> | ||
</> | ||
); | ||
}; |
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 { createLazyFileRoute } from "@tanstack/react-router"; | ||
import { Header, Menu } from "../../../features/common/components"; | ||
|
||
export const Route = createLazyFileRoute("/quests/profile/")({ | ||
component: () => <Profile />, | ||
}); | ||
|
||
const Profile = () => { | ||
return ( | ||
<> | ||
<Header /> | ||
<div>プロフィールページです。</div> | ||
<Menu /> | ||
</> | ||
); | ||
}; |