├── .gitignore
├── LICENSE
├── README.md
├── index.html
├── slides.cljs
└── style.css
/.gitignore:
--------------------------------------------------------------------------------
1 | .*.swp
2 | node_modules/
3 | .lsp/
4 | .clj-kondo/
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2024 Chris McCormick
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Minimal presentation slides for ClojureScript. Made with [Scittle](https://github.com/babashka/scittle/).
2 |
3 | [features](#features) | [quickstart](#quickstart) | [slide format](#slide-format) | [navigation](#navigation) | [dev](#dev) | [about](#about)
4 |
5 | # features
6 |
7 | - Write your slides in Reagent Hiccup.
8 | - Static web app you can upload to any web host.
9 | - Tiny hackable codebase.
10 | - No setup or config, just clone the repo to start.
11 |
12 | Here's a [YouTube video about ClojureScript Tiny Slides](https://www.youtube.com/watch?v=gBt_tBoy1kE).
13 |
14 | 
15 |
16 | # quickstart
17 |
18 | - Clone this repository
19 | - Edit [`slides.cljs`](./slides.cljs) and add your slides.
20 | - Open [`index.html`](./index.html) in your browser.
21 |
22 | To get a live-reloading dev experience you can [Start a `josh` server](#dev).
23 |
24 | # slide format
25 |
26 | Each slide is a `:section` tag like this:
27 |
28 | ```clojure
29 | (defn slides [state]
30 | [:<>
31 | [:section
32 | [:h1 "Hello"]
33 | [:h2 "Your first slide."]]
34 |
35 | [:section
36 | [:h1 "Slide Two"]
37 | [:img {:src "https://w.wiki/CAvg"}]
38 | [:h3 "It's the moon."]]
39 |
40 | ; ...
41 | ```
42 |
43 | # navigation
44 |
45 | Slide navigation keys:
46 |
47 | - Next: RightArrow, DownArrow, PageDown, Spacebar, Enter
48 | - Prev: LeftArrow, UpArrow, PageUp
49 | - First: Home, Escape, Q
50 | - Last: End
51 |
52 | Or tap/click the right/left side of the screen to go foward/backward.
53 |
54 | # dev
55 |
56 | Start a live-reloading dev server:
57 |
58 | ```
59 | echo {} > package.json
60 | npm i cljs-josh
61 | npx josh
62 | ```
63 |
64 | (Or just `josh` if you have done `npm i -g cljs-josh` to install it globally).
65 |
66 | # about
67 |
68 | Built at Barcamp London 2024 for [this talk](https://chr15m.github.io/barcamp-whats-the-point-of-lisp/).
69 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |