Skip to content

Commit 020ffd6

Browse files
committed
fix: adjust layout and styling in footer and projects page
1 parent c1194a1 commit 020ffd6

2 files changed

Lines changed: 12 additions & 17 deletions

File tree

src/app/projects/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ const ProjectsContent = () => {
191191
</InfiniteScroll>
192192
</article>
193193
</BlurFade>
194-
195194
<Footer />
196195
</main>
197196
);
@@ -203,7 +202,7 @@ const Projects = () => {
203202
<main className="w-full flex flex-col gap-7 pb-5">
204203
<ProjectsStructuredData />
205204
<NavigationBar />
206-
<div className="flex justify-center items-center min-h-[400px]">
205+
<div className="flex justify-center items-center min-h-100">
207206
<Spinner variant={'bars'} />
208207
</div>
209208
</main>

src/components/layouts/footer.tsx

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { GitHubIcon } from "../icons/github";
1111
// import { LinkedInIcon } from "../icons/linkedin";
1212
// import { TwitterLogoIcon } from "@radix-ui/react-icons";
13-
import { ArrowLeftIcon, ArrowRightIcon, MailCheckIcon } from "lucide-react";
13+
import { ArrowRightIcon, MailCheckIcon } from "lucide-react";
1414
import { Button } from "../ui";
1515
// import { Github, Linkedin, Twitter, Mail } from "lucide-react";
1616

@@ -54,20 +54,16 @@ export default function Footer() {
5454
const currentYear = new Date().getFullYear();
5555

5656
return (
57-
<footer className="w-full border-t px-3 border-border/40 bg-gradient-to-b from-background via-background/95 to-background backdrop-blur supports-[backdrop-filter]:bg-background/60">
58-
<div className="max-w-5xl mx-auto max-sm:px-5 py-12 md:py-16 lg:py-20">
57+
<footer className="w-full border-t px-3 border-border/40 bg-linear-to-b from-background via-background/95 to-background backdrop-blur supports-backdrop-filter:bg-background/60">
58+
<div className="max-w-5xl mx-auto max-sm:px-5 py-12 md:py-16">
5959
{/* Main Footer Content */}
60-
<div className="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8 md:gap-12 mb-12">
60+
<div className="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8 md:gap-12 mb-12 sm:px-5">
6161
{/* Brand Section */}
6262
<div className="col-span-2 md:col-span-4 lg:col-span-1 space-y-4">
6363
<Link href="/" className="inline-block group">
64-
<h2 className="text-xl font-bold text-primary group-hover:text-primary transition-colors">
65-
Sophat L.
66-
</h2>
64+
<h2 className="text-xl font-bold text-primary group-hover:text-primary transition-colors">Sophat L.</h2>
6765
</Link>
68-
<p className="text-sm text-muted-foreground max-w-xs leading-relaxed">
69-
Building scalable systems & crafting digital experiences.
70-
</p>
66+
<p className="text-sm text-muted-foreground max-w-xs leading-relaxed"> Building scalable systems & crafting digital experiences. </p>
7167
</div>
7268

7369
{/* Product Links */}
@@ -76,7 +72,7 @@ export default function Footer() {
7672
<ul className="gap-2">
7773
{footerLinks.product.map((link) => (
7874
<li key={link.href}>
79-
<Button asChild className="mt-0 text-foreground hover:text-primary -translate-x-2.5">
75+
<Button asChild className="mt-0 text-foreground/70 h-7 text-xs hover:text-primary -translate-x-2.5">
8076
<Link href={link.href}>
8177
<ArrowRightIcon className='w-4 h-4' /> {link.label}
8278
</Link>
@@ -92,7 +88,7 @@ export default function Footer() {
9288
<ul className="gap-2">
9389
{footerLinks.company.map((link) => (
9490
<li key={link.href}>
95-
<Button asChild className="mt-0 text-foreground hover:text-primary -translate-x-2.5">
91+
<Button asChild className="mt-0 text-foreground/70 h-7 text-xs hover:text-primary -translate-x-2.5">
9692
<Link href={link.href}>
9793
<ArrowRightIcon className='w-4 h-4' /> {link.label}
9894
</Link>
@@ -108,7 +104,7 @@ export default function Footer() {
108104
<ul className="gap-2">
109105
{footerLinks.resources.map((link) => (
110106
<li key={link.href}>
111-
<Button asChild className="mt-0 text-foreground hover:text-primary -translate-x-2.5">
107+
<Button asChild className="mt-0 text-foreground/70 h-7 text-xs hover:text-primary -translate-x-2.5">
112108
<Link href={link.href}>
113109
<ArrowRightIcon className='w-4 h-4' /> {link.label}
114110
</Link>
@@ -127,7 +123,7 @@ export default function Footer() {
127123

128124
return (
129125
<li key={link.href}>
130-
<Button asChild className="mt-0 text-foreground hover:text-primary -translate-x-2.5">
126+
<Button asChild className="mt-0 text-foreground/70 h-7 text-xs hover:text-primary -translate-x-2.5">
131127
<Link href={link.href}>
132128
<ArrowRightIcon className='w-4 h-4' /> {link.label}
133129
</Link>
@@ -141,7 +137,7 @@ export default function Footer() {
141137

142138
{/* Bottom Bar */}
143139
<div className="pt-8 border-t border-border/40">
144-
<div className="flex flex-col md:flex-row justify-between items-center gap-4">
140+
<div className="flex flex-col md:flex-row justify-between items-center gap-4 sm:px-5">
145141
<div className="flex items-center gap-2">
146142
<p className="text-sm text-muted-foreground text-center md:text-left">
147143
Copyright © {currentYear}{" "}

0 commit comments

Comments
 (0)