Skip to content

Commit e0d84ce

Browse files
committed
Adjusted the layout on showcase page to match Figma more, with a 4:3 ratio of image to textbox and a scalable gap between the text and contributors. The social icons now align on the right. Mobile layout still needs to be adjusted.
1 parent 29e41fe commit e0d84ce

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

client/src/pages/games/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function HomePage() {
6161
className={`flex flex-col gap-8 rounded-xl p-8 ${idx % 2 === 0 ? "lg:flex-row" : "lg:flex-row-reverse"}`}
6262
>
6363
{/* Left: Cover Image */}
64-
<div className="bg-logo-blue-1 flex min-h-[200] min-w-[200] max-w-[600] flex-1 items-center justify-center overflow-hidden rounded-xl">
64+
<div className="bg-logo-blue-1 flex min-h-48 w-full items-center justify-center overflow-hidden rounded-xl lg:w-auto lg:grow-[4] lg:basis-0">
6565
{showcase.gameCover ? (
6666
<Image
6767
src={showcase.gameCover}
@@ -83,7 +83,7 @@ export default function HomePage() {
8383
)}
8484
</div>
8585
{/* Right: Details */}
86-
<div className="flex flex-1 flex-col justify-between rounded-lg border-2 border-solid border-neutral_3 p-8 shadow-lg">
86+
<div className="flex flex-col rounded-lg border-2 border-solid border-neutral_3 p-8 shadow-lg lg:grow-[3] lg:basis-0">
8787
<div>
8888
{/* Title of the game */}
8989
<h2 className="mb-4 font-jersey10 text-3xl font-bold tracking-wide text-primary">
@@ -116,6 +116,9 @@ export default function HomePage() {
116116
117117
</span>
118118
</p>
119+
</div>
120+
<div className="max-h-40 flex-grow" />
121+
<div>
119122
<h3 className="mb-2 text-xl font-bold text-primary">
120123
Contributors
121124
</h3>
@@ -128,15 +131,12 @@ export default function HomePage() {
128131
<span className="font-semibold text-foreground">
129132
{contributor.name}
130133
</span>
131-
<span
132-
className="text-foreground"
133-
style={{ marginLeft: 20 }}
134-
>
135-
- {contributor.role}
134+
<span className="text-muted-foreground">
135+
{contributor.role}
136136
</span>
137137
{/* Social icons placeholder */}
138138
{/* TODO: Add actual links */}
139-
<span className="flex gap-2 text-primary">
139+
<span className="ml-auto flex gap-2 text-primary">
140140
{/* Social icons using react-social-icons */}
141141
<SocialIcon
142142
url="https://facebook.com/"

0 commit comments

Comments
 (0)