-
Notifications
You must be signed in to change notification settings - Fork 22
feat(ui): redesign mobile footer to a responsive multi-column grid #255
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 1 commit
62c6f9a
9ba602b
a9621c4
c9984c5
36524f8
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 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,10 @@ | ||||||||||||||||||||||
| #backtotop a:after { | ||||||||||||||||||||||
| content: "⇧"; | ||||||||||||||||||||||
| /* Back to top – colour override to match footer theme */ | ||||||||||||||||||||||
| #backtotop a { | ||||||||||||||||||||||
| background-color: #0b214a; | ||||||||||||||||||||||
| border: 2px solid rgba(255, 255, 255, 0.25); | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| #backtotop.visible a:hover { | ||||||||||||||||||||||
| background-color: #1a3a7a; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| .hero-title-content { | ||||||||||||||||||||||
| max-width: 1200px; | ||||||||||||||||||||||
|
|
@@ -43,53 +48,194 @@ | |||||||||||||||||||||
| } | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* Footer */ | ||||||||||||||||||||||
| @media (max-width: 850px){ | ||||||||||||||||||||||
| .footer-column > ul.link-list { | ||||||||||||||||||||||
| padding-left: unset; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| /* ============================================= | ||||||||||||||||||||||
| FOOTER — REDESIGN | ||||||||||||||||||||||
| ============================================= */ | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-column { | ||||||||||||||||||||||
| padding-left: unset; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| .footer-redesign { | ||||||||||||||||||||||
| background-color: #0b214a; | ||||||||||||||||||||||
| color: #e2e8f0; | ||||||||||||||||||||||
| padding: 3rem 0 0; | ||||||||||||||||||||||
| font-family: inherit; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-logo-column { | ||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||
| justify-content: flex-start; | ||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||
| padding: 0.5rem; | ||||||||||||||||||||||
| /* ---- Inner wrapper (brand + link grid) ---- */ | ||||||||||||||||||||||
| .footer-inner { | ||||||||||||||||||||||
| max-width: 1200px; | ||||||||||||||||||||||
| margin: 0 auto; | ||||||||||||||||||||||
| padding: 0 2rem 2.5rem; | ||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||
| gap: 3rem; | ||||||||||||||||||||||
| align-items: flex-start; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-column { | ||||||||||||||||||||||
| padding-left: 30px; | ||||||||||||||||||||||
| /* ---- Brand block ---- */ | ||||||||||||||||||||||
| .footer-brand { | ||||||||||||||||||||||
| flex: 0 0 200px; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .social-media-icons { | ||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||
| .footer-title { | ||||||||||||||||||||||
| font-size: 1.75rem; | ||||||||||||||||||||||
| font-weight: 800; | ||||||||||||||||||||||
| color: #ffffff; | ||||||||||||||||||||||
| margin-bottom: 1.5rem; | ||||||||||||||||||||||
| letter-spacing: -0.3px; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| @media (max-width: 400px) { | ||||||||||||||||||||||
| ul { | ||||||||||||||||||||||
| padding-left: 0px !important; | ||||||||||||||||||||||
| padding-right: 30px; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| /* ---- Partner logo row ---- */ | ||||||||||||||||||||||
| .footer-partners { | ||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||
| flex-wrap: wrap; | ||||||||||||||||||||||
| gap: 1.25rem; | ||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||
| opacity: 0.7; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-partners a { | ||||||||||||||||||||||
| display: inline-flex; | ||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-partners img { | ||||||||||||||||||||||
| max-height: 36px; | ||||||||||||||||||||||
| width: auto; | ||||||||||||||||||||||
| object-fit: contain; | ||||||||||||||||||||||
| filter: brightness(0) invert(1); | ||||||||||||||||||||||
| transition: opacity 0.2s ease; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-partners a:hover img { | ||||||||||||||||||||||
| opacity: 0.85; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* ---- Link columns grid ---- */ | ||||||||||||||||||||||
| .footer-links { | ||||||||||||||||||||||
| flex: 1; | ||||||||||||||||||||||
| display: grid; | ||||||||||||||||||||||
| grid-template-columns: repeat(4, 1fr); | ||||||||||||||||||||||
| gap: 2rem; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* ---- Column heading ---- */ | ||||||||||||||||||||||
| .footer-group-heading { | ||||||||||||||||||||||
| font-size: 0.68rem; | ||||||||||||||||||||||
| font-weight: 700; | ||||||||||||||||||||||
| letter-spacing: 0.12em; | ||||||||||||||||||||||
| text-transform: uppercase; | ||||||||||||||||||||||
| color: rgba(255, 255, 255, 0.45); | ||||||||||||||||||||||
| margin: 0 0 0.875rem 0; | ||||||||||||||||||||||
| padding: 0; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* ---- Link list ---- */ | ||||||||||||||||||||||
| .footer-link-group ul { | ||||||||||||||||||||||
| list-style: none; | ||||||||||||||||||||||
| margin: 0; | ||||||||||||||||||||||
| padding: 0; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-link-group ul li a { | ||||||||||||||||||||||
| color: #c8d4e8; | ||||||||||||||||||||||
| text-decoration: none; | ||||||||||||||||||||||
| font-size: 0.9rem; | ||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||
| min-height: 44px; | ||||||||||||||||||||||
| transition: color 0.2s ease; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-link-group ul li a:hover { | ||||||||||||||||||||||
| color: #ffffff; | ||||||||||||||||||||||
| text-decoration: underline; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* ---- Bottom bar ---- */ | ||||||||||||||||||||||
| .footer-bottom { | ||||||||||||||||||||||
| max-width: 1200px; | ||||||||||||||||||||||
| margin: 0 auto; | ||||||||||||||||||||||
| padding: 1.25rem 2rem; | ||||||||||||||||||||||
| border-top: 1px solid rgba(255, 255, 255, 0.1); | ||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||
| justify-content: space-between; | ||||||||||||||||||||||
| flex-wrap: wrap; | ||||||||||||||||||||||
| gap: 1rem; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* Icon size slightly enlargened for footer */ | ||||||||||||||||||||||
| #footer .social-media-icons { | ||||||||||||||||||||||
| font-size: 1.5em; | ||||||||||||||||||||||
| /* ---- Social icons ---- */ | ||||||||||||||||||||||
| .footer-socials { | ||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||
| gap: 0.75rem; | ||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| #footer svg.icon { | ||||||||||||||||||||||
| fill: #1e87f0; | ||||||||||||||||||||||
| .footer-socials a { | ||||||||||||||||||||||
| display: inline-flex; | ||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||
| min-width: 44px; | ||||||||||||||||||||||
| min-height: 44px; | ||||||||||||||||||||||
| color: #c8d4e8; | ||||||||||||||||||||||
| transition: color 0.2s ease; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* For information ⓘ, when icon is missing */ | ||||||||||||||||||||||
| #footer .icon { | ||||||||||||||||||||||
| color: #1e87f0; | ||||||||||||||||||||||
| .footer-socials a:hover { | ||||||||||||||||||||||
| color: #ffffff; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
Comment on lines
+164
to
201
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add keyboard-visible states for footer links and socials. These controls currently get enhanced styling on ⌨️ Suggested follow-up-.footer-link-group ul li a:hover {
+.footer-link-group ul li a:hover,
+.footer-link-group ul li a:focus-visible {
color: `#ffffff`;
text-decoration: underline;
}
-.footer-socials a:hover {
+.footer-socials a:hover,
+.footer-socials a:focus-visible {
color: `#ffffff`;
}
+
+.footer-link-group ul li a:focus-visible,
+.footer-socials a:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.45);
+ outline-offset: 2px;
+}🤖 Prompt for AI Agents |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-socials svg.icon { | ||||||||||||||||||||||
| width: 1.4rem; | ||||||||||||||||||||||
| height: 1.4rem; | ||||||||||||||||||||||
| fill: currentColor; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
Comment on lines
+203
to
+207
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix keyword casing to satisfy Stylelint.
Suggested fix .footer-socials svg.icon {
width: 1.4rem;
height: 1.4rem;
- fill: currentColor;
+ fill: currentcolor;
}📝 Committable suggestion
Suggested change
🧰 Tools🪛 Stylelint (17.4.0)[error] 206-206: Expected "currentColor" to be "currentcolor" (value-keyword-case) (value-keyword-case) 🤖 Prompt for AI Agents |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* ---- Copyright ---- */ | ||||||||||||||||||||||
| .footer-copyright { | ||||||||||||||||||||||
| color: rgba(255, 255, 255, 0.45); | ||||||||||||||||||||||
| font-size: 0.85rem; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* ============================================= | ||||||||||||||||||||||
| FOOTER — MOBILE (max-width: 768px) | ||||||||||||||||||||||
| ============================================= */ | ||||||||||||||||||||||
| @media (max-width: 768px) { | ||||||||||||||||||||||
| .footer-inner { | ||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||
| gap: 2rem; | ||||||||||||||||||||||
| padding: 0 1.25rem 2rem; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-brand { | ||||||||||||||||||||||
| flex: unset; | ||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-partners { | ||||||||||||||||||||||
| flex-direction: row; | ||||||||||||||||||||||
| flex-wrap: wrap; | ||||||||||||||||||||||
| gap: 1rem; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-links { | ||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||
| grid-template-columns: repeat(2, 1fr); | ||||||||||||||||||||||
| gap: 1.25rem 1rem; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-link-group ul li a { | ||||||||||||||||||||||
| text-align: left; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| .footer-bottom { | ||||||||||||||||||||||
| padding: 1.25rem; | ||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||
| align-items: flex-start; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /* ============================================= | ||||||||||||||||||||||
| UTILITIES | ||||||||||||||||||||||
| ============================================= */ | ||||||||||||||||||||||
| .img-fit { | ||||||||||||||||||||||
| object-fit: contain; | ||||||||||||||||||||||
| object-fit: contain; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.