Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 71 additions & 19 deletions src/theme/Footer/Layout/enhanced-footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ html[data-theme="light"] .enhanced-footer.light-theme {
}

.footer-logo-section {
margin-bottom: 16px;
margin-bottom: 8px;
}

.footer-logo {
Expand Down Expand Up @@ -405,6 +405,7 @@ html[data-theme="light"] .enhanced-footer.light-theme {
justify-content: flex-end;
flex: 0 0 auto;
margin-left: auto;
align-self: flex-end;
}

.footer-cta-buttons {
Expand Down Expand Up @@ -583,24 +584,57 @@ html[data-theme="light"] .enhanced-footer.light-theme {
opacity: 0.82;
}

.second-line {
display: inline;
}

@media (max-width: 880px) {
.footer-hero-content {
display: flex;
flex-direction: column;
align-items: flex-start;
row-gap: 12px;
align-items: center;
text-align: center;
gap: 16px;
}

.footer-hero-right {
width: 100%;
display: flex;
justify-content: flex-start;
margin-top: 12px;
justify-content: center;
margin-top: 0;
}

.footer-hero-left {
width: 100%;
flex: none;
align-items: center;
}
.footer-logo {
justify-content: center;
}

.footer-brand-header {
align-items: center;
}

.footer-hero-text {
text-align: center;
}

.footer-hero-text h1 {
text-align: center;
margin: 0 auto;
max-width: none;
}

.second-line {
display: block;
}

.footer-cta-buttons {
justify-content: center;
}

}

/* Stats Section */
Expand Down Expand Up @@ -1606,23 +1640,41 @@ html[data-theme="light"] .enhanced-footer.light-theme {
}

@media (max-width: 1024px) {
.footer-hero-text h1 {
font-size: 32px;
.footer-hero-content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 16px;
}

.footer-stats {
grid-template-columns: repeat(2, 1fr);
gap: 20px;

.footer-hero-left {
width: 100%;
flex: none;
align-items: center;
}

.footer-links-grid {
grid-template-columns: repeat(2, 1fr);
gap: 28px;

.footer-logo {
justify-content: center;
}

.newsletter-column {
grid-column: span 2;
margin-top: 20px;

.footer-brand-header {
align-items: center;
}

.footer-hero-right {
width: 100%;
justify-content: center;
margin-top: 0;
}

.footer-cta-buttons {
justify-content: center;
flex-wrap: wrap;
}

.second-line {
display: block;
}
}

Expand Down
7 changes: 5 additions & 2 deletions src/theme/Footer/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,12 @@ export default function FooterLayout(): ReactNode {
</div>

<div className="footer-hero-text">
<h1>Collaboration first, Code second.</h1>
<h1>
Collaboration first,
<span className="second-line">Code second.</span>
</h1>
</div>
</div>

<div className="footer-hero-right">
<div className="footer-cta-buttons">
<Link
Expand Down Expand Up @@ -483,3 +485,4 @@ export default function FooterLayout(): ReactNode {
</footer>
);
}

Loading