access-nyc-patterns
Version:
User Interface Patterns for Benefits Access
26 lines (21 loc) • 807 B
text/slim
- if (typeof key !== 'undefined')
- ;
div class='text-font-size-small'
h3 class='text-font-size-small capitalize mb-2' ${key.replace(/-/g," ")}
div class='text-font-size-normal py-4 text-center bg-color-grey-lightest px-2 mb-2 flex items-center justify-center' style='min-height:150px'
- for (i in value)
- line = value[i];
- express = false;
- color = 'bg-' + key;
- if (line.indexOf('Express') > -1)
- express = 'icon-subway-express';
- line = line.split(' ')[0];
- color = 'border-' + key;
span class='icon-subway ${color} ${express} mx-1'
= line;
- if (express)
- ;
span class='sr-only' Express
p class='mb-0 flex justify-between'
| Trunk
code ${key}