Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 遊び方の画面を追加 #63

Merged
merged 2 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/components/BottomNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ const LINKS = [
href: "/play",
label: "遊ぶ",
},
// {
// href: "/guide",
// label: "遊び方",
// },
{
href: "/guide",
label: "遊び方",
},
];

export interface BottomNavProps {
Expand Down
1 change: 0 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { Analytics } from "./components/Analytics";
import { Background } from "./components/Background";
import { BottomNav } from "./components/BottomNav";
import { Button } from "./components/Button";
import { Loading } from "./components/Loading";
import { Patterns } from "./components/Patterns";
import { ThemeProvider } from "./components/Theme";
import { useMyProfile } from "./features/profile/useMyProfile";
Expand Down
33 changes: 33 additions & 0 deletions app/routes/_auth.guide.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { MetaFunction } from "@remix-run/react";
import { cva } from "class-variance-authority";
import type { ReactNode } from "react";
import { Heading } from "~/components/Heading";

Expand All @@ -12,7 +13,39 @@ export default function Page(): ReactNode {
>
<main className="mx-auto grid w-full max-w-screen-sm gap-y-4">
<Heading>遊び方</Heading>
<div>
<p className={paragraph()}>
RicoShotは4対4に分かれて戦うチーム対戦型のシューティングゲームです。
2分間の試合で、敵を倒してポイントを稼ぎましょう。
</p>
<img
src="/assets/guide/playing.jpg"
alt="プレイ画面"
className={image({ dir: "left" })}
/>
<p className={paragraph()}>
操作はコントローラーを使います。使うボタンは少ないので、ゲーム初心者でもすぐに慣れるはずです!
</p>
<img
src="/assets/guide/controller.jpg"
alt="操作方法"
className={image({ dir: "right" })}
/>
</div>
</main>
</div>
);
}

const paragraph = cva("drop-shadow-base my-4");
const image = cva(
"w-full border-white border-8 shadow-lg my-4 mx-1 aspect-video",
{
variants: {
dir: {
left: "rotate-2",
right: "-rotate-2",
},
},
},
);
Binary file added public/assets/guide/controller.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/guide/playing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.