Skip to content

Commit 2352a17

Browse files
committed
responsive fixes
1 parent 57126b4 commit 2352a17

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

src/components/hero-404/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import {
1515
import { useEffect, useRef } from "react";
1616
import { Overlay404 } from "../overlay-404";
1717

18-
const DESKTOP_HEIGHT = 256;
19-
const MOBILE_HEIGHT = 260;
18+
const DESKTOP_HEIGHT = 312;
19+
const MOBILE_HEIGHT = 214;
2020

2121
const DESKTOP_CAMERA_POSITION = new Vec3(8, -4, 15);
2222
const MOBILE_CAMERA_POSITION = new Vec3(14, -10, 21);
@@ -282,10 +282,10 @@ void main() {
282282
}, []);
283283

284284
return (
285-
<div className="w-full overflow-clip h-[calc(100dvh-260px)] md:h-[calc(100dvh-256px)]">
285+
<div className="w-full overflow-clip h-[calc(100dvh-214px)] md:h-[calc(100dvh-312px)]">
286286
<div
287287
ref={containerRef}
288-
className="w-[calc(100%-2rem)] mx-4 h-full overflow-clip"
288+
className="w-[calc(100%-2rem)] md:w-[calc(100%-5rem)] mx-4 md:mx-10 h-full overflow-clip"
289289
></div>
290290
<Overlay404 />
291291
</div>

src/components/hero/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import {
1515
import { useEffect, useRef } from "react";
1616
import { Overlay } from "../overlay";
1717

18-
const DESKTOP_HEIGHT = 256;
19-
const MOBILE_HEIGHT = 260;
18+
const DESKTOP_HEIGHT = 312;
19+
const MOBILE_HEIGHT = 214;
2020

2121
const DESKTOP_CAMERA_POSITION = new Vec3(5, -5, 10);
2222
const MOBILE_CAMERA_POSITION = new Vec3(7, -7, 12);
@@ -284,10 +284,10 @@ void main() {
284284
}, []);
285285

286286
return (
287-
<div className="w-full overflow-clip h-[calc(100dvh-260px)] md:h-[calc(100dvh-256px)]">
287+
<div className="w-full overflow-clip h-[calc(100dvh-214px)] md:h-[calc(100dvh-312px)]">
288288
<div
289289
ref={containerRef}
290-
className="w-[calc(100%-2rem)] mx-4 h-full overflow-clip"
290+
className="w-[calc(100%-2rem)] md:w-[calc(100%-5rem)] mx-4 md:mx-10 h-full overflow-clip"
291291
></div>
292292
<Overlay />
293293
</div>

src/components/layout/footer.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import NextLink from "next/link";
44
import { Link } from "../link";
55
export const Footer = () => {
66
return (
7-
<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]">
7+
<div className="flex flex-col-reverse md:flex-row justify-between items-center m-4 mt-2 md:mt-4 md:m-10 dashed-top dashed-bottom after:hidden md:after:block md:h-[84px]">
88
<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.
@@ -34,9 +34,6 @@ export const Footer = () => {
3434
.
3535
</span>
3636
</span>
37-
<span className="text-white font-mono text-sm text-center md:text-left">
38-
In collaboration with Creators United
39-
</span>
4037
</div>
4138
</div>
4239
</div>

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-[72px] mx-2 md:h-[108px]">
8+
<div className="flex justify-between items-center m-4 mb-2 md:m-10 md:mb-6 dashed-top dashed-bottom h-[72px] 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)