Skip to content

Commit a41c243

Browse files
committed
better footer layout
1 parent bf352ed commit a41c243

3 files changed

Lines changed: 20 additions & 11 deletions

File tree

docs/website/src/assets/css/quick-styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,7 @@ span.code.green-shade {
182182

183183
.text-align-center {
184184
text-align: center;
185+
}
186+
.gap-10{
187+
gap: 10px;
185188
}

docs/website/src/ui/Footer/Footer.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,28 @@ export default function Footer(): JSX.Element {
1111
const [date, setDate] = useState('');
1212

1313
useEffect(() => {
14-
fetch('/last-updated.txt')
15-
.then(res => res.text())
16-
.then(text => setDate(text));
14+
fetch('/last-updated.txt')
15+
.then(res => res.text())
16+
.then(text => setDate(text));
1717
}, []);
1818
return (
19-
<footer className='flex fd-column justify-content-cen text-align-center footer'>
19+
<footer className='flex justify-content-cen text-align-center align-items-cen'>
2020
{/* <h2 className='footer-title'>Laner Documentation</h2>
2121
<p className='footer-subtitle'>A comprehensive guide to using Laner</p> */}
2222
{/* <p>Made with ❤️ using <Link to='https://react.dev/'>React</Link> and <Link to='https://vitejs.dev/'>Vite</Link></p> */}
2323
{/* <p>Documentation hosted on <Link to='https://vercel.com/'>Vercel</Link></p> */}
24+
<div className="flex fd-column gap-10">
25+
<p>Thoroughly Tested and supported by <Link to='https://github.com/Fector101/laner'>Laner</Link> </p>
26+
<p>Last Updated: {date}, © 2023 Fector101</p>
27+
</div>
2428

25-
<p>Thoroughly Tested and supported by <Link to='https://github.com/Fector101/laner'>Laner</Link> </p>
2629
<div className='support-links-box flex fd-column justify-content-cen text-align-center'>
27-
<p>Find this project helpful?</p>
28-
<p> consider buying me a <Link to='https://www.buymeacoffee.com/fector101' className="buy-me-a-coffee">Coffee ☕️</Link></p>
29-
<p> Or a star on 🌟 <Link to='https://github.com/Fector101/android_notify'>GitHub.</Link></p>
30-
<p>Your support helps maintain and improve the project.</p>
30+
<p>Find this project helpful?</p>
31+
<p> consider buying me a <Link to='https://www.buymeacoffee.com/fector101' className="buy-me-a-coffee">Coffee ☕️</Link></p>
32+
<p> Or a star on 🌟 <Link to='https://github.com/Fector101/android_notify'>GitHub.</Link></p>
33+
<p>Your support helps maintain and improve the project.</p>
3134
</div>
32-
<p>Last Updated: {date}, © 2023 Fector101</p>
35+
3336
</footer>
3437
)
3538
}

docs/website/src/ui/Footer/footer.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ footer{
22
padding: 2rem 15px;
33
background-color: #171716;
44
font-size: 13px;
5-
gap: 5px;
5+
/* gap: 5px; */
66
color: white;
77
width: 100%;
8+
gap: 50px;
9+
flex-wrap: wrap;
10+
811
}
912
footer .support-links-box{
1013
align-self: center;

0 commit comments

Comments
 (0)