@twreporter/index-page 1.3.2 → 1.3.3-rc.2

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 CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.3.3-rc.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.3.3-rc.1...@twreporter/index-page@1.3.3-rc.2) (2022-09-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * adjust index-page style & animation ([5760adb](https://github.com/twreporter/twreporter-npm-packages/commit/5760adb7e656dbfc52b993a0986bedac1072c903))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.3.3-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.3.3-rc.0...@twreporter/index-page@1.3.3-rc.1) (2022-08-22)
18
+
19
+ **Note:** Version bump only for package @twreporter/index-page
20
+
21
+
22
+
23
+
24
+
25
+ ## [1.3.3-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.3.2...@twreporter/index-page@1.3.3-rc.0) (2022-08-17)
26
+
27
+ **Note:** Version bump only for package @twreporter/index-page
28
+
29
+
30
+
31
+
32
+
6
33
  ## [1.3.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.3.2-rc.1...@twreporter/index-page@1.3.2) (2022-08-11)
7
34
 
8
35
  **Note:** Version bump only for package @twreporter/index-page
@@ -41,9 +41,11 @@ var _color = _interopRequireDefault(require("../constants/color"));
41
41
 
42
42
  var _font = require("@twreporter/core/lib/constants/font");
43
43
 
44
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
45
+
44
46
  var _get = _interopRequireDefault(require("lodash/get"));
45
47
 
46
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
48
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
47
49
 
48
50
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
49
51
 
@@ -74,7 +76,6 @@ var _ = {
74
76
  };
75
77
  var desktopMinWidth = _styleUtils.breakPoints.desktopMinWidth;
76
78
  var tabletMinWidth = _styleUtils.breakPoints.tabletMinWidth;
77
- var mobileWidth = _styleUtils.breakPoints.mobileMaxWidth;
78
79
  var backgroundColor = _color["default"].gray;
79
80
  var mockup = {
80
81
  mobile: {
@@ -103,17 +104,17 @@ var SectionWrapper = /*#__PURE__*/(0, _styledComponents["default"])(_section["de
103
104
  var FlexBox = /*#__PURE__*/_styledComponents["default"].div.withConfig({
104
105
  displayName: "category-section__FlexBox",
105
106
  componentId: "sc-1vfzdxm-2"
106
- })(["display:flex;flex-wrap:wrap;width:1002px;margin:0 auto;justify-content:center;", " ", " ", ""], _styleUtils.finalMedia.desktop(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 690px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 690px;\n "]))), _styleUtils.finalMedia.mobile(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: none;\n "]))));
107
+ })(["display:flex;flex-wrap:wrap;width:1002px;margin:0 auto;justify-content:center;", " ", " ", ""], _mediaQuery["default"].desktopOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 690px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 690px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: none;\n "]))));
107
108
 
108
109
  var FlexItem = /*#__PURE__*/_styledComponents["default"].div.withConfig({
109
110
  displayName: "category-section__FlexItem",
110
111
  componentId: "sc-1vfzdxm-3"
111
- })(["background-color:white;position:relative;margin-bottom:70px;padding-bottom:20px;width:314px;&:nth-child(3n+2){margin-right:30px;margin-left:30px;}", " ", " ", ""], _styleUtils.finalMedia.desktop(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 210px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 210px;\n &:nth-child(3n+2) {\n margin-right: 20px;\n margin-left: 20px;\n }\n "]))), _styleUtils.finalMedia.mobile(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n margin-bottom: 0;\n "]))));
112
+ })(["background-color:white;position:relative;margin-bottom:70px;padding-bottom:20px;width:314px;&:nth-child(3n+2){margin-right:30px;margin-left:30px;}", " ", " ", ""], _mediaQuery["default"].desktopOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 210px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 210px;\n &:nth-child(3n+2) {\n margin-right: 20px;\n margin-left: 20px;\n }\n "]))), _mediaQuery["default"].mobileOnly(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n margin-bottom: 0;\n "]))));
112
113
 
