Skip to content

Commit 7a93aad

Browse files
committed
feat(frontend): use library icons in footer
1 parent d48de69 commit 7a93aad

3 files changed

Lines changed: 12 additions & 22 deletions

File tree

apps/frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"dependencies": {
1212
"next": "16.1.6",
1313
"react": "19.2.3",
14-
"react-dom": "19.2.3"
14+
"react-dom": "19.2.3",
15+
"react-icons": "^5.4.0"
1516
},
1617
"devDependencies": {
1718
"@tailwindcss/postcss": "^4",

apps/frontend/src/app/globals.css

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -604,24 +604,17 @@ body {
604604
}
605605

606606
.footer-icon {
607-
width: 26px;
608-
height: 26px;
609-
border-radius: 999px;
610-
display: grid;
611-
place-items: center;
612-
font-size: 10px;
613-
font-weight: 700;
614-
letter-spacing: 0.4px;
615-
color: white;
616-
background: #111827;
607+
width: 18px;
608+
height: 18px;
609+
color: #111827;
617610
}
618611

619612
.footer-link:nth-of-type(2) .footer-icon {
620-
background: #0078d4;
613+
color: #0078d4;
621614
}
622615

623616
.footer-link:nth-of-type(3) .footer-icon {
624-
background: #f04d2f;
617+
color: #f04d2f;
625618
}
626619

627620
.step {

apps/frontend/src/app/page.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"use client";
22

33
import { useMemo, useRef, useState } from "react";
4+
import { FaGithub } from "react-icons/fa";
5+
import { SiRust, SiVisualstudiocode } from "react-icons/si";
46

57
export default function Home() {
68
const fileRef = useRef<HTMLInputElement>(null);
@@ -478,9 +480,7 @@ export default function Home() {
478480
rel="noreferrer"
479481
className="footer-link"
480482
>
481-
<span className="footer-icon" aria-hidden="true">
482-
GH
483-
</span>
483+
<FaGithub className="footer-icon" aria-hidden="true" />
484484
GitHub Repo
485485
</a>
486486
<a
@@ -489,9 +489,7 @@ export default function Home() {
489489
rel="noreferrer"
490490
className="footer-link"
491491
>
492-
<span className="footer-icon" aria-hidden="true">
493-
VS
494-
</span>
492+
<SiVisualstudiocode className="footer-icon" aria-hidden="true" />
495493
VS Code Extension
496494
</a>
497495
<a
@@ -500,9 +498,7 @@ export default function Home() {
500498
rel="noreferrer"
501499
className="footer-link"
502500
>
503-
<span className="footer-icon" aria-hidden="true">
504-
CR
505-
</span>
501+
<SiRust className="footer-icon" aria-hidden="true" />
506502
crates.io
507503
</a>
508504
</nav>

0 commit comments

Comments
 (0)