Skip to content

Commit

Permalink
fixing the order based on screensize
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese committed Apr 10, 2024
1 parent 9af7ccf commit 8204213
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 28 deletions.
61 changes: 33 additions & 28 deletions src/components/config-pages/local-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,29 @@ const LocalFooter = ({
<FooterLockup {...lockupProps} />
</div>

{/* Social Links */}
{suLocalFootSocial &&
<ul className="list-unstyled flex gap-2 rs-mb-0">
{suLocalFootSocial.map((link, index) => {
if (!link.url) return;
return (
<li key={`footer-action-link-${index}`}>
<Link href={link.url}>
<SocialIcon url={link.url}/>
<span className="sr-only">{link.title}</span>
</Link>
</li>
)
})}
</ul>
}
<div
className="grid md:grid-cols-2 lg:grid-cols-4 gap-32 [&_a]:font-normal [&_a]:decoration-1 [&_a]:text-white [&_a]:decoration-white [&_a:hover]:decoration-2 [&_a:hover]:decoration-bay-light [&_a:hover]:text-bay-light [&_a:focus]:text-bay-light [&_a]:transition">
<div>

{suLocalFootSocial &&
<ul className="list-unstyled flex gap-2 rs-mb-0">
{suLocalFootSocial.map((link, index) => {
if (!link.url) return;
return (
<li key={`footer-action-link-${index}`}>
<Link href={link.url}>
<SocialIcon url={link.url}/>
<span className="sr-only">{link.title}</span>
</Link>
</li>
)
})}
</ul>
}
className="grid 2xl:grid-cols-4 sm:grid-cols-2 grid-cols-1 gap-16 [&_a]:font-normal [&_a]:decoration-1 [&_a]:text-white [&_a]:decoration-white [&_a:hover]:decoration-2 [&_a:hover]:decoration-bay-light [&_a:hover]:text-bay-light [&_a:focus]:text-bay-light [&_a]:transition">
<div className="list-unstyled rs-ml-4 rs-mr-3">
{/* Content block 1 */}
<Wysiwyg html={suLocalFootPrCo?.processed}/>

{/* Action Links */}
{suLocalFootAction &&
<ul className="list-unstyled">
{suLocalFootAction.map((link, index) => {
Expand All @@ -100,11 +103,12 @@ const LocalFooter = ({
})}
</ul>
}

<Wysiwyg html={suLocalFootPrCo?.processed} className="list-unstyled rs-ml-4 rs-mr-3 rs-mt-2"/>
</div>

<div>
<div className="list-unstyled rs-ml-4 rs-mr-3 sm:order-4">
{/* Content block 3 */}
<Wysiwyg html={suLocalFootTr2Co?.processed}/>
{/* Primary Links */}
{suLocalFootPrimeH &&
<H2 className="text-m1">{suLocalFootPrimeH}</H2>}
{suLocalFootPrimary &&
Expand All @@ -121,11 +125,12 @@ const LocalFooter = ({
})}
</ul>
}
<Wysiwyg html={suLocalFootSeCo?.processed} className="list-unstyled rs-ml-4 rs-mr-3 rs-mt-2"/>

</div>

<div>
<div className="list-unstyled rs-ml-4 rs-mr-3">
{/* Content block 2 */}
<Wysiwyg html={suLocalFootSeCo?.processed}/>
{/* Secondary links */}
{suLocalFootSecondH &&
<H2 className="text-m1">{suLocalFootSecondH}</H2>}

Expand All @@ -144,12 +149,12 @@ const LocalFooter = ({
</ul>
}

<Wysiwyg html={suLocalFootTr2Co?.processed} className="list-unstyled rs-ml-4 rs-mr-3 rs-mt-2"/>

</div>

<Wysiwyg html={suLocalFootTrCo?.processed} className="list-unstyled rs-ml-4 rs-mr-3 rs-mt-2"/>

<div className="list-unstyled rs-ml-4 rs-mr-3 order-4">
{/* Content block 4 */}
<Wysiwyg html={suLocalFootTrCo?.processed}/>
</div>
</div>
</div>
<div className="text-white text-21 text-center lg:text-left lg:centered">
Expand Down
6 changes: 6 additions & 0 deletions src/styles/typography/local-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ module.exports = function () {
".local-footer": {
"h2": {
fontSize: "1.2em",
"a": {
"&:hover": {
color: "#8AB8A7",
textDecorationThickness: "2px",
},
}
},
"h3": {
fontSize: "1.3em",
Expand Down

0 comments on commit 8204213

Please sign in to comment.