113
114
  var ImgFrame = /*#__PURE__*/_styledComponents["default"].div.withConfig({
114
115
  displayName: "category-section__ImgFrame",
115
116
  componentId: "sc-1vfzdxm-4"
116
- })(["height:202px;", " ", " ", ""], _styleUtils.finalMedia.desktop(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n height: 138px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 138px;\n "]))), _styleUtils.finalMedia.mobile(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n height: 186px;\n "]))));
117
+ })(["height:202px;", " ", " ", ""], _mediaQuery["default"].desktopOnly(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n height: 138px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 138px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n height: 186px;\n "]))));
117
118
 
118
119
  var CategoryName = /*#__PURE__*/_styledComponents["default"].div.withConfig({
119
120
  displayName: "category-section__CategoryName",
@@ -128,12 +129,12 @@ var TextFrame = /*#__PURE__*/_styledComponents["default"].div.withConfig({
128
129
  var Title = /*#__PURE__*/_styledComponents["default"].div.withConfig({
129
130
  displayName: "category-section__Title",
130
131
  componentId: "sc-1vfzdxm-7"
131
- })(["font-family:", ";font-weight:", ";font-size:20px;color:", ";line-height:1.4;width:92%;margin:0 auto;@media (max-width:", "){width:", "%;}"], _font.fontFamily.title, _font.fontWeight.bold, _color["default"].darkGray, mobileWidth, mockup.mobile.titleWidth / mockup.mobile.titleFrameWidth * 100);
132
+ })(["font-family:", ";font-weight:", ";font-size:20px;color:", ";line-height:1.4;width:92%;margin:0 auto;", ""], _font.fontFamily.title, _font.fontWeight.bold, _color["default"].darkGray, _mediaQuery["default"].mobileOnly(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: ", "%;\n "])), mockup.mobile.titleWidth / mockup.mobile.titleFrameWidth * 100));
132
133
 
133
134
  var More = /*#__PURE__*/_styledComponents["default"].div.withConfig({
134
135
  displayName: "category-section__More",
135
136
  componentId: "sc-1vfzdxm-8"
136
- })(["position:absolute;left:50%;bottom:-16px;padding-top:16px;transform:translateX(-50%);text-align:center;width:101%;background-color:", ";@media (max-width:", "){bottom:-24px;}"], backgroundColor, mobileWidth);
137
+ })(["position:absolute;left:50%;bottom:-16px;padding-top:16px;transform:translateX(-50%);text-align:center;width:101%;background-color:", ";", ""], backgroundColor, _mediaQuery["default"].mobileOnly(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n bottom: -24px;\n "]))));
137
138
 
138
139
  var Category = /*#__PURE__*/function (_React$PureComponent) {
139
140
  _inherits(Category, _React$PureComponent);
@@ -174,15 +175,8 @@ var Category = /*#__PURE__*/function (_React$PureComponent) {
174
175
  path: _.get(item, 'moreURI')
175
176
  })));
176
177
  });
177
- return /*#__PURE__*/_react["default"].createElement(Container, null, /*#__PURE__*/_react["default"].createElement(SectionWrapper, {
178
- mobileWidth: mobileWidth
179
- }, /*#__PURE__*/_react["default"].createElement(_sectionName["default"], {
180
- mobileWidth: mobileWidth
181
- }, /*#__PURE__*/_react["default"].createElement("span", null, _sectionStrings["default"].category)), /*#__PURE__*/_react["default"].createElement(FlexBox, null, items), /*#__PURE__*/_react["default"].createElement(_mobileList["default"], {
182
- maxWidth: mobileWidth
183
- }, /*#__PURE__*/_react["default"].createElement(_mobileFlexSwipeable["default"].SwipableFlexItems, {
178
+ return /*#__PURE__*/_react["default"].createElement(Container, null, /*#__PURE__*/_react["default"].createElement(SectionWrapper, null, /*#__PURE__*/_react["default"].createElement(_sectionName["default"], null, /*#__PURE__*/_react["default"].createElement("span", null, _sectionStrings["default"].category)), /*#__PURE__*/_react["default"].createElement(FlexBox, null, items), /*#__PURE__*/_react["default"].createElement(_mobileList["default"], null, /*#__PURE__*/_react["default"].createElement(_mobileFlexSwipeable["default"].SwipableFlexItems, {
184
179
  alignItems: "stretch",
185
- mobileWidth: mobileWidth,
186
180
  maxSwipableItems: _.get(this.props, 'data.length', 1) - 1,
187
181
  categorySection: true
188
182
  }, items))));
@@ -7,14 +7,18 @@ exports["default"] = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
11
+
12
+ var _templateObject;
13
+
10
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
15
 
16
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
+
12
18
  var MobileList = /*#__PURE__*/_styledComponents["default"].div.withConfig({
13
19
  displayName: "mobile-list__MobileList",
14
20
  componentId: "uh87t9-0"
15
- })(["display:none;@media (max-width:", "){display:block;}"], function (props) {
16
- return props.maxWidth;
17
- });
21
+ })(["display:none;", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n "]))));
18
22
 
19
23
  var _default = MobileList;
20
24
  exports["default"] = _default;
@@ -9,6 +9,8 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
10
  var _styleUtils = require("../../utils/style-utils");
11
11
 
12
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
13
+
12
14
  var _templateObject, _templateObject2, _templateObject3;
13
15
 
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -18,7 +20,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
18
20
  var ContentWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
19
21
  displayName: "section-content-wrapper__ContentWrapper",
20
22
  componentId: "shv972-0"
21
- })(["margin:0 auto;max-width:", ";", " ", " ", ""], _styleUtils.breakPoints.overDesktopMinWidth, _styleUtils.finalMedia.desktop(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: ", ";\n "])), _styleUtils.breakPoints.desktopMinWidth), _styleUtils.finalMedia.tablet(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-width: ", ";\n "])), _styleUtils.breakPoints.tabletMinWidth), _styleUtils.finalMedia.mobile(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n max-width: ", ";\n "])), _styleUtils.breakPoints.mobileMaxWidth));
23
+ })(["margin:0 auto;max-width:", ";", " ", " ", ""], _styleUtils.breakPoints.overDesktopMinWidth, _mediaQuery["default"].desktopOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: ", ";\n "])), _styleUtils.breakPoints.desktopMinWidth), _mediaQuery["default"].tabletOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-width: ", ";\n "])), _styleUtils.breakPoints.tabletMinWidth), _mediaQuery["default"].mobileOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n max-width: ", ";\n "])), _styleUtils.breakPoints.mobileMaxWidth));
22
24
 
23
25
  var _default = ContentWrapper;
24
26
  exports["default"] = _default;
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
 
8
- var _styleUtils = require("../../utils/style-utils");
9
-
10
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
11
9
 
12
10
  var _color = _interopRequireDefault(require("../../constants/color"));
13
11
 
