generated from ParametricPress/issue-02-article-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.idyll
105 lines (88 loc) · 4.01 KB
/
index.idyll
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
[meta title:"The Climate Issue" description:"The Parametric Press returns"
shareImageUrl:"https://parametric.press/issue-02/static/images/share.png"
shareImageWidth:"880"
shareImageHeight:"440" /]
[var name:"parametricSlug" value:"02-issue-cover" /]
[data name:"articles" source:"articles.json" /]
[var name:"selectedArticle" value:"corporations" /]
[var name:"selectedArticleIndex" value:0 /]
[var name:"cancelTimeout" value:false /]
[Nav fullWidth:true /]
// [SelectionCycle selectedIndex:selectedArticleIndex selectedArticle:selectedArticle articles:articles cancelTimeout:cancelTimeout /]
[Preload images:`articles.map((a) => 'static/images/' + articles[selectedArticleIndex].image)` /]
[EarthCursor fullWidth:true /]
[FullWidth]
[div className:"cover-container"]
[div className:"left"]
[div className:"article-titles" ]
[div className:`"article-link-container" + (selectedArticleIndex === 0 ? ' selected' : '') ` onMouseEnter:`selectedArticle = articles[0].slug; selectedArticleIndex = 0; cancelTimeout = true; ` ]
[a href:`"./" + articles[0].slug + "/"`]
[Display value:`articles[0].title` /]
[/a]
[div className:"article-authors"]
[Display value:`articles[0].author` /]
[/div]
[/div]
[div className:"divider" /]
[div className:`"article-link-container" + (selectedArticleIndex === 1 ? ' selected' : '') ` onMouseEnter:`selectedArticle = articles[1].slug; selectedArticleIndex = 1; cancelTimeout = true; ` ]
[a href:`"./" + articles[1].slug + "/"`]
[Display value:`articles[1].title` /]
[/a]
[div className:"article-authors"]
[Display value:`articles[1].author` /]
[/div]
[/div]
[div className:"divider" /]
[div className:`"article-link-container" + (selectedArticleIndex === 2 ? ' selected' : '') ` onMouseEnter:`selectedArticle = articles[2].slug; selectedArticleIndex = 2; cancelTimeout = true; ` ]
[a href:`"./" + articles[2].slug + "/"`]
[Display value:`articles[2].title` /]
[/a]
[div className:"article-authors"]
[Display value:`articles[2].author` /]
[/div]
[/div]
[div className:"divider" /]
[div className:`"article-link-container" + (selectedArticleIndex === 3 ? ' selected' : '') ` onMouseEnter:`selectedArticle = articles[3].slug; selectedArticleIndex = 3; cancelTimeout = true; ` ]
[a href:`"./" + articles[3].slug + "/"`]
[Display value:`articles[3].title` /]
[/a]
[div className:"article-authors"]
[Display value:`articles[3].author` /]
[/div]
[/div]
[div className:"divider" /]
[div className:`"article-link-container" + (selectedArticleIndex === 4 ? ' selected' : '') ` onMouseEnter:`selectedArticle = articles[4].slug; selectedArticleIndex = 4; cancelTimeout = true; ` ]
[a href:`"./" + articles[4].slug + "/"`]
[Display value:`articles[4].title` /]
[/a]
[div className:"article-authors"]
[Display value:`articles[4].author` /]
[/div]
[/div]
[/div]
[hr /]
[div className:"information-container"]
[div className:"information"]
[a href:"./editors-note"]Editors' Note[/a]
[/div]
[div className:"information"]
[a href:"/about"]About Us[/a]
[/div]
[/div]
[/div]
[div className:"right"]
[div className:"article-visual-container"]
[div className:"article-visual"]
[a href:`"./" + articles[selectedArticleIndex].slug + "/" `]
[img src:`'static/images/' + articles[selectedArticleIndex].image` /]
[div className:"description-text"]
[Display value:`articles[selectedArticleIndex].description ` /]
[/div]
[/a]
[/div]
[/div]
[/div]
[/div]
[/FullWidth]
// Uncomment before pub
[Analytics google:"UA-139053456-1" tag:parametricSlug /]