Skip to content

Commit

Permalink
Replacing img for Image from Next
Browse files Browse the repository at this point in the history
  • Loading branch information
D9J9V committed Aug 28, 2024
1 parent bced021 commit 43cf5dc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/nextjs/src/app/_components/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import React from "react";
import Image from "next/image";

export function Card() {
return (
<div className="grid grid-cols-2 mb-28">
<div className="card bg-gray-500 w-96 shadow-xl">
<figure className="px-10 pt-10">
<img src="/favicon/trivia.jpg" alt="Shoes" className="rounded-xl" />
<Image
src="/favicon/trivia.jpg"
alt="Shoes"
className="rounded-xl"
width={300}
height={200}
/>
</figure>
<div className="card-body items-center text-center">
<a href="/create-new">
Expand All @@ -18,10 +25,12 @@ export function Card() {
<div>
<div className="card bg-gray-500 w-96 shadow-xl">
<figure className="px-10 pt-10">
<img
<Image
src="/favicon/trivia-1.jpg"
alt="Shoes"
className="rounded-xl"
width={300}
height={200}
/>
</figure>
<div className="card-body items-center text-center">
Expand Down

0 comments on commit 43cf5dc

Please sign in to comment.