From 07a590fe6671fbc5961c3c93975dbb79ad252e56 Mon Sep 17 00:00:00 2001 From: danix Date: Fri, 3 Mar 2023 17:56:22 +0100 Subject: [PATCH] added curriculum section. Needs working. --- archetypes/curriculum.md | 11 +++++++++++ assets/SVGs/arrow-up-right-from-square.svg | 2 +- assets/SVGs/arrow-up.svg | 2 +- assets/SVGs/cake.svg | 1 + assets/SVGs/calendar.svg | 1 + assets/SVGs/cc-by.svg | 2 +- assets/SVGs/cc-sa.svg | 2 +- assets/SVGs/cc.svg | 2 +- assets/SVGs/computer.svg | 1 + assets/SVGs/css3.svg | 2 +- assets/SVGs/email.svg | 2 +- assets/SVGs/git.svg | 2 +- assets/SVGs/github.svg | 2 +- assets/SVGs/graduation.svg | 1 + assets/SVGs/heart.svg | 2 +- assets/SVGs/home.svg | 2 +- assets/SVGs/html5.svg | 2 +- assets/SVGs/instagram.svg | 2 +- assets/SVGs/js.svg | 2 +- assets/SVGs/linux.svg | 2 +- assets/SVGs/location.svg | 1 + assets/SVGs/lock-open.svg | 2 +- assets/SVGs/markdown.svg | 2 +- assets/SVGs/mobile.svg | 1 + assets/SVGs/pinterest.svg | 2 +- assets/SVGs/reddit.svg | 2 +- assets/SVGs/rss.svg | 2 +- assets/SVGs/sass.svg | 2 +- assets/SVGs/sitemap.svg | 2 +- assets/SVGs/spotify.svg | 2 +- assets/SVGs/telegram.svg | 2 +- assets/SVGs/twitter.svg | 2 +- assets/SVGs/user.svg | 1 + assets/SVGs/whatsapp.svg | 2 +- assets/SVGs/work.svg | 1 + assets/SVGs/workplace.svg | 1 + assets/sass/components/_icons.scss | 9 +++++++++ assets/sass/components/_image.scss | 12 ++++++++++-- layouts/curriculum/cv-baseof.html | 20 ++++++++++++++++++++ layouts/curriculum/cv.html | 15 +++++++++++++++ layouts/shortcodes/div-close.html | 2 ++ layouts/shortcodes/div.html | 4 ++++ layouts/shortcodes/svg.html | 4 ++-- 43 files changed, 108 insertions(+), 30 deletions(-) create mode 100644 archetypes/curriculum.md create mode 100644 assets/SVGs/cake.svg create mode 100644 assets/SVGs/calendar.svg create mode 100644 assets/SVGs/computer.svg create mode 100644 assets/SVGs/graduation.svg create mode 100644 assets/SVGs/location.svg create mode 100644 assets/SVGs/mobile.svg create mode 100644 assets/SVGs/user.svg create mode 100644 assets/SVGs/work.svg create mode 100644 assets/SVGs/workplace.svg create mode 100644 layouts/curriculum/cv-baseof.html create mode 100644 layouts/curriculum/cv.html create mode 100644 layouts/shortcodes/div-close.html create mode 100644 layouts/shortcodes/div.html diff --git a/archetypes/curriculum.md b/archetypes/curriculum.md new file mode 100644 index 0000000..70f63d6 --- /dev/null +++ b/archetypes/curriculum.md @@ -0,0 +1,11 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +author: "{{ $.Site.Params.author_name }}" +format: "curriculum" +excerpt: "" + +--- + +*tell me about yourself* \ No newline at end of file diff --git a/assets/SVGs/arrow-up-right-from-square.svg b/assets/SVGs/arrow-up-right-from-square.svg index 3e86b4c..b70a12f 100644 --- a/assets/SVGs/arrow-up-right-from-square.svg +++ b/assets/SVGs/arrow-up-right-from-square.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/arrow-up.svg b/assets/SVGs/arrow-up.svg index 87b0a12..a4c6575 100644 --- a/assets/SVGs/arrow-up.svg +++ b/assets/SVGs/arrow-up.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/cake.svg b/assets/SVGs/cake.svg new file mode 100644 index 0000000..bfb2797 --- /dev/null +++ b/assets/SVGs/cake.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/calendar.svg b/assets/SVGs/calendar.svg new file mode 100644 index 0000000..28fb07c --- /dev/null +++ b/assets/SVGs/calendar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/cc-by.svg b/assets/SVGs/cc-by.svg index 78c058a..f94b951 100644 --- a/assets/SVGs/cc-by.svg +++ b/assets/SVGs/cc-by.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/cc-sa.svg b/assets/SVGs/cc-sa.svg index cc8429b..5d6aadb 100644 --- a/assets/SVGs/cc-sa.svg +++ b/assets/SVGs/cc-sa.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/cc.svg b/assets/SVGs/cc.svg index b54c5a7..49f2c85 100644 --- a/assets/SVGs/cc.svg +++ b/assets/SVGs/cc.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/computer.svg b/assets/SVGs/computer.svg new file mode 100644 index 0000000..de181cd --- /dev/null +++ b/assets/SVGs/computer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/css3.svg b/assets/SVGs/css3.svg index e7052ae..016851a 100644 --- a/assets/SVGs/css3.svg +++ b/assets/SVGs/css3.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/email.svg b/assets/SVGs/email.svg index a44bd5d..8af301d 100644 --- a/assets/SVGs/email.svg +++ b/assets/SVGs/email.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/git.svg b/assets/SVGs/git.svg index d55123a..e5fa561 100644 --- a/assets/SVGs/git.svg +++ b/assets/SVGs/git.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/github.svg b/assets/SVGs/github.svg index 82d16b6..ce0697a 100644 --- a/assets/SVGs/github.svg +++ b/assets/SVGs/github.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/graduation.svg b/assets/SVGs/graduation.svg new file mode 100644 index 0000000..3670710 --- /dev/null +++ b/assets/SVGs/graduation.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/heart.svg b/assets/SVGs/heart.svg index f6de4e4..91347c6 100644 --- a/assets/SVGs/heart.svg +++ b/assets/SVGs/heart.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/home.svg b/assets/SVGs/home.svg index 6f13ced..18bfd60 100644 --- a/assets/SVGs/home.svg +++ b/assets/SVGs/home.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/html5.svg b/assets/SVGs/html5.svg index bd934d0..a8b30e9 100644 --- a/assets/SVGs/html5.svg +++ b/assets/SVGs/html5.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/instagram.svg b/assets/SVGs/instagram.svg index ca3540a..5f02294 100644 --- a/assets/SVGs/instagram.svg +++ b/assets/SVGs/instagram.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/js.svg b/assets/SVGs/js.svg index 7db66f6..413106a 100644 --- a/assets/SVGs/js.svg +++ b/assets/SVGs/js.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/linux.svg b/assets/SVGs/linux.svg index 6cf08dd..75bf2c6 100644 --- a/assets/SVGs/linux.svg +++ b/assets/SVGs/linux.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/location.svg b/assets/SVGs/location.svg new file mode 100644 index 0000000..3207dc3 --- /dev/null +++ b/assets/SVGs/location.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/lock-open.svg b/assets/SVGs/lock-open.svg index d9bce3e..6419c6d 100644 --- a/assets/SVGs/lock-open.svg +++ b/assets/SVGs/lock-open.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/markdown.svg b/assets/SVGs/markdown.svg index 2fbf8b3..3a64dd7 100644 --- a/assets/SVGs/markdown.svg +++ b/assets/SVGs/markdown.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/mobile.svg b/assets/SVGs/mobile.svg new file mode 100644 index 0000000..51f5308 --- /dev/null +++ b/assets/SVGs/mobile.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/pinterest.svg b/assets/SVGs/pinterest.svg index 9a957c8..4350a8d 100644 --- a/assets/SVGs/pinterest.svg +++ b/assets/SVGs/pinterest.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/reddit.svg b/assets/SVGs/reddit.svg index 0907f26..c19ac0c 100644 --- a/assets/SVGs/reddit.svg +++ b/assets/SVGs/reddit.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/rss.svg b/assets/SVGs/rss.svg index 2c09e89..69b2309 100644 --- a/assets/SVGs/rss.svg +++ b/assets/SVGs/rss.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/sass.svg b/assets/SVGs/sass.svg index 03b40d6..416b22a 100644 --- a/assets/SVGs/sass.svg +++ b/assets/SVGs/sass.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/sitemap.svg b/assets/SVGs/sitemap.svg index 772e6aa..9592be4 100644 --- a/assets/SVGs/sitemap.svg +++ b/assets/SVGs/sitemap.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/spotify.svg b/assets/SVGs/spotify.svg index 9345587..11f71d1 100644 --- a/assets/SVGs/spotify.svg +++ b/assets/SVGs/spotify.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/telegram.svg b/assets/SVGs/telegram.svg index 711d7e8..c3346ad 100644 --- a/assets/SVGs/telegram.svg +++ b/assets/SVGs/telegram.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/twitter.svg b/assets/SVGs/twitter.svg index 47a8f46..6fc3e8b 100644 --- a/assets/SVGs/twitter.svg +++ b/assets/SVGs/twitter.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/user.svg b/assets/SVGs/user.svg new file mode 100644 index 0000000..b989f06 --- /dev/null +++ b/assets/SVGs/user.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/whatsapp.svg b/assets/SVGs/whatsapp.svg index e246ca7..ad727ea 100644 --- a/assets/SVGs/whatsapp.svg +++ b/assets/SVGs/whatsapp.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/assets/SVGs/work.svg b/assets/SVGs/work.svg new file mode 100644 index 0000000..2fff811 --- /dev/null +++ b/assets/SVGs/work.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/SVGs/workplace.svg b/assets/SVGs/workplace.svg new file mode 100644 index 0000000..7e679e7 --- /dev/null +++ b/assets/SVGs/workplace.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/sass/components/_icons.scss b/assets/sass/components/_icons.scss index ceffd05..d2a02cb 100644 --- a/assets/sass/components/_icons.scss +++ b/assets/sass/components/_icons.scss @@ -141,4 +141,13 @@ } } } + } + + span.inline-svg { + &.small { + svg { + height: 1em; + width: auto; + } + } } \ No newline at end of file diff --git a/assets/sass/components/_image.scss b/assets/sass/components/_image.scss index 131fa48..ff15292 100644 --- a/assets/sass/components/_image.scss +++ b/assets/sass/components/_image.scss @@ -15,6 +15,14 @@ display: block; } + &.shadow { + img { + @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold)); + @media screen and (prefers-color-scheme: dark) { + @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold)); + } + } + } &.left, &.right { max-width: 30%; @@ -26,13 +34,13 @@ &.left { float: left; - margin: 0 1.5em 1.25em 0; + margin: 0 1.5em 0.5em 1em; top: 0.25em; } &.right { float: right; - margin: 0 0 1.25em 1.5em; + margin: 0 1em 0.5em 1.5em; top: 0.25em; } diff --git a/layouts/curriculum/cv-baseof.html b/layouts/curriculum/cv-baseof.html new file mode 100644 index 0000000..720680d --- /dev/null +++ b/layouts/curriculum/cv-baseof.html @@ -0,0 +1,20 @@ + + + {{- partial "head.html" . -}} + + +
+ {{- partial "header.html" . -}} +
+
+ {{- block "curriculum-main" . }}{{- end }} +
+
+ {{- block "curriculum-footer" . }}{{- end }} +
+
+ {{- partial "footer.html" . -}} +
+ {{- partial "footer-addition.html" . -}} + + diff --git a/layouts/curriculum/cv.html b/layouts/curriculum/cv.html new file mode 100644 index 0000000..38dbcaa --- /dev/null +++ b/layouts/curriculum/cv.html @@ -0,0 +1,15 @@ +{{ define "curriculum-main" }} +
+
+ {{ .Content }} +
+
+{{ end }} + +{{ define "curriculum-footer" }} +
+
+

Lorem, ipsum dolor, sit amet consectetur adipisicing elit. Suscipit praesentium sequi aperiam corrupti dolore vitae dolores natus incidunt ullam eum quod in debitis, voluptatum a excepturi perferendis ratione nulla. Molestias.

+
+
+{{ end }} diff --git a/layouts/shortcodes/div-close.html b/layouts/shortcodes/div-close.html new file mode 100644 index 0000000..ea7e47c --- /dev/null +++ b/layouts/shortcodes/div-close.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/shortcodes/div.html b/layouts/shortcodes/div.html new file mode 100644 index 0000000..0c0b755 --- /dev/null +++ b/layouts/shortcodes/div.html @@ -0,0 +1,4 @@ +{{ if .Get "class" }} +
+{{ end }} + diff --git a/layouts/shortcodes/svg.html b/layouts/shortcodes/svg.html index cdde6cc..d042bb0 100644 --- a/layouts/shortcodes/svg.html +++ b/layouts/shortcodes/svg.html @@ -1,5 +1,5 @@ - -{{- $fname := print "SVGs/" ( .Get 0 ) ".svg" -}} + +{{- $fname := print "SVGs/" ( .Get "name" ) ".svg" -}} {{ $icon := resources.Get $fname }} {{ $icon.Content | safeHTML }} -- 2.20.1