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">
<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/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 media="print">{{printcss}}</style>
</head>
@ -32,14 +32,14 @@
{{if .Basic.Summary -}}
<!-- ABOUT ME -->
<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>
</div>
{{- end}}
{{if .Work -}}
<!-- WORK EXPERIENCE -->
<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}}
<div class="job clearfix">
<div class="row">
@ -47,7 +47,7 @@
<div class="where">{{.Name}}</div>
{{if .URL -}}
<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>
{{- end}}
<div class="year">{{formatDateMY .StartDate}} {{formatDateMY .EndDate}}</div>
@ -83,14 +83,14 @@
{{if .Awards -}}
<!-- AWARDS -->
<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">
{{range .Awards -}}
<li>
<div class="year pull-left">{{formatDateDMY .Date}}</div>
<div class="description pull-right">
<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>
</div>
</li>
@ -101,7 +101,7 @@
{{if .Volunteer -}}
<!-- VOLUNTEER -->
<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 -}}
<div class="job clearfix">
<div class="row">
@ -109,7 +109,7 @@
<div class="where">{{.Organization}}</div>
{{if .URL -}}
<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>
{{- end}}
<div class="year">{{formatDateMY .StartDate}} {{formatDateMY .EndDate}}</div>
@ -146,10 +146,10 @@
<div class="col-xs-12 col-sm-5">
<!-- CONTACT -->
<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 -}}
<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 .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">
@ -172,19 +172,19 @@
{{- end}}
{{if and .Basic.Phone .UseFullAddress -}}
<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>
{{- end}}
{{if .Basic.Email -}}
<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>
{{- end}}
{{if .Basic.URL -}}
<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>
{{- end}}
@ -199,14 +199,14 @@
{{if .Education -}}
<!-- EDUCATION -->
<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">
{{range .Education -}}
<li>
<div class="year pull-left">{{formatDateY .StartDate}} {{formatDateY .EndDate}}</div>
<div class="description pull-right">
<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>
{{if .GPA -}}
<p>
@ -230,7 +230,7 @@
{{if .Skills -}}
<!-- SKILLS -->
<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 -}}
<div class="skills clearfix">
<div class="item-skills">
@ -249,7 +249,7 @@
{{if .Publications -}}
<!-- PUBLICATIONS -->
<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 -}}
<div class="publication panel panel-default">
<div class="panel-heading">
@ -257,12 +257,12 @@
</div>
<div class="panel-body">
{{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}}
<div class="year">{{formatDateDMY .ReleaseDate}}</div>
{{if .URL -}}
<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>
{{- end}}
{{if .Summary -}}
@ -276,7 +276,7 @@
{{if .Languages -}}
<!-- LANGUAGES -->
<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">
{{range .Languages -}}
<li class=" list-group-item">{{.Language}}<span class="skill badge pull-right">{{.Fluency}}</span></li>
@ -287,7 +287,7 @@
{{if .Interests -}}
<!-- HOBBIES -->
<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 -}}
<div class="interests clearfix">
<div class="item-interests">
@ -304,7 +304,7 @@
{{- end}}
{{if .References -}}
<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 -}}
<blockquote>
<div>{{.Reference}}</div>

View File

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