Skip to content

Commit

Permalink
Merge pull request #468 from sanika-n/snair
Browse files Browse the repository at this point in the history
Added a default img
  • Loading branch information
Roshanjossey authored Dec 22, 2024
2 parents 6fc75e3 + 86dbec5 commit ee8bb8d
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 ee8bb8d

Please sign in to comment.