Skip to content

Commit 906873d

Browse files
committed
fix: idk if this'll fix site overflows
1 parent 73964cf commit 906873d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

astro/src/components/pages/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function App({ events }: { events: EventLocation[] }) {
127127
</header>
128128

129129
<section className={clsx(
130-
"relative px-6 md:px-16 md:px-24 2xl:px-32 bg-[url(/backgrounds/blue-sky.webp)] bg-center bg-cover",
130+
"relative min-h-[700px] px-6 md:px-16 md:px-24 2xl:px-32 bg-[url(/backgrounds/blue-sky.webp)] bg-center bg-cover",
131131
windowHeight > windowWidth && windowWidth < 860 ? "flex items-stretch pb-0" : "h-full flex items-end pb-32 2xl:pb-48"
132132
)}>
133133
<div className="absolute top-0 left-0 w-full h-full pointer-events-none">

astro/src/components/pages/Satellite.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ function App({slug, content, record_id}: {slug: string | undefined, content: Sat
3535
const [isLargeScreen, setIsLargeScreen] = useState(window.innerWidth >= 1280);
3636
const [isMapOpen, setIsMapOpen] = useState(false);
3737
const emailRef = useRef<HTMLInputElement>(null);
38+
const [windowHeight, setWindowHeight] = useState(window.innerHeight);
39+
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
3840

3941
useEffect(() => {
4042
document.addEventListener("scroll", () => {
@@ -66,7 +68,7 @@ function App({slug, content, record_id}: {slug: string | undefined, content: Sat
6668
}
6769

6870
return (
69-
<div className="w-full min-h-screen flex flex-col overflow-x-hidden">
71+
<div className="w-full flex flex-col overflow-x-hidden">
7072
<div className="absolute -top-16 -left-8 w-1/3 z-20 pointer-events-none hidden min-[860px]:block">
7173
<img
7274
src="/compressed/backgrounds/corner-cloud.webp"
@@ -92,7 +94,10 @@ function App({slug, content, record_id}: {slug: string | undefined, content: Sat
9294
</nav>
9395
</header>
9496

95-
<section className="relative h-full flex items-end pb-32 2xl:pb-48 px-6 md:px-16 md:px-24 2xl:px-32 bg-[url(/backgrounds/blue-sky.webp)] bg-center bg-cover">
97+
<section className={clsx(
98+
"relative min-h-[750px] px-6 md:px-16 md:px-24 2xl:px-32 bg-[url(/backgrounds/blue-sky.webp)] bg-center bg-cover",
99+
windowHeight > windowWidth && windowWidth < 860 ? "flex items-stretch pb-0" : "h-full flex items-end pb-32 2xl:pb-48"
100+
)}>
96101
<div className="absolute top-0 left-0 w-full h-full pointer-events-none">
97102
<img src="/backgrounds/sky-shine.webp" alt="" className="w-full h-full object-cover select-none" />
98103
</div>

0 commit comments

Comments
 (0)