@gov-cy/govcy-frontend-renderer 1.17.2 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -0
- package/package.json +1 -1
- package/src/njk/layouts/govcyBase.njk +72 -2
package/README.md
CHANGED
|
@@ -79,6 +79,66 @@ const inputData =
|
|
|
79
79
|
{"label": {"en":"Accessibility", "el":"Προσβασιμότητα"}, "href": "#"},
|
|
80
80
|
{"label": {"en":"Help us improve this service", "el":"Βοηθήστε μας να βελτιώσουμε αυτή την υπηρεσία"}, "href": "#"}
|
|
81
81
|
],
|
|
82
|
+
"footerIcons": [
|
|
83
|
+
{
|
|
84
|
+
"src": {
|
|
85
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg",
|
|
86
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg"
|
|
87
|
+
},
|
|
88
|
+
"alt": {
|
|
89
|
+
"en": "Service Standard Verified seal",
|
|
90
|
+
"el": "Σφραγίδα Πιστοποίησης Υπηρεσίας"
|
|
91
|
+
},
|
|
92
|
+
"href": {
|
|
93
|
+
"en": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/",
|
|
94
|
+
"el": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/"
|
|
95
|
+
},
|
|
96
|
+
"style": {
|
|
97
|
+
"en": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;",
|
|
98
|
+
"el": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;"
|
|
99
|
+
},
|
|
100
|
+
"target": "_blank",
|
|
101
|
+
"classes": "govcy-mr-3"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"src": {
|
|
105
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EN.png",
|
|
106
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EL.png"
|
|
107
|
+
},
|
|
108
|
+
"alt": {
|
|
109
|
+
"en": "Funded by the EU Next Generation EU",
|
|
110
|
+
"el": "Χρηματοδοτείται από την ΕΕ Next Generation EU"
|
|
111
|
+
},
|
|
112
|
+
"href": {
|
|
113
|
+
"en": "https://europa.eu/",
|
|
114
|
+
"el": "https://europa.eu/"
|
|
115
|
+
},
|
|
116
|
+
"title": {
|
|
117
|
+
"en": "Go to EU website",
|
|
118
|
+
"el": "Μετάβαση στην ιστοσελίδα της ΕΕ"
|
|
119
|
+
},
|
|
120
|
+
"target": "_blank"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"src": {
|
|
124
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EN.png",
|
|
125
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EL.png"
|
|
126
|
+
},
|
|
127
|
+
"alt": {
|
|
128
|
+
"en": "Cyprus tomorrow, recovery and resilience plan",
|
|
129
|
+
"el": "Κύπρος το Αύριο, σχέδιο ανάκαμψης και ανθεντικότητας"
|
|
130
|
+
},
|
|
131
|
+
"href": {
|
|
132
|
+
"en": "http://www.cyprus-tomorrow.gov.cy/",
|
|
133
|
+
"el": "http://www.cyprus-tomorrow.gov.cy/"
|
|
134
|
+
},
|
|
135
|
+
"title": {
|
|
136
|
+
"en": "Go to Cyprus Tomorrow website",
|
|
137
|
+
"el": "Μετάβαση στην ιστοσελίδα Κύπρος το Αύριο"
|
|
138
|
+
},
|
|
139
|
+
"target": "_blank"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
82
142
|
"copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
|
|
83
143
|
"menu" : {"en":"Menu", "el":"Μενου"},
|
|
84
144
|
"title" : {"en":"Service title", "el":"Τιτλός υπηρεσίας"},
|
|
@@ -174,6 +234,66 @@ const inputData =
|
|
|
174
234
|
{"label": {"en":"Accessibility", "el":"Προσβασιμότητα"}, "href": "#"},
|
|
175
235
|
{"label": {"en":"Help us improve this service", "el":"Βοηθήστε μας να βελτιώσουμε αυτή την υπηρεσία"}, "href": "#"}
|
|
176
236
|
],
|
|
237
|
+
"footerIcons": [
|
|
238
|
+
{
|
|
239
|
+
"src": {
|
|
240
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg",
|
|
241
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg"
|
|
242
|
+
},
|
|
243
|
+
"alt": {
|
|
244
|
+
"en": "Service Standard Verified seal",
|
|
245
|
+
"el": "Σφραγίδα Πιστοποίησης Υπηρεσίας"
|
|
246
|
+
},
|
|
247
|
+
"href": {
|
|
248
|
+
"en": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/",
|
|
249
|
+
"el": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/"
|
|
250
|
+
},
|
|
251
|
+
"style": {
|
|
252
|
+
"en": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;",
|
|
253
|
+
"el": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;"
|
|
254
|
+
},
|
|
255
|
+
"target": "_blank",
|
|
256
|
+
"classes": "govcy-mr-3"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"src": {
|
|
260
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EN.png",
|
|
261
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EL.png"
|
|
262
|
+
},
|
|
263
|
+
"alt": {
|
|
264
|
+
"en": "Funded by the EU Next Generation EU",
|
|
265
|
+
"el": "Χρηματοδοτείται από την ΕΕ Next Generation EU"
|
|
266
|
+
},
|
|
267
|
+
"href": {
|
|
268
|
+
"en": "https://europa.eu/",
|
|
269
|
+
"el": "https://europa.eu/"
|
|
270
|
+
},
|
|
271
|
+
"title": {
|
|
272
|
+
"en": "Go to EU website",
|
|
273
|
+
"el": "Μετάβαση στην ιστοσελίδα της ΕΕ"
|
|
274
|
+
},
|
|
275
|
+
"target": "_blank"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"src": {
|
|
279
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EN.png",
|
|
280
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EL.png"
|
|
281
|
+
},
|
|
282
|
+
"alt": {
|
|
283
|
+
"en": "Cyprus tomorrow, recovery and resilience plan",
|
|
284
|
+
"el": "Κύπρος το Αύριο, σχέδιο ανάκαμψης και ανθεντικότητας"
|
|
285
|
+
},
|
|
286
|
+
"href": {
|
|
287
|
+
"en": "http://www.cyprus-tomorrow.gov.cy/",
|
|
288
|
+
"el": "http://www.cyprus-tomorrow.gov.cy/"
|
|
289
|
+
},
|
|
290
|
+
"title": {
|
|
291
|
+
"en": "Go to Cyprus Tomorrow website",
|
|
292
|
+
"el": "Μετάβαση στην ιστοσελίδα Κύπρος το Αύριο"
|
|
293
|
+
},
|
|
294
|
+
"target": "_blank"
|
|
295
|
+
}
|
|
296
|
+
],
|
|
177
297
|
"copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
|
|
178
298
|
"menu" : {"en":"Menu", "el":"Μενου"},
|
|
179
299
|
"title" : {"en":"Service title", "el":"Τιτλός υπηρεσίας"},
|
|
@@ -317,6 +437,7 @@ The `inputData` object has the following structure:
|
|
|
317
437
|
- **site.lang**: the language of the site. It is used both in the `<html lang` attribute and to define the default language to be used by the individual design elements defined in the template.
|
|
318
438
|
- **site.languages**: the languages in the language menu.
|
|
319
439
|
- **site.footerLinks**: the links of the footer.
|
|
440
|
+
- **site.footerIcons**: the icons with links of the footer.
|
|
320
441
|
- **site.copyrightText**: the text of the copyright in the footer, including the year.
|
|
321
442
|
- **site.menu**: the menu label.
|
|
322
443
|
- **site.title**: the title of the site. It is used in the `<title>`, `<meta property="og:title"` and `<meta property="twitter:title"` tags of the head.
|
package/package.json
CHANGED
|
@@ -15,7 +15,67 @@ To use this template you need to pass the following data:
|
|
|
15
15
|
{"label": {"en":"Cookies", "el":"Cookies"}, "href": "#"},
|
|
16
16
|
{"label": {"en":"Accessibility", "el":"Προσβασιμότητα"}, "href": "#"},
|
|
17
17
|
{"label": {"en":"Help us improve this service", "el":"Βοηθήστε μας να βελτιώσουμε αυτή την υπηρεσία"}, "href": "#"},
|
|
18
|
-
],
|
|
18
|
+
],
|
|
19
|
+
"footerIcons": [
|
|
20
|
+
{
|
|
21
|
+
"src": {
|
|
22
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg",
|
|
23
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg"
|
|
24
|
+
},
|
|
25
|
+
"alt": {
|
|
26
|
+
"en": "Service Standard Verified seal",
|
|
27
|
+
"el": "Σφραγίδα Πιστοποίησης Υπηρεσίας"
|
|
28
|
+
},
|
|
29
|
+
"href": {
|
|
30
|
+
"en": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/",
|
|
31
|
+
"el": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/"
|
|
32
|
+
},
|
|
33
|
+
"style": {
|
|
34
|
+
"en": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;",
|
|
35
|
+
"el": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;"
|
|
36
|
+
},
|
|
37
|
+
"target": "_blank",
|
|
38
|
+
"classes": "govcy-mr-3"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"src": {
|
|
42
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EN.png",
|
|
43
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EL.png"
|
|
44
|
+
},
|
|
45
|
+
"alt": {
|
|
46
|
+
"en": "Funded by the EU Next Generation EU",
|
|
47
|
+
"el": "Χρηματοδοτείται από την ΕΕ Next Generation EU"
|
|
48
|
+
},
|
|
49
|
+
"href": {
|
|
50
|
+
"en": "https://europa.eu/",
|
|
51
|
+
"el": "https://europa.eu/"
|
|
52
|
+
},
|
|
53
|
+
"title": {
|
|
54
|
+
"en": "Go to EU website",
|
|
55
|
+
"el": "Μετάβαση στην ιστοσελίδα της ΕΕ"
|
|
56
|
+
},
|
|
57
|
+
"target": "_blank"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"src": {
|
|
61
|
+
"en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EN.png",
|
|
62
|
+
"el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EL.png"
|
|
63
|
+
},
|
|
64
|
+
"alt": {
|
|
65
|
+
"en": "Cyprus tomorrow, recovery and resilience plan",
|
|
66
|
+
"el": "Κύπρος το Αύριο, σχέδιο ανάκαμψης και ανθεντικότητας"
|
|
67
|
+
},
|
|
68
|
+
"href": {
|
|
69
|
+
"en": "http://www.cyprus-tomorrow.gov.cy/",
|
|
70
|
+
"el": "http://www.cyprus-tomorrow.gov.cy/"
|
|
71
|
+
},
|
|
72
|
+
"title": {
|
|
73
|
+
"en": "Go to Cyprus Tomorrow website",
|
|
74
|
+
"el": "Μετάβαση στην ιστοσελίδα Κύπρος το Αύριο"
|
|
75
|
+
},
|
|
76
|
+
"target": "_blank"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
19
79
|
"copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
|
|
20
80
|
"menu" : {"en":"Menu", "el":"Μενου"},
|
|
21
81
|
"title" : {"en":"Service title", "el":"Τιτλός υπηρεσίας"},
|
|
@@ -185,7 +245,17 @@ To use this template you need to pass the following data:
|
|
|
185
245
|
{%- endif %}
|
|
186
246
|
<div class="govcy-d-flex govcy-align-items-center govcy-flex-wrap">
|
|
187
247
|
<span class="govcy-fs-2 govcy-fw-bold govcy-mr-6">gov.cy</span>
|
|
188
|
-
<span class="govcy-mr-6 govcy-mt-2
|
|
248
|
+
<span class="govcy-mr-6 govcy-mt-2">© {{ govcyLocalizeContent(site.copyrightText, site.lang) }}</span>
|
|
249
|
+
{%- if site.footerIcons %}
|
|
250
|
+
{% for footerIcon in site.footerIcons %}
|
|
251
|
+
{#- src, alt and href are mandatory -#}
|
|
252
|
+
{%- if footerIcon.src and footerIcon.alt and footerIcon.href -%}
|
|
253
|
+
<a href="{{ govcyLocalizeContent(footerIcon.href, site.lang, true) }}"{% if footerIcon.target %} target="{{ footerIcon.target }}"{% endif %}{% if footerIcon.title %} title="{{ govcyLocalizeContent(footerIcon.title, site.lang) }}"{% endif %}>
|
|
254
|
+
<img class="govcy-eu-logo govcy-mb-2{% if footerIcon.classes %} {{ footerIcon.classes }}{% endif %}" src="{{ govcyLocalizeContent(footerIcon.src, site.lang, true) }}" alt="{{ govcyLocalizeContent(footerIcon.alt, site.lang, true) }}"{% if footerIcon.style %} style="{{ govcyLocalizeContent(footerIcon.style, site.lang, true) }}"{% endif %}>
|
|
255
|
+
</a>
|
|
256
|
+
{%- endif %}
|
|
257
|
+
{% endfor %}
|
|
258
|
+
{%- endif %}
|
|
189
259
|
</div>
|
|
190
260
|
</div>
|
|
191
261
|
<div class="govcy-my-4">
|