From dbcd235ef412aa52ef3c8c4b0d8fa9a508a2e4b8 Mon Sep 17 00:00:00 2001 From: JayWll Date: Mon, 18 May 2020 16:58:54 -0600 Subject: [PATCH] Adding initial draft of resume section. Created new layout for pages with a secondary menu. --- .../jason-williamsca/assets/css/resume.css | 17 ++ .../jason-williamsca/assets/css/sidemenu.css | 60 +++++ .../jason-williamsca/assets/css/theme.css | 12 +- .../jason-williamsca/layouts/default.htm | 3 +- .../jason-williamsca/layouts/sidesubmenu.htm | 48 ++++ www/themes/jason-williamsca/pages/resume.htm | 226 +++++++++++++++++- .../jason-williamsca/partials/mainmenu.htm | 27 +-- .../jason-williamsca/partials/resumemenu.htm | 30 +++ 8 files changed, 396 insertions(+), 27 deletions(-) create mode 100644 www/themes/jason-williamsca/assets/css/resume.css create mode 100644 www/themes/jason-williamsca/assets/css/sidemenu.css create mode 100644 www/themes/jason-williamsca/layouts/sidesubmenu.htm create mode 100644 www/themes/jason-williamsca/partials/resumemenu.htm diff --git a/www/themes/jason-williamsca/assets/css/resume.css b/www/themes/jason-williamsca/assets/css/resume.css new file mode 100644 index 0000000..9118e4f --- /dev/null +++ b/www/themes/jason-williamsca/assets/css/resume.css @@ -0,0 +1,17 @@ +h1 { + font-family: var(--title-font); + font-size: 5rem; + font-weight: 500; + word-spacing: -0.8rem; +} + +.altaccent { + color: var(--alt-accent-color); +} + +/* lg Breakpoint */ +@media (min-width: 992px) { + section.resume-section { + min-height: 100vh; + } +} \ No newline at end of file diff --git a/www/themes/jason-williamsca/assets/css/sidemenu.css b/www/themes/jason-williamsca/assets/css/sidemenu.css new file mode 100644 index 0000000..a1be65a --- /dev/null +++ b/www/themes/jason-williamsca/assets/css/sidemenu.css @@ -0,0 +1,60 @@ +/* lg Breakpoint */ +@media (min-width: 992px) { + body { + padding-left: 17rem; + } + + #sideNav { + text-align: center; + position: fixed; + top: 0; + left: 0; + display: flex; + flex-direction: column; + width: 17rem; + height: 100vh; + padding: 0; + background-color: var(--main-accent-color); + } + + #sideNav .navbar-brand { + display: flex; + margin: auto auto 0; + padding: 0.5rem; + } + + #sideNav .navbar-brand .img-profile { + max-width: 10rem; + max-height: 10rem; + border: 0.5rem solid rgba(255, 255, 255, 0.2); + } + + #sideNav .navbar-collapse { + display: flex; + align-items: flex-start; + flex-grow: 0; + width: 100%; + margin-bottom: auto; + } + + #sideNav .navbar-collapse .navbar-nav { + flex-direction: column; + width: 100%; + } + + #sideNav .navbar-collapse .navbar-nav .nav-item { + display: block; + } + + #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link { + display: block; + } + /*section.resume-section { + max-width: 75rem; + }*/ + + /* Possibly a different breakpoint on this one */ + main { + margin-top: -121px; + } +} \ No newline at end of file diff --git a/www/themes/jason-williamsca/assets/css/theme.css b/www/themes/jason-williamsca/assets/css/theme.css index ec55023..c5db325 100644 --- a/www/themes/jason-williamsca/assets/css/theme.css +++ b/www/themes/jason-williamsca/assets/css/theme.css @@ -2,7 +2,7 @@ --main-bg-color: #E7D9D1; /*#F0E4D1; #E8D5B5; #e7d9d1;*/ --main-accent-color: #302b44; --light-accent-color: #686283; - --alt-accent-color: #B05C71; /*#990F3D;*/ + --alt-accent-color: #B05C71; --dark-alt-accent-color: #913A50; --title-font: 'Cinzel', serif; --body-font: 'Raleway', sans-serif; @@ -17,6 +17,14 @@ body { color: var(--main-accent-color); } +header { + margin-bottom: 30px; /* Is there a better way to do this? */ +} + +header, header nav { + min-height: 91px; /* 75px for the logo, plus 16px padding */ +} + #page-content { flex: 1 0 auto; } @@ -50,7 +58,7 @@ h1, h2, h3, h4 { padding-right: 5%; } -.navbar-brand { +#mainNav .navbar-brand { height: 75px; padding-left: 100px; font-family: var(--title-font); diff --git a/www/themes/jason-williamsca/layouts/default.htm b/www/themes/jason-williamsca/layouts/default.htm index 1d10005..15cd656 100644 --- a/www/themes/jason-williamsca/layouts/default.htm +++ b/www/themes/jason-williamsca/layouts/default.htm @@ -14,6 +14,7 @@ description = "Default Layout" + {% styles %} {{ this.page.title }} - Ja.son-Williams.ca @@ -21,7 +22,7 @@ description = "Default Layout"
-