Skip to content

Commit

Permalink
feat: 遊び方の画面を追加 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
shun-shobon authored Nov 9, 2024
2 parents 815c53b + 67b1e21 commit 40be454
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
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.

0 comments on commit 40be454

Please sign in to comment.