Skip to content

Commit aad1e9a

Browse files
committed
Update fastapi icon
1 parent 9b01601 commit aad1e9a

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

src/components/About/Techstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const techStackIcons = [
1212
{ icon: <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/python/python-original.svg" alt="Python" style={{ width: "1em", height: "1em" }} />, name: "Python", link: "https://www.python.org/" },
1313
{ icon: <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/django/django-plain.svg" alt="Django" style={{ width: "1em", height: "1em", filter: "brightness(3.5) contrast(1.2)" }} />, name: "Django", link: "https://www.djangoproject.com/" },
1414
{ icon: <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/flask/flask-original.svg" alt="Flask" style={{ width: "1em", height: "1em" }} className="theme-invert" />, name: "Flask", link: "https://flask.palletsprojects.com/" },
15-
{ icon: <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/fastapi/fastapi-original.svg" alt="FastAPI" style={{ width: "1em", height: "1em", filter: "brightness(1.2) contrast(1.1)" }} />, name: "FastAPI", link: "https://fastapi.tiangolo.com/" },
15+
{ icon: <span className="tech-icon-fastapi-brand" aria-hidden="true" />, name: "FastAPI", link: "https://fastapi.tiangolo.com/" },
1616
{ icon: <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/nodejs/nodejs-original.svg" alt="Node.js" style={{ width: "1em", height: "1em",filter: "brightness(1.2) contrast(1.0)" }} />, name: "Node.js", link: "https://nodejs.org/" },
1717

1818
// Frontend

src/css/style.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2880,6 +2880,23 @@ body.homepage .home-about-section {
28802880
filter: brightness(1.35) contrast(1.08);
28812881
}
28822882

2883+
/* FastAPI: official white SVG as mask, filled with brand teal */
2884+
.tech-icons__icon .tech-icon-fastapi-brand {
2885+
display: inline-block;
2886+
width: 1em;
2887+
height: 1em;
2888+
flex-shrink: 0;
2889+
background-color: #019486;
2890+
mask-image: url("https://fastapi.tiangolo.com/img/icon-white.svg");
2891+
mask-size: contain;
2892+
mask-repeat: no-repeat;
2893+
mask-position: center;
2894+
-webkit-mask-image: url("https://fastapi.tiangolo.com/img/icon-white.svg");
2895+
-webkit-mask-size: contain;
2896+
-webkit-mask-repeat: no-repeat;
2897+
-webkit-mask-position: center;
2898+
}
2899+
28832900
.tech-icons__name {
28842901
font-size: 1.05rem;
28852902
font-weight: 600;

0 commit comments

Comments
 (0)