|
1 | | -// Import External Dependencies |
2 | | -import { Component } from "react"; |
3 | | - |
4 | | -// Load Images |
5 | | - |
6 | 1 | // Import Components |
7 | 2 | import Cube from "../Cube/Cube.jsx"; |
8 | 3 | import TextRotator from "../TextRotater/TextRotater.jsx"; |
9 | 4 | import HomeSVG from "./SplashVizSVG.mjs"; |
10 | 5 |
|
11 | | -export default class SplashViz extends Component { |
12 | | - render() { |
13 | | - return ( |
14 | | - <section className="relative h-[clamp(35rem,calc(100vh-80px),45rem)] bg-blue-800 grid grid-rows-[auto_1fr] overflow-hidden p-4 max-lg:h-[clamp(30rem,calc(100vh-80px),35rem)] max-[425px]:min-h-[clamp(40rem,calc(100vh-80px),50rem)] dark:bg-gray-900!"> |
15 | | - <h1 className="flex flex-wrap items-center justify-center text-white text-[33.178px] md:text-[39.813px] text-center font-[200] mt-[80px] md:mt-[90px] row-start-1 row-end-2"> |
16 | | - <span> bundle your</span> |
17 | | - <TextRotator delay={5000} repeatDelay={5000} maxWidth={110}> |
18 | | - <span> assets </span> |
19 | | - <span> scripts </span> |
20 | | - <span> images </span> |
21 | | - <span> styles </span> |
22 | | - </TextRotator> |
23 | | - </h1> |
24 | | - <div |
25 | | - className="absolute top-1/2 left-1/2 w-[60vw] min-w-[550px] max-w-[768px] mx-auto -translate-x-1/2 -translate-y-1/2 hidden md:block row-start-2 row-end-3 [&_img]:pt-4 [&_img]:w-full [&_img]:h-full" |
26 | | - dangerouslySetInnerHTML={{ __html: HomeSVG.body }} |
27 | | - ></div> |
28 | | - <Cube |
29 | | - className="absolute inset-0 m-auto z-[1] row-start-2 row-end-3" |
30 | | - depth={120} |
31 | | - repeatDelay={5000} |
32 | | - continuous |
33 | | - /> |
34 | | - </section> |
35 | | - ); |
36 | | - } |
| 6 | +export default function SplashViz() { |
| 7 | + return ( |
| 8 | + <section className="relative h-[clamp(35rem,calc(100vh-80px),45rem)] bg-blue-800 grid grid-rows-[auto_1fr] overflow-hidden p-4 max-lg:h-[clamp(30rem,calc(100vh-80px),35rem)] max-[425px]:min-h-[clamp(40rem,calc(100vh-80px),50rem)] dark:bg-gray-900!"> |
| 9 | + <h1 className="flex flex-wrap items-center justify-center text-white text-[33.178px] md:text-[39.813px] text-center font-[200] mt-[80px] md:mt-[90px] row-start-1 row-end-2"> |
| 10 | + <span> bundle your</span> |
| 11 | + <TextRotator delay={5000} repeatDelay={5000} maxWidth={110}> |
| 12 | + <span> assets </span> |
| 13 | + <span> scripts </span> |
| 14 | + <span> images </span> |
| 15 | + <span> styles </span> |
| 16 | + </TextRotator> |
| 17 | + </h1> |
| 18 | + <div |
| 19 | + className="absolute top-1/2 left-1/2 w-[60vw] min-w-[550px] max-w-[768px] mx-auto -translate-x-1/2 -translate-y-1/2 hidden md:block row-start-2 row-end-3 [&_img]:pt-4 [&_img]:w-full [&_img]:h-full" |
| 20 | + dangerouslySetInnerHTML={{ __html: HomeSVG.body }} |
| 21 | + /> |
| 22 | + <Cube |
| 23 | + className="absolute inset-0 m-auto z-[1] row-start-2 row-end-3" |
| 24 | + depth={120} |
| 25 | + repeatDelay={5000} |
| 26 | + continuous |
| 27 | + /> |
| 28 | + </section> |
| 29 | + ); |
37 | 30 | } |
0 commit comments