Redoing the site theme. Now using FairyFloss

This commit is contained in:
Dorian Wood 2021-05-12 07:46:54 -04:00
parent 0a526bfc96
commit bb44a4b856
4 changed files with 66 additions and 32 deletions

View File

@ -2,11 +2,14 @@
{{ .Title }} {{ .Title }}
{{ end }} {{ end }}
{{ define "main" }} {{ define "main" }}
<section id="list"> <main class="main-content">
{{ .Content }}
<section id="list">
{{- range .Data.Pages }} {{- range .Data.Pages }}
<section class="list-item"> <section class="list-item">
{{ .Date.Format "2006-01-02" }} <a href="{{- .Permalink }}">{{ .Title }}</a> {{ .Date.Format "2006-01-02" }} <a href="{{- .Permalink }}">{{ .Title }}</a>
</section>
{{- end }}
</section> </section>
{{- end }}
</section>
</main>
{{ end }} {{ end }}

View File

@ -4,7 +4,6 @@
{{ define "main" }} {{ define "main" }}
<main class="main-content"> <main class="main-content">
{{ .Content }} {{ .Content }}
</main>
<section id="list"> <section id="list">
{{- range .Data.Pages }} {{- range .Data.Pages }}
<section class="list-item"> <section class="list-item">
@ -12,4 +11,5 @@
</section> </section>
{{- end }} {{- end }}
</section> </section>
</main>
{{ end }} {{ end }}

View File

@ -1,7 +1,9 @@
{{ define "main" }} {{ define "main" }}
<div class="main-content">
{{ .Content }} {{ .Content }}
{{ $currentPage := . }} {{ $currentPage := . }}
{{ range .Site.Menus.social }} {{ range .Site.Menus.social }}
<a class="{{if or ($currentPage.IsMenuCurrent "social" .) ($currentPage.HasMenuCurrent "social" .) }} active{{end}} button" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a><br> <a class="{{if or ($currentPage.IsMenuCurrent "social" .) ($currentPage.HasMenuCurrent "social" .) }} active{{end}} button" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a><br>
{{ end }} {{ end }}
<div>
{{ end }} {{ end }}

View File

@ -1,44 +1,65 @@
:root { :root {
--base03: #002b36; /* --base03: #002b36; */
--base02: #073642; /* --base02: #073642; */
--base01: #586e75; /* --base01: #586e75; */
--base00: #657b83; /* --base00: #657b83; */
--base0: #839496; /* --base0: #839496; */
--base1: #93a1a1; /* --base1: #93a1a1; */
--base2: #eee8d5; /* --base2: #eee8d5; */
--base3: #fdf6e3; /* --base3: #fdf6e3; */
--yellow: #b58900; /* --yellow: #b58900; */
--orange: #cb4b16; /* --orange: #cb4b16; */
--red: #dc322f; /* --red: #dc322f; */
--magenta: #d33682; /* --magenta: #d33682; */
--violet: #6c71c4; /* --violet: #6c71c4; */
--blue: #268bd2; /* --blue: #268bd2; */
--cyan: #2aa198; /* --cyan: #2aa198; */
--green: #859900; /* --green: #859900; */
--background: var(--base3); --black: #42395D;
--color: var(--base02); --dark-grey: #75507B;
--highlight: var(--base2); --red: #A8757B;
--accent: var(--base01); --light-red: #FFB8D1;
--green: #FF857F;
--light-green: #F1568E;
--brown: #E6C000;
--yellow: #D5A425;
--blue: #AE81FF;
--light-blue: #C5A3FF;
--magenta: #716799;
--light-magenta: #8077A8;
--cyan: #C2FFDF;
--light-cyan: #C2FFFF;
--light-grey: #F8F8F2;
--white: #F8F8F0;
--background: var(--magenta);
--color: var(--light-grey);
--highlight: var(--brown);
--accent: var(--light-green);
} }
body { body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center;
font-size: 1.8em; font-size: 1.8em;
font-family: serif; font-family: serif;
background-color: var(--background); background-color: var(--background);
color: var(--color); color: var(--color);
width: 99vw; /* width: 99vw; */
} }
.main-content { .main-content {
max-width: 40em; max-width: 40em;
margin: auto; margin: auto;
background-color: var(--light-magenta);
padding: 1em;
border-radius: 1em;
} }
a, a:visited { a, a:visited {
color: var(--blue); color: var(--cyan);
} }
#navbar { #navbar {
@ -46,7 +67,8 @@ a, a:visited {
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: flex-end; justify-content: flex-end;
margin-top: 10px; margin-top: 1em;
margin-bottom: 1em;
padding: 10px 0px; padding: 10px 0px;
border-width: 0 0 1px 0; border-width: 0 0 1px 0;
border-color: var(--accent); border-color: var(--accent);
@ -110,14 +132,21 @@ h1, h2 {
h1 { h1 {
font-size: 3em; font-size: 3em;
text-align: center; text-align: center;
margin: auto;
padding: 0.5em;
border-color: var(--brown);
border-style: double;
border-width: 0.1em;
box-shadow: 0.1em 0.1em 0.2em var(--accent);
border-radius: 1em;
} }
h2 { h2 {
font-size: 2.5em; font-size: 2.5em;
text-align: right; text-align: right;
border-width: 0 0 4px 0; border-width: 0 0 0.2em 0;
border-style: dashed; border-style: double;
border-color: var(--accent); border-color: var(--highlight);
} }
h3 { h3 {