~singpolyma/post-part

b3223ea81e272cf0a8440db8dad04c30d418e3e2 — Stephen Paul Weber 1 year, 3 months ago b02e2f4
tweaks and interactive map
5 files changed, 74 insertions(+), 6 deletions(-)

M Makefile
A QVtq/index.slim
M index.scss
M index.slim
M window.slim
M Makefile => Makefile +4 -0
@@ 2,6 2,7 @@

all: \
	index.html index.css index.js \
	QVtq/index.html \
	interactive/index.html interactive/index.css interactive/index.js \
	window/NsD0/index.html \
	window/Vfqb/index.html \


@@ 21,6 22,9 @@ index.css: index.scss _font-face.scss
index.js: Home.purs packages.dhall spago.dhall
	spago bundle-app -u-c --main Home --to index.js

QVtq/index.html: QVtq/index.slim assets/paras.txt assets/img/map.svg
	/usr/share/doc/ruby-slim/examples/slimrb -p QVtq/index.slim > $@

interactive/index.html: interactive/index.slim assets/paras.txt assets/audio/transcripts.txt
	/usr/share/doc/ruby-slim/examples/slimrb -p interactive/index.slim > $@


A QVtq/index.slim => QVtq/index.slim +60 -0
@@ 0,0 1,60 @@
-# Full source may be found at: https://git.singpolyma.net/post-part
-# Copyright 2020 Stephen Paul Weber <singpolyma.net>
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
-# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
-# CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
-# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

- paras = File.read("assets/paras.txt").lines
doctype html
html
	head
		meta charset="utf-8"
		title Post-Part
		link type="text/css" rel="stylesheet" href="../index.css"
		base target="_blank"
		scss:
			img[src="../assets/img/cotd.jpg"] {
				margin-top: -4em;
				max-width: 15vw;
			}
			#map {
				margin-top: 3em;
				margin-bottom: 3em;

				h1 {
					margin: 0 auto;
					margin-bottom: 2em;
					padding: 0;
					max-width: 25em;
				}

				svg {
					width: 90%;
					max-height: 70vh;
				}
			}
	body
		hgroup
			h1 Post-Part

		== Tilt['md'].new { paras[16] }.render

		a href="https://cotdwaterlooregion.org/": img alt="Climb Out of the Darkness" src="../assets/img/cotd.jpg"

		section#map
			h1 Click on each Location on the Map to be taken to our exhibition webpages

			== open("assets/img/map.svg").read

		a href="credits" Credits

		a href="../" Post-Part Home

M index.scss => index.scss +5 -1
@@ 188,7 188,7 @@ body > section {
	}
}

a[href="interactive"], a[href="../../interactive"], a[href="credits"] {
a[href="interactive"], a[href="../../interactive"], a[href="credits"], a[href="../"] {
	display: block;
	font-size: 1.5em;
	margin-bottom: 5em;


@@ 207,6 207,10 @@ a[href="interactive"], a[href="../../interactive"], a[href="credits"] {
		margin: 2em;
		max-width: $column-width/4.5;
		vertical-align: middle;

		&[src$="breastfeeding-buddies.png"] {
			max-width: $column-width/1.5;
		}
	}
}


M index.slim => index.slim +3 -3
@@ 45,7 45,7 @@ html
		section#location
			h1 Exhibition Location &amp; Partners

			a href="assets/map.pdf" Map of Locations
			a href="assets/map.pdf" Printable Exhibition Map

			markdown:
				1. [![Abrosia Corner Bakery](assets/img/ambrosia.png)](https://ambrosiacornerbakery.com/)


@@ 69,9 69,9 @@ html
			img alt="City of Kitchener" src="assets/img/CityofKitchener.png"
			a href="https://cotdwaterlooregion.org/": img alt="Climb Out of the Darkness" src="assets/img/cotd.jpg"
			a href="https://www.canadianperinatalmentalhealthtrainings.com/"
				img alt="Canadian Perinatal Mental Health Trainings" src="assets/img/cpmt.jpg"
				img alt="Canadian Perinatal Mental Health Trainings" src="assets/img/cpmt.png"
			a href="https://www.breastfeedingbuddies.com/"
				img alt="Breastfeeding Buddies" src="assets/img/breastfeeding-buddies.jpg"
				img alt="Breastfeeding Buddies" src="assets/img/breastfeeding-buddies.png"

			section
				h1 Further Thanks

M window.slim => window.slim +2 -2
@@ 121,10 121,10 @@ html
					img alt="Climb Out of the Darkness" src="../../assets/img/cotd.jpg"
			- if sponsors.include?("cpmt")
				a href="https://www.canadianperinatalmentalhealthtrainings.com/"
					img alt="Canadian Perinatal Mental Health Trainings" src="../../assets/img/cpmt.jpg"
					img alt="Canadian Perinatal Mental Health Trainings" src="../../assets/img/cpmt.png"
			- if sponsors.include?("breastfeeding-buddies")
				a href="https://www.breastfeedingbuddies.com/"
					img alt="Breastfeeding Buddies" src="../../assets/img/breastfeeding-buddies.jpg"
					img alt="Breastfeeding Buddies" src="../../assets/img/breastfeeding-buddies.png"
			- if sponsors.include?("schneiderhaus")
				a href="https://www.schneiderhaus.ca"
					img alt="Schneider Haus" src="../../assets/img/schneiderhaus.png"