From 0a8507401ce4602318d43dfcf9969619d84be956 Mon Sep 17 00:00:00 2001 From: NeilBrommer Date: Mon, 11 Jun 2018 21:42:16 -0700 Subject: [PATCH] Add header image on the home page --- content/_index.md | 2 +- layouts/_default/single.html | 2 ++ layouts/index.html | 22 +++++++++++++--------- layouts/partials/htmlhead.html | 1 - static/css/index.css | 26 ++++++++++++++++++++++++++ static/css/main.css | 1 + static/img/trianglify.svg | 1 + 7 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 static/css/index.css create mode 100644 static/img/trianglify.svg diff --git a/content/_index.md b/content/_index.md index 9be463e..f8992d1 100644 --- a/content/_index.md +++ b/content/_index.md @@ -8,4 +8,4 @@ draft = false weight = -100 +++ -Computer Science student at [Eastern Washington University](https://www.ewu.edu/), graduating in spring 2018. +Computer Science student at Eastern Washington University, graduating in spring 2018. diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 655482e..10f1efa 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,6 @@ {{ partial "htmlhead" . }} + + {{ partial "navbar" .}} diff --git a/layouts/index.html b/layouts/index.html index 5a9ba38..26bc94a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,19 +1,23 @@ {{ partial "htmlhead" . }} + + {{ partial "navbar" . }} -
-
-

{{ .Title }}

- {{ .Content }} + -
- {{ range .Site.Data.projects.project }} - {{ partial "projectCard" . }} - {{ end }} -
+
+
+ {{ range .Site.Data.projects.project }} + {{ partial "projectCard" . }} + {{ end }} +
diff --git a/layouts/partials/htmlhead.html b/layouts/partials/htmlhead.html index 4f476c4..dc1324f 100644 --- a/layouts/partials/htmlhead.html +++ b/layouts/partials/htmlhead.html @@ -39,4 +39,3 @@ {{ template "_internal/google_analytics_async.html" . }} - diff --git a/static/css/index.css b/static/css/index.css new file mode 100644 index 0000000..05531c2 --- /dev/null +++ b/static/css/index.css @@ -0,0 +1,26 @@ +body { + padding-top: 0px; +} + +#header { + padding: 10vw 2rem; + margin-bottom: 2rem; + + color: white; + text-shadow: 1px 1px 2px gray; + + box-shadow: 0 1px 3px rgba(0,0,0,0.16), 0 1px 3px rgba(0,0,0,0.23); + background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('/img/trianglify.svg'); +} + +#headerContent { + padding-top: 70px; /* account for nav bar */ +} + +#header a { + color: #a10022 !important; +} + +#title { + margin-bottom: 2rem; +} diff --git a/static/css/main.css b/static/css/main.css index 302b307..67fa564 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -2,6 +2,7 @@ --main-color: #3f51b5; /* R:63, G:82, B:181 */ --main-dark-color: #002984; --main-light-color: #757de8; + --accent-color: #FFC107; } body { diff --git a/static/img/trianglify.svg b/static/img/trianglify.svg new file mode 100644 index 0000000..1ea155a --- /dev/null +++ b/static/img/trianglify.svg @@ -0,0 +1 @@ + \ No newline at end of file