diff --git a/exampleSite/data/sections/about.yaml b/exampleSite/data/sections/about.yaml index 8ae9359..048bff1 100644 --- a/exampleSite/data/sections/about.yaml +++ b/exampleSite/data/sections/about.yaml @@ -47,7 +47,7 @@ socialLinks: # your soft skills # 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: - name: Leadership percentage: 85 @@ -60,4 +60,17 @@ softSkills: color: pink - name: Hard Working percentage: 85 - color: green \ No newline at end of file + 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" diff --git a/layouts/partials/progress/soft-skills.html b/layouts/partials/progress/soft-skills.html index 4c32067..cbdc0ae 100644 --- a/layouts/partials/progress/soft-skills.html +++ b/layouts/partials/progress/soft-skills.html @@ -1,12 +1,24 @@
-
+ {{ $predefinedColor:= true}} + {{ if hasPrefix .color "#"}} + {{ $predefinedColor = false }} + {{ end }} +
- +
{{ .name }}
diff --git a/static/assets/css/about.css b/static/assets/css/about.css index a125768..96ce207 100644 --- a/static/assets/css/about.css +++ b/static/assets/css/about.css @@ -100,7 +100,7 @@ } .circular-progress.yellow .circular-progress-bar { - border-color: #ffc212; + border-color: #eebb4d; } .circular-progress.pink .circular-progress-bar { @@ -111,6 +111,14 @@ 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 { animation: circular-loading-50 0s linear forwards 1.8s; }