Skip to content
Open
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
5 changes: 5 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ const Home = () => {
author: "by Author4",
imageUrl: "/assets/cat4.jpeg"
},
{
title: "Test Game 5",
author: "by Author5",
imageUrl: "/assets/test.jpeg"
},
];

return (
Expand Down
7 changes: 3 additions & 4 deletions components/ui/ImageDisplay.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// components/ImageDisplay.tsx
import React from 'react';
import Image from 'next/image';

Expand All @@ -15,15 +14,15 @@ type ImageDisplayProps = {
const ImageDisplay: React.FC<ImageDisplayProps> = ({ games }) => {
return (
<div className="container mx-auto px-4 py-4">
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4">
{games.map((game, index) => (
<div key={index} className="bg-white rounded-lg shadow overflow-hidden">
<Image
src={game.imageUrl}
alt={game.title}
width={500}
height={300}
className="w-full object-cover"
height={200}
className="w-full h-48 object-contain p-4"
/>
<div className="p-4">
<h5 className="text-lg font-bold">{game.title}</h5>
Expand Down