Skip to content

Commit 16b1109

Browse files
committed
quick fixes - add utility classes and remove commentsd
1 parent c9c1823 commit 16b1109

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

client/src/components/ui/GameArtCarousel.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { useEffect, useRef, useState } from "react";
77

88
import type { UiArtwork } from "@/hooks/useGames";
99

10-
// import { UiEvent as EventType } from "@/hooks/useEvents";
11-
1210
type GameArtCarouselProps = {
1311
items: UiArtwork[];
1412
};

client/src/components/ui/ImageCard.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface ImageCardProps {
1414

1515
const ImageCard = ({
1616
imageSrc,
17-
imageAlt = "Image",
17+
imageAlt = "Game Artwork",
1818
children,
1919
backContent,
2020
href,
@@ -49,7 +49,7 @@ const ImageCard = ({
4949
return (
5050
<div className="p-4" style={{ perspective: "1200px" }}>
5151
<div
52-
className={`relative h-[30rem] w-full max-w-[20rem] select-none rounded-[10px] shadow-[12px_17px_51px_rgba(0,0,0,0.22)] transition-transform duration-500 ${
52+
className={`relative h-[30rem] w-full max-w-2xl select-none rounded-xl shadow-[12px_17px_51px_rgba(0,0,0,0.22)] transition-transform duration-500 ${
5353
(isMobile && href) || (backContent && !disableFlip && !hasImageError)
5454
? "cursor-pointer"
5555
: "cursor-default"
@@ -61,7 +61,7 @@ const ImageCard = ({
6161
onClick={handleClick}
6262
>
6363
<div
64-
className="absolute inset-0 overflow-hidden rounded-[10px] border border-white bg-dark_alt backdrop-blur-md"
64+
className="absolute inset-0 overflow-hidden rounded-xl border border-white bg-dark_alt backdrop-blur-md"
6565
style={{ backfaceVisibility: "hidden" }}
6666
>
6767
{imageSrc && !hasImageError ? (
@@ -94,7 +94,7 @@ const ImageCard = ({
9494

9595
{backContent && (
9696
<div
97-
className="absolute inset-0 flex flex-col overflow-y-auto rounded-[10px] border border-white bg-dark_3 p-6 text-light_1"
97+
className="absolute inset-0 flex flex-col overflow-y-auto rounded-xl border border-white bg-dark_3 p-6 text-light_1"
9898
style={{
9999
backfaceVisibility: "hidden",
100100
transform: "rotateY(180deg)",

client/src/components/ui/MemberProjectSection.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function MemberProjectSection(props: {
1818
</h2>
1919
<div className="mb-12">
2020
{!games || games.length === 0 ? (
21-
<p className="my-10 text-center font-firaCode text-lg text-[--light-3]">
21+
<p className="my-10 text-center font-firaCode text-lg text-light_3">
2222
No games available.
2323
</p>
2424
) : (
@@ -45,7 +45,7 @@ export default function MemberProjectSection(props: {
4545
<p className="max-w-96 font-firaCode text-xl font-semibold">
4646
{game.game_data.name}
4747
</p>
48-
<p className="line-clamp-1 max-w-96 font-firaCode text-[--light-3]">
48+
<p className="line-clamp-1 max-w-96 font-firaCode text-light_3">
4949
{game.game_data.description}
5050
</p>
5151
</div>
@@ -60,7 +60,7 @@ export default function MemberProjectSection(props: {
6060
</h2>
6161
<div className="mb-12">
6262
{!art || art.length === 0 ? (
63-
<p className="my-10 text-center font-firaCode text-lg text-[--light-3]">
63+
<p className="my-10 text-center font-firaCode text-lg text-light_3">
6464
No games available.
6565
</p>
6666
) : (
@@ -89,7 +89,7 @@ export default function MemberProjectSection(props: {
8989
<p className="max-w-96 font-firaCode text-xl font-semibold">
9090
{artwork.artwork_data.name}
9191
</p>
92-
<p className="line-clamp-1 max-w-96 font-firaCode text-[--light-3]">
92+
<p className="text-light_3] line-clamp-1 max-w-96 font-firaCode">
9393
{artwork.artwork_data.description}
9494
</p>
9595
</div>

client/tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const config = {
7070
neutral_4: "var(--neutral-4)",
7171
light_1: "var(--light-1)",
7272
light_2: "var(--light-2)",
73+
light_3: "var(--light-3)",
7374
},
7475
borderRadius: {
7576
lg: "var(--radius)",

0 commit comments

Comments
 (0)