Skip to content

Commit eeae7a9

Browse files
authored
fix: migrated Footer.scss to Tailwind
1 parent 46bc7b4 commit eeae7a9

2 files changed

Lines changed: 45 additions & 153 deletions

File tree

src/components/Footer/Footer.jsx

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@ import Icon from "../../assets/icon-square-small.svg";
44
import OpenJSLogo from "../../assets/openjs-logo.png";
55
import Container from "../Container/Container.jsx";
66
import Link from "../Link/Link.jsx";
7-
import "./Footer.scss";
7+
8+
const footerLinkClasses =
9+
"text-[11px] uppercase text-[#777676] hover:text-[#333333]";
810

911
const Footer = () => (
10-
<footer className="footer">
11-
<Container className="footer__top">
12-
<div className="footer__openjs">
12+
<footer className="w-full flex-[0_0_auto]">
13+
<Container className="mx-auto max-w-[900px] px-5 pb-[30px] pt-[40px] text-center [&_a]:text-[#3b7eb5]">
14+
<div className="mb-[24px] flex justify-center">
1315
<a href="https://openjsf.org" target="_blank" rel="noopener noreferrer">
1416
<img
15-
className="footer-openjsf-logo"
17+
className="h-[40px] w-auto"
1618
src={OpenJSLogo}
1719
alt="OpenJS Foundation Logo"
18-
width={110}
1920
/>
2021
</a>
2122
</div>
22-
<p>
23+
<p className="mx-auto text-[15px] leading-[1.6] text-[#333333]">
2324
Copyright <a href="https://openjsf.org">OpenJS Foundation</a> and
2425
webpack contributors. All rights reserved. The{" "}
2526
<a href="https://openjsf.org">OpenJS Foundation</a> has registered
@@ -35,7 +36,7 @@ const Footer = () => (
3536
holders. Use of them does not imply any affiliation with or endorsement
3637
by them.
3738
</p>
38-
<p>
39+
<p className="mx-auto mt-[18px] text-[15px] leading-[1.6] text-[#333333]">
3940
<a href="https://openjsf.org">The OpenJS Foundation</a> |{" "}
4041
<a href="https://terms-of-use.openjsf.org">Terms of Use</a> |{" "}
4142
<a href="https://privacy-policy.openjsf.org">Privacy Policy</a> |{" "}
@@ -46,45 +47,66 @@ const Footer = () => (
4647
<a href="https://www.linuxfoundation.org/cookies">Cookie Policy</a>
4748
</p>
4849
</Container>
49-
<Container className="footer__inner">
50-
<section className="footer__left" aria-label="Quick links">
51-
<Link className="footer__link" to="/guides/getting-started/">
50+
<Container className="flex flex-wrap justify-center gap-y-4 content-center border-t border-[#f2f2f2] px-0 py-[0.4em] md:flex-row md:justify-between">
51+
<section
52+
className="mx-auto flex max-w-full flex-[0_0_auto] flex-wrap items-center justify-center py-[0.25em] md:m-0 md:justify-start md:pl-[1.5em] md:py-0 [&>*:not(:last-child)]:mr-[1.5em]"
53+
aria-label="Quick links"
54+
>
55+
<Link className={footerLinkClasses} to="/guides/getting-started/">
5256
Get Started
5357
</Link>
54-
<Link className="footer__link" to="/comparison/">
58+
<Link className={footerLinkClasses} to="/comparison/">
5559
Comparison
5660
</Link>
57-
<Link className="footer__link" to="https://privacy-policy.openjsf.org/">
61+
<Link
62+
className={footerLinkClasses}
63+
to="https://privacy-policy.openjsf.org/"
64+
>
5865
Privacy Policy
5966
</Link>
6067
</section>
6168

62-
<section className="footer__middle" aria-label="Home">
63-
<Link to="/" className="footer__icon">
64-
<img src={Icon} alt="webpack icon" width={35} height={35} />
69+
<section className="hidden md:block md:flex-[0_0_auto]" aria-label="Home">
70+
<Link to="/" className="inline-block h-[35px]">
71+
<img
72+
className="inline-block h-full w-auto"
73+
src={Icon}
74+
alt="webpack icon"
75+
width={35}
76+
height={35}
77+
/>
6578
</Link>
6679
</section>
6780

68-
<section className="footer__right" aria-label="Resources and links">
69-
<Link className="footer__link" to="https://webpack.threadless.com/">
81+
<section
82+
className="mx-auto flex max-w-full flex-[0_0_auto] flex-wrap items-center justify-center py-[0.25em] md:m-0 md:justify-end md:py-0 md:pr-[1.5em] [&>a:not(:last-child)]:mr-[1.5em]"
83+
aria-label="Resources and links"
84+
>
85+
<Link
86+
className={footerLinkClasses}
87+
to="https://webpack.threadless.com/"
88+
>
7089
Swag Store
7190
</Link>
72-
<Link className="footer__link" to="/awesome-webpack/">
91+
<Link className={footerLinkClasses} to="/awesome-webpack/">
7392
Awesome webpack
7493
</Link>
75-
<Link className="footer__link" to="/glossary/">
94+
<Link className={footerLinkClasses} to="/glossary/">
7695
Glossary
7796
</Link>
78-
<Link className="footer__link" to="/branding/">
97+
<Link className={footerLinkClasses} to="/branding/">
7998
Branding
8099
</Link>
81100
<Link
82-
className="footer__link"
101+
className={footerLinkClasses}
83102
to="https://github.com/webpack/webpack/releases"
84103
>
85104
Changelog
86105
</Link>
87-
<Link className="footer__link footer__license" to="/license">
106+
<Link
107+
className="inline-block h-[25px] align-middle [&_img]:ml-4 [&_img]:inline-block [&_img]:h-full [&_img]:w-auto"
108+
to="/license"
109+
>
88110
<img
89111
alt="Creative Commons License (CC)"
90112
src={CC}

src/components/Footer/Footer.scss

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

0 commit comments

Comments
 (0)