12
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
13
+
14
14
  var _templateObject;
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -20,7 +20,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
20
20
  var SectionName = /*#__PURE__*/_styledComponents["default"].div.withConfig({
21
21
  displayName: "section-name__SectionName",
22
22
  componentId: "ezov0u-0"
23
- })(["display:none;", ""], _styleUtils.finalMedia.mobile(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n font-size: 12px;\n position: absolute;\n letter-spacing: 0.4px;\n z-index: 3;\n top: -8px;\n left: 0;\n right: 0;\n text-align: center;\n >span {\n color: ", ";\n padding-left: 5px;\n padding-right: 5px;\n background-color: ", ";\n }\n "])), _color["default"].white, _color["default"].red));
23
+ })(["display:none;", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n font-size: 12px;\n position: absolute;\n letter-spacing: 0.4px;\n z-index: 3;\n top: -8px;\n left: 0;\n right: 0;\n text-align: center;\n >span {\n color: ", ";\n padding-left: 5px;\n padding-right: 5px;\n background-color: ", ";\n }\n "])), _color["default"].white, _color["default"].red));
24
24
 
25
25
  var _default = SectionName;
26
26
  exports["default"] = _default;
@@ -9,7 +9,7 @@ var _sectionContentWrapper = _interopRequireDefault(require("./section-content-w
9
9
 
10
10
  var _styledComponents = _interopRequireDefault(require("styled-components"));
11
11
 
12
- var _styleUtils = require("../../utils/style-utils");
12
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
13
13
 
14
14
  var _templateObject;
15
15
 
@@ -20,6 +20,6 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
20
20
  var Section = /*#__PURE__*/(0, _styledComponents["default"])(_sectionContentWrapper["default"]).withConfig({
21
21
  displayName: "section__Section",
22
22
  componentId: "z0ptm1-0"
23
- })(["position:relative;padding-top:100px;padding-bottom:80px;", ""], _styleUtils.finalMedia.mobile(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 30px;\n padding-bottom: 60px;\n "]))));
23
+ })(["position:relative;padding-top:100px;padding-bottom:80px;", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 30px;\n padding-bottom: 60px;\n "]))));
24
24
  var _default = Section;
25
25
  exports["default"] = _default;
@@ -11,14 +11,14 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
13
 
14
- var _styleUtils = require("../utils/style-utils");
15
-
16
14
  var _color = _interopRequireDefault(require("../constants/color"));
17
15
 
18
16
  var _donationLink = _interopRequireDefault(require("@twreporter/react-components/lib/donation-link"));
19
17
 
20
18
  var _font = require("@twreporter/core/lib/constants/font");
21
19
 
20
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
21
+
22
22
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -74,22 +74,22 @@ var mobileContentWidthPct = mockup.contentWidth / mockup.defaultWidth * 100;
74
74
  var Container = /*#__PURE__*/_styledComponents["default"].div.withConfig({
75
75
  displayName: "donation-box-section__Container",
76
76
  componentId: "sc-1xxgww4-0"
77
- })(["background-color:", ";padding-top:30px;padding-bottom:30px;", ""], _color["default"].brown, _styleUtils.finalMedia.mobile(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 40px;\n padding-bottom: 60px;\n "]))));
77
+ })(["background-color:", ";padding-top:30px;padding-bottom:30px;", ""], _color["default"].brown, _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 40px;\n padding-bottom: 60px;\n "]))));
78
78
 
79
79
  var ContentContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
80
80
  displayName: "donation-box-section__ContentContainer",
81
81
  componentId: "sc-1xxgww4-1"
82
- })(["display:flex;justify-content:space-between;align-items:center;max-width:1024px;margin:0 auto;padding:0 100px;color:", ";h3{margin:0;font-size:32px;font-weight:", ";font-family:", ";line-height:1.63;}p{margin-top:10px;font-size:14px;line-height:1.57;text-align:left;}", " ", " ", ""], _color["default"].white, _font.fontWeight.bold, _font.fontFamily.title, _styleUtils.finalMedia.overDesktop(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-width: 1440px;\n padding: 0 219px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n padding: 0 110px;\n p{\n margin-top: 17px;\n }\n "]))), _styleUtils.finalMedia.mobile(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: ", "%;\n display: block;\n text-align: center;\n padding: 0;\n h3{\n font-size: 24px;\n line-height: 2.17;\n }\n p{\n margin-top: 0;\n }\n "])), mobileContentWidthPct));
82
+ })(["display:flex;justify-content:space-between;align-items:center;max-width:1024px;margin:0 auto;padding:0 100px;color:", ";h3{margin:0;font-size:32px;font-weight:", ";font-family:", ";line-height:1.63;}p{margin-top:10px;font-size:14px;line-height:1.57;text-align:left;}", " ", " ", ""], _color["default"].white, _font.fontWeight.bold, _font.fontFamily.title, _mediaQuery["default"].hdOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-width: 1440px;\n padding: 0 219px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n padding: 0 110px;\n p{\n margin-top: 17px;\n }\n "]))), _mediaQuery["default"].mobileOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: ", "%;\n display: block;\n text-align: center;\n padding: 0;\n h3{\n font-size: 24px;\n line-height: 2.17;\n }\n p{\n margin-top: 0;\n }\n "])), mobileContentWidthPct));
83
83
 
