@@ -20,6 +20,19 @@ import { useColorMode } from '@docusaurus/theme-common';
2020
2121import { Icon } from '@iconify/react' ;
2222
23+ // Custom styles to fix the spacing issue
24+ const socialIconsContainerStyle = {
25+ display : 'flex' ,
26+ justifyContent : 'center' ,
27+ alignItems : 'center' ,
28+ flexWrap : 'wrap' , // Allow wrapping on small screens
29+ margin : '16px 0' ,
30+ } ;
31+
32+ const iconButtonStyle = {
33+ padding : '12px' , // Ensure buttons have enough clickable area
34+ } ;
35+
2336function FooterLink ( {
2437 to,
2538 href,
@@ -77,7 +90,6 @@ function Footer(): JSX.Element | null {
7790 slack : "https://join.slack.com/t/stackqlcommunity/shared_invite/zt-1cbdq9s5v-CkY65IMAesCgFqjN6FU6hg" ,
7891 } ;
7992
80- // const { colorMode === 'dark' } = useThemeContext();
8193 const { colorMode} = useColorMode ( ) ;
8294
8395 const { footer} = useThemeConfig ( ) ;
@@ -163,53 +175,58 @@ function Footer(): JSX.Element | null {
163175 />
164176 ) : null }
165177 </ div >
166- < div className = "footer__bottom text--center" >
167- < IconButton
168- className = "footerSocialIconButton"
169- href = { socialLinks . github }
170- size = "large"
171- target = "_blank"
172- rel = "noopener"
173- >
174- < Icon icon = "akar-icons:github-fill" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
175- </ IconButton >
176- < IconButton
177- className = "footerSocialIconButton"
178- href = { socialLinks . twitter }
179- size = "large"
180- target = "_blank"
181- rel = "noopener"
182- >
183- { /* <Icon icon="akar-icons:twitter-fill" width="24" color={colorMode === 'dark' ? 'white' : ''} /> */ }
184- < Icon icon = "simple-icons:x" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
185- </ IconButton >
186- < IconButton
187- className = "footerSocialIconButton"
188- href = { socialLinks . linkedin }
189- size = "large"
190- target = "_blank"
191- rel = "noopener"
192- >
193- < Icon icon = "fa:linkedin-square" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
194- </ IconButton >
195- < IconButton
196- className = "footerSocialIconButton"
197- href = { socialLinks . discord }
198- size = "large"
199- target = "_blank"
200- rel = "noopener"
201- >
202- < Icon icon = "mdi:discord" color = { colorMode === 'dark' ? 'white' : '' } />
203- </ IconButton >
204- < IconButton
205- className = "footerSocialIconButton"
206- href = { socialLinks . slack }
207- size = "large"
208- target = "_blank"
209- rel = "noopener"
210- >
211- < Icon icon = "fa:slack" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
212- </ IconButton >
178+ { /* Social Icons Container with Fixed Spacing */ }
179+ < div className = "footer__bottom text--center" style = { socialIconsContainerStyle } >
180+ < IconButton
181+ className = "footerSocialIconButton"
182+ href = { socialLinks . github }
183+ size = "large"
184+ target = "_blank"
185+ rel = "noopener"
186+ style = { iconButtonStyle }
187+ >
188+ < Icon icon = "akar-icons:github-fill" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
189+ </ IconButton >
190+ < IconButton
191+ className = "footerSocialIconButton"
192+ href = { socialLinks . twitter }
193+ size = "large"
194+ target = "_blank"
195+ rel = "noopener"
196+ style = { iconButtonStyle }
197+ >
198+ < Icon icon = "simple-icons:x" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
199+ </ IconButton >
200+ < IconButton
201+ className = "footerSocialIconButton"
202+ href = { socialLinks . linkedin }
203+ size = "large"
204+ target = "_blank"
205+ rel = "noopener"
206+ style = { iconButtonStyle }
207+ >
208+ < Icon icon = "fa:linkedin-square" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
209+ </ IconButton >
210+ < IconButton
211+ className = "footerSocialIconButton"
212+ href = { socialLinks . discord }
213+ size = "large"
214+ target = "_blank"
215+ rel = "noopener"
216+ style = { iconButtonStyle }
217+ >
218+ < Icon icon = "mdi:discord" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
219+ </ IconButton >
220+ < IconButton
221+ className = "footerSocialIconButton"
222+ href = { socialLinks . slack }
223+ size = "large"
224+ target = "_blank"
225+ rel = "noopener"
226+ style = { iconButtonStyle }
227+ >
228+ < Icon icon = "fa:slack" width = "24" color = { colorMode === 'dark' ? 'white' : '' } />
229+ </ IconButton >
213230 </ div >
214231 </ >
215232 ) }
@@ -218,4 +235,4 @@ function Footer(): JSX.Element | null {
218235 ) ;
219236}
220237
221- export default Footer ;
238+ export default Footer ;
0 commit comments