Skip to content

Commit e2d6b24

Browse files
authored
Merge pull request #347 from singh-odyssey/main
Relocate quick-links in Footer , Update overall UI of footer
2 parents b037053 + 6e8b82b commit e2d6b24

File tree

2 files changed

+63
-20
lines changed

2 files changed

+63
-20
lines changed

src/theme/Footer/Layout/enhanced-footer.css

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ html[data-theme='light'] .enhanced-footer {
672672
display: grid;
673673
grid-template-columns: 1fr 1fr 1fr 1.2fr;
674674
gap: 40px;
675+
align-items: start; /* prevent equal-height stretch; use content height */
675676
}
676677

677678
.footer-column {
@@ -685,6 +686,7 @@ html[data-theme='light'] .enhanced-footer {
685686
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
686687
position: relative;
687688
overflow: visible;
689+
align-self: start; /* prevent stretching to tallest column height */
688690
}
689691

690692
.footer-column::before {
@@ -755,7 +757,7 @@ html[data-theme='light'] .enhanced-footer {
755757
margin: 0;
756758
display: flex;
757759
flex-direction: column;
758-
gap: 12px;
760+
gap: 10px; /* slightly tighter vertical spacing */
759761
overflow: visible;
760762
}
761763

@@ -771,11 +773,12 @@ html[data-theme='light'] .enhanced-footer {
771773
border-radius: 12px;
772774
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
773775
position: relative;
774-
margin: 6px 0;
776+
margin: 4px 0; /* reduce top/bottom margin per link */
775777
border: 1px solid rgba(255, 255, 255, 0.05);
776778
overflow: visible;
777779
backdrop-filter: blur(5px);
778780
background: rgba(255, 255, 255, 0.02);
781+
white-space: nowrap; /* keep items like "Contact Us" on one line */
779782
}
780783

781784
.footer-link::before {
@@ -1066,6 +1069,45 @@ html[data-theme='light'] .enhanced-footer {
10661069
margin-top: 24px;
10671070
}
10681071

1072+
/* Newsletter-specific quick links styling */
1073+
.newsletter-quick-links {
1074+
margin-top: 28px;
1075+
background: rgba(255,255,255,0.02);
1076+
border-radius: 12px;
1077+
padding: 18px 0 0 0;
1078+
box-shadow: none;
1079+
}
1080+
1081+
.newsletter-quick-links .quick-links-title {
1082+
color: #cbd5e1;
1083+
font-size: 13px;
1084+
margin-bottom: 12px;
1085+
font-weight: 700;
1086+
letter-spacing: 0.7px;
1087+
text-align: left;
1088+
}
1089+
1090+
.newsletter-quick-links .quick-links-list {
1091+
gap: 10px;
1092+
}
1093+
1094+
.newsletter-quick-links .quick-link {
1095+
background: rgba(255,255,255,0.04);
1096+
border: 1px solid rgba(255,255,255,0.08);
1097+
border-radius: 8px;
1098+
color: #cbd5e1;
1099+
font-size: 13px;
1100+
padding: 10px 14px;
1101+
margin-bottom: 0;
1102+
box-shadow: none;
1103+
transition: background 0.2s, color 0.2s;
1104+
}
1105+
1106+
.newsletter-quick-links .quick-link:hover {
1107+
background: rgba(255,255,255,0.12);
1108+
color: #fff;
1109+
}
1110+
10691111
.quick-links-title {
10701112
display: flex;
10711113
align-items: center;
@@ -1456,6 +1498,7 @@ html[data-theme='light'] .enhanced-footer {
14561498
border: 1px solid rgba(255, 255, 255, 0.05);
14571499
border-radius: 10px;
14581500
margin: 0;
1501+
white-space: nowrap; /* mobile-friendly single line; content fits */
14591502
}
14601503

14611504
.footer-link:hover {

src/theme/Footer/Layout/index.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -265,26 +265,9 @@ export default function FooterLayout({
265265
</li>
266266
</ul>
267267

268-
{/* Quick Links Section moved here */}
269-
<div className="quick-links-section">
270-
<h4 className="quick-links-title">
271-
<span className="links-icon">🔗</span>
272-
QUICK LINKS
273-
</h4>
274-
<div className="quick-links-list">
275-
<Link to="/get-started" className="quick-link">
276-
<span className="quick-link-icon">🚀</span>
277-
Get Started
278-
</Link>
279-
<Link to="/dashboard" className="quick-link">
280-
<span className="quick-link-icon">📊</span>
281-
Dashboard
282-
</Link>
283-
</div>
284-
</div>
285268
</div>
286269

287-
{/* Newsletter Column */}
270+
{/* Newsletter Column with Quick Links below */}
288271
<div className="footer-column newsletter-column">
289272
<h3 className="footer-column-title">
290273
<div className="column-icon newsletter-icon">📧</div>
@@ -313,6 +296,23 @@ export default function FooterLayout({
313296
<div className="newsletter-stats">
314297
<span className="newsletter-stat">📊 1.2K+ developers joined this week</span>
315298
</div>
299+
{/* Quick Links Section moved below subscription */}
300+
<div className="quick-links-section newsletter-quick-links">
301+
<h4 className="quick-links-title">
302+
<span className="links-icon">🔗</span>
303+
QUICK LINKS
304+
</h4>
305+
<div className="quick-links-list">
306+
<Link to="/get-started" className="quick-link">
307+
<span className="quick-link-icon">🚀</span>
308+
Get Started
309+
</Link>
310+
<Link to="/dashboard" className="quick-link">
311+
<span className="quick-link-icon">📊</span>
312+
Dashboard
313+
</Link>
314+
</div>
315+
</div>
316316
</div>
317317
</div>
318318
</div>

0 commit comments

Comments
 (0)