84
84
  var DonateButton = /*#__PURE__*/_styledComponents["default"].div.withConfig({
85
85
  displayName: "donation-box-section__DonateButton",
86
86
  componentId: "sc-1xxgww4-2"
87
- })(["a{width:116px;height:40px;border-radius:20px;background:", ";border:none;color:", ";font-size:16px;cursor:pointer;display:table;", " ", " span{display:table-cell;vertical-align:middle;text-align:center;font-weight:", ";}}"], _color["default"].white, _color["default"].brown, _styleUtils.finalMedia.tablet(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n right: 110px;\n top: 9px;\n "]))), _styleUtils.finalMedia.mobile(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 40px auto 0 auto;\n "]))), _font.fontWeight.bold);
87
+ })(["a{width:116px;height:40px;border-radius:20px;background:", ";border:none;color:", ";font-size:16px;cursor:pointer;display:table;", " ", " span{display:table-cell;vertical-align:middle;text-align:center;font-weight:", ";}}"], _color["default"].white, _color["default"].brown, _mediaQuery["default"].tabletOnly(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n right: 110px;\n top: 9px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 40px auto 0 auto;\n "]))), _font.fontWeight.bold);
88
88
 
89
89
  var TextColumn = /*#__PURE__*/_styledComponents["default"].div.withConfig({
90
90
  displayName: "donation-box-section__TextColumn",
91
91
  componentId: "sc-1xxgww4-3"
92
- })(["", ""], _styleUtils.finalMedia.desktop(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n max-width: 608px;\n "]))));
92
+ })(["", ""], _mediaQuery["default"].desktopOnly(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n max-width: 608px;\n "]))));
93
93
 
94
94
  var Icon = /*#__PURE__*/_styledComponents["default"].div.withConfig({
95
95
  displayName: "donation-box-section__Icon",
@@ -33,11 +33,13 @@ var _color = _interopRequireDefault(require("../constants/color"));
33
33
 
34
34
  var _font = require("@twreporter/core/lib/constants/font");
35
35
 
36
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
37
+
36
38
  var _clone = _interopRequireDefault(require("lodash/clone"));
37
39
 
38
40
  var _get = _interopRequireDefault(require("lodash/get"));
39
41
 
40
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
42
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
41
43
 
42
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
43
45
 
@@ -128,29 +130,29 @@ var swapArrayElements = function swapArrayElements(arr, indexA, indexB) {
128
130
  var CarouselContainer = /*#__PURE__*/(0, _styledComponents["default"])(_sectionContentWrapper["default"]).withConfig({
129
131
  displayName: "editor-picks__CarouselContainer",
130
132
  componentId: "sc-1bdfw2o-0"
131
- })(["overflow-x:hidden;position:relative;@media (max-width:", "){display:none;}"], _styleUtils.breakPoints.mobileMaxWidth);
133
+ })(["overflow-x:hidden;position:relative;", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n "]))));
132
134
 
133
135
  var FlexContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
134
136
  displayName: "editor-picks__FlexContainer",
135
137
  componentId: "sc-1bdfw2o-1"
136
- })(["position:relative;display:flex;height:932px;align-items:center;@media (max-width:", "){height:702px;}"], _styleUtils.breakPoints.desktopMaxWidth); // FlexItem is for moving Title
138
+ })(["position:relative;display:flex;height:932px;align-items:center;", ""], _mediaQuery["default"].desktopAndBelow(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 702px;\n "])))); // FlexItem is for moving Title
137
139
 
138
140
 
139
141
  var FlexItem = /*#__PURE__*/_styledComponents["default"].div.withConfig({
140
142
  displayName: "editor-picks__FlexItem",
141
143
  componentId: "sc-1bdfw2o-2"
142
- })(["flex:0 0 20%;margin-right:20%;position:relative;transform:", ";transition:500ms transform ease-in,500ms margin-top ease-in;cursor:pointer;margin-top:", ";@media (max-width:", "){margin-top:", ";}z-index:2;"], function (props) {
144
+ })(["flex:0 0 20%;margin-right:20%;position:relative;transform:", ";transition:500ms transform ease-in,500ms margin-top ease-in;cursor:pointer;margin-top:", ";", " z-index:2;"], function (props) {
143
145
  return props.selected !== 0 ? "translateX(-".concat((props.selected - 1) * 200, "%)") : 'translateX(200%)';
144
146
  }, function (props) {
145
147
  return props.middle ? '-770px' : '16px';
146
- }, _styleUtils.breakPoints.desktopMaxWidth, function (props) {
148
+ }, _mediaQuery["default"].desktopAndBelow(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: ", ";\n "])), function (props) {
147
149
  return props.middle ? '-540px' : '16px';
148
- });
150
+ }));
149
151
 
150
152
  var ImgFrame = /*#__PURE__*/_styledComponents["default"].div.withConfig({
151
153
  displayName: "editor-picks__ImgFrame",
152
154
  componentId: "sc-1bdfw2o-3"
153
- })(["cursor:pointer;position:absolute;width:886px;height:570px;left:50%;top:236px;transform:translateX(-50%);", " ", ""], _styleUtils.finalMedia.desktop(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 610px;\n height: 391px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 450px;\n height: 295px;\n "]))));
155
+ })(["cursor:pointer;position:absolute;width:886px;height:570px;left:50%;top:236px;transform:translateX(-50%);", " ", ""], _mediaQuery["default"].desktopOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 610px;\n height: 391px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 450px;\n height: 295px;\n "]))));
154
156
 
155
157
  var Arrow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
156
158
  displayName: "editor-picks__Arrow",
@@ -161,21 +163,21 @@ var Arrow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
161
163
  var LeftArrow = /*#__PURE__*/(0, _styledComponents["default"])(Arrow).withConfig({
162
164
  displayName: "editor-picks__LeftArrow",
163
165
  componentId: "sc-1bdfw2o-5"
164
- })(["left:17%;display:", ";@media (max-width:", "){top:365px;}transition:0.2s display linear;"], function (props) {
166
+ })(["left:17%;display:", ";", " transition:0.2s display linear;"], function (props) {
165
167
  return props.selected === 0 ? 'none' : 'inline';
166
- }, _styleUtils.breakPoints.desktopMaxWidth);
168
+ }, _mediaQuery["default"].desktopAndBelow(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n top: 365px;\n "]))));
167
169
  var RightArrow = /*#__PURE__*/(0, _styledComponents["default"])(Arrow).withConfig({
168
170
  displayName: "editor-picks__RightArrow",
169
171
  componentId: "sc-1bdfw2o-6"
170
- })(["right:17%;display:", ";@media (max-width:", "){top:365px;}transition:0.2s display linear;"], function (props) {
172
+ })(["right:17%;display:", ";", " transition:0.2s display linear;"], function (props) {
171
173
  return props.selected === props.dataLength - 1 ? 'none' : 'inline';
172
- }, _styleUtils.breakPoints.desktopMaxWidth);
174
+ }, _mediaQuery["default"].desktopAndBelow(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n top: 365px;\n "]))));
173
175
  var SideCategory = /*#__PURE__*/(0, _styledComponents["default"])(_categoryName["default"]).withConfig({
174
176
  displayName: "editor-picks__SideCategory",
175
177
  componentId: "sc-1bdfw2o-7"
176
- })(["text-align:center;height:16px;line-height:1.33;position:absolute;width:auto;transform:translateX(-50%);text-align:center;width:161px;height:16px;top:453px;left:", ";@media (max-width:", "){top:338px;}"], function (props) {
178
+ })(["text-align:center;height:16px;line-height:1.33;position:absolute;width:auto;transform:translateX(-50%);text-align:center;width:161px;height:16px;top:453px;left:", ";", ""], function (props) {
177
179
  return props.left ? props.left : '0';
178
- }, _styleUtils.breakPoints.desktopMaxWidth);
180
+ }, _mediaQuery["default"].desktopAndBelow(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n top: 338px;\n "]))));
179
181
  var MiddleCategory = /*#__PURE__*/(0, _styledComponents["default"])(_categoryName["default"]).withConfig({
180
182
  displayName: "editor-picks__MiddleCategory",
181
183
  componentId: "sc-1bdfw2o-8"
@@ -196,34 +198,34 @@ var Title = /*#__PURE__*/_styledComponents["default"].div.withConfig({
196
198
  return props.middle ? '1.25' : '1.25';
197
199
  }, function (props) {
198
200
  return props.middle ? '2.5' : '7.5';
199
- }, _styleUtils.finalMedia.desktop(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", ";\n "])), function (props) {
201
+ }, _mediaQuery["default"].desktopOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: ", ";\n "])), function (props) {
200
202
  return props.middle ? '450px' : '120px';
201
- }), _styleUtils.finalMedia.tabletBelow(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: ", ";\n "])), function (props) {
203
+ }), _mediaQuery["default"].tabletAndBelow(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: ", ";\n "])), function (props) {
202
204
  return props.middle ? '450px' : '90px';
203
205
  }));
204
206
 
205
207
  var Description = /*#__PURE__*/_styledComponents["default"].div.withConfig({
206
208
  displayName: "editor-picks__Description",
207
209
  componentId: "sc-1bdfw2o-10"
208
- })(["position:absolute;font-size:16px;width:450px;top:", ";left:", ";color:", ";transform:translateX(-50%);", ";@media (min-width:", "){", " transition:.2s opacity linear;}z-index:2;"], function (props) {
210
+ })(["position:absolute;font-size:16px;width:450px;top:", ";left:", ";color:", ";transform:translateX(-50%);", ";", " z-index:2;"], function (props) {
209
211
  return props.top ? props.top : '0';
210
212
  }, function (props) {
211
213
  return props.left ? props.left : '0';
212
- }, _color["default"].darkGray, (0, _styleUtils.truncate)('absolute', 1.43, 2, 'white'), _styleUtils.breakPoints.tabletMinWidth, function (props) {
214
+ }, _color["default"].darkGray, (0, _styleUtils.truncate)('absolute', 1.43, 2, 'white'), _mediaQuery["default"].tabletAndAbove(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n ", "\n transition: .2s opacity linear;\n "])), function (props) {
213
215
  return props.ifHover ? 'opacity: 0.7;' : '';
214
- });
216
+ }));
215
217
 
