From aa9789b36da60c63a88a3402d7542a9d2f88631c Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Wed, 6 Mar 2024 18:07:05 -0500 Subject: [PATCH] Add an index page --- _layouts/adventures.html | 8 +++ _layouts/cards.html | 15 ++++ _layouts/journals.html | 12 ++++ assets/home.css | 148 +++++++++++++++++++++++++++++++++++++++ index.markdown | 27 +++++-- 5 files changed, 205 insertions(+), 5 deletions(-) create mode 100644 _layouts/adventures.html create mode 100644 _layouts/cards.html create mode 100644 _layouts/journals.html create mode 100644 assets/home.css diff --git a/_layouts/adventures.html b/_layouts/adventures.html new file mode 100644 index 0000000..cac4024 --- /dev/null +++ b/_layouts/adventures.html @@ -0,0 +1,8 @@ + +
+

{{ page.title }}

+

An Adventure For {{ page.system }}

+
+

{{ content }}

+
+
diff --git a/_layouts/cards.html b/_layouts/cards.html new file mode 100644 index 0000000..d50997f --- /dev/null +++ b/_layouts/cards.html @@ -0,0 +1,15 @@ + +
+

{{ page.title }}

+
+
+ {{ page.title }} Logo +
+
{{ content }}
+
+
+{% if page.system %} +

An Adventure For {{ page.system }}

+{% endif %} +
+
diff --git a/_layouts/journals.html b/_layouts/journals.html new file mode 100644 index 0000000..e2431b1 --- /dev/null +++ b/_layouts/journals.html @@ -0,0 +1,12 @@ + +
+

{{ page.title }}

+
+
+ {{ page.title }} Logo +
+
{{ content }}
+
+
+
+
diff --git a/assets/home.css b/assets/home.css new file mode 100644 index 0000000..3999091 --- /dev/null +++ b/assets/home.css @@ -0,0 +1,148 @@ +html { + background-color: black; +} + +/* Layout */ +body { + display: flex; + margin: 0 auto; max-width: 1620px; + background-color: antiquewhite; +} +main { + position:relative; + height:100vh; width: 100%; + overflow-y: scroll; +} +main article { + margin: 3vh auto; padding: 0; max-width: 90%; +} +.main-filter { + display: none; +} +/* Typography */ +html { + font-family: sans-serif; +} +a,a:visited,a:link,a:focus { + text-decoration: none; + color: purple; + transition: color 0.5s; +} +a:hover { + color: darkorchid; + transition: color 0.5s; + text-decoration: underline; +} +article { + display: flex; + flex-flow: column; + + h2 { + background-color: black; + color: white; + box-shadow: 0 10px 10px grey; + padding: 0.2em 0.6em; + } + + .cards { + display: flex; flex-flow: row wrap; + + &#adventure { + justify-content: space-evenly; + + a { + width: 30%; + max-width: 30%; + } + + } + + &#journal { + justify-content: left; + + a { + width: 20vw; max-width: 20vw; min-width: 200px; + } + + } + + a,a:visited,a:link,a:focus { + text-decoration: none; + color: black; + transition: color 0.5s; + } + a:hover { + color: #222; + transition: color 0.5s; + } + } + + .card { + border: 2px solid black; border-radius: 10px; + padding: 0 2em; margin: 1vh 2vw; + transition: + background-color 0.3s ease-out, + box-shadow 0.5s ease-in; + + &#adventure { + background-color: grey; + + &:hover { + background-color: lightgrey; + box-shadow: 10px 5px 5px black; + transition: + background-color 0.3s ease-in, + box-shadow 0.5s ease-out; + + } + } + + &#journal { + background-color: darkgoldenrod; + + &:hover { + background-color: goldenrod; + box-shadow: 10px 5px 5px black; + transition: + background-color 0.3s ease-in, + box-shadow 0.5s ease-out; + + } + } + + figure { + width: 100%; max-width: 100%; + margin: 0 auto; + } + + figcaption { + font-size: 1.5rem; + } + + h1 { + text-align: center; + } + + h2 { + text-align: center; + background-color: unset; + } + + img { + max-width: 75%; + margin: 0 auto; + } + } +} + +/* Responsive */ +@media only screen and (max-width: 900px) { + body { + overflow-y: hidden; + } + + article { + .cards { + justify-content: space-around; + } +} diff --git a/index.markdown b/index.markdown index b225e7d..2fdee34 100644 --- a/index.markdown +++ b/index.markdown @@ -1,9 +1,26 @@ --- layout: home --- +# {{ site.title }} +{{ site.description }} -

Journals

- +## Adventures +
+{% for adv in site.adventures %} +{{ adv }} +{% endfor %} +
+ +## Journals +
+{% for journal in site.journals %} +{{ journal }} +{% endfor %} +
+ +## Tools +
+{% for tool in site.tools %} +{{ tool }} +{% endfor %} +