-
Notifications
You must be signed in to change notification settings - Fork 1
/
basic.sly
103 lines (78 loc) · 1.74 KB
/
basic.sly
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
# This is a proof of concept presentation file
# for the Sly markup language
#
# The goal for this project is to produce working
# slideshows from textual formats
#
# Using slydes, the Sly processing tool, this presentation
# can be viewed either in a native client or exported as
# either HTML, PDF, or (eventually) PPT
# Setup our color palette
let coolGray = (26, 83, 92);
mut paleGreen = (247, 255, 247);
let tealBlue = (78, 205, 196);
macro titleStyle() {
self.font = "Fira Code";
self.fontSize = 42;
self.fontColor = tealBlue;
self.justify = "center";
}
macro contentStyle() {
self.justify = "left";
self.font = "Times New Roman";
self.fontSize = 32;
self.fontColor = paleGreen;
}
slide intro {
self.backgroundColor = coolGray;
block title {
$titleStyle();
---
Welcome!
This is an example of Slydes
---
}
}
slide firstSlide : intro {
block title {
$titleStyle();
---These are my thoughts---
}
block pointOne {
$contentStyle();
--- - This is my first point ---
}
block pointTwo : pointOne {
--- - This is my second point ---
}
}
slide secondSlide : intro {
block title {
$titleStyle();
---How about this?---
}
block body1 {
$contentStyle();
self.justify = "right";
self.fontSize = 38;
---
I'm boldly making my point---
}
block body2 : body1 {
self.fontColor = "red";
self.justify = "center";
---With some style---
}
block body3 : body2 {
self.justify = "left";
---What do you think?---
}
}
slide conclusion : intro {
block title {
$titleStyle();
---
We're through
---
}
}