Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Added first image to the game
Browse files Browse the repository at this point in the history
  • Loading branch information
browntj16 committed Apr 30, 2024
1 parent d0ab541 commit 220c013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function CardComponent({
alt={card.name}
className="object-cover"
height={135}
src={card.imageURL}
src={card.imagePath}
style={{
aspectRatio: "240/135",
objectFit: "cover",
Expand Down Expand Up @@ -116,7 +116,7 @@ function CardComponentOnBoard({
alt={card.name}
className="object-cover"
height={135}
src={card.imageURL}
src={card.imagePath}
style={{
aspectRatio: "240/135",
objectFit: "cover",
Expand Down Expand Up @@ -228,16 +228,15 @@ function HoverCard({card}: {card: Creature}){
alt={card.name}
className="object-cover"
height={135}
src={card.imageURL}
src={card.imagePath}
style={{
aspectRatio: "240/135",
objectFit: "cover",
}}
width={350}
/>
</div>
<div className="flex-1 p-4 grid gap-2">
<h2 className="text-lg font-bold tracking-tight">{card.name}</h2>
<h2 className="text-s font-bold tracking-tight">{card.name}</h2>
<p className="text-sm line-clamp-3">{card.flavorText}</p>
<div className="text-xs">
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/engine/CardMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ put(
LandscapeType.Swamp,
1,
6,
"../assets/flyswatter.png"
"src/assets/flyswatter.png"
),
);

Expand Down

0 comments on commit 220c013

Please sign in to comment.