@eeacms/volto-eea-website-theme 0.6.8 → 0.6.9
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +62 -1
package/CHANGELOG.md
CHANGED
@@ -4,8 +4,15 @@ 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.6.9](https://github.com/eea/volto-eea-website-theme/compare/0.6.8...0.6.9)
|
8
|
+
|
9
|
+
- Add custom styles: Content Box [`724257a`](https://github.com/eea/volto-eea-website-theme/commit/724257a840ff52a4be525540272d7a4839ffab34)
|
10
|
+
|
7
11
|
#### [0.6.8](https://github.com/eea/volto-eea-website-theme/compare/0.6.7...0.6.8)
|
8
12
|
|
13
|
+
> 13 June 2022
|
14
|
+
|
15
|
+
- change(theme): added homepage and homepage inverted pages [`#39`](https://github.com/eea/volto-eea-website-theme/pull/39)
|
9
16
|
- Fix HomepageView typo [`41582a3`](https://github.com/eea/volto-eea-website-theme/commit/41582a39f8e84cd3ef62d9ef302798627e8350f1)
|
10
17
|
- fix import to please jslint [`b4a6555`](https://github.com/eea/volto-eea-website-theme/commit/b4a655548600ef9b9c8ecdd156d0062d4b54d00e)
|
11
18
|
- change(header): added homepage and homepage_inverse views [`6df68d7`](https://github.com/eea/volto-eea-website-theme/commit/6df68d7a592d623af76c1036c38d2c480fc6ce88)
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -8,10 +8,13 @@ import HomePageView from '@eeacms/volto-eea-website-theme/components/theme/Homep
|
|
8
8
|
import HomePageInverseView from '@eeacms/volto-eea-website-theme/components/theme/Homepage/HomePageInverseView';
|
9
9
|
|
10
10
|
const applyConfig = (config) => {
|
11
|
+
// EEA specific settings
|
11
12
|
config.settings.eea = {
|
12
13
|
...eea,
|
13
14
|
...(config.settings.eea || {}),
|
14
15
|
};
|
16
|
+
|
17
|
+
// Homepage
|
15
18
|
config.views.layoutViews = {
|
16
19
|
homepage_view: HomePageView,
|
17
20
|
homepage_inverse_view: HomePageInverseView,
|
@@ -51,8 +54,8 @@ const applyConfig = (config) => {
|
|
51
54
|
},
|
52
55
|
];
|
53
56
|
|
57
|
+
// Custom CSS voltoCustom.css and Draft Background
|
54
58
|
const appExtras = config.settings.appExtras || [];
|
55
|
-
|
56
59
|
config.settings.appExtras = [
|
57
60
|
...appExtras,
|
58
61
|
{
|
@@ -65,6 +68,64 @@ const applyConfig = (config) => {
|
|
65
68
|
},
|
66
69
|
];
|
67
70
|
|
71
|
+
// Custom block styles
|
72
|
+
config.settings.pluggableStyles = [
|
73
|
+
...(config.settings.pluggableStyles || []),
|
74
|
+
{
|
75
|
+
id: 'content-box-gray',
|
76
|
+
title: 'Content Box',
|
77
|
+
viewComponent: (props) => {
|
78
|
+
return (
|
79
|
+
<div className="content-box">
|
80
|
+
<div className="content-box-inner ui container">
|
81
|
+
{props.children}
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
);
|
85
|
+
},
|
86
|
+
},
|
87
|
+
{
|
88
|
+
id: 'content-box-primary',
|
89
|
+
title: 'Content Box (primary)',
|
90
|
+
viewComponent: (props) => {
|
91
|
+
return (
|
92
|
+
<div className="content-box primary">
|
93
|
+
<div className="content-box-inner ui container">
|
94
|
+
{props.children}
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
);
|
98
|
+
},
|
99
|
+
},
|
100
|
+
{
|
101
|
+
id: 'content-box-secondary',
|
102
|
+
title: 'Content Box (secondary)',
|
103
|
+
viewComponent: (props) => {
|
104
|
+
return (
|
105
|
+
<div className="content-box secondary">
|
106
|
+
<div className="content-box-inner ui container">
|
107
|
+
{props.children}
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
);
|
111
|
+
},
|
112
|
+
},
|
113
|
+
{
|
114
|
+
id: 'content-box-tertiary',
|
115
|
+
title: 'Content Box (tertiary)',
|
116
|
+
viewComponent: (props) => {
|
117
|
+
return (
|
118
|
+
<div className="content-box tertiary">
|
119
|
+
<div className="content-box-inner ui container">
|
120
|
+
{props.children}
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
);
|
124
|
+
},
|
125
|
+
},
|
126
|
+
];
|
127
|
+
|
128
|
+
// Custom blocks
|
68
129
|
return [installCustomTitle].reduce((acc, apply) => apply(acc), config);
|
69
130
|
};
|
70
131
|
|