216
218
  var HoverEffect = /*#__PURE__*/_styledComponents["default"].div.withConfig({
217
219
  displayName: "editor-picks__HoverEffect",
218
220
  componentId: "sc-1bdfw2o-11"
219
- })(["cursor:pointer;text-decoration:none;color:", ";@media (min-width:", "){", " transition:.2s opacity linear;}"], _color["default"].darkGray, _styleUtils.breakPoints.tabletMinWidth, function (props) {
221
+ })(["cursor:pointer;text-decoration:none;color:", ";", ""], _color["default"].darkGray, _mediaQuery["default"].tabletAndAbove(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n ", "\n transition: .2s opacity linear;\n "])), function (props) {
220
222
  return props.ifHover ? 'opacity: 0.7;' : 'opacity: 1;';
221
- });
223
+ }));
222
224
 
223
225
  var FadeInFadeOut = /*#__PURE__*/_styledComponents["default"].div.withConfig({
224
226
  displayName: "editor-picks__FadeInFadeOut",
225
227
  componentId: "sc-1bdfw2o-12"
226
- })(["opacity:", ";z-index:", ";transition:0.5s opacity linear;"], function (props) {
228
+ })(["opacity:", ";z-index:", ";transition:150ms opacity ease-in-out;"], function (props) {
227
229
  return props.isSelected ? '1' : '0';
228
230
  }, function (props) {
229
231
  return props.isSelected ? '1' : '0';
@@ -395,7 +397,7 @@ var EditorPicks = /*#__PURE__*/function (_React$Component) {
395
397
  var fadingStyle = {
396
398
  opacity: index === selectDataToShow[theProp.position] ? '1' : '0',
397
399
  zIndex: index === selectDataToShow[theProp.position] ? '1' : '0',
398
- transition: 'opacity .5s linear'
400
+ transition: 'opacity 150ms ease-in-out'
399
401
  };
400
402
  return /*#__PURE__*/_react["default"].createElement(FadeInFadeOut, {
401
403
  key: _.get(post, 'id'),
@@ -41,9 +41,11 @@ var _color = _interopRequireDefault(require("../constants/color"));
41
41
 
42
42
  var _font = require("@twreporter/core/lib/constants/font");
43
43
 
44
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
45
+
44
46
  var _get = _interopRequireDefault(require("lodash/get"));
45
47
 
46
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
48
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
47
49
 
48
50
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
49
51
 
@@ -73,10 +75,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
73
75
 
74
76
  var _ = {
75
77
  get: _get["default"]
76
- }; // If window is less than oneColumnWidth,
77
- // there will be only one column. Default is three columns.
78
-
79
- var oneColumnWidth = _styleUtils.breakPoints.mobileMaxWidth;
78
+ };
80
79
  var mockup = {
81
80
  img: {
82
81
  sizes: {
@@ -95,12 +94,12 @@ var Container = /*#__PURE__*/_styledComponents["default"].div.withConfig({
95
94
  var UpperList = /*#__PURE__*/_styledComponents["default"].div.withConfig({
96
95
  displayName: "infographic-section__UpperList",
97
96
  componentId: "sc-2fohll-1"
98
- })(["list-style-type:none;display:flex;flex-wrap:nowrap;justify-content:center;align-items:flex-start;", ""], _styleUtils.finalMedia.mobile(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n "]))));
97
+ })(["list-style-type:none;display:flex;flex-wrap:nowrap;justify-content:center;align-items:flex-start;", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n "]))));
99
98
 
100
99
  var LowerList = /*#__PURE__*/(0, _styledComponents["default"])(UpperList).withConfig({
101
100
  displayName: "infographic-section__LowerList",
102
101
  componentId: "sc-2fohll-2"
103
- })(["align-items:flex-end;margin-top:-282px;margin-bottom:59px;", " ", ""], _styleUtils.finalMedia.desktop(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: -170px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: -130px;\n margin-bottom: 51px;\n "]))));
102
+ })(["align-items:flex-end;margin-top:-282px;margin-bottom:59px;", " ", ""], _mediaQuery["default"].desktopOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: -170px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: -130px;\n margin-bottom: 51px;\n "]))));
104
103
  var MobileList = /*#__PURE__*/(0, _styledComponents["default"])(_mobileList["default"]).withConfig({
105
104
  displayName: "infographic-section__MobileList",
106
105
  componentId: "sc-2fohll-3"
@@ -109,28 +108,28 @@ var MobileList = /*#__PURE__*/(0, _styledComponents["default"])(_mobileList["def
109
108
  var Item = /*#__PURE__*/_styledComponents["default"].div.withConfig({
110
109
  displayName: "infographic-section__Item",
111
110
  componentId: "sc-2fohll-4"
112
- })(["max-width:430px;transition:300ms all linear;&:first-child{margin-right:30px;}&:last-child{margin-left:30px;}", " ", " ", " @media (min-width:", "){&:hover{opacity:0.7;}}"], _styleUtils.finalMedia.desktop(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: 290px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-width: 220px;\n &:first-child {\n margin-right: 20px;\n }\n\n &:last-child {\n margin-left: 20px;\n }\n "]))), _styleUtils.finalMedia.mobile(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n max-width: 100%;\n &:first-child {\n margin-left: 0;\n }\n &:last-child {\n margin-right: 0;\n }\n "]))), oneColumnWidth);
111
+ })(["max-width:430px;transition:300ms all linear;&:first-child{margin-right:30px;}&:last-child{margin-left:30px;}", " ", " ", " ", ""], _mediaQuery["default"].desktopOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: 290px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-width: 220px;\n &:first-child {\n margin-right: 20px;\n }\n\n &:last-child {\n margin-left: 20px;\n }\n "]))), _mediaQuery["default"].mobileOnly(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n max-width: 100%;\n &:first-child {\n margin-left: 0;\n }\n &:last-child {\n margin-right: 0;\n }\n "]))), _mediaQuery["default"].tabletAndAbove(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n &:hover {\n opacity: 0.7;\n }\n "]))));
113
112
 
114
113
  var WordBlock = /*#__PURE__*/_styledComponents["default"].div.withConfig({
115
114
  displayName: "infographic-section__WordBlock",
116
115
  componentId: "sc-2fohll-5"
117
- })(["background-color:", ";width:430px;min-height:115px;padding:8px 20px 15px 12px;", " ", " ", ""], _color["default"].white, _styleUtils.finalMedia.desktop(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 290px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 0 auto;\n width: 220px;\n "]))), _styleUtils.finalMedia.mobile(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n "]))));
116
+ })(["background-color:", ";width:430px;min-height:115px;padding:8px 20px 15px 12px;", " ", " ", ""], _color["default"].white, _mediaQuery["default"].desktopOnly(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 290px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin: 0 auto;\n width: 220px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n "]))));
118
117
 
119
118
  var Title = /*#__PURE__*/_styledComponents["default"].h3.withConfig({
120
119
  displayName: "infographic-section__Title",
121
120
  componentId: "sc-2fohll-6"
122
- })(["margin:0;font-weight:", ";font-family:", ";font-size:20px;color:", ";@media (min-width:", "){", ";}", ""], _font.fontWeight.bold, _font.fontFamily.title, _color["default"].darkGray, _styleUtils.breakPoints.desktopMinWidth, (0, _styleUtils.truncate)('relative', 1.4, 2, _color["default"].white), _styleUtils.finalMedia.tablet(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-size: 16px;\n ", ";\n "])), (0, _styleUtils.truncate)('relative', 1.4, 3, _color["default"].white)));
121
+ })(["margin:0;font-weight:", ";font-family:", ";font-size:20px;color:", ";", " ", ""], _font.fontWeight.bold, _font.fontFamily.title, _color["default"].darkGray, _mediaQuery["default"].desktopAndAbove(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n ", ";\n "])), (0, _styleUtils.truncate)('relative', 1.4, 2, _color["default"].white)), _mediaQuery["default"].tabletOnly(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-size: 16px;\n ", ";\n "])), (0, _styleUtils.truncate)('relative', 1.4, 3, _color["default"].white)));
123
122
 
124
123
  var ImgFrame = /*#__PURE__*/_styledComponents["default"].div.withConfig({
125
124
  displayName: "infographic-section__ImgFrame",
126
125
  componentId: "sc-2fohll-7"
127
126
  })(["position:relative;width:430px;height:", ";", " ", " ", ""], function (props) {
128
127
  return props.isPortrait ? '596px' : '282px';
129
- }, _styleUtils.finalMedia.desktop(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n max-width: 290px;\n height: ", ";\n "])), function (props) {
128
+ }, _mediaQuery["default"].desktopOnly(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n max-width: 290px;\n height: ", ";\n "])), function (props) {
130
129
  return props.isPortrait ? '390px' : '190px';
131
- }), _styleUtils.finalMedia.tablet(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin: 0 auto;\n width: 220px;\n height: ", ";\n "])), function (props) {
130
+ }), _mediaQuery["default"].tabletOnly(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin: 0 auto;\n width: 220px;\n height: ", ";\n "])), function (props) {
132
131
  return props.isPortrait ? '290px' : '145px';
133
- }), _styleUtils.finalMedia.mobile(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: 100%;\n height: 186px;\n "]))));
132
+ }), _mediaQuery["default"].mobileOnly(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 100%;\n height: 186px;\n "]))));
134
133
 
135
134
  var More = /*#__PURE__*/_styledComponents["default"].div.withConfig({
136
135
  displayName: "infographic-section__More",
@@ -234,14 +233,7 @@ var InfographicSection = /*#__PURE__*/function (_React$PureComponent2) {
234
233
  isExternal: _.get(item, 'is_external', false)
235
234
  });
236
235
  });
