-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
235 lines (188 loc) · 6.64 KB
/
index.html
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang='en' dir='ltr'>
<head>
<meta charset='utf-8'>
<title>workshops today for your better tomorrow</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<style media='screen'>
@font-face {
font-family: 'IFF Bruce'; /* Custom typeface by Ellmer Stefan */
src: url('assets/IFFBruce.ttf') format('truetype');
font-weight: 0 100;
}
@supports (font-variation-settings: normal) {
html {
font-family: 'IFF Bruce', sans-serif;
letter-spacing: -0.009em;
}
}
body {
margin: 0;
padding: 1em 1.5em 3em;
font-weight: 400;
line-height: 1.35;
font-feature-settings: 'ss02' 0, 'ss03' 1;
font-variation-settings: 'wght' 43;
}
::-moz-selection {
color: white;
background: tomato;
}
::selection {
color: white;
background: tomato;
}
a {
color: blue;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
mark {
background: yellow;
}
mark:hover {
background: gold;
}
canvas {
position: absolute;
top: 0;
left: 0;
}
article {
position: relative;
display: block;
padding: 1.25em;
background: white;
max-width: 30em;
padding-bottom: 2em;
}
header {
margin-bottom: 4em;
color: tomato;
}
header time {
display: block;
}
footer {
margin-top: 2em;
}
mark {
cursor: help;
}
h1 {
color: transparent;
height: 3.5em;
margin: 0 0.1em 2em 0;
background: url('assets/ppp.svg') top right;
background-size: contain;
background-repeat: no-repeat;
user-select: none;
}
p {
max-width: 24em;
}
.button {
display: inline-block;
border: 1.5px solid;
padding: 0.75em 1.2em 0.9em;
border-radius: 50%;
box-shadow: 0 2px 0;
text-transform: lowercase;
margin: 1em 0;
}
.button:hover:not(.disabled) {
text-decoration: none;
color: tomato;
}
.button:active:not(.disabled) {
background: yellow;
}
.button.disabled {
color: #aaa;
}
@media (min-width: 34em) {
h1 {
float: right;
width: 8em;
}
header {
margin-bottom: 7em;
}
}
</style>
</head>
<body>
<article>
<h1>posters, patterns, programs</h1>
<header>
<time>10–16 December 2018</time>
<a href='https://goo.gl/maps/KiWHqo2C8V72' target='_blank' rel='noopener noreferrer'>
Low Standards<br />
Pløens gate 1<br />
Youngstorget, Oslo
</a>
</header>
<p>A two-day <mark title='10–11 December'>workshop</mark> + <mark title='13–16 December'>exhibition</mark> introducing programming as a visual design tool</p>
<p>Participants will be introduced to coding concepts like variables, loops, drawing functions, coordinate systems and parameters</p>
<p>Together, we will explore waves, rhythm and contrast through repetition of <mark title=' ▲ ◼ ● '>elementary graphic forms</mark></p>
<p>The work will be printed on A2 posters and exhibited at the end of the week alongside the code used to produce it. All participants will receive copies of the work</p>
<p>
<div class="button disabled">
applications closed
</div>
</p>
<p>No prior programming experience required</p>
<p>Participants will be selected based on group diversity (no particular expertise in any particular field required)</p>
<p><mark>Price</mark> We have secured enough funding to make the price 800 NOK per head. We are still waiting for feedback on our most recent funding application; if granted, the cost will be fully or partially reimbursed.</p>
<footer>
<a href='http://internetfriendsforever.com' target='_blank' rel='noopener noreferrer'>
<svg id='logo' xmlns='http://www.w3.org/2000/svg' width='1em' viewBox='0 0 145 164' fill='blue'>
<path d='M80.5 39l14.1 14.1c1.4 1.4 3.5 1.4 4.9 0L113.6 39c1.4-1.4 3.5-1.4 4.9 0l15.1 15.1c1.4 1.4 1.4 3.5 0 4.9l-14.1 14.1c-1.4 1.4-1.4 3.5 0 4.9l24.6 24.6c1.4 1.4 1.4 3.5 0 4.9L127.4 124c-1.4 1.4-3.5 1.4-4.9 0L97.9 99.5c-1.4-1.4-1.4-3.5 0-4.9L112 80.5c1.4-1.4 1.4-3.5 0-4.9L97 60.5c-1.4-1.4-3.5-1.4-4.9 0L78 74.6c-1.4 1.4-3.5 1.4-4.9 0L59 60.5c-1.4-1.4-1.4-3.5 0-4.9l14.1-14.1c1.4-1.4 1.4-3.5 0-4.9L59 22.5c-1.4-1.4-1.1-3.8.2-5.1L75.6 1C77-.4 79.1-.4 80.5 1l14.1 14.1c1.4 1.4 1.4 3.5 0 4.9L80.5 34.1c-1.4 1.4-1.4 3.6 0 4.9zM19.1 62.4l82.5 82.5c1.4 1.4 1.4 3.5 0 4.9L88.4 163c-1.4 1.4-3.5 1.4-4.9 0L1 80.5C-.4 79.1-.4 77 1 75.6l13.2-13.2c1.3-1.3 3.5-1.3 4.9 0z'></path>
</svg>
</a>
</footer>
</article>
<script>
const canvas = document.createElement('canvas')
const context = canvas.getContext('2d')
function render () {
const width = document.body.clientWidth * window.devicePixelRatio
const height = Math.max(document.body.clientHeight, window.innerHeight) * window.devicePixelRatio
canvas.width = width
canvas.height = height
canvas.style.width = `100%`
canvas.style.height = `${height / window.devicePixelRatio}px`
document.body.insertBefore(canvas, document.body.childNodes[0])
const grid = 50
context.globalCompositeOperation = 'multiply'
context.fillStyle = 'blue'
for (let col = 0; col < width / grid; col += 1) {
for (let row = 0; row < height / grid; row += 1) {
const x = col * grid
const y = row * grid + (col % 2) * grid / 2
const r = 10
context.beginPath()
context.arc(x, y, r, 0, Math.PI * 2)
context.fill()
}
}
context.fillStyle = 'tomato'
for (let col = grid / 2; col < width; col += grid) {
for (let row = grid / 2; row < height; row += grid) {
const x = col + Math.sin(row / 8) * 10 + Math.sin(row / 10) * 20
const y = (row + Math.sin(col / 3) * 20)
const r = (row / 50) % 50
context.beginPath()
context.arc(x, y, r, 0, Math.PI * 2)
context.fill()
}
}
}
render()
window.addEventListener('resize', render)
window.addEventListener('orientationchange', render)
</script>
</body>
</html>