Skip to content

Commit 664fc79

Browse files
authored
fix(SplashViz): migrated SplashViz Component style from SCSS to Tailwind CSS #8047 (#8127)
1 parent b5bcdcc commit 664fc79

File tree

2 files changed

+4
-81
lines changed

2 files changed

+4
-81
lines changed

src/components/SplashViz/SplashViz.jsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ import Cube from "../Cube/Cube.jsx";
88
import TextRotator from "../TextRotater/TextRotater.jsx";
99
import HomeSVG from "./SplashVizSVG.mjs";
1010

11-
// Load Styling
12-
import "./SplashViz.scss";
13-
1411
export default class SplashViz extends Component {
1512
render() {
1613
return (
17-
<section className="splash-viz dark:bg-gray-900!">
18-
<h1 className="splash-viz__heading">
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">
1916
<span> bundle your</span>
2017
<TextRotator delay={5000} repeatDelay={5000} maxWidth={110}>
2118
<span> assets </span>
@@ -25,11 +22,11 @@ export default class SplashViz extends Component {
2522
</TextRotator>
2623
</h1>
2724
<div
28-
className="splash-viz__modules"
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"
2926
dangerouslySetInnerHTML={{ __html: HomeSVG.body }}
3027
></div>
3128
<Cube
32-
className="splash-viz__cube"
29+
className="absolute inset-0 m-auto z-[1] row-start-2 row-end-3"
3330
depth={120}
3431
repeatDelay={5000}
3532
continuous

src/components/SplashViz/SplashViz.scss

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)