237
- return /*#__PURE__*/_react["default"].createElement(Container, null, /*#__PURE__*/_react["default"].createElement(_section["default"], {
238
- mobileWidth: oneColumnWidth
239
- }, /*#__PURE__*/_react["default"].createElement(_sectionName["default"], {
240
- mobileWidth: oneColumnWidth
241
- }, /*#__PURE__*/_react["default"].createElement("span", null, _sectionStrings["default"].infographic)), /*#__PURE__*/_react["default"].createElement(UpperList, null, postComps.slice(0, listNumber)), /*#__PURE__*/_react["default"].createElement(LowerList, null, postComps.slice(listNumber, listNumber * 2)), /*#__PURE__*/_react["default"].createElement(MobileList, {
242
- maxWidth: oneColumnWidth
243
- }, /*#__PURE__*/_react["default"].createElement(_mobileFlexSwipeable["default"].SwipableFlexItems, {
244
- mobileWidth: oneColumnWidth,
236
+ return /*#__PURE__*/_react["default"].createElement(Container, null, /*#__PURE__*/_react["default"].createElement(_section["default"], null, /*#__PURE__*/_react["default"].createElement(_sectionName["default"], null, /*#__PURE__*/_react["default"].createElement("span", null, _sectionStrings["default"].infographic)), /*#__PURE__*/_react["default"].createElement(UpperList, null, postComps.slice(0, listNumber)), /*#__PURE__*/_react["default"].createElement(LowerList, null, postComps.slice(listNumber, listNumber * 2)), /*#__PURE__*/_react["default"].createElement(MobileList, null, /*#__PURE__*/_react["default"].createElement(_mobileFlexSwipeable["default"].SwipableFlexItems, {
245
237
  maxSwipableItems: 5,
246
238
  alignItems: "flex-start"
247
239
  }, postComps)), /*#__PURE__*/_react["default"].createElement(More, null, /*#__PURE__*/_react["default"].createElement(_bottomLink["default"], {
@@ -11,8 +11,6 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
13
 
14
- var _styleUtils = require("../utils/style-utils");
15
-
16
14
  var _app = _interopRequireDefault(require("../constants/app"));
17
15
 
18
16
  var _color = _interopRequireDefault(require("../constants/color"));
@@ -21,6 +19,8 @@ var _juniorLink = _interopRequireDefault(require("@twreporter/react-components/l
21
19
 
22
20
  var _font = require("@twreporter/core/lib/constants/font");
23
21
 
22
+ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
23
+
24
24
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
25
25
 
26
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -85,22 +85,22 @@ var mobileContentWidthPct = mockup.contentWidth / mockup.defaultWidth * 100;
85
85
  var Container = /*#__PURE__*/_styledComponents["default"].div.withConfig({
86
86
  displayName: "junior-box-section__Container",
87
87
  componentId: "sc-1yjyxv7-0"
88
- })(["background-image:url(", "/PodcastBox_Desktop.jpg);background-size:contain;padding-top:30px;padding-bottom:30px;", " ", " ", ""], _app["default"].assetsPath, _styleUtils.finalMedia.mobile(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-image: url(", "/PodcastBox_Mobile.jpg);\n padding-top: 40px;\n padding-bottom: 60px;\n "])), _app["default"].assetsPath), _styleUtils.finalMedia.tablet(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-image: url(", "/PodcastBox_Tablet.jpg);\n "])), _app["default"].assetsPath), _styleUtils.finalMedia.overDesktop(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-image: url(", "/PodcastBox_DesktopHD.jpg);\n "])), _app["default"].assetsPath));
88
+ })(["background-image:url(", "/PodcastBox_Desktop.jpg);background-size:contain;padding-top:30px;padding-bottom:30px;", " ", " ", ""], _app["default"].assetsPath, _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-image: url(", "/PodcastBox_Mobile.jpg);\n padding-top: 40px;\n padding-bottom: 60px;\n "])), _app["default"].assetsPath), _mediaQuery["default"].tabletOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-image: url(", "/PodcastBox_Tablet.jpg);\n "])), _app["default"].assetsPath), _mediaQuery["default"].hdOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-image: url(", "/PodcastBox_DesktopHD.jpg);\n "])), _app["default"].assetsPath));
89
89
 
90
90
  var ContentContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
91
91
  displayName: "junior-box-section__ContentContainer",
92
92
  componentId: "sc-1yjyxv7-1"
93
- })(["display:flex;justify-content:space-between;align-items:center;max-width:1024px;margin:0 auto;padding:0 100px;color:", ";font-family:", ";h3{margin:0;font-size:32px;font-weight:", ";font-family:", ";line-height:1.63;}p{margin-top:10px;font-size:14px;line-height:1.57;text-align:left;}", " ", " ", ""], _color["default"].black, _font.fontFamily["default"], _font.fontWeight.bold, _font.fontFamily.title, _styleUtils.finalMedia.overDesktop(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: 1440px;\n padding: 0 219px;\n "]))), _styleUtils.finalMedia.tablet(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n padding: 0 110px;\n p{\n margin-top: 17px;\n }\n "]))), _styleUtils.finalMedia.mobile(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n max-width: ", "%;\n display: block;\n text-align: center;\n padding: 0;\n h3{\n font-size: 24px;\n line-height: 2.17;\n }\n p{\n margin-top: 0;\n }\n "])), mobileContentWidthPct));
93
+ })(["display:flex;justify-content:space-between;align-items:center;max-width:1024px;margin:0 auto;padding:0 100px;color:", ";font-family:", ";h3{margin:0;font-size:32px;font-weight:", ";font-family:", ";line-height:1.63;}p{margin-top:10px;font-size:14px;line-height:1.57;text-align:left;}", " ", " ", ""], _color["default"].black, _font.fontFamily["default"], _font.fontWeight.bold, _font.fontFamily.title, _mediaQuery["default"].hdOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: 1440px;\n padding: 0 219px;\n "]))), _mediaQuery["default"].tabletOnly(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n padding: 0 110px;\n p{\n margin-top: 17px;\n }\n "]))), _mediaQuery["default"].mobileOnly(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n max-width: ", "%;\n display: block;\n text-align: center;\n padding: 0;\n h3{\n font-size: 24px;\n line-height: 2.17;\n }\n p{\n margin-top: 0;\n }\n "])), mobileContentWidthPct));
94
94
 
95
95
  var CTAButton = /*#__PURE__*/_styledComponents["default"].div.withConfig({
96
96
  displayName: "junior-box-section__CTAButton",
97
97
  componentId: "sc-1yjyxv7-2"
98
- })(["a{width:116px;height:40px;border-radius:20px;background:", ";border:none;color:", ";font-size:16px;cursor:pointer;display:table;", " ", " span{display:table-cell;vertical-align:middle;text-align:center;font-weight:", ";}}"], _color["default"].brown, _color["default"].white, _styleUtils.finalMedia.tablet(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: absolute;\n right: 110px;\n top: 9px;\n "]))), _styleUtils.finalMedia.mobile(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 40px auto 0 auto;\n "]))), _font.fontWeight.bold);
98
+ })(["a{width:116px;height:40px;border-radius:20px;background:", ";border:none;color:", ";font-size:16px;cursor:pointer;display:table;", " ", " span{display:table-cell;vertical-align:middle;text-align:center;font-weight:", ";}}"], _color["default"].brown, _color["default"].white, _mediaQuery["default"].tabletOnly(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: absolute;\n right: 110px;\n top: 9px;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 40px auto 0 auto;\n "]))), _font.fontWeight.bold);
99
99
 
100
100
  var TextColumn = /*#__PURE__*/_styledComponents["default"].div.withConfig({
101
101
  displayName: "junior-box-section__TextColumn",
102
102
  componentId: "sc-1yjyxv7-3"
103
- })(["", ""], _styleUtils.finalMedia.desktop(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n max-width: 608px;\n "]))));
103
+ })(["", ""], _mediaQuery["default"].desktopOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n max-width: 608px;\n "]))));
104
104
 
105
105
  var Icon = /*#__PURE__*/_styledComponents["default"].div.withConfig({
106
106
  displayName: "junior-box-section__Icon",