Skip to content

Commit 1d45a81

Browse files
committed
Refactor layout components for improved spacing and responsiveness
- Adjusted header height and padding for better alignment on different screen sizes. - Updated footer padding to enhance visual consistency. - Modified main layout to prevent overflow and ensure proper content display.
1 parent 3127fe7 commit 1d45a81

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export default async function RootLayout({
2727
return (
2828
<html lang="en">
2929
<body
30-
className={`${geistSans.variable} ${geistMono.variable} ${funnelDisplay.variable} antialiased`}
30+
className={`${geistSans.variable} ${geistMono.variable} ${funnelDisplay.variable} antialiased overflow-hidden`}
3131
>
3232
<Header />
3333
<main className="w-full h-auto mx-auto">
34-
<div className="flex flex-col mx-auto relative justify-center items-center overflow-clip">
34+
<div className="flex flex-col mx-auto relative justify-center items-center">
3535
{children}
3636
</div>
3737
</main>

src/components/hero/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { useEffect, useRef } from "react";
1414
import { Overlay } from "../overlay";
1515

1616
const DESKTOP_HEIGHT = 256;
17-
const MOBILE_HEIGHT = 356;
17+
const MOBILE_HEIGHT = 260;
1818

1919
const DESKTOP_CAMERA_POSITION = 2.3;
2020
const MOBILE_CAMERA_POSITION = 2.7;
@@ -246,7 +246,7 @@ void main() {
246246
}, []);
247247

248248
return (
249-
<div className="w-full overflow-clip h-[calc(100dvh-356px)] md:h-[calc(100dvh-256px)]">
249+
<div className="w-full overflow-clip h-[calc(100dvh-260px)] md:h-[calc(100dvh-256px)]">
250250
<div
251251
ref={containerRef}
252252
className="w-[calc(100%-2rem)] mx-4 h-full overflow-clip"

src/components/layout/footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import { Link } from "../link";
55
export const Footer = () => {
66
return (
77
<div className="flex flex-col-reverse md:flex-row justify-between items-center m-4 dashed-top dashed-bottom after:hidden md:after:block md:h-[84px]">
8-
<div className="flex items-center gap-4 dashed-right after:hidden lg:after:block h-full pl-2 lg:px-10 py-8 pb-4 md:py-0">
8+
<div className="flex items-center gap-4 dashed-right after:hidden lg:after:block h-full md:pl-2 lg:px-10 py-4 pb-4 md:py-0">
99
<span className="text-sm font-mono text-white">
1010
© {new Date().getFullYear()} All rights reserved.
1111
</span>
1212
</div>
1313
<div className="dashed-top md:hidden w-full"></div>
1414
<div className="dashed-right h-full lg:hidden"></div>
1515
<div className="flex items-center gap-8 dashed-left before:hidden lg:before:block h-full lg:px-10">
16-
<div className="flex flex-col md:flex-row items-center gap-2 py-8 md:py-0">
16+
<div className="flex flex-col md:flex-row items-center gap-2 py-4 md:py-0">
1717
<span className="text-white font-mono text-sm flex gap-4">
1818
<NextLink
1919
href="/"

src/components/layout/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Link } from "../link";
55

66
export const Header = () => {
77
return (
8-
<div className="flex justify-between items-center m-4 mb-2 dashed-top dashed-bottom h-[108px]">
8+
<div className="flex justify-between items-center m-4 mb-2 dashed-top dashed-bottom h-[72px] mx-2 md:h-[108px]">
99
<NextLink
1010
href="/"
1111
className="flex items-center gap-4 dashed-right h-full px-8"

0 commit comments

Comments
 (0)