Skip to content

Commit a27cc02

Browse files
committed
fix(SplashViz): align typography, font weight and spacing with webpack design
1 parent 6f1220e commit a27cc02

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/components/SplashViz/SplashViz.jsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// Import External Dependencies
22
import { Component } from "react";
33

4+
// Global styles / fonts
5+
import "@fontsource/source-sans-pro/300.css";
6+
47
// Load Images
58

69
// Import Components
710
import Cube from "../Cube/Cube.jsx";
8-
import TextRotator from "../TextRotater/TextRotater.jsx";
11+
import TextRotater from "../TextRotater/TextRotater.jsx";
912
import HomeSVG from "./SplashVizSVG.mjs";
1013

1114
// Load Styling
@@ -15,14 +18,16 @@ export default class SplashViz extends Component {
1518
render() {
1619
return (
1720
<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-
<h1 className="text-white text-center font-light font-sans text-[30px] md:text-[40px] mt-[80px] md:mt-[90px] leading-[36px] md:leading-[48px]">
19-
<span> bundle your </span>
20-
<TextRotater delay={2000}>
21-
<span>assets</span>
22-
<span>scripts</span>
23-
<span>images</span>
24-
<span>styles</span>
25-
</TextRotater>
21+
<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]">
22+
<span>bundle your</span>
23+
<span className="inline-block w-[120px] text-left">
24+
<TextRotater delay={2000}>
25+
<span>assets</span>
26+
<span>scripts</span>
27+
<span>images</span>
28+
<span>styles</span>
29+
</TextRotater>
30+
</span>
2631
</h1>
2732
<div
2833
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"

0 commit comments

Comments
 (0)