Skip to content

Commit ed581d6

Browse files
committed
refactor(SplashViz): migrate from SCSS to Tailwind CSS
1 parent 29288b2 commit ed581d6

2 files changed

Lines changed: 9 additions & 79 deletions

File tree

src/components/SplashViz/SplashViz.jsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ import TextRotator from "../TextRotater/TextRotater.jsx";
99
import HomeSVG from "./SplashVizSVG.mjs";
1010

1111
// Load Styling
12-
import "./SplashViz.scss";
12+
// Tailwind CSS is now used for styling. Custom SCSS removed.
1313

1414
export default class SplashViz extends Component {
1515
render() {
1616
return (
17-
<section className="splash-viz dark:bg-gray-900!">
18-
<h1 className="splash-viz__heading">
17+
<section className="relative grid grid-rows-[auto_1fr] overflow-hidden pb-16 p-4 min-h-[40rem] h-[clamp(35rem,100vh-80px,45rem)] bg-[#2b3a42] dark:bg-gray-900 md:h-[clamp(30rem,100vh-80px,35rem)] sm:min-h-[clamp(40rem,100vh-80px,50rem)]">
18+
<h1
19+
className="text-white text-center font-light mt-20 text-4xl md:text-5xl"
20+
style={{ gridRow: "1/2" }}
21+
>
1922
<span> bundle your</span>
2023
<TextRotator delay={5000} repeatDelay={5000} maxWidth={110}>
2124
<span> assets </span>
@@ -25,11 +28,12 @@ export default class SplashViz extends Component {
2528
</TextRotator>
2629
</h1>
2730
<div
28-
className="splash-viz__modules"
31+
className="absolute top-1/2 left-1/2 w-[60vw] min-w-[550px] max-w-[768px] -translate-x-1/2 -translate-y-1/2 hidden md:block"
32+
style={{ gridRow: "2/3" }}
2933
dangerouslySetInnerHTML={{ __html: HomeSVG.body }}
3034
></div>
3135
<Cube
32-
className="splash-viz__cube"
36+
className="absolute left-0 right-0 top-0 bottom-0 m-auto z-10"
3337
depth={120}
3438
repeatDelay={5000}
3539
continuous

src/components/SplashViz/SplashViz.scss

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

0 commit comments

Comments
 (0)