diff --git a/doc/scittle.svg b/doc/scittle.svg new file mode 100644 index 0000000..ecb5dd5 --- /dev/null +++ b/doc/scittle.svg @@ -0,0 +1,129 @@ + + diff --git a/resources/public/css/style.css b/resources/public/css/style.css index 55ef6c5..a6c3613 100644 --- a/resources/public/css/style.css +++ b/resources/public/css/style.css @@ -1,7 +1,51 @@ +body { + font-family: Arial; + width: 100%; + max-width: 1024px; + margin: auto; + background-color: #FBFAF8; + color: #302F2B; + font-size: 18px; +} + +h1 > img { + height: 1em; + margin-right: 0.25em; +} + +a { + color: #2176BC; +} + +button:not(#app button) { + display: inline-block; + outline: 0; + border: 0; + cursor: pointer; + background-color: #4299e1; + border-radius: 4px; + padding: 8px 16px; + font-size: 16px; + border-bottom: 4px solid #2b6cb0; + font-weight: 700; + color: white; + line-height: 26px; +} + +input, textarea { + border: 2px solid #888; + padding: 0.25em 0.5em; + border-radius: 4px; + font-size: 1em; +} + +code { + border-radius: 4px; +} + div#app { color:#666; - font-family: Arial; } div#app td diff --git a/resources/public/index.html b/resources/public/index.html index ae0fdfd..7497d58 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -66,10 +66,12 @@ (.highlightElement js/hljs code)))) (.send req))) + (.highlightAll js/hljs) + @@ -77,7 +79,7 @@
-This project exposes the Small Clojure Interpreter in the browser in such a way that you can use it with the script tag.
@@ -105,7 +107,7 @@ When you have a file on your server, say cljs/script.cljs, you can load it using the src attribute:
- <script src="cljs/script.cljs" type="application/x-scittle"></script>
+<script src="cljs/script.cljs" type="application/x-scittle"></script>
@@ -136,7 +138,6 @@
in addition to scittle.js, you need to include scittle.cljs-ajax.js:
-
@@ -151,20 +152,20 @@
:scittle
reader conditional like this:
- #?(:scittle
- (js/console.log "In scittle")
- :org.babashka/nbb
- (js/console.log "In nbb")
- :cljs
- (js/console.log "In cljs"))
+
+#?(:scittle
+ (js/console.log "In scittle")
+ :org.babashka/nbb
+ (js/console.log "In nbb")
+ :cljs
+ (js/console.log "In cljs"))
JS libraries
To use JavaScript libraries with Scittle,
- see README.md
+ see js-libraries.md
REPL
diff --git a/resources/public/scittle.svg b/resources/public/scittle.svg
new file mode 120000
index 0000000..ce90f3b
--- /dev/null
+++ b/resources/public/scittle.svg
@@ -0,0 +1 @@
+../../doc/scittle.svg
\ No newline at end of file