Skip to content

Commit b8f43e4

Browse files
committed
fix(SplashViz): center cube relative to SVG container
1 parent 884487f commit b8f43e4

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/components/SplashViz/SplashViz.jsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,16 @@ export default class SplashViz extends Component {
2626
</TextRotater>
2727
</span>
2828
</h1>
29-
<div
30-
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"
31-
style={{ gridRow: "2/3" }}
32-
dangerouslySetInnerHTML={{ __html: HomeSVG.body }}
33-
></div>
29+
<div 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">
30+
<div dangerouslySetInnerHTML={{ __html: HomeSVG.body }} />
3431

35-
<Cube
36-
className="absolute left-0 right-0 top-0 bottom-0 m-auto z-10"
37-
depth={120}
38-
repeatDelay={5000}
39-
continuous
40-
/>
32+
<Cube
33+
className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10"
34+
depth={120}
35+
repeatDelay={5000}
36+
continuous
37+
/>
38+
</div>
4139
</section>
4240
);
4341
}

0 commit comments

Comments
 (0)