Skip to content

Commit ac6d908

Browse files
committed
wip overlay
1 parent 8ef7554 commit ac6d908

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

src/components/hero/index.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ import {
1111
Vec3
1212
} from "ogl";
1313
import { useEffect, useRef } from "react";
14+
import { Overlay } from "../overlay";
1415

15-
const DESKTOP_HEIGHT = 240;
16-
const MOBILE_HEIGHT = 340;
16+
const DESKTOP_HEIGHT = 256;
17+
const MOBILE_HEIGHT = 356;
1718

1819
export const HeroASCII = () => {
1920
const containerRef = useRef<HTMLDivElement>(null);
@@ -235,9 +236,12 @@ void main() {
235236
}, []);
236237

237238
return (
238-
<div
239-
ref={containerRef}
240-
className="w-[calc(100%-2rem)] mx-4 h-full overflow-clip"
241-
></div>
239+
<div className="w-full h-full overflow-clip">
240+
<div
241+
ref={containerRef}
242+
className="w-[calc(100%-2rem)] mx-4 h-full overflow-clip"
243+
></div>
244+
<Overlay />
245+
</div>
242246
);
243247
};

src/components/layout/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Link from "next/link";
44

55
export const Footer = () => {
66
return (
7-
<div className="flex flex-col-reverse md:flex-row justify-between items-center m-4 mt-2 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 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 pl-2 lg:px-10 py-8 pb-4 md:py-0">
99
<span className="text-sm font-mono text-white">
1010
© {new Date().getFullYear()} All rights reserved.

src/components/overlay/index.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export const Overlay = () => {
2+
return (
3+
<div className="absolute inset-0 z-50 flex items-center justify-center">
4+
<div className="w-full h-full relative">
5+
<div className="absolute top-12 right-12 text-white bg-black w-[264px] text-right font-mono text-sm pl-4 py-2">
6+
Vortex is a highly performant, extensible columnar data format
7+
</div>
8+
9+
<div className="absolute bottom-1 left-14 text-white bg-black w-[324px] text-left font-mono text-sm px-4 py-2">
10+
It&apos;s both a file format and a memory format, enabling compute
11+
over compressed data
12+
</div>
13+
</div>
14+
</div>
15+
);
16+
};

0 commit comments

Comments
 (0)