~singpolyma/post-part

ref: 8bb207496d869a8326c2fe1690426717d5ab167c post-part/index.slim -rw-r--r-- 2.3 KiB
8bb20749Stephen Paul Weber tweak skip to arrow 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
-# 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
- transcripts = File.read("assets/audio/transcripts.txt").lines.map { |x| x.chomp.split("/") }
doctype html
html
	head
		meta charset="utf-8"
		title Post-Part
		link type="text/css" rel="stylesheet" href="index.css"
		script type="text/javascript" src="index.js"
	body
		a href="#wallpaper" skip to wallpaper
		hgroup
			h1 Post-Part
			h2 The Yellow Wallpaper
		p= paras[0]
		p: span= paras[1]
		p= paras[2]

		section#story
			h1 The Story
			p= paras[3]

		p= paras[4]

		p= paras[5]
		small Click to activate the wallpaper

		#wallpaper
			img src="assets/img/WALLPAPER-HIDDEN.png" alt="Wallpaper"

			- (1..5).each do |n|
				figure
					figcaption
						h1= transcripts[n-1].shift
						p
							- transcripts[n-1].each_with_index do |t, i|
								- if i > 0
								  br
								= t
					audio controls="controls"
						source src="assets/audio/#{n}.opus" type="audio/ogg; codecs=opus"
						source src="assets/audio/#{n}.mp3" type="audio/mpeg"
						a href="assets/audio/#{n}.opus" listen

		section#credits
			h1= paras[6]
			p= paras[7]

		p= paras[8]
		p= paras[9]

		p.fin Thank you

		footer
			p= paras[10]
			p= paras[11]
			p= paras[12]

			img src="assets/img/INSTAGRAM.png" alt="Instagram"

			address
				' Contact Us
				' Catherine Mellinger
				' Nat Janin
				' Pazit Cahlon

			img src="assets/img/OAC.svg" alt="Ontario Arts Council"

			img src="assets/img/WORKMAN_ARTS.png" alt="Workman Arts"