@twreporter/index-page 2.2.4-rc.1 → 2.3.0-rc.0
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.
|
@@ -48,7 +48,7 @@ var mobileContentWidthPct = mockup.contentWidth / mockup.defaultWidth * 100;
|
|
|
48
48
|
var Container = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
49
49
|
displayName: "new-donation-box-section__Container",
|
|
50
50
|
componentId: "sc-19q3hlt-0"
|
|
51
|
-
})(["background-color
|
|
51
|
+
})(["background-color:#9e7a4e;padding-top:30px;padding-bottom:30px;", ""], _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 40px;\n padding-bottom: 60px;\n "]))));
|
|
52
52
|
var ContentContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
53
53
|
displayName: "new-donation-box-section__ContentContainer",
|
|
54
54
|
componentId: "sc-19q3hlt-1"
|
|
@@ -56,7 +56,7 @@ var ContentContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig(
|
|
|
56
56
|
var DonateButton = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
57
57
|
displayName: "new-donation-box-section__DonateButton",
|
|
58
58
|
componentId: "sc-19q3hlt-2"
|
|
59
|
-
})(["a{width:116px;height:40px;border-radius:20px;background
|
|
59
|
+
})(["a{width:116px;height:40px;border-radius:20px;background:#9e7a4e;border:none;color:", ";font-size:16px;cursor:pointer;display:table;", " ", " span{display:table-cell;vertical-align:middle;text-align:center;font-weight:", ";}}"], _color.colorGrayscale.white, _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);
|
|
60
60
|
var TextColumn = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
61
61
|
displayName: "new-donation-box-section__TextColumn",
|
|
62
62
|
componentId: "sc-19q3hlt-3"
|
|
@@ -65,9 +65,9 @@ var Icon = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
65
65
|
displayName: "new-donation-box-section__Icon",
|
|
66
66
|
componentId: "sc-19q3hlt-4"
|
|
67
67
|
})(["display:inline-block;margin-left:8.6px;width:7px;height:12px;"]);
|
|
68
|
-
var DonateInfo = /*#__PURE__*/_react["default"].createElement("span", null, "\
|
|
68
|
+
var DonateInfo = /*#__PURE__*/_react["default"].createElement("span", null, "\u8D0A\u52A9\u652F\u6301", /*#__PURE__*/_react["default"].createElement(Icon, null, /*#__PURE__*/_react["default"].createElement(ArrowIcon, null)));
|
|
69
69
|
var DonationBoxSection = function DonationBoxSection() {
|
|
70
|
-
return /*#__PURE__*/_react["default"].createElement(Container, null, /*#__PURE__*/_react["default"].createElement(ContentContainer, null, /*#__PURE__*/_react["default"].createElement(TextColumn, null, /*#__PURE__*/_react["default"].createElement("h3", null, "\
|
|
70
|
+
return /*#__PURE__*/_react["default"].createElement(Container, null, /*#__PURE__*/_react["default"].createElement(ContentContainer, null, /*#__PURE__*/_react["default"].createElement(TextColumn, null, /*#__PURE__*/_react["default"].createElement("h3", null, "\u7528\u884C\u52D5\u652F\u6301\u5831\u5C0E\u8005"), /*#__PURE__*/_react["default"].createElement("p", null, "\u6DF1\u5EA6\u8ABF\u67E5\u5831\u5C0E\u5FC5\u9808\u6295\u5165\u512A\u79C0\u8A18\u8005\u3001\u8DB3\u5920\u6642\u9593\u8207\u5927\u91CF\u8CC7\u6E90\u3002\u6B61\u8FCE\u60A8\u52A0\u5165\u300A\u5831\u5C0E\u8005\u300B\u652F\u6301\u65B9\u6848\uFF0C\u4E00\u8D77\u70BA\u6253\u9020\u66F4\u597D\u7684\u793E\u6703\u53CA\u5A92\u9AD4\u74B0\u5883\u52AA\u529B\u3002")), /*#__PURE__*/_react["default"].createElement(DonateButton, null, /*#__PURE__*/_react["default"].createElement("a", {
|
|
71
71
|
href: _externalLinks["default"].tenYearAnniversary,
|
|
72
72
|
target: "_blank",
|
|
73
73
|
rel: "noopener noreferrer"
|
package/lib/index.js
CHANGED
|
@@ -22,7 +22,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
22
22
|
var _default = exports["default"] = {
|
|
23
23
|
components: {
|
|
24
24
|
CategorySection: _categorySection["default"],
|
|
25
|
-
DonationBoxSection: _featureFlag.
|
|
25
|
+
DonationBoxSection: _featureFlag.ACADEMY ? _newDonationBoxSection["default"] : _donationBoxSection["default"],
|
|
26
26
|
EditorPicks: _editorPicks["default"],
|
|
27
27
|
InforgraphicSection: _infographicSection["default"],
|
|
28
28
|
JuniorBoxSection: _juniorBoxSection["default"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/index-page",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-rc.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"prepublishOnly": "make build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@twreporter/core": "^1.
|
|
16
|
-
"@twreporter/react-components": "^9.12.0-rc.
|
|
15
|
+
"@twreporter/core": "^1.29.0-rc.0",
|
|
16
|
+
"@twreporter/react-components": "^9.12.0-rc.1",
|
|
17
17
|
"lodash": "^4.0.0",
|
|
18
18
|
"prop-types": "^15.0.0",
|
|
19
19
|
"react": "^18.2.0",
|