generated from fastn-stack/fastn-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FTD.ftd
86 lines (47 loc) · 1.11 KB
/
FTD.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
-- boolean is-mobile: false
-- is-mobile: true
if: $ftd.device == mobile
-- aditi.page: `FTD`
FTD is an open source programming language for writing prose.
-- aditi.h2: CODE
-- aditi.code: Code for `-- Hello World`
lang: ftd
\-- ftd.code:
print("hello world")
-- aditi.h3: OUTPUT
-- whitey1:
print("hello world")
-- ftd.column whitey1:
optional caption title:
optional string label:
body body:
margin-top: $fpm.space.space-6
margin-bottom: $fpm.space.space-6
width: auto
width if $is-mobile: fill
align: left
--- ftd.column:
align: left
padding-vertical: $fpm.space.space-2
padding-horizontal: $fpm.space.space-2
max-width: 756
--- ftd.text:
text: $body
color: $fpm.color.main.text
role: $fpm.type.heading-small
padding-horizontal: $fpm.space.space-7
margin-top: 1
margin-bottom: 1
text-align: left
border-width: 2
--- ftd.text: $title
align: center
role: $fpm.type.copy-tight
color: $fpm.color.main.text
padding-horizontal: $fpm.space.space-7
--- ftd.text: $label
align: left
role: $fpm.type.copy-tight
color: $fpm.color.main.text
padding-horizontal: $fpm.space.space-7
--- container: ftd.main