Skip to content

Commit 0c1c724

Browse files
committed
feat: some layout improvements
1 parent e054c7f commit 0c1c724

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

src/app/art/[artist]/[slug]/page.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,10 @@ export default async function CommissionPage({ params }: PageProps<"/art/[artist
7676
{/* Images */}
7777
<div className="grid grid-cols-1 gap-4 md:grid-cols-3">
7878
{commission.images.map((image, idx) => (
79-
<Image
80-
// biome-ignore lint/suspicious/noArrayIndexKey: Needed
81-
key={idx}
82-
src={image}
83-
alt={commission.title}
84-
width={800}
85-
height={800}
86-
className="rounded-md object-cover object-center"
87-
/>
79+
// biome-ignore lint/suspicious/noArrayIndexKey: Needed
80+
<div key={idx} className="flex size-full flex-col items-center justify-center bg-primary-700">
81+
<Image src={image} alt={commission.title} className="rounded-md object-cover object-center" />
82+
</div>
8883
))}
8984
</div>
9085
</div>

src/app/globals.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
-moz-osx-font-smoothing: grayscale;
1515

1616
--background: oklch(0.9797 0.0026 286.3509);
17-
--foreground: oklch(0.1486 0.0195 278.6986);
17+
--foreground: oklch(15.5% 0.0462 298deg);
1818
--card: oklch(0.9797 0.0026 286.3509);
19-
--card-foreground: oklch(0.1486 0.0195 278.6986);
19+
--card-foreground: oklch(15.5% 0.0462 298deg);
2020
--popover: oklch(0.9797 0.0026 286.3509);
21-
--popover-foreground: oklch(0.1486 0.0195 278.6986);
21+
--popover-foreground: oklch(15.5% 0.0462 298deg);
2222
--primary: oklch(0.6054 0.2273 287.2626);
2323
--primary-foreground: oklch(0.9797 0.0026 286.3509);
2424
--secondary: oklch(0.9201 0.0095 279.6801);
@@ -62,14 +62,14 @@
6262
}
6363

6464
.dark {
65-
--background: oklch(0.1176 0.0326 280.1491);
65+
--background: oklch(15.5% 0.0462 298deg);
6666
--foreground: oklch(0.9504 0.0094 279.6866);
6767
--card: oklch(0.1615 0.0295 279.4364);
6868
--card-foreground: oklch(0.9504 0.0094 279.6866);
6969
--popover: oklch(0.1414 0.0286 278.1636);
7070
--popover-foreground: oklch(0.9504 0.0094 279.6866);
7171
--primary: oklch(0.6412 0.2217 297.4804);
72-
--primary-foreground: oklch(0.1176 0.0326 280.1491);
72+
--primary-foreground: oklch(15.5% 0.0462 298deg);
7373
--secondary: oklch(0.2489 0.0507 280.4293);
7474
--secondary-foreground: oklch(0.8496 0.0097 279.6631);
7575
--muted: oklch(0.2196 0.0408 280.3943);

src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
5353
<meta name="google" content="notranslate" />
5454
</head>
5555

56-
<body className={cn("min-h-screen bg-primary-800 font-sans text-white", poppins.variable)}>
57-
<div className="flex min-h-screen flex-col justify-between bg-primary-800">
56+
<body className={cn("dark min-h-screen bg-background font-sans", poppins.variable)}>
57+
<div className="flex min-h-screen flex-col justify-between">
5858
<NextTopLoader color="var(--primary)" showSpinner={false} />
5959
<HoverListener />
6060

0 commit comments

Comments
 (0)