@mjhls/mjh-framework 1.0.86 → 1.0.88
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 +55 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ var NavDropdown = _interopDefault(require('react-bootstrap/NavDropdown'));
|
|
|
28
28
|
var Form = _interopDefault(require('react-bootstrap/Form'));
|
|
29
29
|
var FormControl = _interopDefault(require('react-bootstrap/FormControl'));
|
|
30
30
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
31
|
+
var Carousel = _interopDefault(require('react-bootstrap/Carousel'));
|
|
31
32
|
|
|
32
33
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
33
34
|
|
|
@@ -12437,6 +12438,59 @@ var getSerializers$1 = function getSerializers(client, pageview) {
|
|
|
12437
12438
|
};
|
|
12438
12439
|
};
|
|
12439
12440
|
|
|
12441
|
+
//Feature query to be used
|
|
12442
|
+
// const featureQuery = `*[_type == 'feature' && is_active == true && feature_url == "/"] | order(_updatedAt asc)[0..5]{
|
|
12443
|
+
// ...,
|
|
12444
|
+
// feature_img { asset-> {url} }
|
|
12445
|
+
// }`
|
|
12446
|
+
var Feature = function Feature(props) {
|
|
12447
|
+
var dataset = props.dataset;
|
|
12448
|
+
|
|
12449
|
+
return React__default.createElement(
|
|
12450
|
+
'div',
|
|
12451
|
+
null,
|
|
12452
|
+
React__default.createElement(
|
|
12453
|
+
Carousel,
|
|
12454
|
+
null,
|
|
12455
|
+
dataset.map(function (feature, index) {
|
|
12456
|
+
var feature_title = feature.feature_title,
|
|
12457
|
+
feature_body = feature.feature_body,
|
|
12458
|
+
feature_img = feature.feature_img,
|
|
12459
|
+
feature_alt = feature.feature_alt,
|
|
12460
|
+
feature_link = feature.feature_link;
|
|
12461
|
+
|
|
12462
|
+
return React__default.createElement(
|
|
12463
|
+
Carousel.Item,
|
|
12464
|
+
{ key: index, style: { background: 'var(--primary)' } },
|
|
12465
|
+
React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: feature_img, alt: feature_alt }),
|
|
12466
|
+
React__default.createElement(
|
|
12467
|
+
Carousel.Caption,
|
|
12468
|
+
{ style: { paddingRight: '50%', left: '3rem', right: '3rem', top: '0', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
12469
|
+
React__default.createElement(
|
|
12470
|
+
Link,
|
|
12471
|
+
{ href: feature_link },
|
|
12472
|
+
React__default.createElement(
|
|
12473
|
+
'a',
|
|
12474
|
+
null,
|
|
12475
|
+
React__default.createElement(
|
|
12476
|
+
'h3',
|
|
12477
|
+
{ style: { color: 'white' } },
|
|
12478
|
+
feature_title
|
|
12479
|
+
),
|
|
12480
|
+
React__default.createElement(
|
|
12481
|
+
'p',
|
|
12482
|
+
{ style: { color: '#eee' } },
|
|
12483
|
+
feature_body
|
|
12484
|
+
)
|
|
12485
|
+
)
|
|
12486
|
+
)
|
|
12487
|
+
)
|
|
12488
|
+
);
|
|
12489
|
+
})
|
|
12490
|
+
)
|
|
12491
|
+
);
|
|
12492
|
+
};
|
|
12493
|
+
|
|
12440
12494
|
exports.DeckContent = ContentCard;
|
|
12441
12495
|
exports.GridContent = GridContent;
|
|
12442
12496
|
exports.DeckQueue = DeckQueue;
|
|
@@ -12462,4 +12516,5 @@ exports.AD300x250x600 = AD300x250x600;
|
|
|
12462
12516
|
exports.AD728x90 = AD728x90;
|
|
12463
12517
|
exports.getSerializers = getSerializers$1;
|
|
12464
12518
|
exports.Search = Search;
|
|
12519
|
+
exports.Feature = Feature;
|
|
12465
12520
|
//# sourceMappingURL=index.js.map
|