generated from fastn-stack/fastn-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.ftd
297 lines (185 loc) · 4.91 KB
/
lib.ftd
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
-- import: sarvom.github.io/poppins/assets as poppins-assets
-- import: fastn/processors as pr
-- component navbar-desktop:
boolean $hover-home: false
boolean $hover-contact: false
-- ftd.row:
width: fill-container
height.fixed.px: 61
background.solid: #fff
align-content: center
anchor: window
z-index: 100
sticky: true
-- ftd.text: HOME
role: $poppins-size-17-600
color: #001
color if {navbar-desktop.hover-home}: #e84a43
$on-mouse-enter$: $ftd.set-bool($a = $navbar-desktop.hover-home, v = true)
$on-mouse-leave$: $ftd.set-bool($a = $navbar-desktop.hover-home, v = false)
align-self: center
padding-left.px: 120
padding-right.px: 60
link: index.html
-- ftd.row:
height: fill-container
-- navbar-button: WHAT WE DO
url: /ThreeFlaneurs/what-we-do/
bg-color: #f1562a
-- navbar-button: WHO WE ARE
url: /ThreeFlaneurs/who-we-are/
bg-color: #9bd22d
-- navbar-button: LATEST NEWS
url: /ThreeFlaneurs/latest-news/
bg-color: #ffaa80
-- navbar-button: 3F JOURNAL
url: /ThreeFlaneurs/3f-journal/
bg-color: #ff8c1a
-- navbar-button: PUBLICATIONS
url: /ThreeFlaneurs/publications/
bg-color: #efef52
-- end: ftd.row
-- ftd.text: CONTACT
role: $poppins-size-17-600
color: #000
color if {navbar-desktop.hover-contact}: #e84a43
$on-mouse-enter$: $ftd.set-bool($a = $navbar-desktop.hover-contact, v = true)
$on-mouse-leave$: $ftd.set-bool($a = $navbar-desktop.hover-contact, v = false)
align-self: center
padding-right.px: 120
padding-left.px: 60
link: index.html#contact-1
-- end: ftd.row
-- end: navbar-desktop
-- boolean $menu-open: false
-- component navbar-mobile:
boolean $hover-home: false
boolean $hover-contact: false
-- ftd.column:
width: fill-container
background.solid: #fff
align-content: center
-- ftd.row:
width: fill-container
align-content: center
id: navbar-mobile
-- ftd.text: HOME
role: $poppins-size-17-600
color: #001
padding.px: 20
color if {navbar-mobile.hover-home}: #e84a43
$on-mouse-enter$: $ftd.set-bool($a = $navbar-mobile.hover-home, v = true)
$on-mouse-leave$: $ftd.set-bool($a = $navbar-mobile.hover-home, v = false)
align-self: center
link: index.html
-- ftd.image:
src: $assets.files.assets.hamburger-menu.svg
height.fixed.px: 30
margin-left.percent: 80
anchor.id: navbar-mobile
$on-click$: $ftd.set-bool($a = $menu-open, v = true)
-- end: ftd.row
-- ftd.column:
height: fill-container
-- navbar-button: WHAT WE DO
url: /what-we-do
bg-color: #f1562a
-- navbar-button: WHO WE ARE
url: /who-we-are
bg-color: #9bd22d
-- navbar-button: LATEST NEWS
url: /latest-news
bg-color: #ffaa80
-- navbar-button: 3F JOURNAL
url: /3f-journal
bg-color: #ff8c1a
-- navbar-button: PUBLICATIONS
url: /publications
bg-color: #efef52
-- end: ftd.column
-- ftd.text: CONTACT
role: $poppins-size-17-600
color: #000
padding.px: 15
color if {navbar-mobile.hover-contact}: #e84a43
$on-mouse-enter$: $ftd.set-bool($a = $navbar-mobile.hover-contact, v = true)
$on-mouse-leave$: $ftd.set-bool($a = $navbar-mobile.hover-contact, v = false)
align-self: center
link: index.html#contact-1
-- end: ftd.column
-- end: navbar-mobile
-- component navbar-dropdown:
-- ftd.row:
if: {menu-open}
width: fill-container
height: fill-container
anchor: window
z-index: 100
spacing: space-between
background.solid: #fff
-- ftd.column:
padding-left.px: 30
padding-top.px: 30
spacing.fixed.px: 30
-- ftd.text: WHAT WE DO
role: $poppins-size-17-600
color: #000
link: /what-we-do
-- ftd.text: WHO WE ARE
role: $poppins-size-17-600
color: #000
link: /who-we-are
-- ftd.text: LATEST NEWS
role: $poppins-size-17-600
color: #000
link: /latest-news
-- ftd.text: 3F JOURNAL
role: $poppins-size-17-600
color: #000
link: /3f-journal
-- ftd.text: PUBLICATIONS
role: $poppins-size-17-600
color: #000
link: /publications
-- end: ftd.column
-- ftd.image:
src: $assets.files.assets.cross.svg
height.fixed.px: 30
margin-top.px: 30
margin-right.px: 15
$on-click$: $ftd.set-bool($a = $menu-open, v = false)
-- end: ftd.row
-- end: navbar-dropdown
-- component navbar-button:
caption name:
string url:
string bg-color:
boolean $hover: false
optional boolean $drop-down: false
-- ftd.column:
width if { ftd.device == "mobile" }: fill-container
height: fill-container
align-content: center
background.solid: $navbar-button.bg-color
-- ftd.text: $navbar-button.name
role: $poppins-size-17-600
color: #fff
padding-vertical.px if {ftd.device == "mobile"}: 10
color if {navbar-button.hover}: #8c8c8c
$on-mouse-enter$: $ftd.set-bool($a = $navbar-button.hover, v = true)
$on-mouse-leave$: $ftd.set-bool($a = $navbar-button.hover, v = false)
padding-horizontal.px: 40
link: $navbar-button.url
-- end: ftd.column
-- end: navbar-button
-- ftd.type poppins-size-17-600-desktop:
size.px: 17
weight: 600
font-family: $poppins-assets.fonts.Poppins
-- ftd.type poppins-size-17-600-mobile:
size.px: 17
weight: 600
font-family: $poppins-assets.fonts.Poppins
-- ftd.responsive-type poppins-size-17-600:
desktop: $poppins-size-17-600-desktop
mobile: $poppins-size-17-600-mobile