#import "@preview/tiaoma:0.3.0"
#set page(width: 89mm, height: 36mm)
#let label(computer) = block[

#table(
  columns: (2cm,1fr,auto),
  align: (center,left,center),
  stroke: 0pt,
  inset: 1mm,
//  gutter: 0mm,
  [#image("logo_stack.png",width: 60%)],
[
  #set text(10pt)
  angestoepselt e.V. \
  Passwort: csv \
  #set text(14pt)
  Computer: #computer.id
  #set text(10pt)
],[
 #tiaoma.barcode(
  #set text(14pt)
    computer.id,
  #set text(10pt)
    "Code39",
    height: 18mm,
 ) 
  ],
  table.cell(colspan: 3)[   #set text(6pt)
   #computer.distribution/#computer.version/#computer.cpu/#computer.memory/#computer.disk/ID:#computer.id
  ]
  )
]

#let charger(computer) = block[
  #table(
    columns: (2cm,1fr,auto),
     align: (center,left,center),
    stroke: 0pt,
    inset: 1mm,
  [#image("logo_stack.png",width: 60%)],
  [
   Ladegerät: #computer.id
  ],[
   #tiaoma.barcode(
    computer.id,
    "Code39",
    height: 18mm,
   ) 
  ]
  )
]

#let computer = json(bytes(sys.inputs.computer))
#label(computer)
#charger(computer)
