Skip to content

Commit 8ac5a9b

Browse files
committed
fix: removed container class and adjusted width of layout
1 parent 8a4dac6 commit 8ac5a9b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/app/(home)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default async function HomeLayout({
99
return (
1010
<>
1111
<Navbar />
12-
<div className="flex-grow mx-auto w-full px-4 sm:px-12 md:px-16 lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl">{children}</div>
12+
<div className="flex-grow w-full mx-auto px-8 sm:px-16 md:px-24 lg:max-w-4xl xl:max-w-5xl 2xl:max-w-6xl">{children}</div>
1313
<Footer />
1414
</>
1515
);

src/app/(home)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { personalDetails, experiences, projects, skills } from '@/data/resume';
1010

1111
export default function Portfolio() {
1212
return (
13-
<main className="container py-6 z-1">
13+
<main className="py-6 z-1">
1414
<Header {...personalDetails} />
1515
<About />
1616
<Experiences arr={experiences} />

src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Footer = () => {
99
)}>
1010
<div className={cn(
1111
"flex flex-col items-center justify-center sm:flex-row-reverse sm:justify-between",
12-
"mx-auto max-w-full px-4 sm:px-12 md:px-16 lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl"
12+
"max-w-full mx-auto px-8 sm:px-16 md:px-24 lg:max-w-4xl xl:max-w-5xl 2xl:max-w-6xl"
1313
)}>
1414
<div className="flex justify-center md:justify-start space-x-4">
1515
<LinkWithArrow

src/components/Navbar.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
'use client'
22

3+
import { cn } from '@/lib/utils';
34
import ThemeSwitch from './ThemeSwitch';
45

56
const Navbar = () => {
67
// const completion = useReadingProgress();
78

89
return (
910
<header className="sticky top-0 z-50 py-6 backdrop-blur-xl">
10-
<nav className="flex items-center justify-between mx-auto max-w-full px-4 sm:px-12 md:px-16 lg:max-w-5xl xl:max-w-6xl 2xl:max-w-7xl">
11+
<nav className={cn(
12+
"flex items-center justify-between",
13+
"max-w-full mx-auto px-8 sm:px-16 md:px-24 lg:max-w-4xl xl:max-w-5xl 2xl:max-w-6xl"
14+
)}>
1115
<ul className="flex gap-4 sm:gap-8">
1216
<li><a href="/" className="hover:underline hover:underline-offset-4">home</a></li>
1317
<li><a href="/#experience" className="hover:underline hover:underline-offset-4">experience</a></li>

0 commit comments

Comments
 (0)