get in touch and footer done

This commit is contained in:
Roxie Gibson 2021-08-26 15:09:09 +01:00
parent 322b6abe35
commit 334991b055
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
15 changed files with 81 additions and 26 deletions

View File

@ -1,5 +1,4 @@
## How to change about me headshot
Add the headshot image you want to use to the `static/img` directory. Then uncomment the `headshot=` option under `[param.about]`. Set this option to the filename and only the filename.

View File

@ -6,11 +6,20 @@ theme = "sophie-lewis"
[params]
navbar = ["about", "writing", "videos", "get-in-touch"]
[params.header]
name = "Sophie Lewis"
subtitle = "Writer, Theorist, Teacher"
[params.about]
# headshot = "headshot.png"
[params.header]
name = "Sophie Lewis"
subtitle = "Writer, Theorist, Teacher"
[params.about]
headshot = "ossy.png"
[params.social]
# USERNAMES
twitter="foo"
patreon="bar"
# DON'T EDIT BELOW

View File

@ -1,6 +1,8 @@
---
title: "Getintouch"
date: 2021-08-23T05:59:10+01:00
draft: true
octo: octo-3.webp
---
{{<getintouch text="Hire me" contact="SOPHIE@SOPHIELEWIS@GMAIL.COM">}}
{{<getintouch text="Everything else" contact="SOPHIE@SOPHIELEWIS@GMAIL.COM">}}

View File

@ -1,7 +1,6 @@
---
title: "Videos"
date: 2021-08-23T05:04:19+01:00
draft: false
octo: octo-3.webp
---
{{<youtube 5liV7pbNxA8>}}

View File

@ -1,6 +1,6 @@
---
title: "Writing"
Octo: octo-4.webp
octo: octo-4.webp
---
<table>

File diff suppressed because one or more lines are too long

View File

@ -82,19 +82,38 @@ hr {
iframe {
padding-bottom: 1rem;
}
}
#content.videos {
p:has(em) {
&.videos {
p:has(em) {
padding-bottom: 1rem;
}
}
&.about {
hr ~ p {
padding-bottom: 0 !important;
}
}
&:not(.videos):not(.getintouch) p {
padding-bottom: 2rem;
}
&.getintouch p {
padding-bottom: 0;
}
.contact {
p {
font-family: $sans_font;
}
.contact_text {
font-weight: 200;
}
.contact_details {
}
padding-bottom: 1rem;
}
}
#content.about hr ~ p {
padding-bottom: 0 !important;
}
.headshot {
padding-top: 1rem;
img {
border-radius: 100%;
border-width: 0.15rem;
@ -103,10 +122,6 @@ hr {
}
}
#content:not(.videos) p {
padding-bottom: 2rem;
}
#content-column {
@media all and (max-width: 1216px) {
padding: 0 2rem;
@ -155,4 +170,10 @@ footer {
margin-top: 0;
margin-bottom: 0.8rem;
}
.social-circles {
img {
height: 32px;
border-radius: 100%;
}
}
}

View File

@ -6,7 +6,7 @@
<div class="headshot">
{{ $img := relURL "img/headshot_example.png" }}
{{ if isset $.Site.Params.about "headshot" }}
{{ if fileExists ( printf "themes/sophie-lewis/static/img/%s" $.Site.Params.about.headshot ) }}
{{ if fileExists ( printf "static/img/%s" $.Site.Params.about.headshot ) }}
{{ $img := relURL ( printf "img/%s" $.Site.Params.about.headshot )}}
<img src='{{ $img }}'>
{{ else }}

View File

@ -3,7 +3,14 @@
<div class="columns">
<div class="column">
<div>FIND ME AT</div>
<div></div>
<div class="social-circles">
{{ if isset $.Site.Params.social "twitter" }}
{{- partial "social-circles/twitter.html" . -}}
{{ end }}
{{ if isset $.Site.Params.social "patreon" }}
{{- partial "social-circles/patreon.html" . -}}
{{ end }}
</div>
</div>
<div class="column has-text-right">
PRIVACY POLICY

View File

@ -0,0 +1,5 @@
<span class="social-circle patreon">
<a href="https://patreon.com/{{ site.Params.social.patreon }}">
<img src='{{ relURL "img/social/patreon.webp" }}'>
</a>
</span>

View File

@ -0,0 +1,5 @@
<span class="social-circle twitter">
<a href="https://twitter.com/{{ site.Params.social.twitter }}">
<img src='{{ relURL "img/social/twitter.svg" }}'>
</a>
</span>

View File

@ -0,0 +1,8 @@
<div class="contact">
<p class="contact_text">
{{ .Get "text" }}
</p>
<p class="contact_details">
<strong>{{ .Get "contact" }}</strong>
</p>
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB