Merge branch 'author-master'

This commit is contained in:
Pau Trepat Segura 2020-07-05 03:59:28 +02:00
commit 99e6256d5e
17 changed files with 80 additions and 17 deletions

View file

@ -41,6 +41,7 @@ params:
# some information about you # some information about you
author: author:
name: "Jane Doe" name: "Jane Doe"
nickname: "Jane"
image: "images/avatar.png" image: "images/avatar.png"
# give your some contact information. they will be used in the footer # give your some contact information. they will be used in the footer
contactInfo: contactInfo:

View file

@ -47,7 +47,7 @@ socialLinks:
# your soft skills # your soft skills
# give the percentage between 50 to 100 with 5 intervals. # give the percentage between 50 to 100 with 5 intervals.
# currently supported color: blue, yellow, pink, green # currently supported colors: blue, yellow, pink, green, sky, orange
softSkills: softSkills:
- name: Leadership - name: Leadership
percentage: 85 percentage: 85
@ -60,4 +60,17 @@ softSkills:
color: pink color: pink
- name: Hard Working - name: Hard Working
percentage: 85 percentage: 85
color: green color: green
- name: Fast Learner
percentage: 85
color: sky
- name: Problem Solving
percentage: 85
color: orange
# you can also provide color code instead of pre-defined color name
# - name: Example 1
# percentage: 75
# color: "#00adb5"
# - name: Example 2
# percentage: 65
# color: "#8b8383"

View file

@ -4,6 +4,8 @@ section:
enable: true enable: true
weight: 6 weight: 6
showOnNavbar: true showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# Your achievements achievements # Your achievements achievements
achievements: achievements:

View file

@ -4,7 +4,8 @@ section:
enable: true enable: true
weight: 3 weight: 3
showOnNavbar: true showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# Your experiences # Your experiences
experiences: experiences:

View file

@ -4,6 +4,8 @@ section:
enable: true enable: true
weight: 4 weight: 4
showOnNavbar: true showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# filter buttons # filter buttons
buttons: buttons:

View file

@ -4,5 +4,7 @@ section:
enable: true enable: true
weight: 5 weight: 5
showOnNavbar: true showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# no other configuration is required # no other configuration is required

View file

@ -4,6 +4,8 @@ section:
enable: true enable: true
weight: 2 weight: 2
showOnNavbar: true showOnNavbar: true
# Can optionally hide the title in sections
# hideTitle: true
# Your Skills. # Your Skills.
# Give a summary of you each skill in the summary section. # Give a summary of you each skill in the summary section.

View file

