-
Notifications
You must be signed in to change notification settings - Fork 144
/
Copy pathprofile-card.pug
66 lines (57 loc) · 2.21 KB
/
profile-card.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
mixin profile_card_detail(icon, info, itemprop, icon_title)
.detail
span.icon(title=icon_title)
i.icon.fs-lg(class=icon)
span.info(itemprop=itemprop)
if block
block
else
|#{info}
mixin render_links(profiles)
each profile in profiles
a.fs-2x.social-link(
href=profile.url,
target="_blank",
data-toggle="tooltip",
title= resume.basics.name + " on " + profile.network,
class="link-" + profile.label + " icon-" + profile.label)
if profile.network.toLowerCase() == 'meetup'
span.path2
span.path3
section.col-md-3.card-wrapper.profile-card-wrapper.affix
.card.profile-card
span.profile-pic-container
.profile-pic
img.media-object.img-circle.center-block(
data-src="holder.js/100x100",
alt=resume.basics.name,
src=resume.basics.picture,
itemprop="image")
.name-and-profession.text-center
h3(itemprop="name"): b= resume.basics.name
h5.text-muted(itemprop="jobTitle")= resume.basics.label
hr
.contact-details.clearfix
if resume.basics.computed_location
+profile_card_detail("icon-location", resume.basics.computed_location)
if resume.basics.phone
+profile_card_detail("icon-phone", resume.basics.phone, "telephone")
if resume.basics.email
+profile_card_detail("icon-mail")
a.link-disguise(href="mailto:" + resume.basics.email, itemprop="email")= resume.basics.email
if resume.basics.website
+profile_card_detail("icon-link")
a(href=resume.basics.website, target="_blank")= resume.basics.website
if resume.basics.languages
+profile_card_detail('icon-language', resume.basics.languages, null, 'Languages I speak')
hr
.social-links.text-center
div
+render_links(resume.basics.top_five_profiles)
if resume.basics.remaining_profiles.length > 0
button.btn.btn-default.btn-sm.btn-circle-sm.pull-right.js-profiles-collapse(
data-toggle="collapse",
data-target="#remaining-profiles")
i.icon-chevron-down.fs-lg
#remaining-profiles.collapse.text-left
+render_links(resume.basics.remaining_profiles)