-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
migrate SplashViz component to Tailwind CSSFeature/migrate splashviz tailwind #8128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
5c7361c
08ab92d
12b2e9c
6dfb22a
e223533
8fece76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,14 +8,17 @@ | |||||||||||||
| import TextRotator from "../TextRotater/TextRotater.jsx"; | ||||||||||||||
| import HomeSVG from "./SplashVizSVG.mjs"; | ||||||||||||||
|
|
||||||||||||||
| // Load Styling | ||||||||||||||
| import "./SplashViz.scss"; | ||||||||||||||
|
|
||||||||||||||
| export default class SplashViz extends Component { | ||||||||||||||
| render() { | ||||||||||||||
| return ( | ||||||||||||||
| <section className="splash-viz dark:bg-gray-900!"> | ||||||||||||||
| <h1 className="splash-viz__heading"> | ||||||||||||||
| <section className="splash-viz 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)] | ||||||||||||||
| max-lg:h-[clamp(30rem,calc(100vh-80px),35rem)] | ||||||||||||||
| max-[425px]:min-h-[clamp(40rem,calc(100vh-80px),50rem)]"> | ||||||||||||||
|
||||||||||||||
| h-[clamp(35rem,calc(100vh-80px),45rem)] | |
| max-lg:h-[clamp(30rem,calc(100vh-80px),35rem)] | |
| max-[425px]:min-h-[clamp(40rem,calc(100vh-80px),50rem)]"> | |
| h-[clamp(35rem,calc(100vh - 80px),45rem)] | |
| max-lg:h-[clamp(30rem,calc(100vh - 80px),35rem)] | |
| max-[425px]:min-h-[clamp(40rem,calc(100vh - 80px),50rem)]"> |
Copilot
AI
Mar 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The responsive breakpoint for the heading was @include break in the removed SCSS, which maps to min-width: 768px ($screens.medium). The Tailwind classes use lg: (1024px), so the larger font size / 90px top margin will apply later than before; use the md: breakpoint if you want to preserve the original behavior.
| text-[2rem] lg:text-[2.5rem] lg:mt-[90px]"> | |
| text-[2rem] md:text-[2.5rem] md:mt-[90px]"> |
Copilot
AI
Mar 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .splash-viz__modules sizing/breakpoint doesn’t match the removed SCSS: @include break shows it at min-width: 768px (Tailwind md:), and max-width was $screens.medium (768px). The new hidden lg:block max-w-[1200px] will keep it hidden until 1024px and allow it to grow much wider than before, which changes layout on tablets/desktop.
| className="splash-viz__modules absolute top-1/2 left-1/2 w-[60vw] min-w-[550px] max-w-[1200px] m-auto -translate-x-1/2 -translate-y-1/2 hidden lg:block row-start-2 row-end-3" | |
| className="splash-viz__modules absolute top-1/2 left-1/2 w-[60vw] min-w-[550px] max-w-[768px] m-auto -translate-x-1/2 -translate-y-1/2 hidden md:block row-start-2 row-end-3" |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p-4 pb-16changes the effective bottom padding compared to the removed SCSS: inSplashViz.scss,padding-bottom: 4rem;is immediately overridden bypadding: 1rem;(so bottom padding ends up1rem). If the goal is a pixel-perfect migration, this should be reconciled (either droppb-16to match the old output, or adjust the old intent explicitly).