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

Commit

Permalink
fix: image centering
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Nov 30, 2024
1 parent df0d18d commit 7c86675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function LevelCard({ level }: { level: LevelInfo }) {
const isUnlocked = !level.requiredLevel || results?.some(result => result.level_name === level.requiredLevel || result.level_name === level.id)

return (
<Card className="bg-black bg-opacity-40 backdrop-blur-md transition-all hover:border-[#00D0C5]">
<Card className="max-w-2xl bg-black bg-opacity-40 backdrop-blur-md transition-all hover:border-[#00D0C5]">
<CardHeader>
<CardTitle>{level.title}</CardTitle>
<CardDescription>
Expand All @@ -59,10 +59,10 @@ function LevelCard({ level }: { level: LevelInfo }) {
</CardDescription>
</CardHeader>
<CardContent>
<div className="aspect-video min-w-[300px] rounded-xl bg-[#191919]">
<div className="flex aspect-video h-[200px] items-center justify-center rounded-xl bg-[#191919]">
<img
src={`/preview/${level.id}.png`}
className="aspect-video max-w-[300px] rounded-xl object-contain"
className="aspect-video max-h-[200px] max-w-[300px] rounded-xl object-contain"
onError={(e) => {
e.currentTarget.style.display = 'none'
}}
Expand Down

0 comments on commit 7c86675

Please sign in to comment.