From 7079432817b6259d08a20bf314a37bfce07a8e8b Mon Sep 17 00:00:00 2001 From: benjy8001 Date: Fri, 12 Nov 2021 16:52:42 +0100 Subject: [PATCH] Add skills_build macro --- templates/cv.html.twig | 73 ++---------------------------------------- templates/macros.twig | 27 ++++++++++++++++ 2 files changed, 30 insertions(+), 70 deletions(-) diff --git a/templates/cv.html.twig b/templates/cv.html.twig index 444eb82..63caad3 100644 --- a/templates/cv.html.twig +++ b/templates/cv.html.twig @@ -125,77 +125,10 @@

Savoir Faire

+ + {{ macros.skills_build() }} +
- -
Git Lab CI/CD -
Git Lab CI/CD - 95% -
-
-
-
-
- - -
Docker -
Docker - 90% -
-
-
-
-
- - -
Symfony 2.8 -
Symfony 2.8 - 85% -
-
-
-
-
- - -
Symfony 4.3 -
Symfony 4.3 - 85% -
-
-
-
-
- - -
PHP -
PHP (5 / 7.2) - 95% -
-
-
-
-
- - -
MySQL -
MySQL - 95% -
-
-
-
-
- - -
GIT -
GIT - 90% -
-
-
-
-
-
Linux
Linux diff --git a/templates/macros.twig b/templates/macros.twig index 5ceb15f..cc781fc 100644 --- a/templates/macros.twig +++ b/templates/macros.twig @@ -1,3 +1,30 @@ +{# +Skills part +#} +{% macro skills_build() %} +
+ {{ _self.skills_item_build('Git Lab CI/CD', '95', 'build/images/Skills/Skill_Logo_cicd.png', 'Git Lab CI/CD', 'determinate pink darken-4') }} + {{ _self.skills_item_build('Docker', '90', 'build/images/Skills/Skill_Logo_10.png', 'Docker', 'determinate purple darken-4') }} + {{ _self.skills_item_build('Symfony 2.8', '85', 'build/images/Skills/Skill_Logo_sf.png', 'Symfony 2.8', 'determinate pink darken-4') }} + {{ _self.skills_item_build('Symfony 4.3', '85', 'build/images/Skills/Skill_Logo_sf.png', 'Symfony 4.3', 'determinate pink darken-4') }} + {{ _self.skills_item_build('PHP 7', '95', 'build/images/Skills/Skill_Logo_1.png', 'PHP 7', 'determinate pink darken-4') }} + {{ _self.skills_item_build('MySQL', '95', 'build/images/Skills/Skill_Logo_2.png', 'MySQL', 'determinate blue darken-3') }} +
+{% endmacro %} + +{% macro skills_item_build(name, pourc, img_path, img_alt, color_class) %} + +
{{ img_alt }} +
{{ name }} + {{ pourc }}% +
+
+
+
+
+ +{% endmacro %} + {# References part #}