font awesome 5

This commit is contained in:
Arnaud Ysmal 2021-02-07 22:58:56 +01:00
parent 48b71970b6
commit 2ebeb99974
3 changed files with 37 additions and 37 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.Lang.TitlePrefix}} {{.Basic.Name}}</title> <title>{{.Lang.TitlePrefix}} {{.Basic.Name}}</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" rel="stylesheet">
<style>{{css}}</style> <style>{{css}}</style>
<style media="print">{{printcss}}</style> <style media="print">{{printcss}}</style>
</head> </head>
@ -32,14 +32,14 @@
{{if .Basic.Summary -}} {{if .Basic.Summary -}}
<!-- ABOUT ME --> <!-- ABOUT ME -->
<div class="box"> <div class="box">
<h2><i class="fa fa-user ico"></i> {{.Lang.About}}</h2> <h2><i class="fas fa-user ico"></i> {{.Lang.About}}</h2>
<p>{{.Basic.Summary}}</p> <p>{{.Basic.Summary}}</p>
</div> </div>
{{- end}} {{- end}}
{{if .Work -}} {{if .Work -}}
<!-- WORK EXPERIENCE --> <!-- WORK EXPERIENCE -->
<div class="box"> <div class="box">
<h2><i class= "fa fa-suitcase ico"></i> {{.Lang.WorkExperience}}</h2> <h2><i class= "fas fa-suitcase ico"></i> {{.Lang.WorkExperience}}</h2>
{{range .Work -}}{{if not .Hide}} {{range .Work -}}{{if not .Hide}}
<div class="job clearfix"> <div class="job clearfix">
<div class="row"> <div class="row">
@ -47,7 +47,7 @@
<div class="where">{{.Name}}</div> <div class="where">{{.Name}}</div>
{{if .URL -}} {{if .URL -}}
<div class="address"> <div class="address">
<a href="{{.URL}}" target= "_blank"><i class="fa fa-globe ico"></i> {{.URL}}</a> <a href="{{.URL}}" target= "_blank"><i class="fas fa-globe ico"></i> {{.URL}}</a>
</div> </div>
{{- end}} {{- end}}
<div class="year">{{formatDateMY .StartDate}} {{formatDateMY .EndDate}}</div> <div class="year">{{formatDateMY .StartDate}} {{formatDateMY .EndDate}}</div>
@ -83,14 +83,14 @@
{{if .Awards -}} {{if .Awards -}}
<!-- AWARDS --> <!-- AWARDS -->
<div class="box"> <div class="box">
<h2><i class="fa fa-certificate ico"></i> {{.Lang.Awards}}</h2> <h2><i class="fas fa-certificate ico"></i> {{.Lang.Awards}}</h2>
<ul id="awards" class="clearfix"> <ul id="awards" class="clearfix">
{{range .Awards -}} {{range .Awards -}}
<li> <li>
<div class="year pull-left">{{formatDateDMY .Date}}</div> <div class="year pull-left">{{formatDateDMY .Date}}</div>
<div class="description pull-right"> <div class="description pull-right">
<h3>{{.Awarder}}</h3> <h3>{{.Awarder}}</h3>
<p><i class="fa fa-trophy ico"></i> {{.Title}}</p> <p><i class="fas fa-trophy ico"></i> {{.Title}}</p>
<p>{{.Summary}}</p> <p>{{.Summary}}</p>
</div> </div>
</li> </li>
@ -101,7 +101,7 @@
{{if .Volunteer -}} {{if .Volunteer -}}
<!-- VOLUNTEER --> <!-- VOLUNTEER -->
<div class="box"> <div class="box">
<h2><i class= "fa fa-group ico"></i> {{.Lang.Volunteer}}</h2> <h2><i class= "fas fa-users ico"></i> {{.Lang.Volunteer}}</h2>
{{range .Volunteer -}} {{range .Volunteer -}}
<div class="job clearfix"> <div class="job clearfix">
<div class="row"> <div class="row">
@ -109,7 +109,7 @@
<div class="where">{{.Organization}}</div> <div class="where">{{.Organization}}</div>
{{if .URL -}} {{if .URL -}}
<div class="address"> <div class="address">
<a href="{{.URL}}" target= "_blank"><i class="fa fa-globe ico"></i> {{.URL}}</a> <a href="{{.URL}}" target= "_blank"><i class="fas fa-globe ico"></i> {{.URL}}</a>
</div> </div>
{{- end}} {{- end}}
<div class="year">{{formatDateMY .StartDate}} {{formatDateMY .EndDate}}</div> <div class="year">{{formatDateMY .StartDate}} {{formatDateMY .EndDate}}</div>
@ -146,10 +146,10 @@
<div class="col-xs-12 col-sm-5"> <div class="col-xs-12 col-sm-5">
<!-- CONTACT --> <!-- CONTACT -->
<div class="box clearfix"> <div class="box clearfix">
<h2><i class="fa fa-bullseye ico"></i> {{.Lang.Contact}}</h2> <h2><i class="fas fa-bullseye ico"></i> {{.Lang.Contact}}</h2>
{{if .Basic.Location.City -}} {{if .Basic.Location.City -}}
<div class="contact-item"> <div class="contact-item">
<div class="icon pull-left text-center"><span class="fa fa-map-marker fa-fw"></span></div> <div class="icon pull-left text-center"><span class="fas fa-map-marker fa-fw"></span></div>
{{- if .UseFullAddress -}} {{- if .UseFullAddress -}}
{{if .Basic.Location.Address}}<div class="title pull-right">{{.Basic.Location.Address}}</div>{{- end}} {{if .Basic.Location.Address}}<div class="title pull-right">{{.Basic.Location.Address}}</div>{{- end}}
<div class="title {{if not .Basic.Location.Address}}only {{- end}} pull-right"> <div class="title {{if not .Basic.Location.Address}}only {{- end}} pull-right">
@ -172,19 +172,19 @@
{{- end}} {{- end}}
{{if and .Basic.Phone .UseFullAddress -}} {{if and .Basic.Phone .UseFullAddress -}}
<div class="contact-item"> <div class="contact-item">
<div class="icon pull-left text-center"><span class="fa fa-phone fa-fw"></span></div> <div class="icon pull-left text-center"><span class="fas fa-phone fa-fw"></span></div>
<div class="title only pull-right">{{.Basic.Phone}}</div> <div class="title only pull-right">{{.Basic.Phone}}</div>
</div> </div>
{{- end}} {{- end}}
{{if .Basic.Email -}} {{if .Basic.Email -}}
<div class="contact-item"> <div class="contact-item">
<div class="icon pull-left text-center"><span class="fa fa-envelope fa-fw"></span></div> <div class="icon pull-left text-center"><span class="fas fa-envelope fa-fw"></span></div>
<div class="title only pull-right"><a href="mailto:{{.Basic.Email}}" target="_blank">{{.Basic.Email}}</a></div> <div class="title only pull-right"><a href="mailto:{{.Basic.Email}}" target="_blank">{{.Basic.Email}}</a></div>
</div> </div>
{{- end}} {{- end}}
{{if .Basic.URL -}} {{if .Basic.URL -}}
<div class="contact-item"> <div class="contact-item">
<div class="icon pull-left text-center"><span class="fa fa-globe fa-fw"></span></div> <div class="icon pull-left text-center"><span class="fas fa-globe fa-fw"></span></div>
<div class="title only pull-right"><a href="{{.Basic.URL}}" target="_blank">{{.Basic.URL}}</a></div> <div class="title only pull-right"><a href="{{.Basic.URL}}" target="_blank">{{.Basic.URL}}</a></div>
</div> </div>
{{- end}} {{- end}}
@ -199,14 +199,14 @@
{{if .Education -}} {{if .Education -}}
<!-- EDUCATION --> <!-- EDUCATION -->
<div class="box"> <div class="box">
<h2><i class="fa fa-university ico"></i> {{.Lang.Education}}</h2> <h2><i class="fas fa-university ico"></i> {{.Lang.Education}}</h2>
<ul id="education" class="clearfix"> <ul id="education" class="clearfix">
{{range .Education -}} {{range .Education -}}
<li> <li>
<div class="year pull-left">{{formatDateY .StartDate}} {{formatDateY .EndDate}}</div> <div class="year pull-left">{{formatDateY .StartDate}} {{formatDateY .EndDate}}</div>
<div class="description pull-right"> <div class="description pull-right">
<h3>{{.Institution}}</h3> <h3>{{.Institution}}</h3>
{{if .StudyType}}<p><i class= "fa fa-graduation-cap ico"></i> {{.StudyType}}</p>{{end}} {{if .StudyType}}<p><i class= "fas fa-graduation-cap ico"></i> {{.StudyType}}</p>{{end}}
<p>{{.Area}}</p> <p>{{.Area}}</p>
{{if .GPA -}} {{if .GPA -}}
<p> <p>
@ -230,7 +230,7 @@
{{if .Skills -}} {{if .Skills -}}
<!-- SKILLS --> <!-- SKILLS -->
<div class="box"> <div class="box">
<h2><i class="fa fa-tasks ico"></i> {{.Lang.Skills}}</h2> <h2><i class="fas fa-tasks ico"></i> {{.Lang.Skills}}</h2>
{{range .Skills -}} {{range .Skills -}}
<div class="skills clearfix"> <div class="skills clearfix">
<div class="item-skills"> <div class="item-skills">
@ -249,7 +249,7 @@
{{if .Publications -}} {{if .Publications -}}
<!-- PUBLICATIONS --> <!-- PUBLICATIONS -->
<div class="box"> <div class="box">
<h2><i class="fa fa-book ico"></i> {{.Lang.Publications}}</h2> <h2><i class="fas fa-book ico"></i> {{.Lang.Publications}}</h2>
{{range .Publications -}} {{range .Publications -}}
<div class="publication panel panel-default"> <div class="publication panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
@ -257,12 +257,12 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
{{if .Publisher -}} {{if .Publisher -}}
<div class="publisher"><i class= "fa fa-bookmark ico"></i> {{.Publisher}}</div> <div class="publisher"><i class= "fas fa-bookmark ico"></i> {{.Publisher}}</div>
{{- end}} {{- end}}
<div class="year">{{formatDateDMY .ReleaseDate}}</div> <div class="year">{{formatDateDMY .ReleaseDate}}</div>
{{if .URL -}} {{if .URL -}}
<div class="address"> <div class="address">
<a href="{{.URL}}" target= "_blank"><i class="fa fa-globe ico"></i> {{.URL}}</a> <a href="{{.URL}}" target= "_blank"><i class="fas fa-globe ico"></i> {{.URL}}</a>
</div> </div>
{{- end}} {{- end}}
{{if .Summary -}} {{if .Summary -}}
@ -276,7 +276,7 @@
{{if .Languages -}} {{if .Languages -}}
<!-- LANGUAGES --> <!-- LANGUAGES -->
<div class="box"> <div class="box">
<h2><i class="fa fa-language ico"></i> {{.Lang.Languages}}</h2> <h2><i class="fas fa-language ico"></i> {{.Lang.Languages}}</h2>
<ul class="list-group"> <ul class="list-group">
{{range .Languages -}} {{range .Languages -}}
<li class=" list-group-item">{{.Language}}<span class="skill badge pull-right">{{.Fluency}}</span></li> <li class=" list-group-item">{{.Language}}<span class="skill badge pull-right">{{.Fluency}}</span></li>
@ -287,7 +287,7 @@
{{if .Interests -}} {{if .Interests -}}
<!-- HOBBIES --> <!-- HOBBIES -->
<div class="box"> <div class="box">
<h2><i class="fa fa-heart ico"></i> {{.Lang.Interests}}</h2> <h2><i class="fas fa-heart ico"></i> {{.Lang.Interests}}</h2>
{{range .Interests -}} {{range .Interests -}}
<div class="interests clearfix"> <div class="interests clearfix">
<div class="item-interests"> <div class="item-interests">
@ -304,7 +304,7 @@
{{- end}} {{- end}}
{{if .References -}} {{if .References -}}
<div class="box"> <div class="box">
<h2><i class= "fa fa-check-square ico"></i> {{.Lang.References}}</h2> <h2><i class= "fas fa-check-square ico"></i> {{.Lang.References}}</h2>
{{range .References -}} {{range .References -}}
<blockquote> <blockquote>
<div>{{.Reference}}</div> <div>{{.Reference}}</div>

