diff --git a/modules/wowchemy/assets/scss/wowchemy/widgets/_all.scss b/modules/wowchemy/assets/scss/wowchemy/widgets/_all.scss index 4a7d08ed..47f5488b 100644 --- a/modules/wowchemy/assets/scss/wowchemy/widgets/_all.scss +++ b/modules/wowchemy/assets/scss/wowchemy/widgets/_all.scss @@ -6,3 +6,4 @@ @import 'hero'; @import 'people'; @import 'portfolio'; +@import 'skills'; diff --git a/modules/wowchemy/assets/scss/wowchemy/widgets/_skills.scss b/modules/wowchemy/assets/scss/wowchemy/widgets/_skills.scss new file mode 100644 index 00000000..1ce46d1b --- /dev/null +++ b/modules/wowchemy/assets/scss/wowchemy/widgets/_skills.scss @@ -0,0 +1,57 @@ +/************************************************* + * Wowchemy Blocks: Skills + **************************************************/ + +.skill-group-title { + display: inline-block; + margin-bottom: 15px; + padding-bottom: 5px; + border-bottom: 2px solid #c7c7c7; + font-size: 1rem; + line-height: 30px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 1px; +} + +.skills-content { + margin-bottom: 15px; +} + +.skills-name { + margin-bottom: 6px; + color: #888; + font-size: 0.8rem; + letter-spacing: 1px; + text-transform: uppercase; +} + +.skills-description { + margin-bottom: 6px; + font-size: 0.7rem; + text-transform: none; +} + +.dark .skills-name { + color: #eee; +} + +.skills-icon { + margin-right: 0.5em; +} + +.skills-wrapper { + position: relative; + overflow: hidden; + width: 100%; + height: 10px; + border: 1px solid #a8e9e9; + border-radius: 10px; +} + +.skills-percent { + position: absolute; + width: 60%; + height: 10px; + background-color: #3cb5b5; +} diff --git a/modules/wowchemy/layouts/partials/blocks/skills.html b/modules/wowchemy/layouts/partials/blocks/skills.html new file mode 100644 index 00000000..8fd29ba1 --- /dev/null +++ b/modules/wowchemy/layouts/partials/blocks/skills.html @@ -0,0 +1,70 @@ +{{/* Wowchemy Blocks: Skills */}} +{{/* Documentation: https://wowchemy.com/blocks/ */}} +{{/* License: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md */}} + +{{/* Initialise */}} +{{ $page := .wcPage }} +{{ $block := .wcBlock }} +{{ $columns := $block.design.columns | default "1" }} +{{ $author := $block.content.username | default "admin" }} + +{{ $person_page_path := (printf "/authors/%s" $author) }} +{{ $person_page := site.GetPage $person_page_path }} +{{ if not $person_page }} + {{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your Skill block and create an associated author page if one does not already exist. See https://wowchemy.com/docs/page-builder/#about " $person_page_path }} +{{end}} +{{ $skills := $person_page.Params.skills }} + +
{{ . | markdownify | emojify }}
{{ end }} +{{ . | markdownify | emojify }}
{{ end }} + +