-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧪 labsite: Add Next Button to Labs (#424)
Update `.htmlf` generation from `.md` in `build-tools/labsite-gen/main.go`: Generate `<button class="next-btn">Next</button>` from markdown paragraphs only containing marker `[Next]`. Use the next button as additional `<deatils>....</details>` end marker in Markdown, in addition to Heading and ThematicBreak. Add JS and CSS to align with design. Rework contents to better flow and fit with Next button concept. Remove Bouncing Ball example from `if` lab listing (too much). This merges the following commits: * labsite: Remove bounce sample from lab listing * labsite: Add tooling for Next button * labsite: Update JS and CSS for Next button * labsite: Update contents to align with Next button (1/2) * labsite: Update contents to align with Next button (2/2) build-tools/labsite-gen/main.go | 49 +++++++- build-tools/labsite-gen/main_test.go | 78 +++++++++++++ frontend/lab/css/overrides.css | 64 +++++++---- frontend/lab/samples/ifs/alpha.htmlf | 17 ++- frontend/lab/samples/ifs/alpha.md | 22 +++- frontend/lab/samples/ifs/bounce.htmlf | 3 +- frontend/lab/samples/ifs/bounce.md | 4 +- frontend/lab/samples/ifs/chat.evy | 3 +- frontend/lab/samples/ifs/chat.htmlf | 68 ++++++------ frontend/lab/samples/ifs/chat.md | 47 +++++--- frontend/lab/samples/ifs/pi.htmlf | 99 ++++++++--------- frontend/lab/samples/ifs/pi.md | 64 +++++------ frontend/lab/samples/ifs/pulse.htmlf | 82 ++++++++------ frontend/lab/samples/ifs/pulse.md | 85 ++++++++------ frontend/lab/samples/ifs/stars.htmlf | 42 ++++--- frontend/lab/samples/ifs/stars.md | 50 ++++++--- frontend/lab/samples/ifs/welcome-ifs.htmlf | 2 +- frontend/lab/samples/ifs/welcome-ifs.md | 2 +- frontend/lab/samples/intro/circles.htmlf | 21 +++- frontend/lab/samples/intro/circles.md | 27 +++-- frontend/lab/samples/intro/coords.htmlf | 4 +- frontend/lab/samples/intro/coords.md | 4 +- .../lab/samples/intro/img/1-jumpy-circle.gif | Bin 0 -> 25386 bytes frontend/lab/samples/intro/loop.htmlf | 20 ++-- frontend/lab/samples/intro/loop.md | 23 ++-- frontend/lab/samples/intro/move.htmlf | 105 ++++++++++++------ frontend/lab/samples/intro/move.md | 94 +++++++++++----- frontend/lab/samples/intro/var.htmlf | 15 ++- frontend/lab/samples/intro/var.md | 20 +++- .../lab/samples/loops/gradient-show.htmlf | 4 +- frontend/lab/samples/loops/gradient-show.md | 4 +- frontend/lab/samples/loops/gradient.htmlf | 29 +++-- frontend/lab/samples/loops/gradient.md | 39 +++++-- frontend/lab/samples/loops/hsl.htmlf | 4 +- frontend/lab/samples/loops/hsl.md | 4 +- frontend/lab/samples/loops/lines.htmlf | 4 +- frontend/lab/samples/loops/lines.md | 4 +- frontend/lab/samples/loops/sequence.htmlf | 80 ++++++------- frontend/lab/samples/loops/sequence.md | 37 +++--- frontend/lab/samples/loops/target-show.htmlf | 2 +- frontend/lab/samples/loops/target-show.md | 2 +- frontend/lab/samples/loops/target.htmlf | 15 ++- frontend/lab/samples/loops/target.md | 20 +++- frontend/lab/samples/samples.json | 2 +- frontend/play/index.js | 61 +++++++--- 45 files changed, 940 insertions(+), 485 deletions(-) Pull-request: #424
- Loading branch information
Showing
45 changed files
with
940 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.