Skip to content

Commit

Permalink
Added a default img
Browse files Browse the repository at this point in the history
  • Loading branch information
sanika-n committed Dec 17, 2024
1 parent 6fc75e3 commit 86dbec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/ProjectList/ProjectsCards.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import "./css/project-cards.css";
import defaultLogo from './default.png';

const Card = ({
projectLink,
Expand All @@ -26,6 +27,9 @@ const Card = ({
className="Project-Logo"
alt="the framework or language that the project is build upon"
src={logoLink}
onError={(e) => {
e.target.src = defaultLogo;
}}
/>
<p className="Card-Title">{name}</p>
</div>
Expand Down
Binary file added src/components/ProjectList/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86dbec5

Please sign in to comment.