SelfscribeDownloadOpen the app

Club noticeboard

Countdowns, a poll, meters and a calendar on one page that keeps itself current.

Interactive · Advanced · uses calendar, reminders, buttons, chart

Edit it in the playgroundRead the file

What it shows

Put small live pictures into a page: a countdown, sparklines, meters, a poll, a calendar of days, a mind map and a sketch.

What you learn

Notes pinned to a board from one block rule, dates that count down, numbers drawn as sparklines, progress meters in a sentence, a poll you vote in, a log drawn as a calendar, an indented list as a mind map, a drawing kept as text.

Try this

  • Click "Tomatoes and basil" in the poll, and a tally mark is added to its line in the text.
  • Change 1850 in the polytunnel fund to 2500, and its meter fills and turns green.
examples/club-noticeboard.self · 205 lines
~~~ selfscribe
# Lesson: Put small live pictures into a page: a countdown, sparklines, meters, a poll, a calendar of days, a mind map and a sketch.
# You learn: notes pinned to a board from one block rule, dates that count down, numbers drawn as sparklines, progress meters in a sentence, a poll you vote in, a log drawn as a calendar, an indented list as a mind map, a drawing kept as text.
# Try this: click "Tomatoes and basil" in the poll, and a tally mark is added to its line in the text.
# Try this: change 1850 in the polytunnel fund to 2500, and its meter fills and turns green.
# summary: Countdowns, a poll, meters and a calendar on one page that keeps itself current.
# category: apps
# tags: interactive, advanced, social
# uses: calendar, reminders, buttons, chart
use markdown
set title Club noticeboard
set style sans
set width wide

# ---- Colours, each with its shade for dark pages ---------------------------------------
palette
  leaf    #1b6e2f  dark #8ce99a
  cork    #d9b98f  dark #3b2f23
  paper   #fffdf7  dark #2a2723
  sticky  #fff3bf  dark #3d3620
  mint    #e6fcf5  dark #1d322b
  pin     #e03131  dark #ff6b6b

# ---- "note …" under the title: a quiet line ----------------------------------------------
line   note _  -> p.nb-note-line  { margin: -0.5em 0 1.4em; font: 600 0.9em/1.4 var(--doc-font-ui); color: var(--leaf) }  as nb-line

# ---- "+++" ... "+++": a note pinned to the board; notes next to each other share one board --
block  +++ ... +++  -> div.nb-note  group div.nb-board  { position: relative; padding: 1.1em 1.2em 0.4em; border-radius: 3px; background: var(--paper); box-shadow: 0 8px 18px rgba(40, 25, 10, 0.22); transform: rotate(-1.2deg) }  as nb-note
class nb-board  { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: 1.6em 1.4em; margin: 0 0 2.4em; padding: 2em 1.6em 1.6em; border-radius: 14px; background: var(--cork) }
class nb-note:nth-child(2n)  { transform: rotate(1.3deg); background: var(--sticky) }
class nb-note:nth-child(3n)  { transform: rotate(-0.4deg); background: var(--mint) }
class nb-note::before  { content: ""; position: absolute; top: -8px; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--pin); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25), 0 3px 4px rgba(0, 0, 0, 0.35) }
class nb-note h3  { margin: 0.2em 0 0.5em; font-size: 1.05em; color: var(--leaf) }

# ---- Inside a sentence: marks around a few words make a small picture ------------------
# "((2027-01-17 Wassail))": how long until that date, counted from the reader's day.
inline  ((_))  -> until  verbatim
# "~[4 6 5 7]~": the numbers as a tiny line; start with "bar:" for tiny bars.
inline  ~[_]~  -> spark  verbatim
# "[= 14 of 20 =]": a bar filled that far, with the numbers beside it.
inline  [=_=]  -> meter  verbatim

# ---- On their own: a fenced block with a word after the backticks ---------------------
# "```poll": a question, then options with their votes as tally marks.
block  ``` poll ... ```  -> poll  verbatim
# "```heatmap": one date per line with a number, drawn as a calendar of squares.
block  ``` heatmap ... ```  -> heatmap  verbatim
# "```mindmap": an indented list, drawn as a map you can fold.
block  ``` mindmap ... ```  -> mindmap  verbatim
# "```sketch": a drawing, one line of text per stroke; "set mode=signature" makes a line to sign.
block  ``` sketch ... ```  -> sketch  verbatim
~~~
# Elm Road Community Garden

