Skip to content

Commit

Permalink
add id property to skill.yaml to adjust badge zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Sk3pper committed Aug 19, 2024
1 parent ca5861f commit a9e2d0a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions assets/styles/override.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ html[data-theme='dark'] {
}
}

#maldevacademy{
width: 100%; /* Ensure the image fits within the container */
transform: scale(1.9); /* Adjust the scale value to zoom in */
transform-origin: center; /* Set the origin of the zoom to the center of the image */
}

// trick to disable menu icons
.svg-inverted {
filter: invert(0);
Expand Down
3 changes: 3 additions & 0 deletions data/en/sections/skills.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ badges:
name: Offsec Certified Professional (OSCP)
url: "https://www.credential.net/b09c11a5-d0fe-49fe-a7bc-e0aaf5e65147"
badge: "https://api.accredible.com/v1/credential/generate_baked_badge?credential_id=73693188"
id: oscp

- type: certification
name: Maldev Academy
url: "https://maldevacademy.com"
badge: "https://maldevacademy.com/css/images/maldev-navbar-logo.svg"
id: maldevacademy

- type: certification
name: Offensive Hardware Security Training
url: "https://www.whid.ninja/store/product/offensive-hardware-hacking-training-exam-voucher-self-paced"
badge: "https://avatars3.githubusercontent.com/u/26245612?s=400&v=4"
id: ohst
2 changes: 1 addition & 1 deletion layouts/partials/misc/badge.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{/* Verifiable certificate badge from https://www.credly.com */}}
<div class="certificate-badge">
<a href="{{ .url }}" target="_blank" rel="noopener noreferrer">
<img src="{{ .badge }}" alt="{{ .name }}" />
<img src="{{ .badge }}" alt="{{ .name }}" id="{{ .id }}" />
</a>
</div>
{{ else if eq .type "soft-skill-indicator" }}
Expand Down

0 comments on commit a9e2d0a

Please sign in to comment.