# Staff pass

> A one-page warehouse staff pass at 816 × 1296 with a photo slot, name, role, staff number, expiry date and a hi-vis stripe down the left edge in three zone bands. The photo is a drawn stand-in to replace with the person's picture; each zone band is a component, either filled or outlined, so changing which zones a person may enter means swapping one band.

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

## How it was made

Drafted from this prompt:

> A staff pass for Northwick Distribution: a photo slot, name, role, staff number and the zones the person may enter, goods in, picking and dispatch.

Then refined:

- Added the expiry date beside the staff number.
- Made the photo taller and moved its label to the top corner so the silhouette stays clear.
- Spaced the three zone bands evenly so they fill the full height of the pass.

## Make it yours

- "Make the staff pass for someone who can enter all three zones."
- "Change the role to Forklift driver and the staff number to 40822."
- "Make an employee pass template for our own site with two zones."

## The source

```vd
version 12
kind design
title "Staff pass"
$blue = #14476B
$white = #FFFFFF
$yellow = #F2D300
$ink = #1A2B33
$muted = #5B6F7A
$stand = #D5E0E7
$standdark = #9DB3C2
$band = 260
$gap = 12
$bandh = (1296 - $gap * 2) / 3
$m = 44

font display = Unna
  fallback "Georgia, serif"
  face asset=unna-400 weight=400
  face asset=unna-700 weight=700

font body = Oxygen
  fallback "system-ui, sans-serif"
  face asset=oxygen-400 weight=400
  face asset=oxygen-700 weight=700

asset unna-400 = font/woff2 hash=sha256-4c71c7c6e98ac4e6ec0300da078993cae70db865f1c1ee4f3fab6a1a2d49e591 bytes=20484 license=OFL
asset unna-700 = font/woff2 hash=sha256-2df7717098dffdf4ae5519962173934ea68e8ffd2fbeaa873cdd6aad1e4b044b bytes=21528 license=OFL
asset oxygen-400 = font/woff2 hash=sha256-cb77b974327584a478f8579490a5f118da52f1062e00b5ad31cb4dc5444efb37 bytes=16288 license=OFL
asset oxygen-700 = font/woff2 hash=sha256-4414b63c51aaef6d5d77ef9b45d9a936e476ad3a9902e046cf7cb8af05ce72bc bytes=16152 license=OFL

frame pass x=0 y=0 w=816 h=1296 background=blue
  instance pass.zone1 component=zoneon x=0 y=0
    override zone.name
      "Goods in"
  instance pass.zone2 component=zoneon x=0 y=(@pass.zone1.bottom + $gap)
    override zone.name
      "Picking"
  instance pass.zone3 component=zoneoff x=0 y=(@pass.zone2.bottom + $gap)
    override zone.name
      "Dispatch"
  rect pass.panel x=($band + 0) y=250 w=(100% - $band) h=(100% - 250) fill=white
  rect pass.slot x=(@pass.panel.cx - 55) y=40 w=110 h=22 fill=white radius=11
  text pass.org x=(@pass.panel.x + $m) y=108 w=(@pass.panel.w - $m * 2) h=60 font=display size=46 weight=700 lineHeight=1.05 fill=white
    "Northwick Distribution"
  text pass.kind x=(@pass.panel.x + $m) y=(@pass.org.bottom + 10) w=(@pass.panel.w - $m * 2) h=32 font=body size=22 weight=700 fill=yellow
    "Staff pass, Doncaster site"
  rect pass.photo x=(@pass.panel.x + $m) y=(@pass.panel.y + $m) w=(@pass.panel.w - $m * 2) h=470 fill=stand
  ellipse pass.photo.head x=(@pass.photo.cx - 70) y=(@pass.photo.y + 100) w=140 h=140 fill=standdark
  vector pass.photo.body x=(@pass.photo.cx - 150) y=(@pass.photo.y + 290) w=300 h=180 view="0 0 300 180" d="M0 180C0 90 60 40 150 40S300 90 300 180Z" fill=standdark
  text pass.photo.label x=(@pass.photo.x + 16) y=(@pass.photo.y + 14) w=300 h=28 font=body size=18 fill=muted
    "Photo goes here"
  text pass.name x=@pass.photo.x y=(@pass.photo.bottom + 32) w=@pass.photo.w h=74 font=display size=60 weight=700 fill=ink
    "Amara Okafor"
  text pass.role x=@pass.photo.x y=(@pass.name.bottom + 4) w=@pass.photo.w h=40 font=body size=28 fill=ink
    "Picker, early shift"
  connector pass.rule x1=@pass.photo.x y1=(@pass.role.bottom + 24) x2=@pass.photo.right y2=(@pass.role.bottom + 24) stroke=ink strokeWidth=3
  text pass.no.label x=@pass.photo.x y=(@pass.rule.bottom + 16) w=300 h=28 font=body size=20 fill=muted
    "Staff number"
  text pass.no x=@pass.photo.x y=(@pass.no.label.bottom + 2) w=@pass.photo.w h=80 font=body size=64 weight=700 fill=ink
    "40817"
  text pass.exp.label x=(@pass.photo.cx + 20) y=@pass.no.label.y w=(@pass.photo.right - @pass.photo.cx - 20) h=28 font=body size=20 fill=muted
    "Valid until"
  text pass.exp x=@pass.exp.label.x y=(@pass.exp.label.bottom + 18) w=@pass.exp.label.w h=44 font=body size=30 weight=700 fill=ink
    "31 March 2027"
  text pass.note x=@pass.photo.x y=(100% - 100) w=@pass.photo.w h=56 font=body size=18 lineHeight=1.4 fill=muted
    "Wear on your left shoulder while on site. Hand a lost pass in at the gatehouse."

frame zoneon x=0 y=1500 w=260 h=424 component
  rect zone.fill x=0 y=0 w=100% h=100% fill=yellow
  text zone.name x=20 y=(parent.cy - 50) w=220 h=60 font=display size=48 weight=700 fill=ink
    "Goods in"
  text zone.access x=20 y=(@zone.name.bottom + 4) w=220 h=36 font=body size=26 weight=700 fill=ink
    "Access"

frame zoneoff x=300 y=1500 w=260 h=424 component
  rect zone.line x=0 y=0 w=100% h=100% fill=none stroke=yellow strokeWidth=8 strokeAlign=inside
  text zone.name x=20 y=(parent.cy - 50) w=220 h=60 font=display size=48 weight=700 fill=yellow
    "Dispatch"
  text zone.access x=20 y=(@zone.name.bottom + 4) w=220 h=36 font=body size=26 fill=yellow
    "No access"
```
