-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponents.njk
362 lines (330 loc) · 15.4 KB
/
components.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
---
layout: layout.njk
title: NYS Digital Services Components
url: nysds.dev/components
domain: nysds.dev
facebook:
title: NYS Digital Services Components
description: The NYS Digital Service Component Index
image: nygov-logo.png
twitter:
title: NYS Digital Services Components
description: The NYS Digital Service Component Index
image: nygov-logo.png
---
{% from './_includes/_components.njk' import hero,categorytiles,card,bio,textarea,highlight,iconframe,quicklinks %}
{{ hero({
title:"This is the hero title",
date: "February 16, 2022",
image:"Hochul_WebsiteHero.jpg",
description:"A paragraph of text up to whatever the truncation limit is. This is a longer one for demonstrating what it will look like and how to position it.", buttons: [
{
text:"First Button",
link:"google.com",
arialabel:""
},
{
text:"Second Button",
link:"apple.com",
arialabel:""
}
]
})}}
{{ bio({
direction: "left",
frametitle:"A frame title for the whole thing",
title:"This is the title area of the bio frame",
content:"A short paragraph of content that probably shouldn't exceed two really good and direct sentences. We're highlighting something, not telling the whole story here.",
attribute:"Jacob, Budget Examiner",
link:"https://budget.ny.gov",
linktext:"See the Jobs",
arialabel:"Go to the New York State Division of the Budget Employment page to look at career opportunities",
image:"/img/office.jpg",
imagealt:"office workers collaborating in a conference room"
})}}
{{ bio({
direction: "right",
frametitle:"",
title:"This is the title area of the bio frame",
content:"A short paragraph of content that probably shouldn't exceed two really good and direct sentences. We're highlighting something, not telling the whole story here.",
attribute:"Jacob, Budget Examiner",
link:"https://budget.ny.gov",
linktext:"See the Jobs",
arialabel:"Go to the New York State Division of the Budget Employment page to look at career opportunities",
image:"/img/office.jpg",
imagealt:"office workers collaborating in a conference room"
})}}
{{ textarea({
title:"Title of the text area"
})
}}
{{ iconframe({
title:"An Icon Frame",
color:"",
process:"yes",
description:"This is an area for a description of a few sentences. Something that serves to compliment and introduce the series of icons used here.",
cta:"A CTA Link",
ctalink:"google.com",
ctaaria:"",
iconcards: [
{
icon:"/img/nygov-logo.png",
iconalt:"an outline of the state of new york",
title: "Icon Title That's a Link",
titlelink:"google.com",
content:"One really good descriptive sentence that shouldn't be terribly long. "
},
{
icon:"/img/nygov-logo.png",
iconalt:"an outline of the state of new york",
title: "Icon Title",
titlelink:"",
content:"One really good descriptive sentence that shouldn't be terribly long. "
},
{
icon:"/img/nygov-logo.png",
iconalt:"an outline of the state of new york",
title: "Icon Title",
titlelink:"",
content:"One really good descriptive sentence that shouldn't be terribly long. "
},
{
icon:"/img/nygov-logo.png",
iconalt:"an outline of the state of new york",
title: "Icon Title",
titlelink:"",
content:"One really good descriptive sentence that shouldn't be terribly long. "
}
]
})
}}
{{ card({
frametitle:"Row of Cards",
cards: [
{
title:"First Card",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page.",
link:"https://budget.ny.gov",
arialabel:"",
image:"/img/office.jpg",
imagealt:"Office workers in a conference room having a collaborative working session"
},
{
title:"Second Card",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page.",
link:"https://budget.ny.gov",
arialabel:"",
image:"/img/office.jpg",
imagealt:"Office workers in a conference room having a collaborative working session"
},
{
title:"Third Card",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page. This one is longer to show that the cards stretch to the height of the tallest card.",
link:"https://budget.ny.gov",
arialabel:"",
image:"/img/office.jpg",
imagealt:"Office workers in a conference room having a collaborative working session"
},
{
title:"Third Card",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page. This one is longer to show that the cards stretch to the height of the tallest card.",
link:"https://budget.ny.gov",
arialabel:"",
image:"/img/office.jpg",
imagealt:"Office workers in a conference room having a collaborative working session"
}
]
})}}
{{ highlight({
title: "Highlight Frame in Gray",
content:"The vendors shown on this list have been approved by the Vendor Responsibility Group of the OGS Design & Construction Group (D&C) within the past year. The list was developed as a reference tool for government agencies, vendors and other organizations that need the assistance of construction services from qualified vendors, particularly in case of a disaster or other emergency declaration in New York State.",
link:"https://budget.ny.gov",
linktext:"Download the List",
framecolor:"gray"
})}}
{{ highlight({
title: "Highlight Frame in Secondary",
content:"The vendors shown on this list have been approved by the Vendor Responsibility Group of the OGS Design & Construction Group (D&C) within the past year. The list was developed as a reference tool for government agencies, vendors and other organizations that need the assistance of construction services from qualified vendors, particularly in case of a disaster or other emergency declaration in New York State.",
framecolor:"orange"
})}}
{{ categorytiles({
title:"Category Tiles",
items: [
{
text:"first tile",
link:"https://budget.ny.gov"
},
{
text:"second tile",
link:"https://budget.ny.gov"
},
{
text:"third tile",
link:"https://budget.ny.gov"
},
{
text:"fourth tile",
link:"https://budget.ny.gov"
},
{
text:"another tile with a long title that you might use",
link:"https://budget.ny.gov"
},
{
text:"one that has two lines of text",
link:"https://budget.ny.gov"
}
]
})}}
{{ quicklinks({
frametitle:"Quick Links",
ctaleft:[
{
link:"ny.gov",
title:"First Column Link"
}
],
ctaright:[
{
link:"governor.ny.gov",
title:"Second Column Link"
}
],
colleft: [
{
title:"first tile",
link:"https://budget.ny.gov",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page. This one is longer to show the truncation.",
image:"/img/office.jpg"
},
{
title:"second tile",
link:"https://budget.ny.gov",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page. ",
image:"/img/office.jpg"
},
{
title:"third tile",
link:"https://budget.ny.gov",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page. ",
image:"/img/office.jpg"
},
{
title:"fourth tile",
link:"https://budget.ny.gov",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page. ",
image:"/img/office.jpg"
}
],
colright: [
{
title:"first tile",
link:"https://budget.ny.gov",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page. ",
image:"/img/office.jpg"
},
{
title:"second tile that is longer fix this",
link:"https://budget.ny.gov",
content:"A sentence or two of text that gives the general idea of what this link goes to or the topic of the page. ",
image:"/img/office.jpg"
},
{
title:"third tile",
link:"https://budget.ny.gov",
image:"/img/office.jpg"
}
]
})}}
<div class="nysds-asl-container">
<a href="https://ogs.ny.gov" class="nysds-asl-link">
American Sign Language (ASL)
<span class="nysds-sr-only">
for this video with a title of blankity blank blank
</span>
</a>
</div>
<style>
.nysds-asl-container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
}
.nysds-asl-link {
font-family: "Proxima Nova", "proxima nova", "proxima-nova", "ProximaNovaRegular", sans-serif;
font-size: 13px;
line-height: 15px;
font-weight: bold;
color:#000;
border: 1px solid #d0d0ce;
display: flex;
flex-direction: row;
align-items: center;
background: #ededed;
text-decoration: none;
letter-spacing: 2px;
padding: 10px 15px;
}
.nysds-asl-link:hover {
background: #000;
color: #fff;
}
.nysds-asl-link:focus {
background: #000;
color: #fff;
}
.nysds-asl-link-text {
display: flex;
align-items: center;
}
.nysds-asl-link:hover::after {
filter: invert(100%)
}
.nysds-asl-link:focus::after {
filter: invert(100%)
}
.nysds-asl-link:hover::before {
filter: invert(100%)
}
.nysds-asl-link:focus::before {
filter: invert(100%)
}
.nysds-asl-link::after {
box-sizing: content-box;
display: block;
content: " ";
background-repeat: no-repeat;
width: 12px;
height: 12px;
margin-left: 10px;
margin-bottom: 3px;
color: #000;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --%3E%3Cpath d='M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z'/%3E%3C/svg%3E");
}
.nysds-asl-link::before {
box-sizing: content-box;
display: block;
content: " ";
background-repeat: no-repeat;
width: 30px;
height: 30px;
margin-right:10px;
border-right: 1px #000 solid;
padding-right: 10px;
background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 100 100' style='enable-background:new 0 0 100 100;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:none;stroke:%23000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;%7D%0A%3C/style%3E%3Cg id='Layer_1'%3E%3Cg%3E%3Cpath class='st0' d='M63.72,72.81L63.72,72.81c-1.44,0-2.6-1.16-2.6-2.6v-2.64c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v2.64C66.32,71.65,65.16,72.81,63.72,72.81z'/%3E%3Cpath class='st0' d='M68.92,72.81L68.92,72.81c-1.44,0-2.6-1.16-2.6-2.6v-5.29c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v5.29C71.52,71.65,70.36,72.81,68.92,72.81z'/%3E%3Cpath class='st0' d='M74.13,72.81L74.13,72.81c-1.44,0-2.6-1.16-2.6-2.6v-7.43c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v7.43C76.73,71.65,75.56,72.81,74.13,72.81z'/%3E%3Cpath class='st0' d='M76.73,69.26V53.92c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6v19.56'/%3E%3Cpolyline class='st0' points='81.39,89.25 81.39,95.81 66.12,95.81 66.12,89.25 '/%3E%3Cpath class='st0' d='M81.39,89.25c0-3.33,2.42-5.31,2.42-5.31l12.61-12.61c0.44-0.44,0.44-1.16,0-1.61l-1.04-1.04 c-1.55-1.09-3.59-0.09-4.61,0.93l-4.72,4.72c0,0-9.33-3.39-13.52,5.12'/%3E%3Cpath class='st0' d='M61.12,67.24v8.6c0,3.32,1.2,6.42,3.21,8.8c0,0,1.79,1.83,1.79,4.61'/%3E%3C/g%3E%3Cg%3E%3Cpath class='st0' d='M37.35,42.68L37.35,42.68c-1.44,0-2.6-1.16-2.6-2.6v-3.06c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v3.06C39.95,41.51,38.79,42.68,37.35,42.68z'/%3E%3Cpath class='st0' d='M42.55,42.68L42.55,42.68c-1.44,0-2.6-1.16-2.6-2.6V34.8c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v5.28C45.16,41.51,43.99,42.68,42.55,42.68z'/%3E%3Cpath class='st0' d='M50.36,40.07c0,1.44-1.16,2.6-2.6,2.6h0c-1.44,0-2.6-1.16-2.6-2.6v-6.81c0-1.44,1.16-2.6,2.6-2.6h0 c1.44,0,2.6,1.16,2.6,2.6v1.16'/%3E%3Cpath class='st0' d='M55.56,39.95c0,1.44-1.16,2.53-2.6,2.53h0c-1.44,0-2.6-1.16-2.6-2.6v-0.51'/%3E%3Cpath class='st0' d='M50.36,34.31c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6v0.11'/%3E%3Cpolyline class='st0' points='55.02,60.06 55.02,66.62 39.54,66.62 39.54,60.06 '/%3E%3Cpath class='st0' d='M47.9,51.52c0-4.88,3.43-8.84,7.66-8.84'/%3E%3Cpath class='st0' d='M60.76,38.08v9.32c0,0.11-0.02,0.22-0.03,0.33c-0.15,3.04-1.34,5.8-3.22,7.94c0,0-2.48,2.02-2.48,4.4'/%3E%3Cpath class='st0' d='M34.75,38.05v8.56c0,3.05,1.02,5.93,2.74,8.23c0,0,2.05,2.79,2.05,5.22'/%3E%3Cpath class='st0' d='M60.76,38.08c0-2.02-1.64-3.66-3.66-3.66c0,0-4.81,0-7.35,0c-2.54,0-1.37,3.23-1.26,3.49 c0.17,0.41,0.71,2.09,7.05,2.04c0.06,0.11,0,2.73,0,2.73'/%3E%3C/g%3E%3Cpath class='st0' d='M7.23,19.62L7.23,19.62c-1.44,0-2.6-1.16-2.6-2.6v-3.06c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v3.06C9.83,18.45,8.67,19.62,7.23,19.62z'/%3E%3Cpath class='st0' d='M12.43,19.62L12.43,19.62c-1.44,0-2.6-1.16-2.6-2.6v-4.57c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v4.57C15.03,18.45,13.87,19.62,12.43,19.62z'/%3E%3Cpath class='st0' d='M17.63,19.62L17.63,19.62c-1.44,0-2.6-1.16-2.6-2.6v-5.57c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v5.57C20.23,18.45,19.07,19.62,17.63,19.62z'/%3E%3Cpath class='st0' d='M22.83,19.62L22.83,19.62c-1.44,0-2.6-1.16-2.6-2.6v-5.57c0-1.44,1.16-2.6,2.6-2.6h0c1.44,0,2.6,1.16,2.6,2.6 v5.57C25.44,18.45,24.27,19.62,22.83,19.62z'/%3E%3Cpolyline class='st0' points='24.9,37.59 24.9,43.56 9.42,43.56 9.42,37.59 '/%3E%3Cpath class='st0' d='M15.45,28.45c0-4.88,3.43-8.84,7.66-8.84'/%3E%3Cpath class='st0' d='M25.44,13.62V9.28c0-1.44,0.74-3.59,2.6-3.92h1.47c0.63,0,1.14,0.51,1.14,1.14v17.84 c0,0.11-0.02,0.22-0.03,0.33c-0.13,2.64-1.05,5.07-2.52,7.06c0,0-3.19,2.89-3.19,5.87'/%3E%3Cpath class='st0' d='M4.63,14.99l0,8.6c0,2.78,0.85,5.41,2.3,7.59c0,0,2.49,3.35,2.49,6.4'/%3E%3C/g%3E%3C/svg%3E%0A");
}
.nysds-sr-only {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.nysds-border-radius {
border-radius: 5px;
}
</style>