forked from rubyistdotjs/resume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mixins.pug
35 lines (30 loc) · 772 Bytes
/
mixins.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
mixin timelineItem(title, place, from, to)
.timeline-item
.timeline-item-heading
h3= title
em
| #{from} à #{to}
if place
| - #{place}
if block
.timeline-item-body
block
mixin skillList(...skills)
ul.skill-list
each skill in skills
li= skill
mixin languageListItem(countryCode, language, level)
- imagePath = `./images/flag-${countryCode}.svg`;
li.language-list-item
.language-list-item-flag
img(src=imagePath)
= language
span= level
mixin iconListItem(iconName, iconLibrary)
li.icon-list-item
if iconLibrary === 'brand'
- iconClass = `fab fa-${iconName} fa-fw`;
span(class=iconClass)
else
i(class="material-icons fa-fw")= iconName
block