# Reading list post

> A portrait 1080 by 1350 social post, one page, listing five books from a fictional library with title, author, page count and a one line reason to read each. The spines on the shelf are rectangles whose height follows the page count and whose colour follows the genre; the titles, numbers and lines are text boxes that can be swapped for another month.

- The design, as a .vd file: https://getv.design/library/reading-list-post.vd
- Its page: https://getv.design/library/reading-list-post

## How it was made

Drafted from this prompt:

> A portrait post from Ashdown Library with five books for November, each with title, author, page count and a one line reason to read it.

Then refined:

- Narrowed the gaps and varied the widths so the bars read as books on a shelf, not a chart.
- Added bands at the head and foot of each spine.
- Shortened the spines so the whole list fits above the bottom edge.

## Make it yours

- "Make a reading list template for our school library."
- "Add the shelf mark for each book."
- "Swap one title for a children's book and change the month."

## The source

```vd
version 12
kind design
title "Reading list post"
$m = 72
$sw = 168
$sg = 8
$shelf = 730
$k = 0.9
$paper = #F6EFE3
$burgundy = #6B2737
$olive = #6B7D3A
$ink = #2A2A2A
$muted = #5C5A55

font display = "Sorts Mill Goudy"
  fallback "Georgia, serif"
  face asset=sorts-mill-goudy-400 weight=400
  face asset=sorts-mill-goudy-400-italic weight=400 style=italic

font body = "Istok Web"
  fallback "system-ui, sans-serif"
  face asset=istok-web-400 weight=400
  face asset=istok-web-700 weight=700

asset sorts-mill-goudy-400 = font/woff2 hash=sha256-7a1ef9b6f47c9f8d0afbce1dbe6e4afe2b632e8db12d262b51d46a4b37dca079 bytes=22804 license=OFL
asset sorts-mill-goudy-400-italic = font/woff2 hash=sha256-83cf9e4071aebf2e8b05679c1a6574ba806de4efdc80626f18b9dd95176e4f44 bytes=24744 license=OFL
asset istok-web-400 = font/woff2 hash=sha256-7747fbc09e5838dcdfb5ba35c712b93af42d2f63e3ecb7bd66e890c7b1520099 bytes=25292 license=OFL
asset istok-web-700 = font/woff2 hash=sha256-97c4fd7fae98c0394ffb6e90b940a3182e746fbf8c6050186c1db8484c022c0c bytes=24820 license=OFL

frame post x=0 y=0 w=1080 h=1350 background=paper
  text post.title x=$m y=52 w=(100% - $m * 2) h=96 font=display size=80 lineHeight=1.1 fill=burgundy
    "Five books for November"
  text post.sub x=$m y=(@post.title.bottom + 8) w=(100% - $m * 2) h=64 font=body size=26 lineHeight=1.3 fill=muted
    "Ashdown Library, Lewes. Each spine is as tall as the book is long."
  rect spine.1 x=$m y=($shelf - 171) w=162 h=171 fill=burgundy radius=4
  rect spine.1.band x=@spine.1.x y=(@spine.1.bottom - 30) w=@spine.1.w h=4 fill=paper
  rect spine.1.cap x=@spine.1.x y=(@spine.1.y + 16) w=@spine.1.w h=4 fill=paper
  text spine.1.num x=@spine.1.x y=(@spine.1.y + 32) w=@spine.1.w h=74 align=center font=display size=60 fill=paper
    "1"
  text spine.1.pages x=@spine.1.x y=(@spine.1.y + 108) w=@spine.1.w h=32 align=center font=body size=22 fill=paper
    "214 pages"
  rect spine.2 x=(@spine.1.right + $sg) y=($shelf - 499) w=224 h=499 fill=ink radius=4
  rect spine.2.band x=@spine.2.x y=(@spine.2.bottom - 30) w=@spine.2.w h=4 fill=paper
  rect spine.2.cap x=@spine.2.x y=(@spine.2.y + 16) w=@spine.2.w h=4 fill=paper
  text spine.2.num x=@spine.2.x y=(@spine.2.y + 32) w=@spine.2.w h=74 align=center font=display size=60 fill=paper
    "2"
  text spine.2.pages x=@spine.2.x y=(@spine.2.y + 108) w=@spine.2.w h=32 align=center font=body size=22 fill=paper
    "624 pages"
  rect spine.3 x=(@spine.2.right + $sg) y=($shelf - 237) w=178 h=237 fill=olive radius=4
  rect spine.3.band x=@spine.3.x y=(@spine.3.bottom - 30) w=@spine.3.w h=4 fill=paper
  rect spine.3.cap x=@spine.3.x y=(@spine.3.y + 16) w=@spine.3.w h=4 fill=paper
  text spine.3.num x=@spine.3.x y=(@spine.3.y + 32) w=@spine.3.w h=74 align=center font=display size=60 fill=paper
    "3"
  text spine.3.pages x=@spine.3.x y=(@spine.3.y + 108) w=@spine.3.w h=32 align=center font=body size=22 fill=paper
    "296 pages"
  rect spine.4 x=(@spine.3.right + $sg) y=($shelf - 310) w=190 h=310 fill=burgundy radius=4
  rect spine.4.band x=@spine.4.x y=(@spine.4.bottom - 30) w=@spine.4.w h=4 fill=paper
  rect spine.4.cap x=@spine.4.x y=(@spine.4.y + 16) w=@spine.4.w h=4 fill=paper
  text spine.4.num x=@spine.4.x y=(@spine.4.y + 32) w=@spine.4.w h=74 align=center font=display size=60 fill=paper
    "4"
  text spine.4.pages x=@spine.4.x y=(@spine.4.y + 108) w=@spine.4.w h=32 align=center font=body size=22 fill=paper
    "388 pages"
  rect spine.5 x=(@spine.4.right + $sg) y=($shelf - 186) w=150 h=186 fill=olive radius=4
  rect spine.5.band x=@spine.5.x y=(@spine.5.bottom - 30) w=@spine.5.w h=4 fill=paper
  rect spine.5.cap x=@spine.5.x y=(@spine.5.y + 16) w=@spine.5.w h=4 fill=paper
  text spine.5.num x=@spine.5.x y=(@spine.5.y + 32) w=@spine.5.w h=74 align=center font=display size=60 fill=paper
    "5"
  text spine.5.pages x=@spine.5.x y=(@spine.5.y + 108) w=@spine.5.w h=32 align=center font=body size=22 fill=paper
    "232 pages"
  rect post.plank x=($m - 24) y=$shelf w=(100% - $m * 2 + 48) h=22 fill=ink
  rect key.fiction x=$m y=778 w=22 h=22 fill=burgundy
  text key.fiction.label x=(@key.fiction.right + 10) y=775 w=120 h=30 font=body size=22 fill=ink
    "Fiction"
  rect key.history x=(@key.fiction.label.right + 30) y=778 w=22 h=22 fill=ink
  text key.history.label x=(@key.history.right + 10) y=775 w=120 h=30 font=body size=22 fill=ink
    "History"
  rect key.nature x=(@key.history.label.right + 30) y=778 w=22 h=22 fill=olive
  text key.nature.label x=(@key.nature.right + 10) y=775 w=120 h=30 font=body size=22 fill=ink
    "Nature"
  text row.1.num x=$m y=(@key.fiction.bottom + 40) w=48 h=48 font=display size=38 fill=burgundy
    "1"
  text row.1.title x=(@row.1.num.right + 8) y=@row.1.num.y w=520 h=44 font=display size=36 fill=ink
    "The Salt Road"
  text row.1.by x=(@row.1.title.right) y=(@row.1.title.y + 8) w=(100% - $m - @row.1.title.right) h=30 align=right font=body size=22 fill=muted
    "Mara Ellison"
  text row.1.line x=@row.1.title.x y=(@row.1.title.bottom + 2) w=(100% - $m * 2 - 56) h=32 font=body size=24 fill=ink
    "A short novel: three sisters walk the Sussex coast in a week."
  text row.2.num x=$m y=(@row.1.line.bottom + 22) w=48 h=48 font=display size=38 fill=ink
    "2"
  text row.2.title x=(@row.2.num.right + 8) y=@row.2.num.y w=520 h=44 font=display size=36 fill=ink
    "Chalk and Flint"
  text row.2.by x=(@row.2.title.right) y=(@row.2.title.y + 8) w=(100% - $m - @row.2.title.right) h=30 align=right font=body size=22 fill=muted
    "Peter Hallam"
  text row.2.line x=@row.2.title.x y=(@row.2.title.bottom + 2) w=(100% - $m * 2 - 56) h=32 font=body size=24 fill=ink
    "The long view of the South Downs, from flint mines to the railway."
  text row.3.num x=$m y=(@row.2.line.bottom + 22) w=48 h=48 font=display size=38 fill=olive
    "3"
  text row.3.title x=(@row.3.num.right + 8) y=@row.3.num.y w=520 h=44 font=display size=36 fill=ink
    "A Year in the Hedgerow"
  text row.3.by x=(@row.3.title.right) y=(@row.3.title.y + 8) w=(100% - $m - @row.3.title.right) h=30 align=right font=body size=22 fill=muted
    "Ines Moreau"
  text row.3.line x=@row.3.title.x y=(@row.3.title.bottom + 2) w=(100% - $m * 2 - 56) h=32 font=body size=24 fill=ink
    "One lane, twelve months, and a reason to look closer on every walk."
  text row.4.num x=$m y=(@row.3.line.bottom + 22) w=48 h=48 font=display size=38 fill=burgundy
    "4"
  text row.4.title x=(@row.4.num.right + 8) y=@row.4.num.y w=520 h=44 font=display size=36 fill=ink
    "The Lamplighter's Daughter"
  text row.4.by x=(@row.4.title.right) y=(@row.4.title.y + 8) w=(100% - $m - @row.4.title.right) h=30 align=right font=body size=22 fill=muted
    "Cora Whitlock"
  text row.4.line x=@row.4.title.x y=(@row.4.title.bottom + 2) w=(100% - $m * 2 - 56) h=32 font=body size=24 fill=ink
    "A Victorian mystery that keeps its secret until the last chapter."
  text row.5.num x=$m y=(@row.4.line.bottom + 22) w=48 h=48 font=display size=38 fill=olive
    "5"
  text row.5.title x=(@row.5.num.right + 8) y=@row.5.num.y w=520 h=44 font=display size=36 fill=ink
    "Source to Sea"
  text row.5.by x=(@row.5.title.right) y=(@row.5.title.y + 8) w=(100% - $m - @row.5.title.right) h=30 align=right font=body size=22 fill=muted
    "Daniel Okafor"
  text row.5.line x=@row.5.title.x y=(@row.5.title.bottom + 2) w=(100% - $m * 2 - 56) h=32 font=body size=24 fill=ink
    "Walks along five Sussex rivers, from the spring to the harbour."
```
