Skip to content

Commit b336185

Browse files
committed
feat: default light theme and coloring fixes
1 parent 74a6558 commit b336185

File tree

14 files changed

+22
-132
lines changed

14 files changed

+22
-132
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default async function CommissionPage({ params }: PageProps<"/art/[artist
4444
if (!commission) notFound();
4545

4646
return (
47-
<div className="layout-container pt-40 pb-36">
47+
<div className="pt-40 pb-36">
4848
<div className="flex flex-col gap-6">
4949
<SiteLink type="back" href="/art" className="opacity-50">
5050
Back to all commissions

src/app/art/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function ArtPage() {
1818
const refSheet = REF_SHEET.artist.commissions[REF_SHEET.commissionIdx]!;
1919

2020
return (
21-
<div className="layout-container flex flex-col gap-4 pb-36">
21+
<div className="flex flex-col gap-4 pb-36">
2222
<Header emoji="🎨" title="Art" className="pt-40 pb-32">
2323
I've commissioned a lot of art over the years, please support these talented artists!
2424
</Header>
@@ -29,7 +29,7 @@ export default function ArtPage() {
2929
picture={refSheet.images[0] ? { src: refSheet.images[0] } : undefined}
3030
href={`/art/${refSheetArtist.slug}/${refSheet.slug}` as Route}
3131
>
32-
<div className="flex min-h-[400px] flex-col justify-end gap-3 p-6 md:p-10">
32+
<div className="flex min-h-[400px] flex-col justify-end gap-3 p-6 text-secondary md:p-10">
3333
{/* Artist name */}
3434
<div className="flex flex-row items-center gap-2">
3535
{refSheetArtist.avatar && (
@@ -63,7 +63,7 @@ export default function ArtPage() {
6363
.map((commission) => (
6464
<Link
6565
key={`${artist.slug}-${commission.slug}`}
66-
className="relative aspect-square w-full overflow-clip rounded-md border border-white/25 transition-all hover:scale-[101%] hover:shadow-xl"
66+
className="relative aspect-square w-full overflow-clip rounded-md border border-foreground/25 text-secondary transition-all hover:scale-[101%] hover:shadow-xl"
6767
href={`/art/${artist.slug}/${commission.slug}`}
6868
>
6969
{/* Image */}

src/app/clients/[slug]/page.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default async function ClientPage({ params }: PageProps<"/clients/[slug]"
3939
if (!client) notFound();
4040

4141
return (
42-
<div className="layout-container flex flex-col gap-8 pt-32 pb-36">
42+
<div className="flex flex-col gap-8 pt-32 pb-36">
4343
<SiteLink href="/clients" type="back" className="opacity-50">
4444
Back to all clients
4545
</SiteLink>
@@ -79,7 +79,10 @@ export default async function ClientPage({ params }: PageProps<"/clients/[slug]"
7979
<div className="grid grid-cols-1 gap-4 lg:grid-cols-2">
8080
{project.media.map((media, mediaIdx) => (
8181
// biome-ignore lint/suspicious/noArrayIndexKey: No other option
82-
<div key={mediaIdx} className="group relative overflow-clip rounded-lg border border-white/[15%]">
82+
<div
83+
key={mediaIdx}
84+
className="group relative overflow-clip rounded-lg border border-foreground/[15%]"
85+
>
8386
{media.type === "video" || media.type === "embed" ? (
8487
// Website embeds
8588
<MediaEmbed
@@ -122,7 +125,7 @@ export default async function ClientPage({ params }: PageProps<"/clients/[slug]"
122125
{client.testimonials.map((testimonial) => (
123126
<div
124127
key={testimonial.name}
125-
className="flex flex-col items-center gap-6 rounded-lg border border-white/[15%] bg-white/[5%] p-6"
128+
className="flex flex-col items-center gap-6 rounded-lg border border-foreground/[15%] bg-white/[5%] p-6"
126129
>
127130
<div className="flex flex-row items-center gap-4">
128131
{testimonial.avatar && (

src/app/clients/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { allClients } from "@/lib/content";
55
// biome-ignore lint/style/noDefaultExport: NextJS
66
export default function ClientsPage() {
77
return (
8-
<div className="layout-container pt-40 pb-36">
8+
<div className="pt-40 pb-36">
99
<Header emoji="📊" title="Clients">
1010
Some of the amazing people I've had the pleasure of working with.
1111
</Header>

src/app/globals.css

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
--sidebar-accent-foreground: oklch(1 0 0);
4545
--sidebar-border: oklch(0.25 0.0295 269.9587);
4646
--sidebar-ring: oklch(0.6201 0.1902 264.8967);
47-
--font-sans: var(--font-poppins);
48-
--font-serif: ui-serif, Georgia, serif;
49-
--font-mono: ui-monospace, "SF Mono", monospace;
5047
--radius: 0.5rem;
5148
--shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
5249
--shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
@@ -227,65 +224,3 @@
227224
.icon.sm {
228225
@apply h-[24px] w-[24px];
229226
}
230-
231-
/* Layout */
232-
.layout-container {
233-
@apply mx-8 md:mx-32 xl:mx-48;
234-
}
235-
236-
/* Hoverable */
237-
.hoverable {
238-
--mouse-x: -9999px;
239-
--mouse-y: -9999px;
240-
}
241-
242-
.hoverable.hoverable-card {
243-
@apply relative flex grow flex-col overflow-clip opacity-100;
244-
}
245-
246-
.hoverable.hoverable-card:hover::before {
247-
@apply opacity-100;
248-
}
249-
250-
.hoverable.hoverable-card::before,
251-
.hoverable.hoverable-card::after {
252-
@apply absolute left-0 top-0 h-full w-full opacity-0 transition-opacity content-[''];
253-
}
254-
255-
.hoverable.hoverable-card::before {
256-
/* Less intense hover effect */
257-
258-
@apply z-[3];
259-
background: radial-gradient(
260-
800px circle at var(--mouse-x) var(--mouse-y),
261-
rgba(255, 255, 255, 0.06),
262-
transparent 40%
263-
);
264-
}
265-
266-
.hoverable.hoverable-card::after {
267-
/* Outline that shows regardless of hover state */
268-
269-
@apply z-[1] rounded-[inherit] border opacity-100;
270-
border-image: radial-gradient(
271-
600px circle at var(--mouse-x) var(--mouse-y),
272-
rgba(255, 255, 255, 0.4),
273-
transparent 40%
274-
);
275-
border-image-slice: 1;
276-
277-
/* TODO: Fix the rounding */
278-
/* Create a mask that is rounded on all corners, to create a rounded outline */
279-
/* This is because the border-image property does not support border-radius */
280-
281-
/* --border-radius: 0.5rem; */
282-
/* background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.4), transparent 40%); */
283-
/* mask-image: */
284-
/* linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%),
285-
linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%),
286-
linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%),
287-
linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%), */
288-
289-
/* Round the inside corners */
290-
/* radial-gradient(circle at var(--border-radius) var(--border-radius), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%); */
291-
}

src/app/layout.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { Metadata, Viewport } from "next";
44
import localFont from "next/font/local";
55
import NextTopLoader from "nextjs-toploader";
66
import { ViewTransition } from "react";
7-
import { HoverListener } from "@/components/interactive/hoverable";
87
import { Navbar } from "@/components/layout/navbar";
98
import { cn } from "@/lib/utils";
109

@@ -60,25 +59,22 @@ export default function RootLayout({ children }: Readonly<LayoutProps<"/">>) {
6059

6160
<body
6261
className={cn(
63-
"dark min-h-screen bg-background font-sans text-foreground",
62+
"container min-h-screen bg-background font-sans text-foreground",
6463
boskaFont.variable,
6564
switzerFont.variable
6665
)}
6766
>
68-
<div className="flex min-h-screen flex-col justify-between">
67+
<div className="flex flex-col justify-between">
6968
<NextTopLoader color="var(--primary)" showSpinner={false} />
70-
<HoverListener />
7169

72-
<div className="layout-container">
73-
<Navbar />
74-
</div>
70+
<Navbar />
7571

7672
<ViewTransition>
7773
<div>{children}</div>
7874
</ViewTransition>
7975

8076
{/* Footer */}
81-
<div className="layout-container flex flex-row pb-24">
77+
<div className="flex flex-row pb-24">
8278
<span className="flex-1 font-medium opacity-50">Copyright © Koding Development 2025</span>
8379
<span className="flex-1 text-right font-medium opacity-50">Stella, Software Engineer</span>
8480
</div>

src/app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const metadata: Metadata = {
99
// biome-ignore lint/style/noDefaultExport: NextJS
1010
export default function NotFound() {
1111
return (
12-
<div className="layout-container flex min-h-screen flex-col items-center justify-center gap-8 px-4 py-16 text-center">
12+
<div className="flex min-h-screen flex-col items-center justify-center gap-8 px-4 py-16 text-center">
1313
<div className="flex flex-col gap-4">
1414
<h1 className="font-bold text-9xl">404</h1>
1515
<div className="h-1 w-full rounded-full bg-gradient-to-r from-transparent via-white/25 to-transparent" />

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function HomePage() {
1515
<div className="flex flex-col gap-16 pb-36">
1616
{/* calc = full height - h-24 (navbar / 6 rem) */}
1717
{/* Header */}
18-
<div className="layout-container flex h-[calc(100svh-6rem)]">
18+
<div className="flex h-[calc(100svh-6rem)]">
1919
<div className="relative my-auto 2xl:w-2/3">
2020
{/* Titles */}
2121
<Header emoji="👋" title="Hi, I'm Stella">

src/components/clients/client-call-to-action.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type ClientCallToActionProps = {
1111

1212
export const ClientCallToAction: React.FC<ClientCallToActionProps> = ({ client }) => (
1313
<CallToAction href={`/clients/${client.slug}` as Route} picture={client.banner ? { src: client.banner } : undefined}>
14-
<div className="flex flex-col gap-3 p-6 md:p-10">
14+
<div className="flex flex-col gap-3 p-6 text-secondary md:p-10">
1515
<div className="flex flex-row items-center">
1616
<div className={`h-2 w-2 rounded-full ${client.end ? "bg-red-500" : "bg-green-500"}`} />
1717
<span className="pl-2 opacity-75">

src/components/home/project.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const Project: React.FC<ProjectProps> = ({ project }) => {
1616
href={project.url as Route}
1717
target="_blank"
1818
rel="noopener noreferrer"
19-
className="hoverable hoverable-card flex flex-col gap-3 border border-white/10 bg-gradient-to-b from-white/[2.5%] p-6 transition-all duration-300 hover:scale-[101%] hover:to-white/[5%] hover:shadow-md"
19+
className="flex flex-col gap-3 rounded-md border border-foreground/10 bg-gradient-to-b from-white/[2.5%] p-6 transition-all duration-300 hover:scale-[101%] hover:to-white/[5%] hover:shadow-md"
2020
>
2121
<div className="flex flex-row items-center">
2222
<language.icon className="size-5" />

0 commit comments

Comments
 (0)