# Poll story

> A 1080 by 1920 single-page vertical story that asks followers which of two ramen dishes should return to the menu, with a vote prompt and a closing date. Each dish is a paper lantern hung from a string, and the lantern is one component, so changing the dish names, colours or sizes takes one override each.

- The design, as a .vd file: https://getv.design/library/poll-story.vd
- Its page: https://getv.design/library/poll-story

## How it was made

Drafted from this prompt:

> A vertical poll story from Little Kettle asking which dish returns to the menu: spicy miso or garlic chicken ramen. Include a vote prompt and a closing date.

Then refined:

- Cut the headline to two lines so it clears the string.
- Hung each lantern from the string so the cords meet it.
- Moved the vote button and closing date lower, away from the percentages.

## Make it yours

- "Make an Instagram poll story for our two new cakes."
- "Change the dish names and the closing date."
- "Show the votes as 70% and 30% and resize the lanterns."

## The source

```vd
version 12
kind design
title "Poll story"
$night = #1B1B2F
$red = #E4572E
$cream = #FBE9C6
$teal = #2EC4B6
$m = 60
$stringy = 630

font display = "Climate Crisis"
  fallback "Impact, sans-serif"
  face asset=climate-crisis-400 weight=400

font body = Metrophobic
  fallback "system-ui, sans-serif"
  face asset=metrophobic-400 weight=400

asset climate-crisis-400 = font/woff2 hash=sha256-a84b1a2cb79a5a84c31a7423658168f9a1384b330ed884dbbcc460012975c879 bytes=17060 license=OFL
asset metrophobic-400 = font/woff2 hash=sha256-f2c2b5a9757a73f1ff77186997b17186f423d5b8518bf827299b16e205d10080 bytes=18716 license=OFL

frame story x=0 y=0 w=1080 h=1920 background=night
  text story.title x=$m y=290 w=(100% - $m * 2) h=210 font=display size=88 lineHeight=1.08 fill=cream
    "Which ramen\ncomes back?"
  vector story.string x=0 y=$stringy w=(100%) h=120 view="0 0 1080 120" d="M0 0 Q540 240 1080 0" fill=none stroke=cream strokeWidth=5 cap=round
  instance story.a component=lantern x=50 y=(@story.string.y + 90) w=470 h=588
    override lantern.label size=62
      "Spicy\nmiso"
  instance story.b component=lantern x=(@story.a.right + 50) y=(@story.a.y + 6) w=410 h=512
    override lantern.body fill=teal
    override lantern.label size=48
      "Garlic\nchicken"
  text story.a.share x=@story.a.x y=1330 w=@story.a.w h=110 font=display size=84 align=center fill=red
    "58%"
  text story.b.share x=@story.b.x y=@story.a.share.y w=@story.b.w h=110 font=display size=84 align=center fill=teal
    "42%"
  text story.count x=$m y=(@story.a.share.bottom + 4) w=(100% - $m * 2) h=44 font=body size=34 align=center fill=cream
    "123 of 212 votes so far"
  rect story.vote x=140 y=1544 w=800 h=120 fill=cream radius=60
  text story.vote.label x=@story.vote.x y=@story.vote.y w=@story.vote.w h=@story.vote.h font=display size=44 align=center valign=middle fill=night
    "Tap a lantern to vote"
  text story.closes x=$m y=1696 w=(100% - $m * 2) h=44 font=body size=36 align=center fill=cream
    "Voting closes Sunday 22 November, 9pm"
  text story.org x=$m y=1756 w=(100% - $m * 2) h=40 font=body size=30 align=center fill=cream opacity=0.7
    "Little Kettle ramen bar, Leeds"

frame lantern x=0 y=2100 w=400 h=500 component
  rect lantern.cord x=(50% - 2) y=0 w=4 h=(8%) fill=cream
  rect lantern.captop x=(26%) y=(8%) w=(48%) h=(3.6%) fill=cream
  vector lantern.body x=0 y=(11.6%) w=(100%) h=(72%) view="0 0 100 100" d="M50 0 C85 0 100 22 100 50 C100 78 85 100 50 100 C15 100 0 78 0 50 C0 22 15 0 50 0 Z" fill=red
  vector lantern.rib.a x=0 y=(11.6%) w=(100%) h=(72%) view="0 0 100 100" d="M50 0 C20 25 20 75 50 100" fill=none stroke=night strokeWidth=3 opacity=0.3
  vector lantern.rib.b x=0 y=(11.6%) w=(100%) h=(72%) view="0 0 100 100" d="M50 0 C80 25 80 75 50 100" fill=none stroke=night strokeWidth=3 opacity=0.3
  vector lantern.rib.c x=0 y=(11.6%) w=(100%) h=(72%) view="0 0 100 100" d="M50 0 L50 100" fill=none stroke=night strokeWidth=3 opacity=0.3
  rect lantern.capbottom x=(26%) y=(83.6%) w=(48%) h=(3.6%) fill=cream
  rect lantern.tassel.cord x=(50% - 2) y=(87.2%) w=4 h=(6%) fill=cream
  vector lantern.tassel x=(44%) y=(93%) w=(12%) h=(7%) view="0 0 10 10" d="M5 0 L9 10 L1 10 Z" fill=cream
  text lantern.label x=(12%) y=(29%) w=(76%) h=(38%) font=display size=60 lineHeight=1.1 align=center valign=middle fill=night
    "Dish"
```
