Skip to content

Commit

Permalink
minor(examples): update rstream-grid sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 28, 2018
1 parent 115dff2 commit 1c469af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions examples/rstream-grid/src/components/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { slider, SliderOpts } from "./slider";
export const sidebar = (ctx: AppContext, ...specs: SliderOpts[]) => {
const sliders = specs.map((s) => slider(ctx, s));
return ["div", ctx.ui.sidebar.root,
["h2", ctx.ui.sidebar.title, "SVG Grid"],
["h3", ctx.ui.sidebar.title, "@thi.ng/rstream grid"],
...sliders,
[buttonGroup,
[[ev.UNDO], "undo"],
Expand All @@ -17,8 +17,12 @@ export const sidebar = (ctx: AppContext, ...specs: SliderOpts[]) => {
[[ev.SAVE_SVG], "download svg"]],
[buttonGroup,
[[ev.SAVE_ANIM], "download anim"]],
["div",
"Undo / Redo can also be triggered via ",
["code", "Ctrl+Z"], " / ", ["code", "Ctrl+Y"],
". The last 1000 edits are stored."],
["div", ctx.ui.footer,
[link, "https://github.com/thi-ng/umbrella/tree/master/examples/rs-undo", "Source"],
[link, "https://github.com/thi-ng/umbrella/tree/master/examples/rstream-grid", "Source"],
["br"],
"Made with ",
[link, "https://github.com/thi-ng/umbrella/", "@thi.ng/umbrella"]]
Expand Down
2 changes: 1 addition & 1 deletion examples/rstream-grid/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const CONFIG: AppConfig = {
link: { class: "pointer link dim white b" },
root: { class: "vw-100 vh-100 flex" },
sidebar: {
root: { class: "bg-near-black pa2 pt3 w5 f7" },
root: { class: `bg-near-black pa2 pt3 w5 f7 ${FG_COL}` },
title: { class: `mt0 ${FG_COL}` },
},
slider: {
Expand Down

0 comments on commit 1c469af

Please sign in to comment.