aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter0_basics/lesson00_hello_world
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-12-21 14:03:41 +0000
committerLouis Pilfold <louis@lpil.uk>2023-12-21 14:03:41 +0000
commit4efb34bd728732101432843ed0bfbeb971272287 (patch)
tree71b3b767c417809d92280cec64424c31c9a475be /src/content/chapter0_basics/lesson00_hello_world
parent2a6ae1fa5408247c95bf4a7d59e5038342a2a125 (diff)
downloadtour-4efb34bd728732101432843ed0bfbeb971272287.tar.gz
tour-4efb34bd728732101432843ed0bfbeb971272287.zip
Add chapters
Diffstat (limited to 'src/content/chapter0_basics/lesson00_hello_world')
-rw-r--r--src/content/chapter0_basics/lesson00_hello_world/code.gleam5
-rw-r--r--src/content/chapter0_basics/lesson00_hello_world/text.html26
2 files changed, 31 insertions, 0 deletions
diff --git a/src/content/chapter0_basics/lesson00_hello_world/code.gleam b/src/content/chapter0_basics/lesson00_hello_world/code.gleam
new file mode 100644
index 0000000..30530b2
--- /dev/null
+++ b/src/content/chapter0_basics/lesson00_hello_world/code.gleam
@@ -0,0 +1,5 @@
+import gleam/io
+
+pub fn main() {
+ io.println("Hello, Joe!")
+}
diff --git a/src/content/chapter0_basics/lesson00_hello_world/text.html b/src/content/chapter0_basics/lesson00_hello_world/text.html
new file mode 100644
index 0000000..cb41be9
--- /dev/null
+++ b/src/content/chapter0_basics/lesson00_hello_world/text.html
@@ -0,0 +1,26 @@
+<h2>Hello, friend 💫</h2>
+<p>
+ Welcome to Try Gleam! An interactive tour of the Gleam programming language.
+</p>
+<p>
+ It covers all aspects of the Gleam language, and assuming you have some
+ prior programming experience should teach you everything you need to write
+ real programs in Gleam.
+</p>
+<p>
+ The tour is interactive! The code shown is editable and will be compiled and
+ evaluated as you type. Anything you print using <code>io.println</code> or
+ <code>io.debug</code> will be shown in the bottom section, along with any
+ compile errors and warnings. To evaluate Gleam code the tour compiles Gleam to
+ JavaScript and runs it, all entirely within your browser window.
+</p>
+<p>
+ If at any point you get stuck or have a question do not hesitate to ask in
+ <a href="https://discord.gg/Fm8Pwmy">the Gleam Discord server</a>. We're here
+ to help, and if you find something confusing then it's likely others will too,
+ and we want to know about it so we can improve the tour.
+</p>
+<p>
+ OK, let's go. Click "Next" to get started, or click "Index" to jump to a
+ specific topic.
+</p>