@ -1,5 +1,7 @@
<div class="container-fluid anchor pb-5 achievements-section" id="{{ replace (lower .section.name) " " "-" }}"> <div class="container-fluid anchor pb-5 achievements-section" id="{{ replace (lower .section.name) " " "-" }}">
<h1 class="text-center">{{ .section.name }}</h1> {{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1>
{{ end }}
<div class="container"> <div class="container">
<div class="row" id="gallery"> <div class="row" id="gallery">
</div> </div>

View file

@ -1,5 +1,7 @@
<div class="container-fluid anchor pb-5 experiences-section" id="{{ replace (lower .section.name) " " "-" }}"> <div class="container-fluid anchor pb-5 experiences-section" id="{{ replace (lower .section.name) " " "-" }}">
<h1 class="text-center">{{ .section.name }}</h1> {{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1>
{{ end }}
<div class="container timeline text-justify"> <div class="container timeline text-justify">
{{ $totalExperiences:= len .experiences }} {{ $totalExperiences:= len .experiences }}

View file

@ -6,7 +6,7 @@
{{ if .Site.Data.sections }} {{ if .Site.Data.sections }}
<ul> <ul>
{{- range sort .Site.Data.sections "section.weight" }} {{- range sort .Site.Data.sections "section.weight" }}
{{ if .section.enable }} {{ if and (.section.enable) (.section.showOnNavbar)}}
<li class="nav-item"> <li class="nav-item">
<a class="smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a> <a class="smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
</li> </li>

View file

@ -7,7 +7,14 @@
<img src="{{ if .Site.Params.author.image }}{{ .Site.Params.author.image }}{{ else }}/assets/images/default-avatar.png{{ end }}" <img src="{{ if .Site.Params.author.image }}{{ .Site.Params.author.image }}{{ else }}/assets/images/default-avatar.png{{ end }}"
class="rounded-circle mx-auto d-block img-fluid" class="rounded-circle mx-auto d-block img-fluid"
/> />
<h1 class="greeting">Hi, I am {{ if .Site.Params.author.name }}{{ .Site.Params.author.name }}{{ else }}Jane Doe{{ end }} <h1 class="greeting">Hi, I am
{{ if .Site.Params.author.nickname }}
{{ .Site.Params.author.nickname }}
{{ else if .Site.Params.author.name }}
{{ .Site.Params.author.name }}
{{ else }}
Jane Doe
{{ end }}
</h1> </h1>
<div class="typing-carousel"> <div class="typing-carousel">
<span id="ityped" class="ityped"></span> <span id="ityped" class="ityped"></span>
@ -18,7 +25,10 @@
<li>{{ . }}</li> <li>{{ . }}</li>
{{ end }} {{ end }}
</ul> </ul>
<!-- @todo this section should go to the first section, not necessarily about --> {{ if .Site.Data.sections }}
<a href="#about"><i class="arrow bounce fa fa-chevron-down"></i></a> {{ range first 1 (where (sort .Site.Data.sections "section.weight") ".section.enable" true) }}
<a href="#{{ replace (lower .section.name) " " "-" }}"><i class="arrow bounce fa fa-chevron-down"></i></a>
{{ end }}
{{ end }}
</div> </div>
</div> </div>

View file

@ -21,7 +21,7 @@
</li> </li>
{{- if .Site.Data.sections }} {{- if .Site.Data.sections }}
{{- range sort .Site.Data.sections "section.weight" }} {{- range sort .Site.Data.sections "section.weight" }}
{{ if .section.showOnNavbar }} {{ if and (.section.enable) (.section.showOnNavbar)}}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a> <a class="nav-link smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
</li> </li>
@ -44,7 +44,7 @@
{{ end }} {{ end }}
{{ range site.Params.customMenus }} {{ range site.Params.customMenus }}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="{{ .url }}" target="/">{{ .name }}</a> <a class="nav-link" href="{{ .url }}">{{ .name }}</a>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>

View file

@ -1,12 +1,24 @@
<div class="col-6 col-lg-4 p-2"> <div class="col-6 col-lg-4 p-2">
<div class="circular-progress {{ .color }}"> {{ $predefinedColor:= true}}
{{ if hasPrefix .color "#"}}
{{ $predefinedColor = false }}
{{ end }}
<div class="circular-progress {{if $predefinedColor}}{{ .color }}{{end}}">
<span class="circular-progress-left"> <span class="circular-progress-left">
<span <span
class="circular-progress-bar circular-progress-percentage-{{ .percentage }}" class="circular-progress-bar circular-progress-percentage-{{ .percentage }}"
{{ if not $predefinedColor }}
style="border-color: {{.color}};"
{{ end }}
></span> ></span>
</span> </span>
<span class="circular-progress-right"> <span class="circular-progress-right">
<span class="circular-progress-bar"></span> <span
class="circular-progress-bar"
{{ if not $predefinedColor }}
style="border-color: {{.color}};"
{{ end }}
></span>
</span> </span>
<div class="circular-progress-value">{{ .name }}</div> <div class="circular-progress-value">{{ .name }}</div>
</div> </div>

View file

@ -1,5 +1,7 @@
<div class="container-fluid anchor pb-5 projects-section" id="{{ replace (lower .section.name) " " "-" }}"> <div class="container-fluid anchor pb-5 projects-section" id="{{ replace (lower .section.name) " " "-" }}">
<h1 class="text-center">{{ .section.name }}</h1> {{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1>
{{ end }}
<div class="container ml-auto text-center"> <div class="container ml-auto text-center">
<div class="btn-group flex-wrap" role="group" id="project-filter-buttons"> <div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
{{ range .buttons }} {{ range .buttons }}

View file

@ -1,5 +1,7 @@
<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ replace (lower .section.name) " " "-" }}"> <div class="container-fluid anchor pb-5 recent-posts-section" id="{{ replace (lower .section.name) " " "-" }}">
<h1 class="text-center">{{ .section.name }}</h1> {{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1>
{{ end }}
<div class="container"> <div class="container">
<div class="row" id="recent-post-cards"> <div class="row" id="recent-post-cards">
{{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}} {{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}

View file

@ -1,5 +1,7 @@
<div class="container-fluid anchor pb-5 skills-section" id="{{ replace (lower .section.name) " " "-" }}"> <div class="container-fluid anchor pb-5 skills-section" id="{{ replace (lower .section.name) " " "-" }}">
<h1 class="text-center">{{ .section.name }}</h1> {{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1>
{{ end }}
<div class="container d-flex-block"> <div class="container d-flex-block">
<div class="row" id="primary-skills"> <div class="row" id="primary-skills">
{{ range .skills }} {{ range .skills }}

View file

@ -100,7 +100,7 @@
} }
.circular-progress.yellow .circular-progress-bar { .circular-progress.yellow .circular-progress-bar {
border-color: #ffc212; border-color: #eebb4d;
} }
.circular-progress.pink .circular-progress-bar { .circular-progress.pink .circular-progress-bar {
@ -111,6 +111,14 @@
border-color: #2dca73; border-color: #2dca73;
} }
.circular-progress.sky .circular-progress-bar {
border-color: #00c9e3;
}
.circular-progress.orange .circular-progress-bar {
border-color: #ff7c7c;
}
.circular-progress-percentage-50 { .circular-progress-percentage-50 {
animation: circular-loading-50 0s linear forwards 1.8s; animation: circular-loading-50 0s linear forwards 1.8s;
} }