Skip to content

Commit c9995ff

Browse files
authored
Merge pull request #1827 from srushti-panara/bug/footer
fix: improve footer responsiveness and UI consistencyBug/footer
2 parents 3637ca5 + e493b60 commit c9995ff

1 file changed

Lines changed: 61 additions & 30 deletions

File tree

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

Lines changed: 61 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -810,9 +810,10 @@ html[data-theme="light"] .enhanced-footer.light-theme {
810810
}
811811

812812
.footer-column {
813+
height: 100%;
813814
display: flex;
814815
flex-direction: column;
815-
padding: 24px;
816+
padding: 18px;
816817
border-radius: 16px;
817818
background: #ffffff;
818819
border: 1px solid rgba(17, 17, 17, 0.08);
@@ -846,15 +847,15 @@ html[data-theme="light"] .enhanced-footer.light-theme {
846847
border-color: rgba(17, 17, 17, 0.12);
847848
transform: translateY(-4px);
848849
box-shadow:
849-
0 12px 40px rgba(0, 0, 0, 0.08),
850+
0 12px 40px rgb(15 1 1 / 8%),
850851
0 6px 20px rgba(0, 0, 0, 0.04);
851852
}
852853

853854
.footer-column-title {
854855
display: flex;
855856
align-items: center;
856-
gap: 8px;
857-
font-size: 18px;
857+
gap: 12px;
858+
font-size: 20px;
858859
/* slightly bigger to stand out */
859860
font-weight: 700;
860861
color: #111111;
@@ -864,7 +865,7 @@ html[data-theme="light"] .enhanced-footer.light-theme {
864865
}
865866

866867
.footer-icon {
867-
display: inline-flex;
868+
display: flex;
868869
align-items: center;
869870
justify-content: center;
870871
flex-shrink: 0;
@@ -882,23 +883,26 @@ html[data-theme="light"] .enhanced-footer.light-theme {
882883
}
883884

884885
.column-icon {
885-
width: 20px;
886-
height: 20px;
886+
width: 30px;
887+
height: 30px;
887888
border-radius: 6px;
888889
color: #111111;
889890
align-items: center;
890891
justify-content: center;
891892
flex-shrink: 0;
892893
color: #111111;
894+
display: flex;
895+
align-items: center;
896+
justify-content: center;
893897
}
894898

895899
.column-icon .footer-icon {
896-
width: 12px;
897-
height: 12px;
900+
width: 18px;
901+
height: 18px;
898902
}
899903

900904
.resources-icon {
901-
background: #111111;
905+
background: linear-gradient(135deg, #38e1da 0%, #139caa 100%);
902906
}
903907

904908
.company-icon {
@@ -1156,19 +1160,28 @@ html[data-theme="light"] .enhanced-footer.light-theme {
11561160
font-weight: 400;
11571161
backdrop-filter: none;
11581162
transition: all 0.3s ease;
1163+
box-shadow: 0 2px 4px rgb(0 0 0 / 31%);
11591164
}
11601165

11611166
.newsletter-input:focus {
11621167
outline: none;
1163-
border-color: #111111;
1168+
border-color: #9393933b;
11641169
background: rgba(255, 255, 255, 0.08);
1165-
box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
1170+
box-shadow: 0 0 0 2px rgb(17 17 17 / 50%);
1171+
border-radius: 10px;
1172+
transition: all 0.3s ease;
11661173
}
11671174

11681175
.newsletter-input::placeholder {
11691176
color: #6b7280;
11701177
}
11711178

1179+
.newsletter-input:hover {
1180+
border-color: #6b72807a;
1181+
box-shadow: 0 4px 10px rgb(0 0 0 / 20%);
1182+
transform: translateY(-1px);
1183+
}
1184+
11721185
.newsletter-button {
11731186
padding: 16px 28px;
11741187
/* slightly larger for touch */
@@ -1631,12 +1644,11 @@ html[data-theme="light"] .enhanced-footer.light-theme {
16311644
grid-template-columns: repeat(2, 1fr);
16321645
gap: 32px;
16331646
margin-top: 30px;
1634-
margin-bottom: 36px;
1647+
margin-bottom: 36px;}
16351648
/* extra separation from footer links */
16361649

16371650
.newsletter-column {
1638-
grid-column: span 2;
1639-
}
1651+
grid-column: span 1;
16401652
}
16411653

16421654
@media (max-width: 1024px) {
@@ -1653,29 +1665,38 @@ html[data-theme="light"] .enhanced-footer.light-theme {
16531665
flex: none;
16541666
align-items: center;
16551667
}
1656-
1668+
.footer-links-grid {
1669+
grid-template-columns: repeat(2, 1fr);
1670+
gap: 24px;
1671+
}
1672+
1673+
.newsletter-column {
1674+
grid-column: span 1;
1675+
margin-top: 0;
1676+
}
1677+
16571678
.footer-logo {
16581679
justify-content: center;
16591680
}
1660-
1681+
16611682
.footer-brand-header {
16621683
align-items: center;
16631684
}
1664-
1685+
16651686
.footer-hero-right {
16661687
width: 100%;
16671688
justify-content: center;
16681689
margin-top: 0;
16691690
}
1670-
1691+
16711692
.footer-cta-buttons {
16721693
justify-content: center;
16731694
flex-wrap: wrap;
16741695
}
1675-
1696+
16761697
.second-line {
16771698
display: block;
1678-
}
1699+
} }
16791700
}
16801701

16811702
@media (max-width: 768px) {
@@ -1720,32 +1741,39 @@ html[data-theme="light"] .enhanced-footer.light-theme {
17201741
}
17211742

17221743
.footer-links-grid {
1723-
grid-template-columns: 1fr;
1724-
gap: 24px;
1744+
grid-template-columns: 1fr !important;
1745+
width: 100%;
17251746
}
17261747

17271748
.footer-column {
17281749
background: rgba(255, 255, 255, 0.04);
1729-
border: 1px solid rgba(255, 255, 255, 0.1);
1750+
border: 1px solid rgb(16 7 7 / 15%);
17301751
border-radius: 16px;
17311752
padding: 24px;
17321753
backdrop-filter: blur(20px);
17331754
transition: all 0.3s ease;
1755+
box-shadow: 0 8px 25px rgb(0 0 0 / 17%);
17341756
overflow: visible;
1757+
width: 100%;
1758+
max-width: 100%;
1759+
box-sizing: border-box;
17351760
}
17361761

17371762
.footer-column:hover {
1738-
background: rgba(255, 255, 255, 0.08);
1763+
background: rgb(95 88 88 / 19%);
17391764
border-color: rgba(255, 255, 255, 0.15);
17401765
transform: translateY(-2px);
1741-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
1766+
box-shadow: 0 8px 25px rgb(0 0 0 / 46%);
17421767
}
17431768

17441769
.footer-column-title {
1770+
display: flex;
1771+
align-items: center;
1772+
justify-content: left;
17451773
text-align: center;
17461774
margin-bottom: 20px;
17471775
padding-bottom: 12px;
1748-
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
1776+
border-bottom: 1px solid rgb(21 2 2 / 10%);
17491777
}
17501778

17511779
.footer-links {
@@ -1756,7 +1784,7 @@ html[data-theme="light"] .enhanced-footer.light-theme {
17561784
width: 100%;
17571785
justify-content: flex-start;
17581786
background: rgba(255, 255, 255, 0.02);
1759-
border: 1px solid rgba(255, 255, 255, 0.05);
1787+
border: 1px solid rgb(69 62 62 / 22%);
17601788
border-radius: 10px;
17611789
margin: 0;
17621790
white-space: nowrap;
@@ -1765,7 +1793,7 @@ html[data-theme="light"] .enhanced-footer.light-theme {
17651793
}
17661794

17671795
.footer-link:hover {
1768-
background: rgba(255, 255, 255, 0.08);
1796+
background: rgb(84 75 75 / 69%);
17691797
border-color: rgba(255, 255, 255, 0.15);
17701798
transform: translateX(4px);
17711799
}
@@ -1847,12 +1875,15 @@ html[data-theme="light"] .enhanced-footer.light-theme {
18471875
padding: 18px 24px;
18481876
/* larger CTA for mobile */
18491877
font-size: 15px;
1878+
width: 100%;
1879+
box-sizing: border-box;
18501880
}
18511881

18521882
.newsletter-input {
18531883
padding: 16px 18px;
18541884
font-size: 15px;
18551885
width: 100%;
1886+
box-sizing: border-box;
18561887
}
18571888
}
18581889

@@ -2140,5 +2171,5 @@ html[data-theme="light"] .enhanced-footer.light-theme {
21402171
-webkit-text-fill-color: #111111 !important;
21412172
text-shadow: none !important;
21422173
}
2143-
}
2174+
21442175

0 commit comments

Comments
 (0)