diff --git a/src/app/games/[game_id]/page.tsx b/src/app/games/[game_id]/page.tsx
new file mode 100644
index 0000000..e8bba56
--- /dev/null
+++ b/src/app/games/[game_id]/page.tsx
@@ -0,0 +1,48 @@
+import { GameService } from "@/entities/game";
+import { GameCard } from "@/features/gameCard";
+import { Section } from "@/widgets/section";
+import Image from "next/image";
+
+export default async function Games({
+ params: { game_id },
+}: {
+ params: { game_id: number };
+}) {
+ const gameCards = await GameService.getGameCards();
+ const game = await GameService.getGame(game_id);
+ return (
+ <>
+ {game && (
+
+ {game.cover && (
+
+ )}
+
+
{game.title}
+
+ {game.description}
+
+
+
+ )}
+
+ {gameCards && (
+
+ {gameCards.map((card) => (
+
+ ))}
+
+ )}
+ >
+ );
+}
diff --git a/src/app/games/page.tsx b/src/app/games/page.tsx
index 7cceb5b..cb408cc 100644
--- a/src/app/games/page.tsx
+++ b/src/app/games/page.tsx
@@ -9,10 +9,10 @@ export const metadata: Metadata = {
".Torrent: Игры - каталог .torrent файлов для обмена видеоиграми",
};
-export default async function Home() {
+export default async function Games() {
const gameCards = await GameService.getGameCards();
return (
-
+ <>
{gameCards && (
{gameCards.map((card) => (
@@ -20,6 +20,6 @@ export default async function Home() {
))}
)}
-
+ >
);
}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 7f85a7f..a77ffd3 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -23,7 +23,9 @@ export default function RootLayout({
- {children}
+
+ {children}
+