-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add credly badges and certifications
Add padding to skill list
- Loading branch information
Showing
9 changed files
with
20,574 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=0" | ||
/> | ||
<meta name="theme-color" content="#3273DC" /> | ||
<link rel="canonical" href="https://josecoelho93.pt" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<title></title> | ||
<meta name="description" content="This is my personal website. You can find information about my experience, skills and articles I have written." /> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css"> | ||
<link rel="stylesheet" href="./css/bulma-timeline.min.css"> | ||
<link rel="stylesheet" href="./css/styles.css"> | ||
|
||
<link rel="apple-touch-icon" sizes="180x180" href="./images/favicon/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="./images/favicon/favicon-16x16.png"> | ||
|
||
<script defer src="https://use.fontawesome.com/releases/v5.4.0/js/all.js"></script> | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-134602535-1"></script> | ||
<script> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=0" /> | ||
<meta name="theme-color" content="#3273DC" /> | ||
<link rel="canonical" href="https://josecoelho93.pt" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<title></title> | ||
<meta name="description" | ||
content="This is my personal website. You can find information about my experience, skills and articles I have written." /> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css"> | ||
<link rel="stylesheet" href="./css/bulma-timeline.min.css"> | ||
<link rel="stylesheet" href="./css/styles.css"> | ||
|
||
<link rel="apple-touch-icon" sizes="180x180" href="./images/favicon/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="./images/favicon/favicon-16x16.png"> | ||
|
||
<script defer src="https://use.fontawesome.com/releases/v5.4.0/js/all.js"></script> | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-134602535-1"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
function gtag() { dataLayer.push(arguments); } | ||
gtag('js', new Date()); | ||
gtag('config', 'UA-134602535-1'); | ||
</script> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> | ||
</script> | ||
<script type="text/javascript" async src="//cdn.credly.com/assets/utilities/embed.js"></script> | ||
</head> | ||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
|
||
function CredlyBadge(props) { | ||
let imgSrc = | ||
"https://images.credly.com/size/" + props.width + "x" + props.height; | ||
imgSrc += "/images/" + props.imageId + "/" + props.imageName; | ||
let imgLink = | ||
"https://www.credly.com/badges/" + props.badgeId + "/public_url"; | ||
return ( | ||
<figure class="is-inline-block image"> | ||
<a href={imgLink} target="_blank" rel="noopener noreferrer"> | ||
<img src={imgSrc} alt={props.badgeName} /> | ||
</a> | ||
</figure> | ||
); | ||
} | ||
|
||
export default CredlyBadge; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from "react"; | ||
import CredlyBadge from "../elements/CredlyBadge"; | ||
import Resume from "../../resume.json"; | ||
|
||
function buildBadges(certificates){ | ||
let credlyBadges = [] | ||
let columnSize = 12 / certificates.length; | ||
let columnClass = "column has-text-centered is-" + columnSize; | ||
certificates.forEach((cert) => { | ||
credlyBadges.push( | ||
<div class={columnClass}> | ||
<CredlyBadge | ||
width="186" | ||
height="186" | ||
imageId={cert.x_imageId} | ||
imageName={cert.x_imageName} | ||
badgeId={cert.x_badgeId} | ||
badgeName={cert.name + " by " + cert.issuer} | ||
/> | ||
</div> | ||
) | ||
}); | ||
return credlyBadges | ||
} | ||
|
||
function Badges(props) { | ||
return ( | ||
<section class="section" id="badges"> | ||
<div class="container"> | ||
<div class="columns is-centered"> | ||
{buildBadges(Resume.certificates)} | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
} | ||
|
||
export default Badges; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters