-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
257 lines (237 loc) · 9.61 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
---
layout: default
---
<head>
<!--
/**
* @license
* MyFonts Webfont Build ID 3319925, 2016-12-12T10:19:51-0500
*
* The fonts listed in this notice are subject to the End User License
* Agreement(s) entered into by the website owner. All other parties are
* explicitly restricted from using the Licensed Webfonts(s).
*
* You may obtain a valid license at the URLs below.
*
* Webfont: DINNextLTPro-Light by Linotype
* URL: http://www.myfonts.com/fonts/linotype/din-next/pro-light/
* Copyright: Copyright © 2008 - 2009 Linotype GmbH, www.linotype.com. All rights
* reserved. This font software may not be reproduced, modified, disclosed or
* transferred without the express written approval of Linotype GmbH.
*
* Webfont: DINNextLTPro-Regular by Linotype
* URL: http://www.myfonts.com/fonts/linotype/din-next/pro-regular/
* Copyright: Copyright © 2010 Linotype GmbH, www.linotype.com. All rights
* reserved. This font software may not be reproduced, modified, disclosed or
* transferred without the express written approval of Linotype GmbH.
*
*
* License: http://www.myfonts.com/viewlicense?type=web&buildid=3319925
* Licensed pageviews: 250,000
*
* © 2016 MyFonts Inc
*/
-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ian Ardouin-Fumat</title>
<link rel="stylesheet" type="text/css" href="{{ site.github.url }}/css/MyFontsWebfontsKit.css">
<link rel="stylesheet" href="/css/main.css">
<link rel="icon" type="image/png" href="{{ site.github.url }}/images/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="{{ site.github.url }}/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="{{ site.github.url }}/images/favicon-96x96.png" sizes="96x96">
</head>
<body>
<div id="background"></div>
<div class="body">
<div class="about">
<div class="about_title">
<a href="/">
<h1 class="about_title_logo">
Ian Ardouin-Fumat
</h1>
</a>
<div class="about_title_links">
<a href="mailto:ian.ardouin@gmail.com">
<img class="button" src="{{ site.github.url }}/images/misc/icon-email.svg">
</a>
<a href="{{ site.github.url }}/documents/ian-ardouin-resume.pdf">
<img class="button" src="{{ site.github.url }}/images/misc/icon-cv.svg">
</a>
</div>
</div>
<div class="about_bio">
<p>
Trained as an interaction designer in France, I've practiced creative coding and critical thinking around technology since 2012. My work revolves around the intersection of data and civil rights, information security, environmental conservation, and the art world.
</p>
<p>
These days I work with NGOs, universities and news organizations. Do you need some data visualization work done? <a href="mailto:ian.ardouin@gmail.com" class="about_bio_cta">Drop me a line!</a>
</p>
</div>
</div>
<div class="projects">
{% for project in site.projects reversed %}
<a href="{% if project.redirect %}https://deface.app{% else %}{{ site.github.url }}/projects/{{project.category}}{% endif %}/" {% if project.redirect %}target="_blank"{% endif %}>
<div class="projects_project {% if forloop.index > 0 %}inactive{% endif %}" href="{{ site.github.url }}/projects/{{project.category}}/">
<div class="projects_project_title">
<h2 class="projects_project_title_name">
{{ project.title }}
</h2>
<h3 class="project_project_title_date">
{{ project.year }}
</h3>
</div>
<div class="projects_project_subtitle">
{{ project.subtitle | markdownify | strip_html }}
{% if project.redirect %}<br/>(External link to {{project.redirect}}){% endif %}
</div>
<div class="projects_project_image">
<img src="{{ site.github.url }}/images/{{project.category}}/homepage/homepage.jpg"/>
</div>
</div>
</a>
{% endfor %}
</div>
<div class="footer">
<div class="footer">
<div class="footer_title">
<a href="/">
<h1 class="footer_title_logo">
Ian Ardouin-Fumat
</h1>
</a>
<div class="footer_title_links">
<a href="mailto:ian.ardouin@gmail.com">
<img class="button" src="{{ site.github.url }}/images/misc/icon-email.svg">
</a>
<a href="{{ site.github.url }}/documents/ian-ardouin-resume.pdf">
<img class="button" src="{{ site.github.url }}/images/misc/icon-cv.svg">
</a>
</div>
</div>
<div class="footer_index">
{% assign years = "2022, 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012" | split: "," %}
{% for y in years %}
{% assign emptyYear = 0 %}
{% for project in site.projects reversed %}
{% assign year = y | plus: 0 %}
{% assign projectYear = project.year | split: "-" | last | plus: 0 %}
{% if projectYear == year %}
{% if emptyYear == 0 %}
<div class="footer_index_project">
{{ year }}:
{% endif %}
{% assign emptyYear = emptyYear | plus: 1 %}
{% if emptyYear > 1 %}
•
{% endif %}
<a href="{{ site.github.url }}/projects/{{ project.category }}">{{ project.title }}</a>
{% endif %}
{% endfor %}
{% if emptyYear > 0 %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js"></script>
<script>
var scene, camera, renderer
var geometry, material, geometry, particles
scene = new THREE.Scene()
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 25, 10000 )
camera.position.z = 800
geometry = new THREE.Geometry()
for ( i = 0; i < 12000; i ++ ) {
var vertex = new THREE.Vector3()
vertex.x = Math.random() * 2000 - 1000
vertex.y = Math.random() * 2000 - 1000
vertex.z = Math.random() * 2000 - 1000
geometry.vertices.push(vertex)
}
material = new THREE.PointsMaterial({ color: 0x555555 })
particles = new THREE.Points(geometry, material)
scene.add(particles)
renderer = new THREE.WebGLRenderer({antialias: true})
renderer.setSize( window.innerWidth, window.innerHeight )
document.querySelector('#background').appendChild( renderer.domElement )
renderer.render( scene, camera )
var activeProjectID = 0
var projectCount = {{ site.projects | size | jsonify }}
document.addEventListener("DOMContentLoaded", updateActiveProject)
document.addEventListener('scroll', function(e) {
animateBackground(e.deltaY)
updateActiveProject(e)
})
document.addEventListener('mousemove', updateActiveProject)
window.addEventListener('resize', function () {
camera.aspect = window.innerWidth / window.innerHeight
camera.updateProjectionMatrix()
renderer.setSize( window.innerWidth, window.innerHeight )
renderer.render( scene, camera )
updateActiveProject()
})
// document.addEventListener('mousewheel', function(e){
// animateBackground(e.deltaY)
// return false
// })
var lastY = 0
document.addEventListener('touchstart', function (e){
var currentY = e.touches[0].clientY
lastY = currentY
})
document.addEventListener('touchmove', function (e){
var currentY = e.touches[0].clientY
var delta = currentY - lastY
animateBackground(-delta)
lastY = currentY
})
document.addEventListener('touchend', function (e){
lastY = 0
})
var lastScrollTop = (window.pageYOffset || document.documentElement.scrollTop) - (document.documentElement.clientTop || 0)
function animateBackground () {
var doc = document.documentElement
var scrollTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0)
var delta = scrollTop - lastScrollTop
if (
(delta < 0 && scrollTop > 0) ||
(delta > 0 && scrollTop + window.innerHeight < document.body.clientHeight)
) {
particles.rotation.x -= delta / 3000
renderer.render( scene, camera )
}
lastScrollTop = scrollTop
}
function updateActiveProject (event) {
var pageHeight = document.body.offsetHeight
var mouseOffset = !!event.clientY ? window.innerHeight / 2 - event.clientY : 0
var doc = document.documentElement
var scrollTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0)
var nodes = Array.prototype.slice.call(document.querySelectorAll('.projects_project'))
var scrollRatio = scrollTop / (pageHeight - window.innerHeight)
var closestNode = {
id: -1,
distance: 1000000000
}
nodes.forEach(function(n, id) {
var distance = Math.abs(n.offsetTop - scrollTop - window.innerHeight / 2 + n.offsetHeight / 2)
if (distance < closestNode.distance) {
closestNode = {
id,
distance
}
}
})
nodes.forEach(function(n, id) {
if (id === closestNode.id) {
n.className = 'projects_project'
} else {
n.className = 'projects_project inactive'
}
})
}
</script>
</body>