@openeuropa/bcl-group 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.
@@ -0,0 +1,101 @@
1
+ {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" %}
2
+
3
+ {% block banner %}
4
+ <div class="container">
5
+ {% if banner is not empty %}
6
+ <div class="mt-4 mt-md-5">
7
+ {% if banner.image is not empty %}
8
+ <img
9
+ src="{{ banner.image.path }}"
10
+ {% if banner.image.alt is not empty %}
11
+ alt="{{ banner.image.alt }}"
12
+ {% endif %}
13
+ {% if banner.image.class is not empty %}
14
+ class="{{ banner.image.class }}"
15
+ {% endif %}
16
+ />
17
+ {% endif %}
18
+ {% if banner.title is not empty %}
19
+ <div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
20
+ <h1 class="mb-0 d-inline-block">{{ banner.title }}</h1>
21
+ {% if banner.actions is not empty and banner.actions is iterable %}
22
+ <div class="d-grid d-md-block ms-auto">
23
+ {% for _action in banner.actions %}
24
+ {% if _action.type == "link" %}
25
+ {% include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
26
+ {% elseif _action.type == "button" %}
27
+ {% include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
28
+ {% elseif _action.type == "dropdown" %}
29
+ {% include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
30
+ {% endif %}
31
+ {% endfor %}
32
+ </div>
33
+ {% endif %}
34
+ </div>
35
+ {% endif %}
36
+ </div>
37
+ {% endif %}
38
+ {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
39
+ {% if banner_description is not empty and contact is not empty %}
40
+ {% include '@oe-bcl/bcl-link/link.html.twig' with banner_description.collapse_trigger only %}
41
+ <div class="collapse d-md-block" id="banner-description">
42
+ <div class="row mt-md-4 mb-md-5 pb-md-5">
43
+ <div class="col-md-8">
44
+ <div class="ps-md-3">
45
+ {% if banner_description.metas is not empty and banner_description.metas is iterable %}
46
+ <div class="d-block">
47
+ {% for _meta in banner_description.metas %}
48
+ <p class="mb-0 me-4 d-inline-block text-muted">
49
+ {% include '@oe-bcl/bcl-icon/icon.html.twig' with _meta.icon only %}
50
+ {{- _meta.label -}}
51
+ </p>
52
+ {% endfor %}
53
+ </div>
54
+ {% endif %}
55
+ {{ banner_description.content }}
56
+ </div>
57
+ </div>
58
+ <div class="col-md-4">
59
+ <h2 class="mb-3 pb-2">{{ contact.title }}</h2>
60
+ {% if contact.profiles is not empty and contact.profiles is iterable %}
61
+ {% for _profile in contact.profiles %}
62
+ {% include '@oe-bcl/bcl-user/user-compact.html.twig' with _profile only %}
63
+ {% endfor %}
64
+ {% endif %}
65
+ {% if contact.more_link is not empty %}
66
+ {% include '@oe-bcl/bcl-link/link.html.twig' with contact.more_link only %}
67
+ {% endif %}
68
+ </div>
69
+ </div>
70
+ </div>
71
+ {% endif %}
72
+ </div>
73
+ {% endblock %}
74
+
75
+ {% block content %}
76
+ {% if recent is not empty and members is not empty %}
77
+ <div class="row mt-3">
78
+ <div class="col-md-8">
79
+ <h2 class="mb-4 pb-2">{{ recent.title }}</h2>
80
+ {% include '@oe-bcl/bcl-recent-activities/recent-activities.html.twig' with recent.block_data only %}
81
+ </div>
82
+ <div class="col-md-4">
83
+ <h2 class="mt-4 mt-md-0 mb-4 pb-2">{{ members.title}}</h2>
84
+ {% if members.profiles is not empty and members.profiles is iterable %}
85
+ {% for _profile in members.profiles %}
86
+ {% include '@oe-bcl/bcl-user/user-compact.html.twig' with _profile only %}
87
+ {% endfor %}
88
+ {% endif %}
89
+ {% if members.more_link is not empty %}
90
+ {% include '@oe-bcl/bcl-link/link.html.twig' with members.more_link only %}
91
+ {% endif %}
92
+ </div>
93
+ </div>
94
+ {% endif %}
95
+ {% if contributions is not empty %}
96
+ <h2 class="my-4 pt-3 pb-2">{{ contributions.title}}</h2>
97
+ {% if contributions.listing is not empty %}
98
+ {% include '@oe-bcl/bcl-listing/listing.html.twig' with contributions.listing only %}
99
+ {% endif %}
100
+ {% endif %}
101
+ {% endblock %}
@@ -0,0 +1,27 @@
1
+ {% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" %}
2
+
3
+ {% block banner %}
4
+ <div class="container mt-4 mt-md-5">
5
+ <div class="col-xxl-11">
6
+ <div class="p-md-3-5 pt-3 bg-lighter d-md-flex n-mx-container">
7
+ <h1 class="mb-0 d-inline-block">{{ banner.main_title }}</h1>
8
+ {% if banner.actions is not empty and banner.actions is iterable %}
9
+ <div class="d-grid d-md-block ms-auto">
10
+ {% for _action in banner.actions %}
11
+ {% if _action.type == "link" %}
12
+ {% include '@oe-bcl/bcl-link/link.html.twig' with _action only %}
13
+ {% elseif _action.type == "button" %}
14
+ {% include '@oe-bcl/bcl-button/button.html.twig' with _action only %}
15
+ {% elseif _action.type == "dropdown" %}
16
+ {% include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _action only %}
17
+ {% endif %}
18
+ {% endfor %}
19
+ </div>
20
+ {% endif %}
21
+ </div>
22
+ {% if navigation is not empty %}
23
+ {% include '@oe-bcl/bcl-navigation/navigation.html.twig' with navigation only %}
24
+ {% endif %}
25
+ </div>
26
+ </div>
27
+ {% endblock %}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@openeuropa/bcl-group",
3
+ "author": "European Commission",
4
+ "license": "EUPL-1.2",
5
+ "version": "0.1.202408021145",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "description": "OE - BCL group",
10
+ "dependencies": {
11
+ "@openeuropa/bcl-base-templates": "^0.1.202408021145",
12
+ "@openeuropa/bcl-button": "^0.1.202408021145",
13
+ "@openeuropa/bcl-dropdown": "^0.1.202408021145",
14
+ "@openeuropa/bcl-icon": "^0.1.202408021145",
15
+ "@openeuropa/bcl-link": "^0.1.202408021145",
16
+ "@openeuropa/bcl-listing": "^0.1.202408021145",
17
+ "@openeuropa/bcl-navigation": "^0.1.202408021145",
18
+ "@openeuropa/bcl-recent-activities": "^0.1.202408021145",
19
+ "@openeuropa/bcl-user": "^0.1.202408021145"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/openeuropa/bootstrap-component-library.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/openeuropa/bootstrap-component-library.git/issues"
27
+ },
28
+ "homepage": "https://github.com/openeuropa/bootstrap-component-library",
29
+ "keywords": [
30
+ "openeuropa",
31
+ "bootstrap-component-library",
32
+ "design-system",
33
+ "twig"
34
+ ],
35
+ "gitHead": "7ee2013f7f64a70ddfa35228a9a65967dd71eec3"
36
+ }