note The board by the shed. Tidied on Sunday 22 November.

+++
### Wassail in the orchard
((2027-01-17 Wassail)), from 15:00. Mulled apple juice, lanterns, and a song for the old Bramley tree.
+++

+++
### Money and hands
- Polytunnel cover [= 1850 / 2500 =]
- Open day helpers [= 14 of 20 =]
- Shed painted [= 100% =]
+++

+++
### This week
Rain each day ~[bar: 4 0 12 7 0 2 9]~ and plots watered ~[6 9 4 3 8 11 10]~. The water butts are full.
+++

+++
### Seed swap
((2027-02-13 Seed swap)), 10:00 to 13:00 in the polytunnel. Bring spare seeds in labelled envelopes.
+++

+++
### Found by the compost bays
A green trowel with a red handle. It is on the hook inside the shed door.
+++

+++
### Spring open day
((2027-04-24 Open day)). Plant sale, tours of the beds, and soup from the allotment kitchen.
+++

## Vote: the shared bed next spring

Click what you would like to grow. Your vote is one more `|` on that line.

```poll
What shall we grow in the shared bed?
- Tomatoes and basil |||| |
- Squash and sweetcorn |||
- A cut-flower patch |||| ||
- Strawberries ||
```

## Volunteer days since September

Each line is a day and the hours people put in: Wednesday evenings, Sunday mornings, and the
odd Saturday. The calendar shades busy days darker.

```heatmap
# Volunteer hours, per day
2026-09-02 4
2026-09-06 12
2026-09-09 3
2026-09-12 6
2026-09-13 16
2026-09-16 5
2026-09-20 9
2026-09-23 4
2026-09-27 11
2026-09-30 6
2026-10-03 8
2026-10-04 13
2026-10-07 3
2026-10-11 7
2026-10-14 5
2026-10-18 10
2026-10-21 2
2026-10-24 9
2026-10-25 18
2026-10-28 4
2026-11-01 6
2026-11-04 3
2026-11-08 8
2026-11-11 2
2026-11-15 5
2026-11-18 3
2026-11-21 6
2026-11-22 7
```

## Planning the open day

Indent a line under another to make it a branch. Click a branch to fold it.

```mindmap
Spring open day
  On the day
    Plant sale
    Tours of the beds
    Soup kitchen
  People
    Welcome table
    Tour guides
    First aid
  Before
    Pot up seedlings
    Posters in the library
```

## The new herb spiral, on a napkin

Press Draw to add to it: every stroke becomes a line of this block.

```sketch
size 560x220
oval 210,20 140x140 green
pen green 3: 280,90 295,80 290,65 270,62 255,78 258,105 285,118 312,100 318,70 300,45 268,40
text 238,186 "Herb spiral" green
text 60,60 "Thyme, sage" grey
text 400,60 "Mint, in a pot" grey
arrow 120,180 200,140 blue 3
text 30,200 "From the water butt" blue
note 400,140 "Stones from\nthe old wall"
```

## Shed rules

I have read the shed rules: tools back clean, padlock on, last one out checks the tap.

```sketch
set mode=signature
name "Plot holder"
```

## How it's made

The board is six blocks, each between two `+++` lines. One rule makes each block a note, and
`group div.nb-board` gathers the notes that sit together into one board. `class` lines turn
every second and third note a little and give it another colour, and `::before` draws the pin.

The small pictures are a few words of plain text, so the board stays current by itself:

- `((2027-01-17 Wassail))` counts down from the reader's day.
- `~[bar: 4 0 12 7]~` draws a sparkline of bars, and `[= 14 of 20 =]` a meter.
- The poll, the calendar of days, the mind map and the sketches are fenced blocks, named after
  the backticks. Clicking a vote or drawing a stroke writes into that text.

## Try it yourself

1. Change `[= 14 of 20 =]` to `[= 20 of 20 =]`. The helpers' meter fills and turns green.
2. Add a note: `+++`, `### Bees`, a line about the new hive, and `+++`. It is pinned to the board.
3. Add `2026-11-25 12` at the end of the volunteer days. A new, dark square appears in November.
4. Add a line `Bunting` under `Plant sale` in the mind map, indented one step more. A new branch
   hangs from it.
5. Write `- Beans up a wigwam` in the poll. A new option appears with no votes yet.

Next: *Event planner* keeps the jobs for a day like this on a board; *Book club* puts a poll and a
countdown in a book club.