@eeacms/volto-eea-design-system 1.0.0-alpha.5 → 1.0.0-alpha.6
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 +35 -1
- package/package.json +1 -1
- package/src/semantic.less +4 -0
- package/src/ui/Banner/Banner.stories.jsx +37 -1
- package/src/ui/Copyright/Copyright.jsx +27 -0
- package/src/ui/Copyright/Copyright.stories.jsx +40 -0
- package/src/ui/Header/Header.jsx +15 -12
- package/src/ui/Hero/Hero.jsx +20 -1
- package/src/ui/Hero/Hero.stories.jsx +70 -0
- package/src/ui/TagList/TagList.jsx +4 -0
- package/src/ui/TagList/TagList.stories.jsx +7 -5
- package/src/ui/index.js +2 -0
- package/theme/theme.config +1 -0
- package/theme/themes/eea/extras/banner.less +2 -1
- package/theme/themes/eea/extras/copyright.less +29 -0
- package/theme/themes/eea/extras/copyright.variables +11 -0
- package/theme/themes/eea/extras/hero.less +7 -0
- package/theme/themes/eea/extras/hero.variables +5 -1
- package/theme/themes/eea/extras/tagList.less +8 -0
- package/theme/themes/eea/extras/tagList.variables +2 -1
- package/website/docs/2-whatsnew.md +39 -4
- package/website/docs/webdev/3-Guidelines/3-images.md +6 -0
- package/website/docs/webdev/md_components/media_container_image_components/usage_markdown.md +2 -1
- package/website/docs/webdev/md_components/page_header_components/usage_markdown.md +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,41 @@ 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
|
+
### [1.0.0-alpha.6](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.5...1.0.0-alpha.6) - 7 December 2022
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(Header): add hideSearch prop [Miu Razvan - [`13ddfe5`](https://github.com/eea/volto-eea-design-system/commit/13ddfe59a6bd7fe2050b70ac4524a6f6c5c169ea)]
|
|
12
|
+
- feat(Docusaurus): Image copyright information #257 from eea/image-copyright-info [ichim-david - [`2119515`](https://github.com/eea/volto-eea-design-system/commit/21195153240da052acb7171f7904449ed7854cb3)]
|
|
13
|
+
- feat(copyright): create copyright component and import it in banner [Antonis Tarantilis - [`8fcde9d`](https://github.com/eea/volto-eea-design-system/commit/8fcde9df2915585e2336024436cef76642820d75)]
|
|
14
|
+
|
|
15
|
+
#### :bug: Bug Fixes
|
|
16
|
+
|
|
17
|
+
- fix(tags): content gap when using tags-content wrapper [David Ichim - [`c4eb9b8`](https://github.com/eea/volto-eea-design-system/commit/c4eb9b89d4ea09f936b7fcdc22a84105fd8639af)]
|
|
18
|
+
|
|
19
|
+
#### :nail_care: Enhancements
|
|
20
|
+
|
|
21
|
+
- change(copyright): removed copyrightVariant from Banner and Hero stories [David Ichim - [`ac62e07`](https://github.com/eea/volto-eea-design-system/commit/ac62e079d4eafb818f9cae25880a04d9e069d107)]
|
|
22
|
+
- change(copyright): now uses text color css variable with fallback to white [David Ichim - [`ee7268b`](https://github.com/eea/volto-eea-design-system/commit/ee7268ba359f079dfce45fd0fe91f75ae5c37e94)]
|
|
23
|
+
- change(copyright): removed color variant [David Ichim - [`747b8a2`](https://github.com/eea/volto-eea-design-system/commit/747b8a27155569247d4975837587e3320327fce9)]
|
|
24
|
+
- change(copyright): line height to match page header implementation [David Ichim - [`a56254e`](https://github.com/eea/volto-eea-design-system/commit/a56254e7588cfc6aca999f550084d79dca6e9a6c)]
|
|
25
|
+
- change(copyright): implementation to add classes on content sections [David Ichim - [`e10bde6`](https://github.com/eea/volto-eea-design-system/commit/e10bde674f2b1f722ec6c70734e4a72c018f4afe)]
|
|
26
|
+
- change(tagList): modified implementation to align to volto-tags-block [David Ichim - [`7a57a3d`](https://github.com/eea/volto-eea-design-system/commit/7a57a3d4bf7ede4b5ab5f3ef045d664aaaf67f2c)]
|
|
27
|
+
- refactor(hero): add copyright component to hero [Antonis Tarantilis - [`0fa88fa`](https://github.com/eea/volto-eea-design-system/commit/0fa88fad3e7b48789dc6d0462b9f78dd359b8949)]
|
|
28
|
+
- refactor(copyright): remove data section [Antonis Tarantilis - [`52cb09d`](https://github.com/eea/volto-eea-design-system/commit/52cb09dc363bb0a2e363ec86dcefb4c57e07a14d)]
|
|
29
|
+
|
|
30
|
+
#### :house: Documentation changes
|
|
31
|
+
|
|
32
|
+
- docs(copyright): copyright documentation [Dora Anastasiou - [`a90ed76`](https://github.com/eea/volto-eea-design-system/commit/a90ed766e60b5eb5b027beb36d2b1967d2c41fa3)]
|
|
33
|
+
|
|
34
|
+
#### :hammer_and_wrench: Others
|
|
35
|
+
|
|
36
|
+
- Release 1.0.0-alpha.6 [Alin Voinea - [`6ca32f0`](https://github.com/eea/volto-eea-design-system/commit/6ca32f03c1860781d3c1c4ff9558713ad8acac95)]
|
|
37
|
+
- feature(copyright): image information #250 from eea/feature-copyright [ichim-david - [`a8618c7`](https://github.com/eea/volto-eea-design-system/commit/a8618c7f0230a19b6c973aa2c9646463de9eeffb)]
|
|
38
|
+
- lint fix by introducing local variable tagsGap [David Ichim - [`7b6c0ae`](https://github.com/eea/volto-eea-design-system/commit/7b6c0ae2ebfed06221700faf9a0d0c2bdeb60d99)]
|
|
39
|
+
- grammar fixes [ichim-david - [`cb2a5a5`](https://github.com/eea/volto-eea-design-system/commit/cb2a5a5fd9dfc01eccc179721b06988742f5b2e2)]
|
|
40
|
+
- Update usage_markdown.md [ichim-david - [`f76d4a2`](https://github.com/eea/volto-eea-design-system/commit/f76d4a242f795451d64ef2d192d0006a0ed5eac1)]
|
|
41
|
+
- Update 3-images.md [ichim-david - [`1b0ef03`](https://github.com/eea/volto-eea-design-system/commit/1b0ef033f9c8a36aaa739f268263f24a6d0fb473)]
|
|
7
42
|
### [1.0.0-alpha.5](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.4...1.0.0-alpha.5) - 29 November 2022
|
|
8
43
|
|
|
9
44
|
#### :rocket: New Features
|
|
@@ -51,7 +86,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
51
86
|
|
|
52
87
|
#### :hammer_and_wrench: Others
|
|
53
88
|
|
|
54
|
-
- Release 1.0.0-alpha.5 [Alin Voinea - [`dcd60c9`](https://github.com/eea/volto-eea-design-system/commit/dcd60c9285caf60b23ed97a9ca5daed0a943bc24)]
|
|
55
89
|
- feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
|
|
56
90
|
- Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
|
|
57
91
|
- perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
|
package/package.json
CHANGED
package/src/semantic.less
CHANGED
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import Banner from './Banner';
|
|
3
3
|
// eslint-disable-next-line import/no-unresolved
|
|
4
4
|
import imgUrl from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/banner.png';
|
|
5
|
-
import { Popup } from 'semantic-ui-react';
|
|
5
|
+
import { Popup, Icon } from 'semantic-ui-react';
|
|
6
|
+
import Copyright from '../Copyright/Copyright';
|
|
6
7
|
|
|
7
8
|
export default {
|
|
8
9
|
title: 'Components/Page Header',
|
|
@@ -43,6 +44,32 @@ export default {
|
|
|
43
44
|
type: { summary: 'boolean' },
|
|
44
45
|
},
|
|
45
46
|
},
|
|
47
|
+
copyrightPosition: {
|
|
48
|
+
name: 'Position',
|
|
49
|
+
control: {
|
|
50
|
+
type: 'inline-radio',
|
|
51
|
+
options: ['left', 'right'],
|
|
52
|
+
},
|
|
53
|
+
type: { name: 'string' },
|
|
54
|
+
table: {
|
|
55
|
+
category: 'Copyright',
|
|
56
|
+
defaultValue: { summary: '"left"' },
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
copyrightIcon: {
|
|
60
|
+
table: {
|
|
61
|
+
category: 'Copyright',
|
|
62
|
+
defaultValue: { summary: '""' },
|
|
63
|
+
type: { summary: 'string' },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
copyrightText: {
|
|
67
|
+
table: {
|
|
68
|
+
category: 'Copyright',
|
|
69
|
+
defaultValue: { summary: '""' },
|
|
70
|
+
type: { summary: 'string' },
|
|
71
|
+
},
|
|
72
|
+
},
|
|
46
73
|
},
|
|
47
74
|
};
|
|
48
75
|
|
|
@@ -100,6 +127,12 @@ const Template = (args) => (
|
|
|
100
127
|
</>
|
|
101
128
|
</Banner.Metadata>
|
|
102
129
|
)}
|
|
130
|
+
<Copyright copyrightPosition={args.copyrightPosition}>
|
|
131
|
+
<Copyright.Icon>
|
|
132
|
+
<Icon className={args.copyrightIcon} />
|
|
133
|
+
</Copyright.Icon>
|
|
134
|
+
<Copyright.Text>{args.copyrightText}</Copyright.Text>
|
|
135
|
+
</Copyright>
|
|
103
136
|
</Banner.Content>
|
|
104
137
|
</Banner>
|
|
105
138
|
);
|
|
@@ -117,4 +150,7 @@ Default.args = {
|
|
|
117
150
|
image: true,
|
|
118
151
|
hideShareButton: false,
|
|
119
152
|
hideDownloadButton: false,
|
|
153
|
+
copyrightPosition: 'left',
|
|
154
|
+
copyrightIcon: 'ri-copyright-line',
|
|
155
|
+
copyrightText: 'Image copyright: Velit fusce sed sem ut.',
|
|
120
156
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
|
|
4
|
+
Copyright.propTypes = {
|
|
5
|
+
copyrightPosition: PropTypes.oneOf(['left', 'right']),
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
function Copyright({ children, ...rest }) {
|
|
9
|
+
return (
|
|
10
|
+
<div className={`eea copyright ${rest.copyrightPosition}`}>
|
|
11
|
+
<div className={'wrapper'}>{children}</div>
|
|
12
|
+
</div>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
Copyright.Icon = ({ children, ...rest }) => (
|
|
17
|
+
<span {...rest} className={'icon-wrapper'}>
|
|
18
|
+
{children}
|
|
19
|
+
</span>
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
Copyright.Text = ({ children, ...rest }) => (
|
|
23
|
+
<span {...rest} className={'icon-content'}>
|
|
24
|
+
{children}
|
|
25
|
+
</span>
|
|
26
|
+
);
|
|
27
|
+
export default Copyright;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Copyright from './Copyright';
|
|
3
|
+
import { Container, Icon, Segment } from 'semantic-ui-react';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/Copyright',
|
|
7
|
+
component: Copyright,
|
|
8
|
+
argTypes: {
|
|
9
|
+
copyrightPosition: {
|
|
10
|
+
name: 'Position',
|
|
11
|
+
control: {
|
|
12
|
+
type: 'inline-radio',
|
|
13
|
+
options: ['left', 'right'],
|
|
14
|
+
},
|
|
15
|
+
type: { name: 'string' },
|
|
16
|
+
table: {
|
|
17
|
+
defaultValue: { summary: '"left"' },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const Default = (args) => (
|
|
24
|
+
<Container>
|
|
25
|
+
<Segment className={'inverted'}>
|
|
26
|
+
<Copyright copyrightPosition={args.copyrightPosition}>
|
|
27
|
+
<Copyright.Icon>
|
|
28
|
+
<Icon className={args.icon} />
|
|
29
|
+
</Copyright.Icon>
|
|
30
|
+
<Copyright.Text>{args.text}</Copyright.Text>
|
|
31
|
+
</Copyright>
|
|
32
|
+
</Segment>
|
|
33
|
+
</Container>
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
Default.args = {
|
|
37
|
+
copyrightPosition: 'left',
|
|
38
|
+
icon: 'ri-copyright-line',
|
|
39
|
+
text: 'Image copyright: Velit fusce sed sem ut.',
|
|
40
|
+
};
|
package/src/ui/Header/Header.jsx
CHANGED
|
@@ -107,6 +107,7 @@ const Main = ({
|
|
|
107
107
|
pathname,
|
|
108
108
|
transparency,
|
|
109
109
|
inverted,
|
|
110
|
+
hideSearch,
|
|
110
111
|
}) => {
|
|
111
112
|
const history = useHistory();
|
|
112
113
|
const [activeItem, setActiveItem] = React.useState(pathname);
|
|
@@ -231,18 +232,20 @@ const Main = ({
|
|
|
231
232
|
))}
|
|
232
233
|
</div>
|
|
233
234
|
)}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
235
|
+
{!hideSearch && (
|
|
236
|
+
<div
|
|
237
|
+
className="search-action"
|
|
238
|
+
onClick={searchOnClick}
|
|
239
|
+
role="none"
|
|
240
|
+
ref={searchButtonRef}
|
|
241
|
+
>
|
|
242
|
+
{/* <Icon name={!state.activeSearch ? 'search' : 'close'} /> */}
|
|
243
|
+
<Image
|
|
244
|
+
src={!searchIsActive ? `${searchIcon}` : `${closeIcon}`}
|
|
245
|
+
alt="search button open/close"
|
|
246
|
+
/>
|
|
247
|
+
</div>
|
|
248
|
+
)}
|
|
246
249
|
<Header.BurgerAction
|
|
247
250
|
className={`mobile ${burger}`}
|
|
248
251
|
onClick={mobileBurgerOnClick}
|
package/src/ui/Hero/Hero.jsx
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
|
|
4
|
+
import { Icon } from 'semantic-ui-react';
|
|
5
|
+
import Copyright from '../Copyright/Copyright';
|
|
6
|
+
|
|
4
7
|
Hero.propTypes = {
|
|
5
8
|
image: PropTypes.bool,
|
|
6
9
|
fullWidth: PropTypes.bool,
|
|
@@ -21,6 +24,11 @@ function Hero({
|
|
|
21
24
|
alignContent,
|
|
22
25
|
backgroundVariant,
|
|
23
26
|
children,
|
|
27
|
+
|
|
28
|
+
has_copyright,
|
|
29
|
+
copyrightPosition,
|
|
30
|
+
copyrightIcon,
|
|
31
|
+
copyrightText,
|
|
24
32
|
}) {
|
|
25
33
|
return (
|
|
26
34
|
// full width prop
|
|
@@ -36,7 +44,18 @@ function Hero({
|
|
|
36
44
|
<div
|
|
37
45
|
className={`hero-block-inner-wrapper d-flex ui container flex-items-${alignContent}`}
|
|
38
46
|
>
|
|
39
|
-
<div className="hero-block-body">
|
|
47
|
+
<div className="hero-block-body">
|
|
48
|
+
{children}
|
|
49
|
+
|
|
50
|
+
{has_copyright && (
|
|
51
|
+
<Copyright copyrightPosition={copyrightPosition}>
|
|
52
|
+
<Copyright.Icon>
|
|
53
|
+
<Icon className={copyrightIcon} />
|
|
54
|
+
</Copyright.Icon>
|
|
55
|
+
<Copyright.Text>{copyrightText}</Copyright.Text>
|
|
56
|
+
</Copyright>
|
|
57
|
+
)}
|
|
58
|
+
</div>
|
|
40
59
|
</div>
|
|
41
60
|
</div>
|
|
42
61
|
</div>
|
|
@@ -54,6 +54,40 @@ export default {
|
|
|
54
54
|
type: { summary: 'boolean' },
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
|
+
has_copyright: {
|
|
58
|
+
name: 'Copyright',
|
|
59
|
+
table: {
|
|
60
|
+
category: 'Copyright',
|
|
61
|
+
defaultValue: { summary: '' },
|
|
62
|
+
type: { summary: 'boolean' },
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
copyrightPosition: {
|
|
66
|
+
name: 'Position',
|
|
67
|
+
control: {
|
|
68
|
+
type: 'inline-radio',
|
|
69
|
+
options: ['left', 'right'],
|
|
70
|
+
},
|
|
71
|
+
type: { name: 'string' },
|
|
72
|
+
table: {
|
|
73
|
+
category: 'Copyright',
|
|
74
|
+
defaultValue: { summary: '"left"' },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
copyrightIcon: {
|
|
78
|
+
table: {
|
|
79
|
+
category: 'Copyright',
|
|
80
|
+
defaultValue: { summary: '""' },
|
|
81
|
+
type: { summary: 'string' },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
copyrightText: {
|
|
85
|
+
table: {
|
|
86
|
+
category: 'Copyright',
|
|
87
|
+
defaultValue: { summary: '""' },
|
|
88
|
+
type: { summary: 'string' },
|
|
89
|
+
},
|
|
90
|
+
},
|
|
57
91
|
},
|
|
58
92
|
};
|
|
59
93
|
|
|
@@ -93,6 +127,11 @@ Default.args = {
|
|
|
93
127
|
inverted: true,
|
|
94
128
|
alignContent: 'center',
|
|
95
129
|
backgroundVariant: 'grey',
|
|
130
|
+
|
|
131
|
+
has_copyright: true,
|
|
132
|
+
copyrightPosition: 'left',
|
|
133
|
+
copyrightIcon: 'ri-copyright-line',
|
|
134
|
+
copyrightText: 'Image copyright: Velit fusce sed sem ut.',
|
|
96
135
|
};
|
|
97
136
|
Default.parameters = {
|
|
98
137
|
controls: {
|
|
@@ -125,6 +164,11 @@ Playground.args = {
|
|
|
125
164
|
inverted: true,
|
|
126
165
|
alignContent: 'center',
|
|
127
166
|
backgroundVariant: 'tertiary',
|
|
167
|
+
|
|
168
|
+
has_copyright: true,
|
|
169
|
+
copyrightPosition: 'left',
|
|
170
|
+
copyrightIcon: 'ri-copyright-line',
|
|
171
|
+
copyrightText: 'Image copyright: Velit fusce sed sem ut.',
|
|
128
172
|
};
|
|
129
173
|
Playground.argTypes = {
|
|
130
174
|
fullWidth: {
|
|
@@ -202,4 +246,30 @@ Playground.argTypes = {
|
|
|
202
246
|
type: { summary: 'string' },
|
|
203
247
|
},
|
|
204
248
|
},
|
|
249
|
+
copyrightPosition: {
|
|
250
|
+
name: 'Position',
|
|
251
|
+
control: {
|
|
252
|
+
type: 'inline-radio',
|
|
253
|
+
options: ['left', 'right'],
|
|
254
|
+
},
|
|
255
|
+
type: { name: 'string' },
|
|
256
|
+
table: {
|
|
257
|
+
category: 'Copyright',
|
|
258
|
+
defaultValue: { summary: '"left"' },
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
copyrightIcon: {
|
|
262
|
+
table: {
|
|
263
|
+
category: 'Copyright',
|
|
264
|
+
defaultValue: { summary: '""' },
|
|
265
|
+
type: { summary: 'string' },
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
copyrightText: {
|
|
269
|
+
table: {
|
|
270
|
+
category: 'Copyright',
|
|
271
|
+
defaultValue: { summary: '""' },
|
|
272
|
+
type: { summary: 'string' },
|
|
273
|
+
},
|
|
274
|
+
},
|
|
205
275
|
};
|
|
@@ -43,11 +43,13 @@ export const List = (args) => (
|
|
|
43
43
|
<Container>
|
|
44
44
|
<TagList className={args.direction}>
|
|
45
45
|
<TagList.Title>{args.title}</TagList.Title>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
{tag.
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
<TagList.Content>
|
|
47
|
+
{args.tags.map((tag, index) => [
|
|
48
|
+
<Tag className={tag.class} href={tag.href} key={index}>
|
|
49
|
+
{tag.category}
|
|
50
|
+
</Tag>,
|
|
51
|
+
])}
|
|
52
|
+
</TagList.Content>
|
|
51
53
|
</TagList>
|
|
52
54
|
</Container>
|
|
53
55
|
);
|
package/src/ui/index.js
CHANGED
package/theme/theme.config
CHANGED
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
.metadata {
|
|
44
44
|
font-size: @mobileMetadataFontSize;
|
|
45
45
|
line-height: @mobileMetadataLineHeight;
|
|
46
|
+
margin-bottom: @rem-space-3;
|
|
46
47
|
|
|
47
48
|
.field.type {
|
|
48
49
|
font-weight: @metadataTypeFontWeight;
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
|
|
132
|
-
@media only screen and (max-width: @
|
|
133
|
+
@media only screen and (max-width: @largestMobileScreen) {
|
|
133
134
|
.actions .action {
|
|
134
135
|
margin-bottom: @mobileActionsActionMarginBottom;
|
|
135
136
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@type: 'extra';
|
|
2
|
+
@element: 'copyright';
|
|
3
|
+
|
|
4
|
+
@import (multiple) '../../theme.config';
|
|
5
|
+
|
|
6
|
+
/*-------------------
|
|
7
|
+
Copyright
|
|
8
|
+
--------------------*/
|
|
9
|
+
|
|
10
|
+
.eea.copyright {
|
|
11
|
+
width: @copyrightWidth;
|
|
12
|
+
|
|
13
|
+
.wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
color: @copyrightContentColor;
|
|
16
|
+
font-size: @copyrightContentFontSize;
|
|
17
|
+
line-height: @copyrightLineHeight;
|
|
18
|
+
gap: @copyrightContentPaddingRight;
|
|
19
|
+
}
|
|
20
|
+
&.left .wrapper {
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
}
|
|
23
|
+
&.right .wrapper {
|
|
24
|
+
justify-content: flex-end;
|
|
25
|
+
}
|
|
26
|
+
.icon {
|
|
27
|
+
margin: 0; // override default
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*******************************
|
|
2
|
+
Copyright
|
|
3
|
+
*******************************/
|
|
4
|
+
|
|
5
|
+
@copyrightWidth: 100%;
|
|
6
|
+
|
|
7
|
+
/* Content */
|
|
8
|
+
@copyrightContentColor: var(--text-color, @grey-1);
|
|
9
|
+
@copyrightContentFontSize: @font-size-00;
|
|
10
|
+
@copyrightLineHeight: @font-lineheight-0;
|
|
11
|
+
@copyrightContentPaddingRight: @rem-space-1;
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
height: 100%;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
.hero-block-body .eea.copyright {
|
|
50
|
+
position: absolute;
|
|
51
|
+
bottom: @mobileCopyrightBottom;
|
|
52
|
+
}
|
|
49
53
|
|
|
50
54
|
.hero-block-text .quoted > * {
|
|
51
55
|
display: inline-block;
|
|
@@ -91,6 +95,9 @@
|
|
|
91
95
|
.hero-block-body {
|
|
92
96
|
gap: @desktopHeroBlockBodyGap;
|
|
93
97
|
}
|
|
98
|
+
.hero-block-body .eea.copyright {
|
|
99
|
+
bottom: @desktopCopyrightBottom;
|
|
100
|
+
}
|
|
94
101
|
}
|
|
95
102
|
|
|
96
103
|
.loadUIOverrides();
|
|
@@ -30,4 +30,8 @@
|
|
|
30
30
|
/* Body */
|
|
31
31
|
@mobileHeroBlockBodyGap : @rem-space-6;
|
|
32
32
|
@tabletHeroBlockBodyGap : @rem-space-8;
|
|
33
|
-
@desktopHeroBlockBodyGap : @rem-space-10;
|
|
33
|
+
@desktopHeroBlockBodyGap : @rem-space-10;
|
|
34
|
+
|
|
35
|
+
/* Copyright */
|
|
36
|
+
@mobileCopyrightBottom: @rem-space-4;
|
|
37
|
+
@desktopCopyrightBottom: @rem-space-7-50;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
Tag
|
|
8
8
|
*******************************/
|
|
9
9
|
|
|
10
|
+
@tagsGap: 0 1rem;
|
|
11
|
+
|
|
10
12
|
.tags {
|
|
11
13
|
display: flex;
|
|
12
14
|
flex-direction: row;
|
|
@@ -30,6 +32,12 @@
|
|
|
30
32
|
gap: @tagsLabelsGap;
|
|
31
33
|
}
|
|
32
34
|
|
|
35
|
+
.tags-content {
|
|
36
|
+
gap: @tagsContentGap;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
}
|
|
40
|
+
|
|
33
41
|
.tags.left {
|
|
34
42
|
justify-content: left;
|
|
35
43
|
}
|
|
@@ -38,7 +38,43 @@ Below is a non-exhaustive list of the work-in-progress which is planned for futu
|
|
|
38
38
|
|
|
39
39
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
40
40
|
|
|
41
|
-
### [Unreleased](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.
|
|
41
|
+
### [Unreleased](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.5...HEAD) - 2022-12-07T11:06:35.697Z
|
|
42
|
+
|
|
43
|
+
#### :rocket: New Features
|
|
44
|
+
|
|
45
|
+
- feat(copyright): create copyright component and import it in banner [`8fcde9d`](https://github.com/eea/volto-eea-design-system/commit/8fcde9df2915585e2336024436cef76642820d75)
|
|
46
|
+
- feat(Header): add hideSearch prop [`13ddfe5`](https://github.com/eea/volto-eea-design-system/commit/13ddfe59a6bd7fe2050b70ac4524a6f6c5c169ea)
|
|
47
|
+
- feat(Docusaurus): Image copyright information #257 from eea/image-copyright-info [`2119515`](https://github.com/eea/volto-eea-design-system/commit/21195153240da052acb7171f7904449ed7854cb3)
|
|
48
|
+
|
|
49
|
+
#### :bug: Bug Fixes
|
|
50
|
+
|
|
51
|
+
- fix(tags): content gap when using tags-content wrapper [`c4eb9b8`](https://github.com/eea/volto-eea-design-system/commit/c4eb9b89d4ea09f936b7fcdc22a84105fd8639af)
|
|
52
|
+
|
|
53
|
+
#### :nail_care: Enhancements
|
|
54
|
+
|
|
55
|
+
- refactor(hero): add copyright component to hero [`0fa88fa`](https://github.com/eea/volto-eea-design-system/commit/0fa88fad3e7b48789dc6d0462b9f78dd359b8949)
|
|
56
|
+
- change(copyright): implementation to add classes on content sections [`e10bde6`](https://github.com/eea/volto-eea-design-system/commit/e10bde674f2b1f722ec6c70734e4a72c018f4afe)
|
|
57
|
+
- change(copyright): removed color variant [`747b8a2`](https://github.com/eea/volto-eea-design-system/commit/747b8a27155569247d4975837587e3320327fce9)
|
|
58
|
+
- change(copyright): removed copyrightVariant from Banner and Hero stories [`ac62e07`](https://github.com/eea/volto-eea-design-system/commit/ac62e079d4eafb818f9cae25880a04d9e069d107)
|
|
59
|
+
- change(tagList): modified implementation to align to volto-tags-block [`7a57a3d`](https://github.com/eea/volto-eea-design-system/commit/7a57a3d4bf7ede4b5ab5f3ef045d664aaaf67f2c)
|
|
60
|
+
- refactor(copyright): remove data section [`52cb09d`](https://github.com/eea/volto-eea-design-system/commit/52cb09dc363bb0a2e363ec86dcefb4c57e07a14d)
|
|
61
|
+
- change(copyright): line height to match page header implementation [`a56254e`](https://github.com/eea/volto-eea-design-system/commit/a56254e7588cfc6aca999f550084d79dca6e9a6c)
|
|
62
|
+
- change(copyright): now uses text color css variable with fallback to white [`ee7268b`](https://github.com/eea/volto-eea-design-system/commit/ee7268ba359f079dfce45fd0fe91f75ae5c37e94)
|
|
63
|
+
|
|
64
|
+
#### :house: Documentation changes
|
|
65
|
+
|
|
66
|
+
- docs(copyright): copyright documentation [`a90ed76`](https://github.com/eea/volto-eea-design-system/commit/a90ed766e60b5eb5b027beb36d2b1967d2c41fa3)
|
|
67
|
+
|
|
68
|
+
#### :hammer_and_wrench: Others
|
|
69
|
+
|
|
70
|
+
- Update usage_markdown.md [`f76d4a2`](https://github.com/eea/volto-eea-design-system/commit/f76d4a242f795451d64ef2d192d0006a0ed5eac1)
|
|
71
|
+
- grammar fixes [`cb2a5a5`](https://github.com/eea/volto-eea-design-system/commit/cb2a5a5fd9dfc01eccc179721b06988742f5b2e2)
|
|
72
|
+
- Release 1.0.0-alpha.6 [`6ca32f0`](https://github.com/eea/volto-eea-design-system/commit/6ca32f03c1860781d3c1c4ff9558713ad8acac95)
|
|
73
|
+
- feature(copyright): image information #250 from eea/feature-copyright [`a8618c7`](https://github.com/eea/volto-eea-design-system/commit/a8618c7f0230a19b6c973aa2c9646463de9eeffb)
|
|
74
|
+
- Update 3-images.md [`1b0ef03`](https://github.com/eea/volto-eea-design-system/commit/1b0ef033f9c8a36aaa739f268263f24a6d0fb473)
|
|
75
|
+
- lint fix by introducing local variable tagsGap [`7b6c0ae`](https://github.com/eea/volto-eea-design-system/commit/7b6c0ae2ebfed06221700faf9a0d0c2bdeb60d99)
|
|
76
|
+
|
|
77
|
+
### [1.0.0-alpha.5](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.4...1.0.0-alpha.5) - 2022-11-29
|
|
42
78
|
|
|
43
79
|
#### :rocket: New Features
|
|
44
80
|
|
|
@@ -71,11 +107,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
71
107
|
- docs(docusaurus): color updates [`cc13b54`](https://github.com/eea/volto-eea-design-system/commit/cc13b5499a9ae13bb45925a057f8ff4d6a2e4643)
|
|
72
108
|
- docs(colors): fix swatches accessibility [`306cb74`](https://github.com/eea/volto-eea-design-system/commit/306cb74d3e06390a9c15da9b8b29c9d3c8f0f6c5)
|
|
73
109
|
- docs(docusaurus): typography and colors fixes according to comments on PR [`ae20a72`](https://github.com/eea/volto-eea-design-system/commit/ae20a7258cc88465fa0937895c2999952736f456)
|
|
110
|
+
- docs(colours): adjust logos heights [`854d4fb`](https://github.com/eea/volto-eea-design-system/commit/854d4fb761be7307e83e5dd2eb0fe5a0117727c5)
|
|
74
111
|
- docs(typography): merge designer and dev units [`65c240e`](https://github.com/eea/volto-eea-design-system/commit/65c240eddbf20b3fc870d301b96837f49ad9caca)
|
|
75
112
|
- docs(typography): readded extra font sizes, fixed fluid [`a4a5d89`](https://github.com/eea/volto-eea-design-system/commit/a4a5d892538a9713d14ac718b1bf2c771be09810)
|
|
76
113
|
- docs(typography): changed em to percentages [`d417600`](https://github.com/eea/volto-eea-design-system/commit/d4176007ff4b421bc988b618488e0ba6b550f9fe)
|
|
77
114
|
- docs(colors): minors updates and instructions [`84ac882`](https://github.com/eea/volto-eea-design-system/commit/84ac8828e430b4af2b461534b4e2f81189080145)
|
|
78
|
-
- docs(colours): adjust logos heights [`854d4fb`](https://github.com/eea/volto-eea-design-system/commit/854d4fb761be7307e83e5dd2eb0fe5a0117727c5)
|
|
79
115
|
- docs(colors): blue-grey-6 adjustment [`e7ab2d1`](https://github.com/eea/volto-eea-design-system/commit/e7ab2d15d3a617bc5b3713897f3e3521d9e2720a)
|
|
80
116
|
- docs(colours): added active colour [`574f7a9`](https://github.com/eea/volto-eea-design-system/commit/574f7a95ea8a9510d03a104ad72fafafcae5d738)
|
|
81
117
|
- docs(colors): switch FISE logo to png [`335471f`](https://github.com/eea/volto-eea-design-system/commit/335471fd95bbd78cd7bd80b960272baa0a32e1c5)
|
|
@@ -85,9 +121,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
85
121
|
#### :hammer_and_wrench: Others
|
|
86
122
|
|
|
87
123
|
- perf(docusaurus): added remixicon and roboto locally [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)
|
|
88
|
-
- Upgrade Jenkinsfile storybook to yarn 3 [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)
|
|
89
|
-
- Release 1.0.0-alpha.5 [`dcd60c9`](https://github.com/eea/volto-eea-design-system/commit/dcd60c9285caf60b23ed97a9ca5daed0a943bc24)
|
|
90
124
|
- feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)
|
|
125
|
+
- Upgrade Jenkinsfile storybook to yarn 3 [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)
|
|
91
126
|
- Back to dev [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)
|
|
92
127
|
|
|
93
128
|
### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 2022-11-22
|
|
@@ -16,6 +16,12 @@ _Illustrations_: For static content that is transformable into something visual,
|
|
|
16
16
|
|
|
17
17
|
_Infographics_: Use these for visual storytelling to make complex information easier to understand. For example, an infographic could describe a workflow, how an investment plan works or the law-making process.
|
|
18
18
|
|
|
19
|
+
## Image copyrights
|
|
20
|
+
|
|
21
|
+
Photographs, illustrations, and other images will generally be protected by copyrights as artistic works. This means that a user will usually need the permission of the copyright owner if they want to use it.
|
|
22
|
+
To acknowledge a copyrighted work add three things to the image, the copyright symbol, the year of the copyright, and the name of the copyright holder.
|
|
23
|
+
|
|
24
|
+
|
|
19
25
|
## Best practices
|
|
20
26
|
|
|
21
27
|
- your visual content is relevant to the topic of the webpage
|
package/website/docs/webdev/md_components/media_container_image_components/usage_markdown.md
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
### Do’s
|
|
4
4
|
- use stylistic tools such as light, perspective, color, focus and composition to tell stories that are authentic and believable.
|
|
5
5
|
- the content of the photographs should be positive, optimistic, natural, realistic, warm, and welcoming. Framing should be playful and feel spontaneous
|
|
6
|
+
- use image copyrights to be respectful of the author’s ownership rights
|
|
6
7
|
### Don’ts
|
|
7
8
|
- do not use images that are too dark or do not have enough contrast
|
|
8
9
|
- do not use overlaying gradients
|
|
9
10
|
- images that are too static or that appear too symmetrical should not be used
|
|
10
|
-
- do not
|
|
11
|
+
- do not use images that are over exposed or over saturated
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
The page header component provides users the context of the page. It is always placed just below the site header.
|
|
1
|
+
The page header component provides the users with the context of the page. It is always placed just below the site header.
|
|
2
2
|
|
|
3
3
|
### Anatomy
|
|
4
4
|
|
|
5
5
|
| **Components** | **Mandatory** | **Optional** |
|
|
6
6
|
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------ |
|
|
7
7
|
| **Page title** | yes | no |
|
|
8
|
-
| **Meta(
|
|
8
|
+
| **Meta (content type, published date, modified date, reading time)** | no | yes |
|
|
9
9
|
| **Download - Bookmark actions** | no | yes |
|
|
10
|
-
| **Breadcrumb**<br />
|
|
10
|
+
| **Breadcrumb**<br />The breadcrumb component provides information on the page and its relationship to the site's hierarchy and structure.<br />It is optional if your website's navigational structure has less than 3 levels. | no | yes |
|
|
11
|
+
| **Image copyrights** ***(only if there is a header image)*** <br />Image copyright is the legal ownership of an image. |yes | no |
|
|
12
|
+
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
### Do's
|
|
14
16
|
|
|
15
17
|
- ensure the pages contain all the components and elements in the anatomy table above
|
|
16
18
|
- always use a page header when building your internal pages
|
|
17
|
-
- when choosing a background image, make sure it highlights the main object related to the content
|
|
19
|
+
- when choosing a background image, make sure it highlights the main object related to the content and it is meaningful
|
|
20
|
+
- choose image copyright text color according to the image, use light font color on darker images and darker font color on lighter ones
|
|
18
21
|
|
|
19
22
|
### Don'ts
|
|
20
23
|
|
|
21
|
-
- don't use more than one
|
|
24
|
+
- don't use more than one-page header per page
|
|
22
25
|
- do not use a background image unless there is a communication need, as it might be a distraction
|
|
23
26
|
|
|
24
27
|
### When to use
|
|
@@ -27,4 +30,4 @@ The page header component provides users the context of the page. It is always p
|
|
|
27
30
|
|
|
28
31
|
### When not to use
|
|
29
32
|
|
|
30
|
-
- page header is not used for homepage of the website
|
|
33
|
+
- the page header is not used for the homepage of the website
|