@eeacms/volto-eea-design-system 0.4.2 → 0.4.5
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/CHANGELOG.md +66 -0
- package/package.json +1 -1
- package/src/semantic.less +0 -4
- package/src/ui/Divider/Divider.stories.jsx +170 -0
- package/src/ui/Footer/Contact.jsx +6 -4
- package/src/ui/Footer/FooterHeader.jsx +2 -2
- package/src/ui/Footer/FooterSites.jsx +1 -1
- package/src/ui/Footer/Social.jsx +2 -2
- package/src/ui/Footer/SubFooter.jsx +54 -0
- package/src/ui/Quote/Testimonial/Testimonial.jsx +3 -4
- package/storybook-static/favicon.ico +0 -0
- package/theme/theme.config +0 -1
- package/theme/themes/eea/assets/logo/EionetFull.svg +10 -0
- package/theme/themes/eea/assets/logo/climate-health.svg +53 -0
- package/theme/themes/eea/assets/logo/eea.svg +9 -0
- package/theme/themes/eea/assets/logo/eionet.svg +10 -0
- package/theme/themes/eea/assets/logo/fise.svg +37 -36
- package/theme/themes/eea/collections/menu.overrides +5 -5
- package/theme/themes/eea/elements/button.overrides +1 -1
- package/theme/themes/eea/elements/divider.overrides +63 -0
- package/theme/themes/eea/elements/divider.variables +10 -1
- package/theme/themes/eea/extras/footer.less +188 -225
- package/theme/themes/eea/extras/footer.variables +49 -77
- package/theme/themes/eea/modules/accordion.overrides +18 -0
- package/theme/themes/eea/modules/tab.overrides +2 -2
- package/theme/themes/eea/tokens/fonts.less +4 -3
- package/theme/themes/eea/views/card.overrides +7 -5
- package/src/ui/Divider/Divider.jsx +0 -7
- package/theme/themes/eea/extras/divider.less +0 -14
- package/theme/themes/eea/extras/divider.variables +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,74 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [0.4.5](https://github.com/eea/volto-eea-design-system/compare/0.4.4...0.4.5)
|
|
8
|
+
|
|
9
|
+
- Autobuild of docusaurus docs [`728c62b`](https://github.com/eea/volto-eea-design-system/commit/728c62b1ddc9ea5e7f551230b657897c6eafbc57)
|
|
10
|
+
- change(tabs): Add style for tabs accordion template #187 [`fb8adbf`](https://github.com/eea/volto-eea-design-system/commit/fb8adbf84ac564a14d45bb6e8f4e1661811672d5)
|
|
11
|
+
- Autobuild of docusaurus docs [`06fbae7`](https://github.com/eea/volto-eea-design-system/commit/06fbae751c4f14ace793d4aa51f1ba0b52fec735)
|
|
12
|
+
- change(footer): avoid react error by providing key prop to grid column [`ef0b193`](https://github.com/eea/volto-eea-design-system/commit/ef0b1937d614a889a0c2117e483a834ed1aec1e3)
|
|
13
|
+
- Cleanup [`d4b9637`](https://github.com/eea/volto-eea-design-system/commit/d4b9637ebd2d6c015f8d4323551c6cbc4b7506df)
|
|
14
|
+
- Add style for tabs accordion template [`a109983`](https://github.com/eea/volto-eea-design-system/commit/a10998372a268b99991f7dda55103149f29d00cb)
|
|
15
|
+
|
|
16
|
+
#### [0.4.4](https://github.com/eea/volto-eea-design-system/compare/0.4.3...0.4.4)
|
|
17
|
+
|
|
18
|
+
> 8 June 2022
|
|
19
|
+
|
|
20
|
+
- feat(footer,divider): refactoring and volto implementation [`#186`](https://github.com/eea/volto-eea-design-system/pull/186)
|
|
21
|
+
- Make dots container of slick slider relative [`#184`](https://github.com/eea/volto-eea-design-system/pull/184)
|
|
22
|
+
- [R3] Divider component [`#170`](https://github.com/eea/volto-eea-design-system/pull/170)
|
|
23
|
+
- Remove a tag for menu item -> use only the class [`#183`](https://github.com/eea/volto-eea-design-system/pull/183)
|
|
24
|
+
- Autobuild of docusaurus docs [`7f0962d`](https://github.com/eea/volto-eea-design-system/commit/7f0962d26986e801c46b3390a90640b4f5f8cd24)
|
|
25
|
+
- fix(divider): Text colors and transform [`e524e10`](https://github.com/eea/volto-eea-design-system/commit/e524e1002bb0700ea69782cf5a95c6073ab383d2)
|
|
26
|
+
- Autobuild of docusaurus docs [`1652dda`](https://github.com/eea/volto-eea-design-system/commit/1652dda1428a7e4736c0d1b818a0fe27255d12ea)
|
|
27
|
+
- refactor(footer): to latest figma design #182 [`3e0ba2b`](https://github.com/eea/volto-eea-design-system/commit/3e0ba2b659db9dc1b140d853840a06bd3ce31cab)
|
|
28
|
+
- Autobuild of docusaurus docs [`58402e0`](https://github.com/eea/volto-eea-design-system/commit/58402e040a8a5080b4a07cd575fb9fe87624b593)
|
|
29
|
+
- change(Divider): Rename color property to theme [`0deffc8`](https://github.com/eea/volto-eea-design-system/commit/0deffc823609d23131a85bc180e4a3f5a67a64aa)
|
|
30
|
+
- change(footer): tweaked column sizes to the values before my changes [`fdf2718`](https://github.com/eea/volto-eea-design-system/commit/fdf271868e44bce2904cc28c6fa924ee4c9ba759)
|
|
31
|
+
- refactor(footer): move subfooter logic to the proper component #185 [`3034577`](https://github.com/eea/volto-eea-design-system/commit/303457719128c9699dd34939bd8db2b647977667)
|
|
32
|
+
- change(footer): added managed by section as properties [`9328fc3`](https://github.com/eea/volto-eea-design-system/commit/9328fc3084baf22439e1892d256d9a167b911849)
|
|
33
|
+
- Autobuild of docusaurus docs [`d171921`](https://github.com/eea/volto-eea-design-system/commit/d1719215a0ec3c52474b79d647618e329a627e08)
|
|
34
|
+
- lint fix [`657cf4e`](https://github.com/eea/volto-eea-design-system/commit/657cf4ed917c4ff992aa033c3d9f4884a949d86d)
|
|
35
|
+
- change(footer): moved SubFooter logic to SubFooter.jsx from Footer story [`902383a`](https://github.com/eea/volto-eea-design-system/commit/902383a0bb3446dc69237099bd429ead5e30a6c1)
|
|
36
|
+
- Remove unnecessary spaces [`d137981`](https://github.com/eea/volto-eea-design-system/commit/d137981430809345bfb3ad494e7ab981c93c3e51)
|
|
37
|
+
- Autobuild of docusaurus docs [`5b0be9c`](https://github.com/eea/volto-eea-design-system/commit/5b0be9cc97e1166b983f46d5732e5c57f4e970d0)
|
|
38
|
+
- refactor(testimonial): changed divider color to secondary [`84282f9`](https://github.com/eea/volto-eea-design-system/commit/84282f960ab22ccb8403e975c055c61d1023193a)
|
|
39
|
+
- Autobuild of docusaurus docs [`e856488`](https://github.com/eea/volto-eea-design-system/commit/e85648834e23c02670957b8463d4e0fd3a649728)
|
|
40
|
+
- fix(footer): story aria labels for social media links [`254bdc7`](https://github.com/eea/volto-eea-design-system/commit/254bdc7ba944943f5d08a71f9d0a3a31bdc06044)
|
|
41
|
+
- docs(divider): switch to secondary color [`239844b`](https://github.com/eea/volto-eea-design-system/commit/239844be374a2f6bc4667e7ab3d2f52bfdc181ad)
|
|
42
|
+
- perf(storybook): added storybook favicon [`38eabc3`](https://github.com/eea/volto-eea-design-system/commit/38eabc3124c85dd56bf5c68c0fb1e967c39055ec)
|
|
43
|
+
- docs(divider): showcase path fix [`d5ea03f`](https://github.com/eea/volto-eea-design-system/commit/d5ea03f60034edc918054aa273e44b84b2537716)
|
|
44
|
+
- refactor(footer): update links and logo align [`7afbab9`](https://github.com/eea/volto-eea-design-system/commit/7afbab9b37982a557ac8bfa4430205ce912c3b8b)
|
|
45
|
+
- refactor(footer): logo updates and adjustments [`101bc9d`](https://github.com/eea/volto-eea-design-system/commit/101bc9dfe4136240457f335de867a83c28d59339)
|
|
46
|
+
- fix(divider): restore space between classes [`c595c15`](https://github.com/eea/volto-eea-design-system/commit/c595c152c144463f33757157ed7d6797ae31ceed)
|
|
47
|
+
- refactor(footer): update controls [`b0b872b`](https://github.com/eea/volto-eea-design-system/commit/b0b872b1415c9792a5886f619195f9c0471ea564)
|
|
48
|
+
- refactor(footer): use tokens and adjust spacing [`2cb1669`](https://github.com/eea/volto-eea-design-system/commit/2cb166949913f725271050e863b38e7630748135)
|
|
49
|
+
- refactor(Divider):add divider with content inside story [`e2d66dc`](https://github.com/eea/volto-eea-design-system/commit/e2d66dca901fa189d69b65239dc34b1969097be8)
|
|
50
|
+
- refactor(footer): use remix icons for social links [`5ef9aa2`](https://github.com/eea/volto-eea-design-system/commit/5ef9aa2cebb6f96857a1920cefbf7e367b4d7c28)
|
|
51
|
+
- refactor(Divider_:remove green color class & add tertiary [`95f3018`](https://github.com/eea/volto-eea-design-system/commit/95f30186bc1768e08f00ad7d5ffa2a70402ac553)
|
|
52
|
+
- refactor(Divider):remove clean class and use fitted prop [`8d2be35`](https://github.com/eea/volto-eea-design-system/commit/8d2be350dcc44fd56b5fbfb791fb6b2a45bd8a52)
|
|
53
|
+
- refactor(footer): update logos and less structure [`66b8e0f`](https://github.com/eea/volto-eea-design-system/commit/66b8e0f12825968d94f7d572f2823d9a8a3a239b)
|
|
54
|
+
- refactor(footer): first footer updates [`d18a2ee`](https://github.com/eea/volto-eea-design-system/commit/d18a2ee59d0deb143075d8dfeb949898ad1f6399)
|
|
55
|
+
- refactor(divider): remove custom divider from theme config [`a0409e8`](https://github.com/eea/volto-eea-design-system/commit/a0409e8df3c9ba043717140455369a3630f0da85)
|
|
56
|
+
- refactor(testimonial): update divider [`784450a`](https://github.com/eea/volto-eea-design-system/commit/784450abdf395318fe89d8d3d0a1e398393cc93c)
|
|
57
|
+
- refactor(divider): remove custom divider [`d4870d2`](https://github.com/eea/volto-eea-design-system/commit/d4870d2252ad216e82213fa1f94cc39609ae676d)
|
|
58
|
+
- feat(divider): create story for divider [`b10a2e0`](https://github.com/eea/volto-eea-design-system/commit/b10a2e08b14962bed9f13317754f4124ee60d313)
|
|
59
|
+
|
|
60
|
+
#### [0.4.3](https://github.com/eea/volto-eea-design-system/compare/0.4.2...0.4.3)
|
|
61
|
+
|
|
62
|
+
> 3 June 2022
|
|
63
|
+
|
|
64
|
+
- Release [`#181`](https://github.com/eea/volto-eea-design-system/pull/181)
|
|
65
|
+
- Autobuild of docusaurus docs [`adc7b64`](https://github.com/eea/volto-eea-design-system/commit/adc7b64312b98a56a893bc99571149353a8c0f00)
|
|
66
|
+
- fix(edit): Fix columns/accordion inner toolbar padding [`fafbb52`](https://github.com/eea/volto-eea-design-system/commit/fafbb525baa60c339906dc6a33d2f9418d050be6)
|
|
67
|
+
- Autobuild of docusaurus docs [`12f9a51`](https://github.com/eea/volto-eea-design-system/commit/12f9a51906a6b444857c2b2c988436eeab412064)
|
|
68
|
+
- change(docusaurus): completed removal of description from guides [`42424b9`](https://github.com/eea/volto-eea-design-system/commit/42424b9213ece8d8df84d40f1b73e142cb0ffc6b)
|
|
69
|
+
|
|
7
70
|
#### [0.4.2](https://github.com/eea/volto-eea-design-system/compare/0.4.1...0.4.2)
|
|
8
71
|
|
|
72
|
+
> 2 June 2022
|
|
73
|
+
|
|
74
|
+
- Release [`#179`](https://github.com/eea/volto-eea-design-system/pull/179)
|
|
9
75
|
- Autobuild of docusaurus docs [`bc17743`](https://github.com/eea/volto-eea-design-system/commit/bc177436897f80d6ae37fe4856099733831b2c8a)
|
|
10
76
|
- change(docusaurus): color guideline updates and spacing tokens documentation #148 [`c1154ba`](https://github.com/eea/volto-eea-design-system/commit/c1154ba172c3b3b40b565c2bcb590f1a5e6b25a4)
|
|
11
77
|
- change(docusaurus): moved color swatches around in the color guide [`8a395fc`](https://github.com/eea/volto-eea-design-system/commit/8a395fce52a32cf92449a24d3d4cce5abf25a284)
|
package/package.json
CHANGED
package/src/semantic.less
CHANGED
|
@@ -233,10 +233,6 @@
|
|
|
233
233
|
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/inpageNavigation';
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
& {
|
|
237
|
-
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/divider';
|
|
238
|
-
}
|
|
239
|
-
|
|
240
236
|
& {
|
|
241
237
|
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/testimonial';
|
|
242
238
|
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Divider, Container } from 'semantic-ui-react';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/Divider',
|
|
6
|
+
component: Divider,
|
|
7
|
+
argTypes: {
|
|
8
|
+
theme: {
|
|
9
|
+
options: ['default', 'primary', 'secondary', 'tertiary'],
|
|
10
|
+
control: { type: 'select' },
|
|
11
|
+
description: 'Variations of the divider',
|
|
12
|
+
table: {
|
|
13
|
+
type: {
|
|
14
|
+
summary: 'string',
|
|
15
|
+
},
|
|
16
|
+
defaultValue: {
|
|
17
|
+
summary: 'default',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
section: {
|
|
22
|
+
description:
|
|
23
|
+
'A divider can provide greater margins to divide sections of content.',
|
|
24
|
+
table: {
|
|
25
|
+
type: {
|
|
26
|
+
summary: 'boolean',
|
|
27
|
+
},
|
|
28
|
+
defaultValue: {
|
|
29
|
+
summary: false,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
hidden: {
|
|
34
|
+
description:
|
|
35
|
+
'A hidden divider divides content without creating a dividing line',
|
|
36
|
+
table: {
|
|
37
|
+
type: {
|
|
38
|
+
summary: 'boolean',
|
|
39
|
+
},
|
|
40
|
+
defaultValue: {
|
|
41
|
+
summary: false,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
short: {
|
|
46
|
+
description: 'Shot divider',
|
|
47
|
+
table: {
|
|
48
|
+
type: {
|
|
49
|
+
summary: 'boolean',
|
|
50
|
+
},
|
|
51
|
+
defaultValue: {
|
|
52
|
+
summary: false,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
fitted: {
|
|
57
|
+
description: 'Remove space above or below the divider',
|
|
58
|
+
table: {
|
|
59
|
+
type: {
|
|
60
|
+
summary: 'boolean',
|
|
61
|
+
},
|
|
62
|
+
defaultValue: {
|
|
63
|
+
summary: false,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
content: {
|
|
68
|
+
description: 'Horizontal divider content',
|
|
69
|
+
table: {
|
|
70
|
+
type: {
|
|
71
|
+
summary: 'string | object',
|
|
72
|
+
},
|
|
73
|
+
defaultValue: {
|
|
74
|
+
summary: '',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
function Template({ hidden, theme, section, short, fitted }) {
|
|
82
|
+
return (
|
|
83
|
+
<Container>
|
|
84
|
+
<p>
|
|
85
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
|
|
86
|
+
ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
|
|
87
|
+
magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
|
|
88
|
+
ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
|
|
89
|
+
quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
|
|
90
|
+
arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
|
|
91
|
+
Nullam dictum felis eu pede link mollis.
|
|
92
|
+
</p>
|
|
93
|
+
<Divider
|
|
94
|
+
hidden={hidden}
|
|
95
|
+
section={section}
|
|
96
|
+
className={`${theme === 'default' ? '' : theme} ${
|
|
97
|
+
short ? 'short' : ''
|
|
98
|
+
}`}
|
|
99
|
+
fitted={fitted}
|
|
100
|
+
/>
|
|
101
|
+
<p>
|
|
102
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
|
|
103
|
+
ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
|
|
104
|
+
magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
|
|
105
|
+
ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
|
|
106
|
+
quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
|
|
107
|
+
arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
|
|
108
|
+
Nullam dictum felis eu pede link mollis.
|
|
109
|
+
</p>
|
|
110
|
+
</Container>
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export const Default = Template.bind({});
|
|
115
|
+
Default.args = {
|
|
116
|
+
theme: 'default',
|
|
117
|
+
hidden: false,
|
|
118
|
+
section: false,
|
|
119
|
+
short: false,
|
|
120
|
+
fitted: false,
|
|
121
|
+
};
|
|
122
|
+
Default.parameters = {
|
|
123
|
+
controls: { exclude: ['content'] },
|
|
124
|
+
hideNoControlsWarning: true,
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
function DividerWithContentTemplate({ content, theme, section, fitted }) {
|
|
128
|
+
return (
|
|
129
|
+
<Container>
|
|
130
|
+
<p>
|
|
131
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
|
|
132
|
+
ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
|
|
133
|
+
magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
|
|
134
|
+
ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
|
|
135
|
+
quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
|
|
136
|
+
arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
|
|
137
|
+
Nullam dictum felis eu pede link mollis.
|
|
138
|
+
</p>
|
|
139
|
+
<Divider
|
|
140
|
+
horizontal
|
|
141
|
+
section={section}
|
|
142
|
+
className={`${theme === 'default' ? '' : theme}`}
|
|
143
|
+
fitted={fitted}
|
|
144
|
+
>
|
|
145
|
+
<div>{content}</div>
|
|
146
|
+
</Divider>
|
|
147
|
+
<p>
|
|
148
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
|
|
149
|
+
ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
|
|
150
|
+
magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
|
|
151
|
+
ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
|
|
152
|
+
quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
|
|
153
|
+
arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
|
|
154
|
+
Nullam dictum felis eu pede link mollis.
|
|
155
|
+
</p>
|
|
156
|
+
</Container>
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export const DividerWithContent = DividerWithContentTemplate.bind({});
|
|
161
|
+
DividerWithContent.args = {
|
|
162
|
+
content: 'Divider Content',
|
|
163
|
+
theme: 'default',
|
|
164
|
+
section: false,
|
|
165
|
+
fitted: false,
|
|
166
|
+
};
|
|
167
|
+
DividerWithContent.parameters = {
|
|
168
|
+
controls: { exclude: ['short', 'hidden'] },
|
|
169
|
+
hideNoControlsWarning: true,
|
|
170
|
+
};
|
|
@@ -7,16 +7,18 @@ const Contact = ({ children, contacts, header, address }) =>
|
|
|
7
7
|
children?.length ? (
|
|
8
8
|
children
|
|
9
9
|
) : (
|
|
10
|
-
|
|
10
|
+
<div className="contact-block">
|
|
11
11
|
<p className="header">{header}</p>
|
|
12
12
|
{contacts?.map((contact, index) => (
|
|
13
13
|
<div className="contact" key={index}>
|
|
14
|
-
<
|
|
15
|
-
|
|
14
|
+
<Link to={contact.link}>
|
|
15
|
+
<Icon className={contact.icon} size="big"></Icon>
|
|
16
|
+
{contact.text}
|
|
17
|
+
</Link>
|
|
16
18
|
</div>
|
|
17
19
|
))}
|
|
18
20
|
{address && <p className="address">{address}</p>}
|
|
19
|
-
|
|
21
|
+
</div>
|
|
20
22
|
);
|
|
21
23
|
|
|
22
24
|
Contact.propTypes = {
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
const FooterHeader = (props) => {
|
|
4
4
|
return (
|
|
5
|
-
<div className="theme-sites">
|
|
6
|
-
<p className="header">{props.children}</p>
|
|
5
|
+
<div className="theme-sites mobile hidden">
|
|
6
|
+
<p className="header text-center">{props.children}</p>
|
|
7
7
|
</div>
|
|
8
8
|
);
|
|
9
9
|
};
|
package/src/ui/Footer/Social.jsx
CHANGED
|
@@ -9,9 +9,9 @@ const Social = (props) => {
|
|
|
9
9
|
|
|
10
10
|
return (
|
|
11
11
|
<div className="social">
|
|
12
|
-
{props.social
|
|
12
|
+
{props.social?.map((item, index) => (
|
|
13
13
|
<a href={item.link} aria-label={`${item.name} link`} key={index}>
|
|
14
|
-
<Icon
|
|
14
|
+
<Icon className={item.icon}></Icon>
|
|
15
15
|
</a>
|
|
16
16
|
))}
|
|
17
17
|
</div>
|
|
@@ -1,9 +1,63 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Footer from './Footer';
|
|
3
|
+
|
|
4
|
+
import { Grid, Image } from 'semantic-ui-react';
|
|
2
5
|
|
|
3
6
|
const SubFooter = (props) => {
|
|
4
7
|
if (props.children) {
|
|
5
8
|
return <div>{props.children}</div>;
|
|
6
9
|
}
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<div className={'subfooter'}>
|
|
13
|
+
<Grid>
|
|
14
|
+
<Grid.Column mobile={12} tablet={5} computer={6}>
|
|
15
|
+
<div className="item">
|
|
16
|
+
<p className="header text-center logo-header">
|
|
17
|
+
{props.logosHeader}
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<Grid>
|
|
21
|
+
{props.managedBy &&
|
|
22
|
+
props.managedBy.map((manager, index) => (
|
|
23
|
+
<Grid.Column
|
|
24
|
+
mobile={manager.columnSize.mobile}
|
|
25
|
+
tablet={manager.columnSize.tablet}
|
|
26
|
+
computer={manager.columnSize.computer}
|
|
27
|
+
key={index}
|
|
28
|
+
>
|
|
29
|
+
<div className={manager.className}>
|
|
30
|
+
<a href={manager.link}>
|
|
31
|
+
<Image src={manager.src} alt={manager.alt}></Image>
|
|
32
|
+
</a>
|
|
33
|
+
</div>
|
|
34
|
+
</Grid.Column>
|
|
35
|
+
))}
|
|
36
|
+
</Grid>
|
|
37
|
+
</div>
|
|
38
|
+
</Grid.Column>
|
|
39
|
+
<Grid.Column
|
|
40
|
+
mobile={6}
|
|
41
|
+
tablet={2}
|
|
42
|
+
computer={2}
|
|
43
|
+
className="mobile hidden"
|
|
44
|
+
></Grid.Column>
|
|
45
|
+
<Grid.Column mobile={12} tablet={5} computer={4}>
|
|
46
|
+
<div className="item">
|
|
47
|
+
<Footer.Contact
|
|
48
|
+
contacts={props.contacts}
|
|
49
|
+
header={props.contactHeader}
|
|
50
|
+
address={props.address}
|
|
51
|
+
/>
|
|
52
|
+
<Footer.Social social={props.social} />
|
|
53
|
+
</div>
|
|
54
|
+
</Grid.Column>
|
|
55
|
+
</Grid>
|
|
56
|
+
<Grid.Row>
|
|
57
|
+
<Footer.Actions actions={props.actions} />
|
|
58
|
+
</Grid.Row>
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
7
61
|
};
|
|
8
62
|
|
|
9
63
|
export default SubFooter;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Divider from '../../Divider/Divider';
|
|
4
3
|
|
|
5
4
|
import Quote from '../Quote';
|
|
6
|
-
import { Grid, Card, Image } from 'semantic-ui-react';
|
|
5
|
+
import { Grid, Card, Image, Divider } from 'semantic-ui-react';
|
|
7
6
|
|
|
8
7
|
Testimonial.propTypes = {
|
|
9
8
|
title: PropTypes.string,
|
|
@@ -12,9 +11,9 @@ Testimonial.propTypes = {
|
|
|
12
11
|
function Testimonial({ children, ...rest }) {
|
|
13
12
|
return (
|
|
14
13
|
<div className="eea testimonial" {...rest}>
|
|
15
|
-
<Divider />
|
|
14
|
+
<Divider fitted className="secondary" />
|
|
16
15
|
<Grid>{children}</Grid>
|
|
17
|
-
<Divider />
|
|
16
|
+
<Divider fitted className="secondary" />
|
|
18
17
|
</div>
|
|
19
18
|
);
|
|
20
19
|
}
|
|
Binary file
|