Skip to content

Commit dda614d

Browse files
authored
fix(Splash): migrate component from SCSS to TailwindCSS (#8099)
1 parent d730560 commit dda614d

3 files changed

Lines changed: 25 additions & 93 deletions

File tree

src/components/Splash/Splash.jsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import Container from "../Container/Container.jsx";
66
import Markdown from "../Markdown/Markdown.jsx";
77
import { PlaceholderComponent } from "../Placeholder/Placeholder.jsx";
88
import SplashViz from "../SplashViz/SplashViz.jsx";
9-
// Load Styling
10-
import "./Splash.scss";
119

1210
const Support = lazy(() => import("../Support/Support.jsx"));
1311

@@ -46,19 +44,19 @@ const Splash = () => {
4644
() => false,
4745
);
4846
return (
49-
<div className="splash">
47+
<div className="relative overflow-hidden [&_h1]:justify-center [&_h2]:justify-center">
5048
<SplashViz />
5149

52-
<div className="splash__section splash__section--dark page__content">
53-
<Container>
50+
<div className="relative text-center bg-[#f3f3f3] dark:bg-[#202020] page__content [&_p]:my-[1em]! [&_p]:mx-auto! [&_p]:max-w-200 [&_pre]:text-left [&_.icon-link]:hidden">
51+
<Container className="py-[1em] px-[1em] md:px-[1.5em]">
5452
<Markdown>
5553
<SplashContent />
5654
</Markdown>
5755
</Container>
5856
</div>
5957

60-
<div className="splash__section page__content">
61-
<Container>
58+
<div className="relative text-center page__content [&_p]:my-[1em]! [&_p]:mx-auto! [&_p]:max-w-200 [&_pre]:text-left [&_.icon-link]:hidden">
59+
<Container className="py-[5em] px-[1em] md:px-[1.5em]">
6260
<Markdown>
6361
<h1 id="sponsors">Support the Team</h1>
6462

src/components/Splash/Splash.scss

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

src/styles/tailwind.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,23 @@
7474
.animation-timeline-scroll {
7575
animation-timeline: scroll(root block);
7676
}
77+
78+
/* splash layout */
79+
.splash__wrap {
80+
@apply block md:-mx-7.5 before:content-[''] before:table after:content-[''] after:table after:clear-both;
81+
}
82+
.splash__install {
83+
@apply max-w-100 m-auto;
84+
}
85+
.splash__left {
86+
@apply w-full float-left md:w-1/2 md:px-3.75;
87+
}
88+
.splash__left p {
89+
@apply text-left;
90+
}
91+
.splash__right {
92+
@apply w-full float-left md:w-1/2 md:px-3.75 mb-[1em];
93+
}
94+
.splash__right p {
95+
@apply text-left;
96+
}

0 commit comments

Comments
 (0)