Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #107 from isd-sgcu/dev
Browse files Browse the repository at this point in the history
feat: skip story
  • Loading branch information
betich authored Aug 5, 2023
2 parents 383814c + a19cdfc commit 4040c2b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/Game/lib/GameContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ export default function GameContainer({
className="relative flex min-h-screen w-full cursor-pointer place-content-center items-center overflow-x-hidden font-ibm font-bold text-white"
>
<GameBackground bg={scene.bg} />
<div className="absolute right-8 top-8">
{Number(scene.id.slice(-2)) < 48 && (
<button
onClick={() => {
setPage('Game48');
}}
className="rounded-lg bg-white px-6 py-3 text-pink-600 ring-4 ring-pink-400/50 transition-all duration-500 hover:ring-16"
>
ข้าม
</button>
)}
</div>
<div className="mb-40 block">
<h1 className="mx-auto text-center text-lg">
{scene.message}
Expand Down

0 comments on commit 4040c2b

Please sign in to comment.