@mjhls/mjh-framework 1.0.166 → 1.0.167
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/README.md +1 -1
- package/dist/index.es.js +13 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -28653,6 +28653,18 @@ var Feature = function Feature(props) {
|
|
|
28653
28653
|
return false;
|
|
28654
28654
|
};
|
|
28655
28655
|
|
|
28656
|
+
var urlFor = function urlFor(source) {
|
|
28657
|
+
var client = props.client;
|
|
28658
|
+
|
|
28659
|
+
var builder = imageUrlBuilder(client);
|
|
28660
|
+
return builder.image(source).auto('format');
|
|
28661
|
+
};
|
|
28662
|
+
//image width
|
|
28663
|
+
var imageWidth = 900;
|
|
28664
|
+
if (main_36) {
|
|
28665
|
+
imageWidth = 450;
|
|
28666
|
+
}
|
|
28667
|
+
|
|
28656
28668
|
var renderUrl = function renderUrl(feature_link, feature_title, feature_body) {
|
|
28657
28669
|
if (checkUrlIsExternal(feature_link)) {
|
|
28658
28670
|
return React__default.createElement(
|
|
@@ -28711,7 +28723,7 @@ var Feature = function Feature(props) {
|
|
|
28711
28723
|
return React__default.createElement(
|
|
28712
28724
|
Carousel$1.Item,
|
|
28713
28725
|
{ key: index, style: { background: 'var(--primary)' } },
|
|
28714
|
-
React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: feature_img, alt: feature_alt }),
|
|
28726
|
+
React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: urlFor(feature_img).width(imageWidth).url(), alt: feature_alt }),
|
|
28715
28727
|
React__default.createElement(
|
|
28716
28728
|
Carousel$1.Caption,
|
|
28717
28729
|
{ style: { paddingRight: '50%', left: '3rem', right: '3rem', top: '0', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|