Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/assets/images/aiMlTrainingLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/awsTrainingLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/javaTrainingLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/phpTrainingLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/pythonTrainingLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/scrumTrainingLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/webServerTrainingLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/components/achievementCard/AchievementCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export default function AchievementCard({cardInfo, isDark}) {
return (
<div className={isDark ? "dark-mode certificate-card" : "certificate-card"}>
<div className="certificate-image-div">
<img src={cardInfo.image} alt="PWA" className="card-image"></img>
<img
src={cardInfo.image}
alt="PWA"
className={["card-image", cardInfo.imageClassName]
.filter(Boolean)
.join(" ")}
></img>
</div>
<div className="certificate-detail-div">
<h5 className={isDark ? "dark-mode card-title" : "card-title"}>
Expand Down
12 changes: 8 additions & 4 deletions src/components/achievementCard/AchievementCard.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
@import "../../_globalColor";

.card-image {
max-width: 100%;
height: auto;
width: 250px;
width: min(110px, 45%);
max-height: 110px;
object-fit: contain;
}
.card-image-large {
width: min(150px, 62%);
max-height: 125px;
}
.card-title {
color: $titleColor;
Expand Down Expand Up @@ -38,7 +42,7 @@
}
.certificate-image-div {
position: relative;
height: 250px;
height: 130px;
overflow: hidden;
text-align: center;
display: flex;
Expand Down
2 changes: 2 additions & 0 deletions src/portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ const achievementSection = {
title: "MongoDB for JavaScript Developers",
subtitle: "MongoDB",
image: mongodbLogo,
imageClassName: "card-image-large",
footerLink: [
{
name: "Certification",
Expand All @@ -232,6 +233,7 @@ const achievementSection = {
title: "Web Development for E-Commerce",
subtitle: "Academia Colon Tres S.A. Madrid",
image: csaLogo,
imageClassName: "card-image-large",
footerLink: [
{
name: "Certification",
Expand Down
Loading