luna-one 3.1.291 → 3.1.292
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.
|
@@ -22,8 +22,6 @@ var _useStyles2 = _interopRequireDefault(require("../../utils/hooks/useStyles"))
|
|
|
22
22
|
var _reactAwesomeReveal = require("react-awesome-reveal");
|
|
23
23
|
|
|
24
24
|
var FullBackgroundHero = function FullBackgroundHero(_ref) {
|
|
25
|
-
var _rightContent$type;
|
|
26
|
-
|
|
27
25
|
var content = _ref.content,
|
|
28
26
|
theme = _ref.theme,
|
|
29
27
|
motion = _ref.motion,
|
|
@@ -38,7 +36,8 @@ var FullBackgroundHero = function FullBackgroundHero(_ref) {
|
|
|
38
36
|
_content$shapeType = content.shapeType,
|
|
39
37
|
shapeType = _content$shapeType === void 0 ? 'square' : _content$shapeType,
|
|
40
38
|
_content$shapeBorderC = content.shapeBorderColor,
|
|
41
|
-
shapeBorderColor = _content$shapeBorderC === void 0 ? '#F1F1F6' : _content$shapeBorderC
|
|
39
|
+
shapeBorderColor = _content$shapeBorderC === void 0 ? '#F1F1F6' : _content$shapeBorderC,
|
|
40
|
+
rightContentType = content.rightContentType;
|
|
42
41
|
|
|
43
42
|
var _useWindowSize = (0, _useWindowSize2.default)(),
|
|
44
43
|
size = _useWindowSize.size;
|
|
@@ -48,8 +47,14 @@ var FullBackgroundHero = function FullBackgroundHero(_ref) {
|
|
|
48
47
|
var _useStyles = (0, _useStyles2.default)(themes),
|
|
49
48
|
backgroundColor = _useStyles.backgroundColor;
|
|
50
49
|
|
|
50
|
+
var twoByTwoModifier = "";
|
|
51
|
+
|
|
52
|
+
if (rightContentType) {
|
|
53
|
+
twoByTwoModifier = rightContentType === 'Contentful2X2' ? 'luna-full-background-hero--2x2' : "";
|
|
54
|
+
}
|
|
55
|
+
|
|
51
56
|
return /*#__PURE__*/_react.default.createElement("section", {
|
|
52
|
-
className: "\n luna-full-background-hero \n luna-full-background-hero-".concat(variant, " ").concat(paddingClass, " \n ").concat(
|
|
57
|
+
className: "\n luna-full-background-hero \n luna-full-background-hero-".concat(variant, " ").concat(paddingClass, " \n ").concat(twoByTwoModifier, "\n "),
|
|
53
58
|
style: {
|
|
54
59
|
background: backgroundColor
|
|
55
60
|
}
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
min-height: 100vh;
|
|
17
17
|
|
|
18
18
|
@media screen and (min-width: $breakpoint-md) {
|
|
19
|
-
min-height: calc(100vh -
|
|
20
|
-
height:
|
|
19
|
+
min-height: calc(100vh - 105px);
|
|
20
|
+
height: calc(100vh - 105px);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@media screen and (max-width: $breakpoint-md) {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
&--2x2 {
|
|
93
|
-
min-height:
|
|
93
|
+
min-height: 850px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&__image-wrapper {
|