@openeuropa/bcl-data-footer 0.1.202408021145

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020-2021 Mark Otto
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/data--ec.js ADDED
@@ -0,0 +1,223 @@
1
+ const drupalAttribute = require("drupal-attribute");
2
+ const { getDummyText } = require("@openeuropa/bcl-data-utils");
3
+
4
+ module.exports = {
5
+ variant: "ec",
6
+ rows: [
7
+ {
8
+ extra_classes: "pt-4 pt-lg-5",
9
+ cols: [
10
+ {
11
+ classes: "col-12 col-lg-4",
12
+ items: [
13
+ {
14
+ type: "content",
15
+ content: `<p class='fw-bold mb-2'>[Project name]</p>${getDummyText(
16
+ 2,
17
+ true
18
+ )}`,
19
+ },
20
+ ],
21
+ },
22
+ {
23
+ classes: "col-12 col-lg-4 pb-4 pb-lg-0",
24
+ items: [
25
+ {
26
+ type: "content",
27
+ content:
28
+ "<p class='fw-bold border-bottom pb-2 mb-2'>Contact [project name]</p>",
29
+ },
30
+ {
31
+ type: "content",
32
+ content: "<p>Contact information of the DG</p>",
33
+ },
34
+ {
35
+ type: "content",
36
+ content:
37
+ "<p class='fw-bold border-bottom pb-2 mt-3 mb-2'>Follow us on social media</p>",
38
+ },
39
+ {
40
+ type: "links",
41
+ links: [
42
+ {
43
+ label: "Facebook",
44
+ path: "/example.html",
45
+ icon_position: "before",
46
+ icon: {
47
+ path: "/icons.svg",
48
+ name: "facebook",
49
+ size: "xs",
50
+ },
51
+ },
52
+ {
53
+ label: "Twitter",
54
+ path: "/example.html",
55
+ icon_position: "before",
56
+ icon: {
57
+ path: "/icons.svg",
58
+ name: "twitter",
59
+ size: "xs",
60
+ },
61
+ },
62
+ {
63
+ label: "Linkedin",
64
+ path: "/example.html",
65
+ icon_position: "before",
66
+ icon: {
67
+ name: "linkedin",
68
+ path: "/icons.svg",
69
+ size: "xs",
70
+ },
71
+ },
72
+ ],
73
+ },
74
+ ],
75
+ },
76
+ {
77
+ classes: "col-12 col-lg-4",
78
+ items: [
79
+ {
80
+ type: "content",
81
+ content:
82
+ "<p class='fw-bold border-bottom pb-2 mb-2'>About us</p>",
83
+ },
84
+ {
85
+ type: "content",
86
+ content: "<p>Information about the DG</p>",
87
+ },
88
+ {
89
+ type: "content",
90
+ content:
91
+ "<p class='fw-bold border-bottom pb-2 mb-2'>Optional links</p>",
92
+ },
93
+ {
94
+ type: "links",
95
+ links: [
96
+ {
97
+ path: "/example.html",
98
+ label: "Link",
99
+ },
100
+ {
101
+ path: "/example.html",
102
+ label: "Link",
103
+ },
104
+ {
105
+ path: "/example.html",
106
+ label: "Link",
107
+ },
108
+ {
109
+ path: "/example.html",
110
+ label: "Link",
111
+ },
112
+ ],
113
+ },
114
+ ],
115
+ },
116
+ ],
117
+ },
118
+ {
119
+ extra_classes: "pb-4 pb-lg-5 mt-4 mt-lg-5 bcl-footer__bordered-row",
120
+ cols: [
121
+ {
122
+ classes: "col-12 col-lg-4",
123
+ items: [
124
+ {
125
+ type: "content",
126
+ content: "<p class='fw-bold pb-2 mb-2'>More information on:</p>",
127
+ },
128
+ {
129
+ type: "links",
130
+ links: [
131
+ {
132
+ label: "Link",
133
+ path: "/example.html",
134
+ },
135
+ {
136
+ label: "Link",
137
+ path: "/example.html",
138
+ },
139
+ {
140
+ label: "Link",
141
+ path: "/example.html",
142
+ },
143
+ {
144
+ label: "Link",
145
+ path: "/example.html",
146
+ },
147
+ ],
148
+ },
149
+ ],
150
+ },
151
+ ],
152
+ },
153
+ {
154
+ extra_classes: "pb-4 pb-lg-5 bcl-footer__bordered-row",
155
+ cols: [
156
+ {
157
+ classes: "col-12 col-lg-4 pb-lg-4",
158
+ items: [
159
+ {
160
+ type: "content",
161
+ content: "<p class='fw-bold pb-2 mb-2'>European Commission</p>",
162
+ },
163
+ ],
164
+ },
165
+ {
166
+ classes: "col-12 col-lg-4",
167
+ items: [
168
+ {
169
+ type: "links",
170
+ links: [
171
+ {
172
+ label: "European Commission",
173
+ path: "/example.html",
174
+ },
175
+ {
176
+ label: "Follow the EC on social media",
177
+ path: "/example.html",
178
+ icon_position: "after",
179
+ icon: {
180
+ name: "box-arrow-up-right",
181
+ size: "xs",
182
+ path: "/icons.svg",
183
+ attributes: new drupalAttribute().addClass(["ms-2"]),
184
+ },
185
+ },
186
+ {
187
+ label: "Resources for partners",
188
+ path: "/example.html",
189
+ },
190
+ ],
191
+ },
192
+ ],
193
+ },
194
+ {
195
+ classes: "col-12 col-lg-4",
196
+ items: [
197
+ {
198
+ type: "links",
199
+ links: [
200
+ {
201
+ label: "Language policy",
202
+ path: "/example.html",
203
+ },
204
+ {
205
+ label: "Cookies",
206
+ path: "/example.html",
207
+ },
208
+ {
209
+ label: "Privacy policy",
210
+ path: "/example.html",
211
+ },
212
+ {
213
+ label: "Legal notice",
214
+ path: "/example.html",
215
+ },
216
+ ],
217
+ },
218
+ ],
219
+ },
220
+ ],
221
+ },
222
+ ],
223
+ };
package/data--eu.js ADDED
@@ -0,0 +1,279 @@
1
+ const { getDummyText } = require("@openeuropa/bcl-data-utils");
2
+
3
+ module.exports = {
4
+ variant: "eu",
5
+ rows: [
6
+ {
7
+ extra_classes: "pt-4 pt-lg-5",
8
+ cols: [
9
+ {
10
+ classes: "col-12 col-lg-4",
11
+ items: [
12
+ {
13
+ type: "content",
14
+ content: `<p class='fw-bold mb-2'>[Project name]</p>${getDummyText(
15
+ 2,
16
+ true
17
+ )}`,
18
+ },
19
+ ],
20
+ },
21
+ {
22
+ classes: "col-12 col-lg-4 pb-4 pb-lg-0",
23
+ items: [
24
+ {
25
+ type: "content",
26
+ content:
27
+ "<p class='fw-bold border-bottom pb-2 mb-2'>Contact [project name]</p>",
28
+ },
29
+ {
30
+ type: "links",
31
+ links: [
32
+ {
33
+ label: "Link",
34
+ path: "/example.html",
35
+ },
36
+ ],
37
+ },
38
+ {
39
+ type: "content",
40
+ content:
41
+ "<p class='fw-bold border-bottom pb-2 mt-3 mb-2'>Follow us on social media</p>",
42
+ },
43
+ {
44
+ type: "links",
45
+ links: [
46
+ {
47
+ label: "Facebook",
48
+ icon_position: "before",
49
+ path: "/example.html",
50
+ icon: {
51
+ name: "facebook",
52
+ size: "xs",
53
+ path: "/icons.svg",
54
+ },
55
+ },
56
+ {
57
+ label: "Twitter",
58
+ icon_position: "before",
59
+ path: "/example.html",
60
+ icon: {
61
+ name: "twitter",
62
+ size: "xs",
63
+ path: "/icons.svg",
64
+ },
65
+ },
66
+ {
67
+ label: "Linkedin",
68
+ path: "/example.html",
69
+ icon_position: "before",
70
+ icon: {
71
+ path: "/icons.svg",
72
+ name: "linkedin",
73
+ size: "xs",
74
+ },
75
+ },
76
+ ],
77
+ },
78
+ ],
79
+ },
80
+ {
81
+ classes: "col-12 col-lg-4",
82
+ items: [
83
+ {
84
+ type: "content",
85
+ content:
86
+ "<p class='fw-bold border-bottom pb-2 mb-2'>Optional links</p>",
87
+ },
88
+ {
89
+ type: "links",
90
+ links: [
91
+ {
92
+ label: "Link",
93
+ path: "/example.html",
94
+ },
95
+ {
96
+ label: "Link",
97
+ path: "/example.html",
98
+ },
99
+ {
100
+ label: "Link",
101
+ path: "/example.html",
102
+ },
103
+ {
104
+ label: "Link",
105
+ path: "/example.html",
106
+ },
107
+ ],
108
+ },
109
+ ],
110
+ },
111
+ ],
112
+ },
113
+ {
114
+ extra_classes: "pb-4 pb-lg-5 mt-4 mt-lg-5 bcl-footer__bordered-row",
115
+ cols: [
116
+ {
117
+ classes: "col-12 col-lg-4 pb-4",
118
+ items: [
119
+ {
120
+ type: "image",
121
+ path: "https://cdn1.fpfis.tech.ec.europa.eu/ecl/v3.0.2/eu/images/logo/standard-version/positive/logo-eu--en.svg",
122
+ alt: "logo",
123
+ },
124
+ ],
125
+ },
126
+ {
127
+ classes: "col-12 col-lg-4",
128
+ items: [
129
+ {
130
+ type: "content",
131
+ content:
132
+ "<p class='fw-bold border-bottom pb-2 mb-2'>Contact the EU</p>",
133
+ },
134
+ {
135
+ type: "links",
136
+ links: [
137
+ {
138
+ label: "Call us 00 800 6 7 8 9 10 11",
139
+ path: "/example.html",
140
+ },
141
+ {
142
+ label: "Use other telephone options",
143
+ path: "/example.html",
144
+ },
145
+ {
146
+ label: "Write us via our contact form",
147
+ path: "/example.html",
148
+ },
149
+ {
150
+ label: "Meet us at a local EU office",
151
+ path: "/example.html",
152
+ },
153
+ ],
154
+ },
155
+ {
156
+ type: "content",
157
+ content:
158
+ "<p class='fw-bold border-bottom pb-2 pt-3 mb-2'>Social media</p>",
159
+ },
160
+ {
161
+ type: "content",
162
+ content:
163
+ "<p>Search for <a href='/example.html' class='mb-2'>EU social media channels</a></p>",
164
+ },
165
+ {
166
+ type: "content",
167
+ content:
168
+ "<p class='fw-bold border-bottom pb-2 pt-3 mb-2'>Legal</p>",
169
+ },
170
+ {
171
+ type: "links",
172
+ links: [
173
+ {
174
+ label: "Language policy",
175
+ path: "/example.html",
176
+ },
177
+ {
178
+ label: "Privacy policy",
179
+ path: "/example.html",
180
+ },
181
+ {
182
+ label: "Legal notice",
183
+ path: "/example.html",
184
+ },
185
+ {
186
+ label: "Cookies",
187
+ path: "/example.html",
188
+ },
189
+ ],
190
+ },
191
+ ],
192
+ },
193
+ {
194
+ classes: "col-12 col-lg-4",
195
+ items: [
196
+ {
197
+ type: "content",
198
+ content:
199
+ "<p class='fw-bold border-bottom pb-2 pt-4 pt-lg-0 mb-2'>EU institutions</p>",
200
+ },
201
+ {
202
+ type: "links",
203
+ links: [
204
+ {
205
+ label: "European Parliament",
206
+ path: "/example.html",
207
+ },
208
+ {
209
+ label: "European Council",
210
+ path: "/example.html",
211
+ },
212
+ {
213
+ label: "Council of the European Union",
214
+ path: "/example.html",
215
+ },
216
+ {
217
+ label: "European Commission",
218
+ path: "/example.html",
219
+ },
220
+ {
221
+ label: "Court of Justice of the European Union",
222
+ path: "/example.html",
223
+ },
224
+ {
225
+ label: "European Central Bank",
226
+ path: "/example.html",
227
+ },
228
+ {
229
+ label: "European Court of Auditors",
230
+ path: "/example.html",
231
+ },
232
+ {
233
+ label: "European External Action Service",
234
+ path: "/example.html",
235
+ },
236
+ {
237
+ label: "European Economic and Social Committee",
238
+ path: "/example.html",
239
+ },
240
+ {
241
+ label: "European Committee of the Region",
242
+ path: "/example.html",
243
+ },
244
+ {
245
+ label: "European Investment Bank",
246
+ path: "/example.html",
247
+ },
248
+ {
249
+ label: "European Ombudsman",
250
+ path: "/example.html",
251
+ },
252
+ {
253
+ label: "European Data Protection Supervisor",
254
+ path: "/example.html",
255
+ },
256
+ {
257
+ label: "European Data Protection Board",
258
+ path: "/example.html",
259
+ },
260
+ {
261
+ label: "European Personnel Selection Office",
262
+ path: "/example.html",
263
+ },
264
+ {
265
+ label: "Publications Office of the European Union",
266
+ path: "/example.html",
267
+ },
268
+ {
269
+ label: "Agencies",
270
+ path: "/example.html",
271
+ },
272
+ ],
273
+ },
274
+ ],
275
+ },
276
+ ],
277
+ },
278
+ ],
279
+ };
package/data.js ADDED
@@ -0,0 +1,152 @@
1
+ const { getDummyText } = require("@openeuropa/bcl-data-utils");
2
+
3
+ module.exports = {
4
+ rows: [
5
+ {
6
+ extra_classes: "pt-4 pt-lg-5",
7
+ cols: [
8
+ {
9
+ classes: "col-12 col-lg-4",
10
+ items: [
11
+ {
12
+ type: "content",
13
+ content: `<p class='fw-bold mb-2'>[Project name]</p>${getDummyText(
14
+ 2,
15
+ true
16
+ )}`,
17
+ },
18
+ ],
19
+ },
20
+ {
21
+ classes: "col-12 col-lg-4 pb-4 pb-lg-0",
22
+ items: [
23
+ {
24
+ type: "content",
25
+ content:
26
+ "<p class='fw-bold border-bottom pb-2 mb-2'>Contact [project name]</p>",
27
+ },
28
+ {
29
+ type: "content",
30
+ content: "<p>Contact information of the DG</p>",
31
+ },
32
+ {
33
+ type: "content",
34
+ content:
35
+ "<p class='fw-bold border-bottom pb-2 mt-3 mb-2'>Follow us on social media</p>",
36
+ },
37
+ {
38
+ type: "links",
39
+ links: [
40
+ {
41
+ label: "Facebook",
42
+ icon_position: "before",
43
+ path: "/example.html",
44
+ icon: {
45
+ path: "/icons.svg",
46
+ name: "facebook",
47
+ size: "xs",
48
+ },
49
+ },
50
+ {
51
+ label: "Twitter",
52
+ path: "/example.html",
53
+ icon_position: "before",
54
+ icon: {
55
+ path: "/icons.svg",
56
+ name: "twitter",
57
+ size: "xs",
58
+ },
59
+ },
60
+ {
61
+ label: "Linkedin",
62
+ path: "/example.html",
63
+ icon_position: "before",
64
+ icon: {
65
+ name: "linkedin",
66
+ path: "/icons.svg",
67
+ size: "xs",
68
+ },
69
+ },
70
+ ],
71
+ },
72
+ ],
73
+ },
74
+ {
75
+ classes: "col-12 col-lg-4",
76
+ items: [
77
+ {
78
+ type: "content",
79
+ content:
80
+ "<p class='fw-bold border-bottom pb-2 mb-2'>About us</p>",
81
+ },
82
+ {
83
+ type: "content",
84
+ content: "<p>Information about the DG</p>",
85
+ },
86
+ {
87
+ type: "content",
88
+ content:
89
+ "<p class='fw-bold border-bottom pb-2 mb-2'>Optional links</p>",
90
+ },
91
+ {
92
+ type: "links",
93
+ links: [
94
+ {
95
+ label: "Link",
96
+ path: "/example.html",
97
+ },
98
+ {
99
+ label: "Link",
100
+ path: "/example.html",
101
+ },
102
+ {
103
+ label: "Link",
104
+ path: "/example.html",
105
+ },
106
+ {
107
+ label: "Link",
108
+ path: "/example.html",
109
+ },
110
+ ],
111
+ },
112
+ ],
113
+ },
114
+ ],
115
+ },
116
+ {
117
+ extra_classes: "pb-4 pb-lg-5 mt-4 mt-lg-5 bcl-footer__bordered-row",
118
+ cols: [
119
+ {
120
+ classes: "col-12 col-lg-4",
121
+ items: [
122
+ {
123
+ type: "content",
124
+ content: "<p class='fw-bold pb-2 mb-2'>More information on:</p>",
125
+ },
126
+ {
127
+ type: "links",
128
+ links: [
129
+ {
130
+ label: "Link",
131
+ path: "/example.html",
132
+ },
133
+ {
134
+ label: "Link",
135
+ path: "/example.html",
136
+ },
137
+ {
138
+ label: "Link",
139
+ path: "/example.html",
140
+ },
141
+ {
142
+ label: "Link",
143
+ path: "/example.html",
144
+ },
145
+ ],
146
+ },
147
+ ],
148
+ },
149
+ ],
150
+ },
151
+ ],
152
+ };
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@openeuropa/bcl-data-footer",
3
+ "author": "European Commission",
4
+ "license": "EUPL-1.2",
5
+ "version": "0.1.202408021145",
6
+ "description": "OE footer data",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": ""
13
+ },
14
+ "bugs": {
15
+ "url": ""
16
+ },
17
+ "homepage": "",
18
+ "keywords": [
19
+ "oe",
20
+ "component-library",
21
+ "design-system"
22
+ ],
23
+ "gitHead": "7ee2013f7f64a70ddfa35228a9a65967dd71eec3"
24
+ }