From aacd25f519b94e276c13cba56fe3b0da4224e866 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 25 Oct 2018 08:53:59 +0100 Subject: [PATCH] Refactor certifications block --- source/_partials/badges.html.twig | 61 ++++++++++++++++-------- source/_partials/certification.html.twig | 17 +++++++ 2 files changed, 59 insertions(+), 19 deletions(-) create mode 100644 source/_partials/certification.html.twig diff --git a/source/_partials/badges.html.twig b/source/_partials/badges.html.twig index 4deba4b7..fd5e7357 100644 --- a/source/_partials/badges.html.twig +++ b/source/_partials/badges.html.twig @@ -1,31 +1,54 @@ -
-
+
+ -
-
-
- Acquia Certified Grand Master - Drupal 8 Exam Badge -
+
+
+

Certifications

- + {% include 'certification' with { + title: 'Acquia certified Grand Master - Drupal 8', + url: 'http://certification.acquia.com/user/1647756', + image: { + filename: 'acquia-d8-grand-master.png', + alt: 'Acquia Certified Grand Master - Drupal 8 Exam Badge', + }, + } %} - + {% include 'certification' with { + title: 'Acquia certified Developer - Drupal 8', + image: { + filename: 'acquia-d8-developer.png', + alt: 'Acquia Certified Developer - Drupal 8 Exam Badge', + }, + } %} - + {% include 'certification' with { + title: 'Acquia certified Back End Specialist - Drupal 8', + image: { + filename: 'acquia-d8-back-end.png', + alt: 'Acquia Certified Back End Specialist - Drupal 8 Exam Badge', + }, + } %} - + {% include 'certification' with { + title: 'Acquia certified Front End Specialist - Drupal 8', + image: { + filename: 'acquia-d8-front-end.png', + alt: 'Acquia Certified Front End Specialist - Drupal 8 Exam Badge', + }, + } %} + + {% include 'certification' with { + title: 'Acquia certified Cloud Pro', + image: { + filename: 'acquia-cloud-pro.png', + alt: 'Acquia Certified Cloud Pro Exam Badge', + }, + } %}
diff --git a/source/_partials/certification.html.twig b/source/_partials/certification.html.twig new file mode 100644 index 00000000..7153c119 --- /dev/null +++ b/source/_partials/certification.html.twig @@ -0,0 +1,17 @@ +
+
+
+ {{ image.alt }} +
+
+ +
+

+ {% if url %} + {{ title }} + {% else %} + {{ title }} + {% endif %} +

+
+