From 9ca11f0e36f12161d090dd6d8b982f2e45eb85b6 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Thu, 2 Nov 2023 08:36:51 +0000 Subject: [PATCH] Added badges Signed-off-by: Marcus Noble --- data.yaml | 4 ++++ src/index.html | 57 ++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 45 insertions(+), 16 deletions(-) diff --git a/data.yaml b/data.yaml index 1e54edb..a722c4a 100644 --- a/data.yaml +++ b/data.yaml @@ -120,6 +120,10 @@ projects: - color: "#00ADD8" name: Go +badges: + - img: https://images.credly.com/size/110x110/images/b1eaaa0e-3e14-4bfe-9881-9ce477cfa7fc/image.png + url: https://www.credly.com/badges/cd63e887-72ac-49b0-8322-a4062d86d997/public_url + events: - date: "2023-11-04" humanDate: "November 4th - 5th, 2023" diff --git a/src/index.html b/src/index.html index 1154b39..0da79c2 100644 --- a/src/index.html +++ b/src/index.html @@ -230,6 +230,13 @@ margin-bottom: 6px; } + .badges a { + display: inline-block; + } + .badges a img { + width: 110px; + } + @media only screen and (max-width: 1700px) { body { grid-template: 20vh 80vh / 100%; @@ -291,6 +298,30 @@ + {{ if gt (len .events) 0 }} +
+

🗓 Upcoming Events

+ +
    + {{ range .events }} +
  • + +
    + {{ .eventName }} + {{ range .details }} +
    + {{ .name | html }} + {{ if .type }}{{ .type }}{{ end }} +
    + {{ end }} +
    +
  • + {{ end }} +
+
+ {{ end }} + + {{ if gt (len .projects) 0 }}

💻 My Open Source Projects

@@ -314,27 +345,21 @@ {{ end }}
+ {{ end }} -
-

🗓 Upcoming Events

+ {{ if gt (len .badges) 0 }} +
+

🎖️ Badges

-
    - {{ range .events }} -
  • - -
    - {{ .eventName }} - {{ range .details }} -
    - {{ .name | html }} - {{ if .type }}{{ .type }}{{ end }} -
    - {{ end }} -
    -
  • +
      + {{ range .badges }} + + + {{ end }}
+ {{ end }}