Skip to content

Commit 38f855d

Browse files
committed
fix(Sponsors): remove nested wrappers and fix dark mode white flash
1 parent 34f5616 commit 38f855d

1 file changed

Lines changed: 10 additions & 18 deletions

File tree

src/components/Sponsors/Sponsors.jsx

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,17 @@ import Link from "../Link/Link.jsx";
99

1010
const Sponsors = () => (
1111
<div className="absolute h-full w-[250px] ml-[-250px] mr-2.5">
12-
<div
13-
className="
14-
sticky top-24 hidden xl:flex flex-col items-center
15-
border-r-2 border-gray-200 dark:border-gray-700
16-
my-6 px-6 pb-12
17-
bg-white dark:bg-gray-900
18-
transition-colors duration-200
19-
"
20-
>
12+
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 my-6 px-6 pb-12 overflow-hidden bg-white dark:bg-gray-900 transition-colors duration-200 top-24">
2113
{/* AG Grid */}
22-
<div className="my-6 text-center">
14+
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 dark:border-gray-700 my-6 px-6 pb-12 overflow-hidden bg-white dark:bg-gray-900 top-24">
2315
<Link to="https://www.ag-grid.com/?utm_source=webpack&utm_medium=banner&utm_campaign=sponsorship">
2416
{/* Light mode */}
2517
<img
2618
src={AGLogo}
2719
alt="ag grid"
2820
width={220}
2921
loading="lazy"
30-
className="block dark:hidden mx-auto"
22+
className="block dark:hidden"
3123
/>
3224

3325
{/* Dark mode */}
@@ -36,21 +28,21 @@ const Sponsors = () => (
3628
alt="ag grid dark"
3729
width={220}
3830
loading="lazy"
39-
className="hidden dark:block mx-auto"
31+
className="hidden dark:block"
4032
/>
4133
</Link>
4234
</div>
4335

4436
{/* AG Charts */}
45-
<div className="my-6 text-center">
37+
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 dark:border-gray-700 my-6 px-6 pb-12 overflow-hidden bg-white dark:bg-gray-900 top-24">
4638
<Link to="https://charts.ag-grid.com/?utm_source=webpack&utm_medium=banner&utm_campaign=sponsorship">
4739
{/* Light mode */}
4840
<img
4941
src={AGChartsLogo}
5042
alt="ag charts"
5143
width={220}
5244
loading="lazy"
53-
className="block dark:hidden mx-auto"
45+
className="block dark:hidden"
5446
/>
5547

5648
{/* Dark mode */}
@@ -59,15 +51,15 @@ const Sponsors = () => (
5951
alt="ag charts dark"
6052
width={220}
6153
loading="lazy"
62-
className="hidden dark:block mx-auto"
54+
className="hidden dark:block"
6355
/>
6456
</Link>
6557
</div>
6658

6759
{/* Webpack Sponsor */}
68-
<div className="my-6 text-center">
60+
<div className="sticky hidden xl:flex flex-wrap justify-center items-start border-r-2 border-gray-200 dark:border-gray-700 my-6 px-6 pb-12 overflow-hidden bg-white dark:bg-gray-900 top-24">
6961
<Link to="https://www.ag-grid.com/?utm_source=webpack&utm_medium=banner&utm_campaign=sponsorship">
70-
<div className="text-2xl text-gray-700 dark:text-gray-300 my-4">
62+
<div className="text-2xl text-gray-700 dark:text-gray-300 my-4 text-center">
7163
Datagrid and Charting for Enterprise Applications
7264
</div>
7365

@@ -81,7 +73,7 @@ const Sponsors = () => (
8173
/>
8274
</div>
8375

84-
<div className="italic text-xl text-gray-700 dark:text-gray-300 my-4">
76+
<div className="italic text-xl text-gray-700 dark:text-gray-300 my-4 text-center">
8577
Proud to partner with webpack
8678
</div>
8779
</Link>

0 commit comments

Comments
 (0)