cmspageblocks 1.0.14 → 1.0.19
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/build/index.js +43 -11
- package/package.json +1 -1
- package/src/Main.css.js +6 -1
- package/src/components/Block.js +11 -6
- package/src/components/BlockTypes/Embed.js +12 -0
- package/src/components/BlockTypes/ImageSlide.css.js +1 -0
- package/src/components/BlockTypes/ImageSlider.js +21 -17
- package/src/components/BlockTypes/Map.js +1 -1
- package/src/components/BlockTypes/index.js +2 -0
package/build/index.js
CHANGED
|
@@ -1178,6 +1178,16 @@ function Button(_ref) {
|
|
|
1178
1178
|
return /*#__PURE__*/React__default["default"].createElement("div", null, "Button");
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
|
+
function Embed (_ref) {
|
|
1182
|
+
var options = _ref.options;
|
|
1183
|
+
return /*#__PURE__*/React__default["default"].createElement("embed", {
|
|
1184
|
+
src: 'https://cms.burobork.nl/images/' + options.content[0].reference,
|
|
1185
|
+
width: options.embedWidth,
|
|
1186
|
+
height: options.embedHeight,
|
|
1187
|
+
type: options.embedType
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1181
1191
|
function Image (_ref) {
|
|
1182
1192
|
var options = _ref.options;
|
|
1183
1193
|
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
@@ -3090,7 +3100,7 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
3090
3100
|
}
|
|
3091
3101
|
|
|
3092
3102
|
var _templateObject$2;
|
|
3093
|
-
var SliderContainer = styled__default["default"].div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n.carousel .control-arrow,.carousel.carousel-slider .control-arrow{-webkit-transition:all .25s ease-in;-moz-transition:all .25s ease-in;-ms-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:''}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{-webkit-transition:all .15s ease-in;-moz-transition:all .15s ease-in;-ms-transition:all .15s ease-in;-o-transition:all .15s ease-in;transition:all .15s ease-in;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{-webkit-transition:border .15s ease-in;-moz-transition:border .15s ease-in;-ms-transition:border .15s ease-in;-o-transition:border .15s ease-in;transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:rgba(0,0,0,0.2)}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;-webkit-transition:height .15s ease-in;-moz-transition:height .15s ease-in;-ms-transition:height .15s ease-in;-o-transition:height .15s ease-in;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{-webkit-flex-direction:column;flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{-webkit-transition:all .35s ease-in-out;-moz-transition:all .35s ease-in-out;-ms-transition:all .35s ease-in-out;-o-transition:all .35s ease-in-out;transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;-webkit-transition:opacity .35s ease-in-out;-moz-transition:opacity .35s ease-in-out;-ms-transition:opacity .35s ease-in-out;-o-transition:opacity .35s ease-in-out;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{-webkit-transition:opacity .25s ease-in;-moz-transition:opacity .25s ease-in;-ms-transition:opacity .25s ease-in;-o-transition:opacity .25s ease-in;transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,0.9);color:#fff}.carousel:hover .slide .legend{opacity:1}\n ul li {\n padding: 0 !important;\n }\n div img {\n object-fit: cover;\n }\n .carousel .thumbs-wrapper {\n margin: 16px;\n }\n max-width: 100%;\n width: 100%;\n .carousel .thumbs {\n padding: 0;\n }\n\n"])));
|
|
3103
|
+
var SliderContainer = styled__default["default"].div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\nwidth: 100%;\n.carousel .control-arrow,.carousel.carousel-slider .control-arrow{-webkit-transition:all .25s ease-in;-moz-transition:all .25s ease-in;-ms-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:''}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{-webkit-transition:all .15s ease-in;-moz-transition:all .15s ease-in;-ms-transition:all .15s ease-in;-o-transition:all .15s ease-in;transition:all .15s ease-in;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{-webkit-transition:border .15s ease-in;-moz-transition:border .15s ease-in;-ms-transition:border .15s ease-in;-o-transition:border .15s ease-in;transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:rgba(0,0,0,0.2)}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;-webkit-transition:height .15s ease-in;-moz-transition:height .15s ease-in;-ms-transition:height .15s ease-in;-o-transition:height .15s ease-in;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{-webkit-flex-direction:column;flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{-webkit-transition:all .35s ease-in-out;-moz-transition:all .35s ease-in-out;-ms-transition:all .35s ease-in-out;-o-transition:all .35s ease-in-out;transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;-webkit-transition:opacity .35s ease-in-out;-moz-transition:opacity .35s ease-in-out;-ms-transition:opacity .35s ease-in-out;-o-transition:opacity .35s ease-in-out;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{-webkit-transition:opacity .25s ease-in;-moz-transition:opacity .25s ease-in;-ms-transition:opacity .25s ease-in;-o-transition:opacity .25s ease-in;transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,0.9);color:#fff}.carousel:hover .slide .legend{opacity:1}\n ul li {\n padding: 0 !important;\n }\n div img {\n object-fit: cover;\n }\n .carousel .thumbs-wrapper {\n margin: 16px;\n }\n max-width: 100%;\n width: 100%;\n .carousel .thumbs {\n padding: 0;\n }\n\n"])));
|
|
3094
3104
|
|
|
3095
3105
|
function ImageGallery(_ref) {
|
|
3096
3106
|
var options = _ref.options;
|
|
@@ -3114,24 +3124,29 @@ function ImageGallery(_ref) {
|
|
|
3114
3124
|
|
|
3115
3125
|
function ImageSlider(_ref) {
|
|
3116
3126
|
var options = _ref.options;
|
|
3127
|
+
console.debug({
|
|
3128
|
+
sliderOptions: options
|
|
3129
|
+
});
|
|
3130
|
+
var content = options.content;
|
|
3117
3131
|
return /*#__PURE__*/React__default["default"].createElement(SliderContainer, null, /*#__PURE__*/React__default["default"].createElement(js.Carousel, {
|
|
3118
3132
|
showThumbs: false,
|
|
3119
3133
|
swipeable: true,
|
|
3120
3134
|
showStatus: false,
|
|
3121
|
-
dynamicHeight:
|
|
3122
|
-
width: "100%"
|
|
3135
|
+
dynamicHeight: false,
|
|
3136
|
+
width: "100%",
|
|
3137
|
+
showIndicators: content.length > 1 ? true : false
|
|
3123
3138
|
}, options.content.map(function (slide) {
|
|
3124
3139
|
if (!slide.active) return;
|
|
3125
3140
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3126
3141
|
key: slide.image[0].reference,
|
|
3127
3142
|
style: {
|
|
3128
|
-
height: 600
|
|
3143
|
+
height: options.height ? parseInt(options.height) : 600
|
|
3129
3144
|
}
|
|
3130
3145
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3131
3146
|
src: slide ? 'https://cdn.burobork.nl/' + slide.image[0].reference : null,
|
|
3132
3147
|
alt: slide.title,
|
|
3133
3148
|
style: {
|
|
3134
|
-
height: 600
|
|
3149
|
+
height: options.height ? parseInt(options.height) : 600
|
|
3135
3150
|
}
|
|
3136
3151
|
}));
|
|
3137
3152
|
})));
|
|
@@ -4106,7 +4121,11 @@ function GoogleMap(_ref) {
|
|
|
4106
4121
|
}
|
|
4107
4122
|
|
|
4108
4123
|
var Marker = function Marker() {
|
|
4109
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, "
|
|
4124
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4125
|
+
src: "https://cms.burobork.nl/marker.svg",
|
|
4126
|
+
height: 16,
|
|
4127
|
+
width: 16
|
|
4128
|
+
}));
|
|
4110
4129
|
};
|
|
4111
4130
|
|
|
4112
4131
|
var build = {exports: {}};
|
|
@@ -53997,17 +54016,22 @@ var MEDIA = Object.keys(BREAKPOINTS).reduce(function (acc, label) {
|
|
|
53997
54016
|
return acc;
|
|
53998
54017
|
}, {});
|
|
53999
54018
|
|
|
54000
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
54001
|
-
var BlockContainer = styled__default["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\ndisplay: flex;\nflex-direction: row;\nflex-wrap: wrap;\n.ql-align-center {\n text-align: center;\n}\nul {\n list-style: initial;\n list-style-position: outside;\n padding: 0 0 0 16px;\n li {\n font-size: 1.6rem;\n line-height: 2.4rem;\n padding: 4px 0;\n }\n}\nh1 {\n font-size: 2.8rem;\n line-height: 3.4rem;\n padding: 24px 0 16px;\n}\nh2 {\n font-size: 2.2rem;\n line-height: 2.8rem;\n padding: 16px 0 8px;\n}\np {\n font-size: 1.6rem;\n line-height: 2.4rem;\n max-width: 75ch;\n margin: 0;\n}\ndiv {\n box-sizing: border-box;\n}\nimg {\n display: block;\n width: 100%;\n max-width: 100%;\n /* position: absolute; */\n}\n.half {\n width: 50%;\n ", ";\n}\n.col {\n &-12 {\n width: 100%;\n }\n &-1 {\n width: calc(1 / 12 * 100%);\n }\n &-2 {\n width: calc(2 / 12 * 100%);\n }\n &-3 {\n width: calc(3 / 12 * 100%);\n }\n &-4 {\n width: calc(4 / 12 * 100%);\n }\n &-5 {\n width: calc(5 / 12 * 100%);\n }\n &-6 {\n width: calc(50%);\n }\n &-7 {\n width: calc(7 / 12 * 100%);\n }\n &-8 {\n width: calc(8 / 12 * 100%);\n }\n &-9 {\n width: calc(9 / 12 * 100%);\n }\n &-10 {\n width: calc(10 / 12 * 100%);\n }\n &-11 {\n width: calc(11 / 12 * 100%);\n }\n}\n.center {\n margin: 0 auto;\n}\n", ";\na {\n /* padding: 2px 0; */\n color: ", " !important;\n text-decoration: none;\n position: relative;\n &:before {\n transition: 0.2s all ease-in;\n position: absolute;\n content: '';\n height: 1px;\n width: 20px;\n bottom: 0;\n left: 0;\n background: ", ";\n }\n &:hover {\n &:before {\n width: 100%;\n }\n }\n}\n.image-gallery-fullscreen-button.active {\n top: 0;\n bottom: auto;\n background-color: #000;\n &:before {\n content: '\\274c';\n }\n}\n.image-gallery-content {\n .image-gallery-image {\n img {\n max-height: 500px;\n height: 500px;\n ", ";\n }\n }\n}\n.image-gallery-content.fullscreen {\n .image-gallery-image {\n img {\n /* max-height: 75vh; */\n width: auto;\n margin: 0 auto;\n }\n }\n}\n\n.image-gallery {\n max-width: 100%;\n overflow: hidden;\n}\n.page_row {\n max-width: 1240px;\n width: 100%;\n margin: 0px auto;\n padding: 16px;\n width: 100%;\n flex-direction: column;\n @media (min-width: 676px) {\n
|
|
54019
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
54020
|
+
var BlockContainer = styled__default["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\ndisplay: flex;\nflex-direction: row;\nflex-wrap: wrap;\n.ql-align-center {\n text-align: center;\n}\nul {\n list-style: initial;\n list-style-position: outside;\n padding: 0 0 0 16px;\n li {\n font-size: 1.6rem;\n line-height: 2.4rem;\n padding: 4px 0;\n }\n}\nh1 {\n font-size: 2.8rem;\n line-height: 3.4rem;\n padding: 24px 0 16px;\n}\nh2 {\n font-size: 2.2rem;\n line-height: 2.8rem;\n padding: 16px 0 8px;\n}\np {\n font-size: 1.6rem;\n line-height: 2.4rem;\n max-width: 75ch;\n margin: 0;\n}\ndiv {\n box-sizing: border-box;\n}\nimg {\n display: block;\n width: 100%;\n max-width: 100%;\n /* position: absolute; */\n}\n.half {\n width: 50%;\n ", ";\n}\n.col {\n &-12 {\n width: 100%;\n }\n &-1 {\n width: calc(1 / 12 * 100%);\n }\n &-2 {\n width: calc(2 / 12 * 100%);\n }\n &-3 {\n width: calc(3 / 12 * 100%);\n }\n &-4 {\n width: calc(4 / 12 * 100%);\n }\n &-5 {\n width: calc(5 / 12 * 100%);\n }\n &-6 {\n width: calc(50%);\n }\n &-7 {\n width: calc(7 / 12 * 100%);\n }\n &-8 {\n width: calc(8 / 12 * 100%);\n }\n &-9 {\n width: calc(9 / 12 * 100%);\n }\n &-10 {\n width: calc(10 / 12 * 100%);\n }\n &-11 {\n width: calc(11 / 12 * 100%);\n }\n}\n.center {\n margin: 0 auto;\n}\n", ";\na {\n /* padding: 2px 0; */\n color: ", " !important;\n text-decoration: none;\n position: relative;\n &:before {\n transition: 0.2s all ease-in;\n position: absolute;\n content: '';\n height: 1px;\n width: 20px;\n bottom: 0;\n left: 0;\n background: ", ";\n }\n &:hover {\n &:before {\n width: 100%;\n }\n }\n}\n.image-gallery-fullscreen-button.active {\n top: 0;\n bottom: auto;\n background-color: #000;\n &:before {\n content: '\\274c';\n }\n}\n.image-gallery-content {\n .image-gallery-image {\n img {\n max-height: 500px;\n height: 500px;\n ", ";\n }\n }\n}\n.image-gallery-content.fullscreen {\n .image-gallery-image {\n img {\n /* max-height: 75vh; */\n width: auto;\n margin: 0 auto;\n }\n }\n}\n\n.image-gallery {\n max-width: 100%;\n overflow: hidden;\n}\n.page_row {\n max-width: 1240px;\n width: 100%;\n margin: 0px auto;\n padding: 16px;\n width: 100%;\n flex-direction: column;\n @media (min-width: 676px) {\n flex-direction: row;\n }\n &.full-width {\n max-width: 100%;\n padding: 0;\n }\n\n &.container-width {\n margin: 0 auto;\n @media (min-width: 676px) {\n max-width: 640px;\n }\n\n @media (min-width: 868px) {\n max-width: 820px;\n }\n\n @media (min-width: 992px) {\n max-width: 960px;\n }\n\n @media (min-width: 1290px) {\n max-width: 1260px;\n }\n }\n }\n"], ["\ndisplay: flex;\nflex-direction: row;\nflex-wrap: wrap;\n.ql-align-center {\n text-align: center;\n}\nul {\n list-style: initial;\n list-style-position: outside;\n padding: 0 0 0 16px;\n li {\n font-size: 1.6rem;\n line-height: 2.4rem;\n padding: 4px 0;\n }\n}\nh1 {\n font-size: 2.8rem;\n line-height: 3.4rem;\n padding: 24px 0 16px;\n}\nh2 {\n font-size: 2.2rem;\n line-height: 2.8rem;\n padding: 16px 0 8px;\n}\np {\n font-size: 1.6rem;\n line-height: 2.4rem;\n max-width: 75ch;\n margin: 0;\n}\ndiv {\n box-sizing: border-box;\n}\nimg {\n display: block;\n width: 100%;\n max-width: 100%;\n /* position: absolute; */\n}\n.half {\n width: 50%;\n ", ";\n}\n.col {\n &-12 {\n width: 100%;\n }\n &-1 {\n width: calc(1 / 12 * 100%);\n }\n &-2 {\n width: calc(2 / 12 * 100%);\n }\n &-3 {\n width: calc(3 / 12 * 100%);\n }\n &-4 {\n width: calc(4 / 12 * 100%);\n }\n &-5 {\n width: calc(5 / 12 * 100%);\n }\n &-6 {\n width: calc(50%);\n }\n &-7 {\n width: calc(7 / 12 * 100%);\n }\n &-8 {\n width: calc(8 / 12 * 100%);\n }\n &-9 {\n width: calc(9 / 12 * 100%);\n }\n &-10 {\n width: calc(10 / 12 * 100%);\n }\n &-11 {\n width: calc(11 / 12 * 100%);\n }\n}\n.center {\n margin: 0 auto;\n}\n", ";\na {\n /* padding: 2px 0; */\n color: ", " !important;\n text-decoration: none;\n position: relative;\n &:before {\n transition: 0.2s all ease-in;\n position: absolute;\n content: '';\n height: 1px;\n width: 20px;\n bottom: 0;\n left: 0;\n background: ", ";\n }\n &:hover {\n &:before {\n width: 100%;\n }\n }\n}\n.image-gallery-fullscreen-button.active {\n top: 0;\n bottom: auto;\n background-color: #000;\n &:before {\n content: '\\\\274c';\n }\n}\n.image-gallery-content {\n .image-gallery-image {\n img {\n max-height: 500px;\n height: 500px;\n ", ";\n }\n }\n}\n.image-gallery-content.fullscreen {\n .image-gallery-image {\n img {\n /* max-height: 75vh; */\n width: auto;\n margin: 0 auto;\n }\n }\n}\n\n.image-gallery {\n max-width: 100%;\n overflow: hidden;\n}\n.page_row {\n max-width: 1240px;\n width: 100%;\n margin: 0px auto;\n padding: 16px;\n width: 100%;\n flex-direction: column;\n @media (min-width: 676px) {\n flex-direction: row;\n }\n &.full-width {\n max-width: 100%;\n padding: 0;\n }\n\n &.container-width {\n margin: 0 auto;\n @media (min-width: 676px) {\n max-width: 640px;\n }\n\n @media (min-width: 868px) {\n max-width: 820px;\n }\n\n @media (min-width: 992px) {\n max-width: 960px;\n }\n\n @media (min-width: 1290px) {\n max-width: 1260px;\n }\n }\n }\n"])), MEDIA.PHONE(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n "]))), MEDIA.TABLET(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {\n width: 100%;\n }\n "]))), function (props) {
|
|
54002
54021
|
return props.theme.linkColor;
|
|
54003
54022
|
}, function (props) {
|
|
54004
54023
|
return props.theme.primaryColor;
|
|
54005
54024
|
}, MEDIA.TABLET(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n height: auto;\n "]))));
|
|
54025
|
+
var BlockSelf = styled__default["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
|
|
54006
54026
|
|
|
54007
54027
|
function Block(_ref) {
|
|
54008
54028
|
var pageBlock = _ref.pageBlock;
|
|
54009
54029
|
var options = pageBlock.options;
|
|
54010
54030
|
|
|
54031
|
+
if (options == null) {
|
|
54032
|
+
return null;
|
|
54033
|
+
}
|
|
54034
|
+
|
|
54011
54035
|
switch (options.type) {
|
|
54012
54036
|
case 'button':
|
|
54013
54037
|
return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
|
|
@@ -54072,6 +54096,14 @@ function Block(_ref) {
|
|
|
54072
54096
|
options: options
|
|
54073
54097
|
}));
|
|
54074
54098
|
|
|
54099
|
+
case 'embed':
|
|
54100
|
+
return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
|
|
54101
|
+
options: options,
|
|
54102
|
+
key: pageBlock.id
|
|
54103
|
+
}, /*#__PURE__*/React__default["default"].createElement(Embed, {
|
|
54104
|
+
options: options
|
|
54105
|
+
}));
|
|
54106
|
+
|
|
54075
54107
|
default:
|
|
54076
54108
|
return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
|
|
54077
54109
|
options: options,
|
|
@@ -54087,13 +54119,13 @@ Block.propTypes = {
|
|
|
54087
54119
|
function Wrapper(_ref2) {
|
|
54088
54120
|
var children = _ref2.children,
|
|
54089
54121
|
options = _ref2.options;
|
|
54090
|
-
var classes =
|
|
54122
|
+
var classes = "bu_cpb_".concat(options.type);
|
|
54091
54123
|
Object.entries(options.classes).forEach(function (element) {
|
|
54092
|
-
classes += '';
|
|
54124
|
+
classes += ' ';
|
|
54093
54125
|
classes += element[1];
|
|
54094
54126
|
});
|
|
54095
54127
|
classes = classNames(classes, options.classes.width, options.className);
|
|
54096
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
54128
|
+
return /*#__PURE__*/React__default["default"].createElement(BlockSelf, {
|
|
54097
54129
|
className: classes,
|
|
54098
54130
|
style: options.style
|
|
54099
54131
|
}, children);
|
package/package.json
CHANGED
package/src/Main.css.js
CHANGED
|
@@ -157,7 +157,7 @@ a {
|
|
|
157
157
|
width: 100%;
|
|
158
158
|
flex-direction: column;
|
|
159
159
|
@media (min-width: 676px) {
|
|
160
|
-
|
|
160
|
+
flex-direction: row;
|
|
161
161
|
}
|
|
162
162
|
&.full-width {
|
|
163
163
|
max-width: 100%;
|
|
@@ -184,3 +184,8 @@ a {
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
`;
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
export const BlockSelf = styled.div`
|
|
190
|
+
width: 100%;
|
|
191
|
+
`
|
package/src/components/Block.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import {Text, Image, ImageSlider, Button, Map, SearchBar, ImageGallery, Portal} from './BlockTypes';
|
|
5
|
-
import {
|
|
4
|
+
import {Text, Image, ImageSlider, Button, Map, SearchBar, ImageGallery, Portal, Embed} from './BlockTypes';
|
|
5
|
+
import { BlockSelf } from '../Main.css'
|
|
6
6
|
|
|
7
7
|
function Block({pageBlock}) {
|
|
8
8
|
const { options } = pageBlock;
|
|
9
9
|
|
|
10
|
+
if (options == null) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
switch(options.type) {
|
|
11
15
|
case 'button': return <Wrapper options={options} key={pageBlock.id}><Button options={options} /></Wrapper>
|
|
12
16
|
case 'map': return <Wrapper options={options} key={pageBlock.id}><Map options={options} /></Wrapper>
|
|
@@ -16,6 +20,7 @@ function Block({pageBlock}) {
|
|
|
16
20
|
case 'image_slider': return <Wrapper options={options} key={pageBlock.id}><ImageSlider options={options} /></Wrapper>
|
|
17
21
|
case 'imageGallery': return <Wrapper options={options} key={pageBlock.id}><ImageGallery options={options} /></Wrapper>
|
|
18
22
|
case 'bukazu_portal': return <Wrapper options={options} key={pageBlock.id}><Portal options={options} /></Wrapper>
|
|
23
|
+
case 'embed': return <Wrapper options={options} key={pageBlock.id}><Embed options={options} /></Wrapper>
|
|
19
24
|
default: return <Wrapper options={options} key={pageBlock.id}>{options.type}</Wrapper>
|
|
20
25
|
}
|
|
21
26
|
|
|
@@ -26,17 +31,17 @@ Block.propTypes = {
|
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
function Wrapper({ children, options }) {
|
|
29
|
-
let classes =
|
|
34
|
+
let classes = `bu_cpb_${options.type}`;
|
|
30
35
|
Object.entries(options.classes).forEach(element => {
|
|
31
|
-
classes += '';
|
|
36
|
+
classes += ' ';
|
|
32
37
|
classes += element[1];
|
|
33
38
|
});
|
|
34
39
|
|
|
35
40
|
classes = classNames(classes, options.classes.width, options.className);
|
|
36
41
|
|
|
37
|
-
return <
|
|
42
|
+
return <BlockSelf className={classes} style={options.style}>
|
|
38
43
|
{children}
|
|
39
|
-
</
|
|
44
|
+
</BlockSelf>
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
export default Block
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
export default function({options}) {
|
|
4
|
+
return (
|
|
5
|
+
<embed
|
|
6
|
+
src={'https://cms.burobork.nl/images/' + options.content[0].reference}
|
|
7
|
+
width={options.embedWidth}
|
|
8
|
+
height={options.embedHeight}
|
|
9
|
+
type={options.embedType}
|
|
10
|
+
/>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components'
|
|
2
2
|
|
|
3
3
|
export const SliderContainer = styled.div`
|
|
4
|
+
width: 100%;
|
|
4
5
|
.carousel .control-arrow,.carousel.carousel-slider .control-arrow{-webkit-transition:all .25s ease-in;-moz-transition:all .25s ease-in;-ms-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:''}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{-webkit-transition:all .15s ease-in;-moz-transition:all .15s ease-in;-ms-transition:all .15s ease-in;-o-transition:all .15s ease-in;transition:all .15s ease-in;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{-webkit-transition:border .15s ease-in;-moz-transition:border .15s ease-in;-ms-transition:border .15s ease-in;-o-transition:border .15s ease-in;transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:rgba(0,0,0,0.2)}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;-webkit-transition:height .15s ease-in;-moz-transition:height .15s ease-in;-ms-transition:height .15s ease-in;-o-transition:height .15s ease-in;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{-webkit-flex-direction:column;flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{-webkit-transition:all .35s ease-in-out;-moz-transition:all .35s ease-in-out;-ms-transition:all .35s ease-in-out;-o-transition:all .35s ease-in-out;transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;-webkit-transition:opacity .35s ease-in-out;-moz-transition:opacity .35s ease-in-out;-ms-transition:opacity .35s ease-in-out;-o-transition:opacity .35s ease-in-out;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{-webkit-transition:opacity .25s ease-in;-moz-transition:opacity .25s ease-in;-ms-transition:opacity .25s ease-in;-o-transition:opacity .25s ease-in;transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,0.9);color:#fff}.carousel:hover .slide .legend{opacity:1}
|
|
5
6
|
ul li {
|
|
6
7
|
padding: 0 !important;
|
|
@@ -2,25 +2,29 @@ import React from 'react'
|
|
|
2
2
|
import { Carousel } from 'react-responsive-carousel'
|
|
3
3
|
import { SliderContainer } from './ImageSlide.css'
|
|
4
4
|
|
|
5
|
-
export default function ImageSlider({options}) {
|
|
5
|
+
export default function ImageSlider({ options }) {
|
|
6
|
+
console.debug({ sliderOptions: options })
|
|
7
|
+
const { content } = options
|
|
6
8
|
return (
|
|
7
9
|
<SliderContainer>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
<Carousel showThumbs={false} swipeable={true} showStatus={false} dynamicHeight={false} width="100%" showIndicators={content.length > 1 ? true : false}>
|
|
11
|
+
{options.content.map(slide => {
|
|
12
|
+
if (!slide.active) return;
|
|
13
|
+
return (
|
|
14
|
+
<div key={slide.image[0].reference} style={{ height: options.height ? parseInt(options.height) : 600 }}>
|
|
15
|
+
<img
|
|
16
|
+
src={
|
|
17
|
+
slide
|
|
18
|
+
? 'https://cdn.burobork.nl/' + slide.image[0].reference
|
|
19
|
+
: null
|
|
20
|
+
}
|
|
21
|
+
alt={slide.title}
|
|
22
|
+
style={{ height: options.height ? parseInt(options.height) : 600 }}
|
|
20
23
|
/>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
</div>
|
|
25
|
+
)
|
|
26
|
+
})}
|
|
27
|
+
</Carousel>
|
|
28
|
+
</SliderContainer>
|
|
25
29
|
)
|
|
26
30
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Button from './Button'
|
|
2
|
+
import Embed from './Embed'
|
|
2
3
|
// import Form from './Form'
|
|
3
4
|
import Iframe from './Iframe'
|
|
4
5
|
import Image from './Image'
|
|
@@ -11,6 +12,7 @@ import Text from './Text'
|
|
|
11
12
|
|
|
12
13
|
export {
|
|
13
14
|
Button,
|
|
15
|
+
Embed,
|
|
14
16
|
Image,
|
|
15
17
|
ImageGallery,
|
|
16
18
|
ImageSlider,
|