-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
499 lines (484 loc) · 21 KB
/
index.js
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
import dynamic from 'next/dynamic';
// import { ScrollContainer, ScrollPage, batch, Fade, FadeIn, FadeOut, Move, MoveIn, MoveOut, Sticky, StickyIn, StickyOut, Zoom, ZoomIn, ZoomOut } from "react-scroll-motion";
import ImageFilter from 'react-image-filter';
import Window from '../components/landing/Window';
import {
MapIcon,
DocumentSearchIcon,
CloudUploadIcon,
DatabaseIcon,
GlobeIcon,
} from '@heroicons/react/outline';
import { useTranslation } from 'next-i18next';
const Animator = dynamic(
import('react-scroll-motion').then((it) => it.Animator),
{ ssr: false }
);
import Link from 'next/link';
import React, { useState, useEffect } from 'react';
const duotoneCraft = {
architectural: { one: [57, 73, 130], two: [236, 223, 190] },
cuisine: { one: [115, 51, 11], two: [242, 218, 144] },
decorative: { one: [72, 111, 78], two: [229, 206, 195] },
fashion: { one: [179, 103, 79], two: [169, 200, 231] },
functional: { one: [11, 96, 115], two: [229, 200, 171] },
furniture: { one: [105, 70, 70], two: [212, 234, 217] },
textiles: { one: [115, 92, 22], two: [200, 219, 225] },
default: { one: [71, 30, 16], two: [234, 216, 211] },
};
const data = {
video: {
link: false,
onclick: () => {
const video = document.getElementsByClassName('video__landing')[0];
console.log('video ', video);
if (video !== undefined) {
video.scrollIntoView({ behavior: 'smooth' });
}
console.log('clicked');
},
static: './landing/video.png',
filepath: './landing/video.gif',
heading: 'Introduction to Living Heritage Atlas | Beirut',
subheading: '',
body: [],
style: { height: '27%', width: '35%', top: '61%', left: '17.6%' },
},
circus: {
link: '/discover/139558956',
filepath: './landing/circus.jpg',
heading: 'Circus Hub',
subheading:
'Cirbus Hub | Est. 2010 · Circus Props · Qobaiyat, Remeil, Beirut',
body: [
'Paramaz Yepremiao, the owner of Circus Hub, specializes in the manufacture of circus equipment.',
'He/She has shared his/her practice with the Living Heritage Atlas, and his business is one of over 110 current craft workshops that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '10.0145%',
height: '9.290060%',
left: '81.226277%',
top: '12.00811%',
},
},
badguer: {
link: '/discover',
filepath: './landing/badguer.jpg',
heading: 'Badguer',
subheading: 'Badguer · Embroidery · Bourj Hammoud, El Meten',
body: [
'Arpi Mangasserian is the founder of Badguèr, an arts incubator, cultural platform, and multipurpose space promoting Armenian heritage, cuisine, and customs.',
'He/She has shared his/her practice with the Living Heritage Atlas, and his business is one of over 110 current craft workshops that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '8.729%',
height: '12.04868%',
left: '1.19708%',
top: '12.089%',
},
},
coin: {
link: '/discover/138961186',
filepath: './landing/coin.jpg',
heading: "Coin d'Art",
subheading:
"Coin d'Art | Est. 1990 · Framing, Painting, Printing, Woodwork · Rmeil, Beirut",
body: [
"Located in Remeil, Beirut, Coin d'Art is a family run business that specializes in framing, painting, printing and woodwork.",
'He/She has shared his/her practice with the Living Heritage Atlas, and his business is one of over 110 current craft workshops that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '6.627737%',
height: '9.29006%',
left: '93.37226%',
top: '12.00811%',
},
},
doniguian: {
link: '/discover/149744914',
filepath: './landing/doniguian.jpg',
heading: 'Doniguian Printing House',
subheading:
'Doniguian Printing House | 2023 · Printing, Packaging · Mar Mikhael, Medawar, Beirut',
body: [
'Guy Doniguian is a printmaker at Doniguian Printing House.',
'He/She has shared his/her practice with the Living Heritage Atlas, and his business is one of over 110 current craft workshops that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '9.78102%',
height: '10.10141%',
left: '69.956%',
top: '4.74645%',
},
},
donikian: {
link: '/discover/148266688',
filepath: './landing/donikian.jpeg',
heading: 'Donikian Leather',
subheading:
'Donikian Leather | 2014 · Leather · Badguèr, Der Melkonian Street, Bourj Hammoud',
body: [
'Sarkis Donikian, craftsperson and owner of Donikian Leather, in his shop.',
'This photo is one of over 800 archival images that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '13.021%',
height: '12.0081%',
left: '40.496%',
top: '2.920%',
},
},
jackson: {
link: '/discover/148266023',
filepath: './landing/jackson.jpg',
heading: 'Hagop "Jackson" Keshishian',
subheading:
'Hagop “Jackson” Keshishian | 2023 · Shoemaker · Bourj Hammoud, El Meten',
body: [
'Hagop “Jackson” Keshishian works on leather shoes in his workshop.',
'He/She has shared his/her practice with the Living Heritage Atlas, and his business is one of over 110 current craft workshops that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '9.78%',
height: '18.093%',
left: '83.06569%',
top: '39.269%',
},
},
noubar: {
link: '/discover/148274420',
filepath: './landing/noubar.jpg',
heading: 'Noubar Eskidjian',
subheading: 'Noubar Eskidjian | 2023 · Copper · Bourj Hammoud, El Meten',
body: [
'A craftsperson, Noubar Eskidjian, uses industrial machinery to carefully mold copper sculptures.',
'Having practiced this craft for decades, Noubar owns and operates his craft workshop in Bourj Hammoud.',
'He/She has shared his/her practice with the Living Heritage Atlas, and his business is one of over 110 current craft workshops that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '9.927%',
height: '18.3367%',
left: '0%',
top: '27.1399%',
},
},
piper: {
link: '/discover/145593040',
filepath: './landing/piper.jpg',
heading: 'Peter Khatcherian',
subheading:
'Peter Khatcherian | 2022 · Pipe maker · Nor Marash, Bourj Hammoud, El Meten',
body: [
'Peter Khatcherian hand crafts wooden pipes.',
'He/She has shared his/her practice with the Living Heritage Atlas, and his business is one of over 110 current craft workshops that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '6.598%',
height: '9.16%',
left: '51%',
top: '90.8%',
},
},
archive_tour: {
link: '/about',
filepath: './landing/archive_tour.jpg',
heading: 'Archival Image Tour',
subheading: 'Uncovering the past through digital tools',
body: [
'During archival tours both residents and visitors explored the rich archival dataset of the Living Heritage Atlas through the stickers distributed around Beirut; people who joined these tours were encouraged to message a WhatsApp code written on the stickers, read out loud the stories delivered to their phones and collectively participate in a community exercise to acknowledge the historic presence (and often displacement) of workshops in Beirut.',
],
style: { width: '13.6%', height: '18.9%', left: '54.7%', top: '69.7%' },
},
naser: {
link: '/discover/145875023',
filepath: './landing/naser.jpg',
heading: 'Abu Al-Nasr Market',
subheading: 'Abu Al-Nasr Market | 1900 · Wickerwork · Beirut',
body: [
'Straw chairs and household supplies at a souk in Abu Al-Nasr Market.',
'This photo is one of over 800 archival images that have been mapped and documented in the Living Heritage Atlas database.',
],
style: { width: '4.846%', height: '9.12%', left: '69.81%', top: '69.61%' },
},
tannery: {
link: '/discover/144975829',
filepath: './landing/tannery.jpg',
heading: 'The Tannery',
subheading:
'The Tannery | 1972 · Leather · Beirut River, Bourj Hammoud, El Meten Hayek, J. Bourj Hammoud: l’évolution du site urbain. Institut français du Proche-Orient (1972). Courtesy of Institut français du Proche-Orient.',
body: [
'In this 1972 photograph, children of Nor Marash proudly demonstrate their tanner skills and displayed tanned leather on a wooden cart. The art of leather working is historically rooted in Bourj Hammoud, a place of refuge for many asylum seekers. The craft of tannery represents the survival of an inherited skill that has been passed down over generations and connects to the collective identity of the resilient community in Bourj Hammoud.',
'This photo is one of over 800 archival images that have been mapped and documented in the Living Heritage Atlas database.',
],
style: {
width: '9.8394160583%',
height: '9.12778904%',
left: '87.41605%',
top: '0%',
},
},
upholstery: {
link: '/discover/151673966',
filepath: './landing/upholstery.jpg',
heading: "Upholsterer's Souk",
subheading:
'Upholsterer’s Souk | 1950 · Upholstery · Serail, Zoukak el-Blatt, Beirut',
body: [
'Upholsterer’s souk near Riad as-Solh square.',
'This photo is one of over 800 archival images that have been mapped and documented in the Living Heritage Atlas database.',
],
style: { width: '13.722%', height: '19.066%', left: '12%', top: '39.269%' },
},
street: {
link: '/about',
filepath: './landing/street.jpg',
heading: 'Bourj Hammoud',
subheading: '',
body: [
'This Bourj Hammoud tour allowed participants to meet many craft workshops due to the cluster of craftspeople in the area of Bourj Hammoud; the tour started with meeting Hagop Keshishian, known as Jackson, a local craftsperson who makes and repairs shoes, and moved to meet his next-door neighbor Bedros Keshishian who works in woodworks and carpentry. The tour then resumed with meeting Gregor Ichkerian, a metal sculptor who works with his son, and then Peter Khatcherian, the only pipe maker in the Arab Region. The tour ended with meeting Noubar Eskidjian, who specializes in copper work.',
],
style: {
width: '9.78%',
height: '9.046%',
left: '83.0656%',
top: '60.5679%',
},
},
panel: {
link: '/about',
filepath: './landing/panel.jpg',
heading: 'Roundtable Discussions',
subheading:
'Documenting Craftsmanship · Legitimizing Craftspeople’s Presence · Mobilizing Crafts in Shared Spaces',
body: [
'In July 2022, the Future Heritage Lab and the Civic Data Design Lab at MIT, the research team that created the Living Heritage Atlas, organized a roundtable discussion focused on preserving the living heritage of craftsmanship in Beirut. Over a dozen prominent stakeholders involved in the craftsmanship community came together to discuss three main topics: documenting craftsmanship, legitimizing craftpeoples’ presence, and mobilizing shared spaces. The event was held in the Abroyan Factory, a former textile factory and adapted event space in Bourj Hammoud.',
],
style: {
width: '24.408%',
height: '19.066%',
left: '28.05%',
top: '39.269%',
},
},
panel_2: {
link: '/about',
filepath: './landing/panel_2.jpg',
heading: 'Community Engagement',
subheading: "Legitimizing craftspeople's presence",
body: [
'In July 2022, Living Heritage Atlas held workshop walking tours, a participatory mapping workshop, and a panel discussion on documenting craftsmanship, legitimizing craftpeoples’ presence, and mobilizing shared spaces to connect stakeholders working on the craftsmanship in Beirut.',
],
style: {
width: '17.4598%',
height: '18.174%',
left: '62.277%',
top: '18.05273%',
},
},
mappathon: {
link: '/about',
filepath: './landing/mappathon.jpg',
heading: 'Mappathon',
subheading: '',
body: [
'Participants were invited to contribute to the digital archive through a mapathon, a community mapping event, in which participants brought along a living heritage item (such as photos, maps, and fabric) to be scanned and returned to them. Over 70 participants were presented with detailed maps of Beirut in which they could locate and name crafts workshops that haven’t been previously located by the team. The points were added to the online directory and archival database in real-time and the attendees were provided with detailed instructions on how to contribute their points to be reviewed, through the website directly.',
],
style: {
width: '19.5036%',
height: '18.0933%',
left: '40.496%',
top: '18.05273%',
},
},
craft_tour: {
link: '/about',
filepath: './landing/craft_tour.jpg',
heading: 'Craft Workshop Tour',
subheading: 'Exploring local practices first hand',
body: [
'Visitors and local residents were invited to join walking tours in different areas of the city and meet with local craftspeople who toured the group through their shops. Craftspeople explained their practices by inscribing them into a more complex narrative of family heritage and knowledge.',
'The event hosted 15 individuals at the time to maximize the learning experience and allow for connections to build between the craftsmen and the participants.',
// 'Mar-Mikhael-Gemmayze Tour (July 5): the Living Heritage Atlas team and participants toured several local craftspeople with different specialties and heard their stories: Mr. Doniguian, who runs a printing press on Armenia street, Studio Kunukku, a block-printing studio, The Circus Hub, one of the first manufacturers of circus equipment, and Coin d’Art, a framing and art/painting restoration family business.',
// 'Bourj Hammoud Tour (July 8): this tour allowed participants to meet many craft workshops due to the cluster of craftspeople in the area of Bourj Hammoud; the tour started with meeting Hagop Keshishian, known as Jackson, a local craftsperson who makes and repairs shoes, and moved to meet his next-door neighbor Bedros Keshishian who works in woodworks and carpentry. The tour then resumed with meeting Gregor Ichkerian, a metal sculptor who works with his son, and then Peter Khatcherian, the only pipe maker in the Arab Region. The tour ended with meeting Noubar Eskidjian who specializes in copper work.',
],
style: {
width: '13.6%',
height: '12.210%',
left: '81.86%',
top: '24.016%',
},
},
map: {
link: '/map',
static: './landing/map.png',
filepath: './landing/map.gif',
heading: 'Map',
subheading: 'the spatial presence of craftsmanship',
body: [
'A selection of current and archival visual documentation contained in the Living Heritage Atlas database are displayed to the right — their placement creates a stylized map of the Beirut region. Living Heritage Atlas includes over 800 entries of historic craft workshops spaces and current craft workshops collected through on-site investigations, archival research, and community-based engagement. Each image has been mapped, and can be viewed in the context of Beirut’s urban fabric, thanks to a series of high-resolution historic maps. Explore the complete atlas online to discover Beirut’s intangible heritage through the interactive map.',
],
style: {
width: '26.5109%',
height: '27.5456%',
left: '12%',
top: '8.6004%',
},
},
discover: {
link: '/discover',
static: './landing/discover.png',
filepath: './landing/discover.gif',
heading: 'Discover',
subheading: 'current craft workshops and archival images of craftsmanship',
body: [
'Living Heritage Atlas includes over 800 entries of historic craft spaces and current craft workshops collected through interviews, archival research, fieldwork, and community-based engagement. This online atlas documents information including the location, dates of operation, and type of craft captured in each image. Explore the complete atlas online to discover Beirut’s intangible heritage through these historic and contemporary images.',
],
style: {
width: '26.510%',
height: '27.62%',
left: '54.510%',
top: '39.269%',
},
},
};
const Index = ({ i18n }) => {
const default_text = {
heading: 'Living Heritage Atlas',
subheading: 'mapping and activating Beirut’s crafts',
body: [
'Living Heritage Atlas documents and visualizes Beirut’s living heritage of' +
' artisanship by mapping its craftspeople and cataloging its crafts through an open-source database,' +
' viewable through an interactive website. This project celebrates the past and present of local artisanship' +
' through archival data, interviews and community workshops.',
"The goal of this atlas is to shed light on the intangible heritage of Beirut by highlighting craftspeople's cultural significance, vulnerability, and potential role in crafting the future of Beirut.",
],
};
const { t } = useTranslation();
const [text, setText] = useState(default_text);
const [touchscreen, setTouchscreen] = useState(false);
useEffect(() => {
setTouchscreen(window.matchMedia('(any-pointer: coarse)').matches);
});
function hover(key) {
setText(data[key]);
const cover = document.getElementById(`${key}-cover`);
const image = document.getElementById(`${key}-img`);
const stat = document.getElementById(`${key}-static`);
cover.classList.add('active');
image.classList.add('active');
if (stat !== undefined) stat?.classList?.add('active');
}
function unhover(key) {
setText(default_text);
const cover = document.getElementById(`${key}-cover`);
const image = document.getElementById(`${key}-img`);
const stat = document.getElementById(`${key}-static`);
cover.classList.remove('active');
image.classList.remove('active');
if (stat !== undefined) stat?.classList?.remove('active');
}
function renderText(key, value) {
return (
<div
onClick={() => {
if (touchscreen) {
const cover = document.getElementById(`${key}-cover`);
const active = cover.classList.contains('active');
if (active) {
unhover(key);
} else hover(key);
} else {
if (value.link) {
window.location.href = value.link;
} else {
value?.onclick();
}
}
}}
onMouseEnter={() => {
if (!touchscreen) hover(key);
}}
onMouseLeave={() => {
if (!touchscreen) unhover(key);
}}
>
<img
id={`${key}-img`}
className="landing_window"
src={value.filepath}
style={value.style}
/>
{value?.static && (
<img
src={value.static}
id={`${key}-static`}
className="static_cover"
style={value.style}
/>
)}
<div id={`${key}-cover`} className="image_cover" style={value.style} />
</div>
);
}
function renderGrid() {
const grid = [];
for (const [key, value] of Object.entries(data)) {
grid.push(<> {renderText(key, value)}</>);
}
return grid;
}
return (
<div>
<div className="container__landing">
<div className="subcontainer__landing">
<div className="container col-md-4 col-sm-12 landing_text">
<div>
<h3>{t(text.heading)}</h3>
<p>{t(text.subheading)}</p>
</div>
<div>
{text.body.map((x) => {
return <p>{t(x)}</p>;
})}
</div>
{touchscreen && text.link && (
<div>
<p>
Click <a href={text.link}>here</a> to learn more
</p>
</div>
)}
</div>
<div className="container col-md-8 col-sm-12 grid_container">
<div className="window_grid">{renderGrid()}</div>
</div>
</div>
<div className="video__landing">
<div
style={{
padding: '0 0 0 0',
position: 'relative',
}}
>
<iframe
src="https://player.vimeo.com/video/783337873?h=8529ccc1f9&autoplay=0&title=0&byline=0&portrait=0"
style={{
position: 'absolute',
top: '50%',
transform: 'translateY(-50%)',
// left: 0,
width: '100vw',
height: '100%',
}}
frameborder="0"
allow="fullscreen; picture-in-picture"
allowFullScreen
></iframe>
</div>
<script src="https://player.vimeo.com/api/player.js"></script>
</div>
</div>
</div>
);
};
export default Index;