View File

@ -126,36 +126,36 @@ func iconClass(network string) string {
switch network { switch network {
case "google-plus": case "google-plus":
case "googleplus": case "googleplus":
return "fa fa-google-plus" return "fab fa-google-plus"
case "flickr": case "flickr":
case "flicker": case "flicker":
return "fa fa-flickr" return "fab fa-flickr"
case "dribbble": case "dribbble":
case "dribble": case "dribble":
return "fa fa-dribbble" return "fab fa-dribbble"
case "codepen": case "codepen":
return "fa fa-codepen" return "fab fa-codepen"
case "soundcloud": case "soundcloud":
return "fa fa-soundcloud" return "fab fa-soundcloud"
case "reddit": case "reddit":
return "fa fa-reddit" return "fab fa-reddit"
case "tumblr": case "tumblr":
case "tumbler": case "tumbler":
return "fa fa-tumblr" return "fab fa-tumblr"
case "stack-overflow": case "stack-overflow":
case "stackoverflow": case "stackoverflow":
return "fa fa-stack-overflow" return "fab fa-stack-overflow"
case "blog": case "blog":
case "rss": case "rss":
return "fa fa-rss" return "fas fa-rss"
case "gitlab": case "gitlab":
return "fa fa-gitlab" return "fab fa-gitlab"
case "keybase": case "keybase":
return "fa fa-key" return "fas fa-key"
case "gitea": case "gitea":
return "fa fa-git" return "fab fa-git"
default: default:
return "fa fa-" + network return "fab fa-" + network
} }
return "fa fa-" + network return "fa fa-" + network