Skip to content

Commit

Permalink
Update Galah playground with a short description and a link to the Ga…
Browse files Browse the repository at this point in the history
…lah GitHub repo
  • Loading branch information
stackotter committed Apr 21, 2024
1 parent ed1eb7d commit 5d04f2e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Sources/GalahWeb/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ func create(
return element
}

create("h1") { $0.textContent = "Galah playground" }

create("style") { stylesheet in
stylesheet.innerHTML =
"""
Expand All @@ -35,6 +33,10 @@ create("style") { stylesheet in
max-width: 80rem;
}
h1 {
margin-top: 1rem;
}
#split {
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -74,6 +76,16 @@ create("style") { stylesheet in
"""
}

create("h1") { $0.textContent = "Galah playgrnd" }

create("p") {
$0.innerHTML =
"""
Galah is a scripting language with the goal of being lightweight and embeddable in Swift applications.
Visit <a href="https://github.com/stackotter/galah">the Galah GitHub repository</a> to find out more.
"""
}

let split = create("div") { $0.id = "split" }
let textarea = create("textarea", in: split) { textarea in
textarea.id = "code"
Expand Down
Binary file modified static/main.wasm.gz
Binary file not shown.

0 comments on commit 5d04f2e

Please sign in to comment.