-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpage.tsx
More file actions
29 lines (27 loc) · 938 Bytes
/
page.tsx
File metadata and controls
29 lines (27 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { Metadata } from "next"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import SnakeGame from "@/components/game/snake-game"
export const metadata: Metadata = {
title: "Snake Game | Dashboard",
description: "Play the classic Snake game in your dashboard",
}
export default function SnakePage() {
return (
<div className="flex-1 space-y-4 p-4 md:p-8 pt-6">
<div className="flex items-center justify-between space-y-2">
<h2 className="text-3xl font-bold tracking-tight">Snake Game</h2>
</div>
<Card>
<CardHeader>
<CardTitle>Classic Snake</CardTitle>
<CardDescription>
Use arrow keys to control the snake. Eat the red food to grow and increase your score.
</CardDescription>
</CardHeader>
<CardContent>
<SnakeGame />
</CardContent>
</Card>
</div>
)
}