Skip to content

Commit 73160bf

Browse files
committed
refactor(SplashViz): use clsx for better class management and readability
1 parent d6db3e1 commit 73160bf

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/components/SplashViz/SplashViz.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Import External Dependencies
22
import { Component } from "react";
3+
import clsx from "clsx";
34

45
// Load Images
56

@@ -14,7 +15,15 @@ import HomeSVG from "./SplashVizSVG.mjs";
1415
export default class SplashViz extends Component {
1516
render() {
1617
return (
17-
<section className="relative grid grid-rows-[auto_1fr] overflow-hidden p-4 pb-16 bg-[#2b3a42] dark:bg-gray-900 h-[clamp(35rem,calc(100vh-80px),45rem)] md:h-[clamp(30rem,calc(100vh-80px),35rem)] sm:min-h-[clamp(40rem,calc(100vh-80px),50rem)]">
18+
<section
19+
className={clsx(
20+
"relative grid grid-rows-[auto_1fr] overflow-hidden p-4 pb-16",
21+
"bg-[#2b3a42] dark:bg-gray-900",
22+
"h-[clamp(35rem,calc(100vh-80px),45rem)]",
23+
"md:h-[clamp(30rem,calc(100vh-80px),35rem)]",
24+
"sm:min-h-[clamp(40rem,calc(100vh-80px),50rem)]",
25+
)}
26+
>
1827
<h1 className="text-white text-center font-normal font-[Source_Sans_Pro] text-[30px] md:text-[40px] mt-[80px] md:mt-[90px] leading-[36px] md:leading-[48px] tracking-[0]">
1928
<span>bundle your</span>
2029
<span className="inline-block w-[120px] text-left">

0 commit comments

Comments
 (0)