@twreporter/index-page 1.3.0 → 1.3.2-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.
- package/CHANGELOG.md +24 -0
- package/lib/index.js +0 -3
- package/package.json +4 -5
- package/lib/components/reporter-intro.js +0 -306
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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.2-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.3.1...@twreporter/index-page@1.3.2-rc.0) (2022-08-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @twreporter/index-page
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.3.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.3.1-rc.0...@twreporter/index-page@1.3.1) (2022-08-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @twreporter/index-page
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.3.1-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.3.0...@twreporter/index-page@1.3.1-rc.0) (2022-07-27)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @twreporter/index-page
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
# [1.3.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/index-page@1.3.0-rc.0...@twreporter/index-page@1.3.0) (2022-07-21)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @twreporter/index-page
|
package/lib/index.js
CHANGED
|
@@ -25,8 +25,6 @@ var _photographySection = _interopRequireDefault(require("./components/photograp
|
|
|
25
25
|
|
|
26
26
|
var _podcastBoxSection = _interopRequireDefault(require("./components/podcast-box-section"));
|
|
27
27
|
|
|
28
|
-
var _reporterIntro = _interopRequireDefault(require("./components/reporter-intro"));
|
|
29
|
-
|
|
30
28
|
var _reviews = _interopRequireDefault(require("./components/reviews"));
|
|
31
29
|
|
|
32
30
|
var _scrollFadein = _interopRequireDefault(require("./components/animations/scroll-fadein"));
|
|
@@ -49,7 +47,6 @@ var _default = {
|
|
|
49
47
|
NewsLetterSection: _newsLetterSection["default"],
|
|
50
48
|
PhotographySection: _photographySection["default"],
|
|
51
49
|
PodcastBoxSection: _podcastBoxSection["default"],
|
|
52
|
-
ReporterIntro: _reporterIntro["default"],
|
|
53
50
|
ReviewsSection: _reviews["default"],
|
|
54
51
|
ScrollFadein: _scrollFadein["default"],
|
|
55
52
|
SeachBox: _searchBox["default"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/index-page",
|
|
3
|
-
"version": "1.3.0",
|
|
3
|
+
"version": "1.3.2-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": "^8.
|
|
15
|
+
"@twreporter/core": "^1.5.0-rc.0",
|
|
16
|
+
"@twreporter/react-components": "^8.12.0-rc.0",
|
|
17
17
|
"lodash": "^4.0.0",
|
|
18
18
|
"prop-types": "^15.0.0",
|
|
19
19
|
"react": "^16.3.0",
|
|
@@ -21,12 +21,11 @@
|
|
|
21
21
|
"react-router-dom": "^5.1.2",
|
|
22
22
|
"react-swipeable": "^4.0.1",
|
|
23
23
|
"react-waypoint": "^9.0.2",
|
|
24
|
-
"smoothscroll": "^0.3.0",
|
|
25
24
|
"styled-components": "^4.0.0",
|
|
26
25
|
"velocity-react": "^1.4.3"
|
|
27
26
|
},
|
|
28
27
|
"files": [
|
|
29
28
|
"lib"
|
|
30
29
|
],
|
|
31
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "1581b4cbe2575efda67131f0d6954cb7dfd3a82d"
|
|
32
31
|
}
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _smoothscroll = _interopRequireDefault(require("smoothscroll"));
|
|
13
|
-
|
|
14
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
-
|
|
16
|
-
var _styleUtils = require("../utils/style-utils");
|
|
17
|
-
|
|
18
|
-
var _section = _interopRequireDefault(require("./common-utils/section"));
|
|
19
|
-
|
|
20
|
-
var _sectionAnimationWrapper = _interopRequireDefault(require("./animations/section-animation-wrapper"));
|
|
21
|
-
|
|
22
|
-
var _sectionName = _interopRequireDefault(require("./common-utils/section-name"));
|
|
23
|
-
|
|
24
|
-
var _bottomLink = _interopRequireWildcard(require("./common-utils/bottom-link"));
|
|
25
|
-
|
|
26
|
-
var _app = _interopRequireDefault(require("../constants/app"));
|
|
27
|
-
|
|
28
|
-
var _sectionStrings = _interopRequireDefault(require("../constants/section-strings"));
|
|
29
|
-
|
|
30
|
-
var _mobileMockupSpecification = require("../constants/mobile-mockup-specification");
|
|
31
|
-
|
|
32
|
-
var _color = _interopRequireDefault(require("../constants/color"));
|
|
33
|
-
|
|
34
|
-
var _externalLinks = _interopRequireDefault(require("@twreporter/core/lib/constants/external-links"));
|
|
35
|
-
|
|
36
|
-
var _font = require("@twreporter/core/lib/constants/font");
|
|
37
|
-
|
|
38
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
39
|
-
|
|
40
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
|
-
|
|
42
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
|
-
|
|
44
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
45
|
-
|
|
46
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
47
|
-
|
|
48
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
49
|
-
|
|
50
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
51
|
-
|
|
52
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
53
|
-
|
|
54
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
55
|
-
|
|
56
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
57
|
-
|
|
58
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
59
|
-
|
|
60
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
61
|
-
|
|
62
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
|
-
|
|
64
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
65
|
-
|
|
66
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
67
|
-
|
|
68
|
-
// assets
|
|
69
|
-
var AboutAuthorIcon = function AboutAuthorIcon(props) {
|
|
70
|
-
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("path", {
|
|
71
|
-
d: "M50 5.826L34.055 17.684v54.55L50 60.97V5.826z",
|
|
72
|
-
fill: "#e20012"
|
|
73
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
74
|
-
d: "M50 5.826v55.143l15.945 11.266v-54.55L50 5.824z",
|
|
75
|
-
fill: "#c3000b"
|
|
76
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
77
|
-
d: "M34.055 72.235L50 94.175l15.945-21.94L50 60.969 34.055 72.235z",
|
|
78
|
-
fill: "#ffe9ec"
|
|
79
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
80
|
-
d: "M50 82.908h-8.24L50 94.174l8.238-11.266H50z",
|
|
81
|
-
fill: "#c3000b"
|
|
82
|
-
}));
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
AboutAuthorIcon.defaultProps = {
|
|
86
|
-
viewBox: "0 0 100 100",
|
|
87
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
88
|
-
fillRule: "evenodd",
|
|
89
|
-
clipRule: "evenodd",
|
|
90
|
-
strokeLinejoin: "round",
|
|
91
|
-
strokeMiterlimit: "1.414"
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
var AboutDonateIcon = function AboutDonateIcon(props) {
|
|
95
|
-
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("path", {
|
|
96
|
-
d: "M73.04 15.64L26.958 61.454l23.04 22.907 46.083-45.813L73.039 15.64z",
|
|
97
|
-
fill: "#c3000b"
|
|
98
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
99
|
-
d: "M26.959 15.64L3.918 38.548l23.041 22.906L50 38.547 26.96 15.64z",
|
|
100
|
-
fill: "#e20012"
|
|
101
|
-
}));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
AboutDonateIcon.defaultProps = {
|
|
105
|
-
viewBox: "0 0 100 100",
|
|
106
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
107
|
-
fillRule: "evenodd",
|
|
108
|
-
clipRule: "evenodd",
|
|
109
|
-
strokeLinejoin: "round",
|
|
110
|
-
strokeMiterlimit: "1.414"
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
var AboutHiringIcon = function AboutHiringIcon(props) {
|
|
114
|
-
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("path", {
|
|
115
|
-
fill: "#e60013",
|
|
116
|
-
d: "M.235 3.876h19.19V15.78H.235z"
|
|
117
|
-
}), /*#__PURE__*/_react["default"].createElement("use", {
|
|
118
|
-
xlinkHref: "#a",
|
|
119
|
-
width: "378",
|
|
120
|
-
height: "270",
|
|
121
|
-
transform: "matrix(.98967 0 0 .9684 .223 3.826)"
|
|
122
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
123
|
-
d: "M6.204 8.854a9.945 9.945 0 0 1-.254.48v2.649h-.502v-1.934c-.089.113-.182.213-.269.307a3.193 3.193 0 0 0-.293-.502c.362-.359.658-.78.874-1.243l.446.159v-.85h.368v.66h.208v-.936h.401v.943h.214V7.92h.391v1.078H6.204v-.144zM6.18 7.822a4.813 4.813 0 0 1-.991 1.125 2.541 2.541 0 0 0-.274-.422c.308-.246.568-.545.768-.883l.497.18zm2.99 1.2c-.05.61-.193 1.21-.422 1.778.146.294.369.543.646.72a1.881 1.881 0 0 0-.348.437 2.022 2.022 0 0 1-.572-.655 2.79 2.79 0 0 1-.705.708 2.634 2.634 0 0 0-.353-.363 1.82 1.82 0 0 0 .149-.098c-.466.069-.934.134-1.301.187l-.11-.432c.172-.014.381-.036.609-.06v-.331h-.648v-.399h.641v-.24l-.492.046a1.459 1.459 0 0 0-.115-.353 7.7 7.7 0 0 0 1.358-.209l.269.353a4.39 4.39 0 0 1-.557.111v.292h.646v.401h-.646v.288l.55-.06.014.24c.184-.167.339-.364.459-.583a6.1 6.1 0 0 1-.24-.96 1.81 1.81 0 0 1-.116.182 2.964 2.964 0 0 0-.24-.331H6.154v-.47h1.572a5.659 5.659 0 0 0 .367-1.577l.501.079a9.278 9.278 0 0 1-.148.833h.864v.466h-.14zm-.852 0a.911.911 0 0 1-.036.12c.043.345.113.687.209 1.022.102-.375.171-.758.204-1.145l-.377.003zM14.777 9.12h-1.051v2.117c0 .348-.075.501-.288.59-.32.098-.654.134-.987.108a2.222 2.222 0 0 0-.189-.59c.292.014.624.014.72.014.096 0 .134-.033.134-.125V9.3a6.567 6.567 0 0 1-2.124 2.189 2.515 2.515 0 0 0-.442-.502 5.358 5.358 0 0 0 1.985-1.867h-1.836v-.564h2.412v-.912h.615v.912h1.051v.564z",
|
|
124
|
-
fill: "#ffe9ec",
|
|
125
|
-
fillRule: "nonzero"
|
|
126
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
127
|
-
d: "M4.099 1.98v3.24M15.562 1.98v3.24",
|
|
128
|
-
fill: "none",
|
|
129
|
-
stroke: "#c7000a",
|
|
130
|
-
strokeWidth: "1.2"
|
|
131
|
-
}), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("image", {
|
|
132
|
-
id: "a",
|
|
133
|
-
width: "22",
|
|
134
|
-
height: "16",
|
|
135
|
-
xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAQCAYAAAAS7Y8mAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAWElEQVQ4jWNgGAW0BozYBI8zcP1H5lsyfGNEl0cXI8tgmOGELEQGTPhsxWIZByEHkGwwFPzAYSHFBmMF2AzHGUb4vIkLIIc5ThcTinVCAG9QUGr4KKAtAADAzxmucUQZDAAAAABJRU5ErkJggg=="
|
|
136
|
-
})));
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
AboutHiringIcon.defaultProps = {
|
|
140
|
-
viewBox: "0 0 20 20",
|
|
141
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
142
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
143
|
-
fillRule: "evenodd",
|
|
144
|
-
clipRule: "evenodd",
|
|
145
|
-
strokeMiterlimit: "10"
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
var AboutSubscribeIcon = function AboutSubscribeIcon(props) {
|
|
149
|
-
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("path", {
|
|
150
|
-
d: "M7.24 76.84h85.52V23.16H7.24v53.68z",
|
|
151
|
-
fill: "#e20012"
|
|
152
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
153
|
-
d: "M7.24 23.16L50 56.306 92.76 23.16H7.24z",
|
|
154
|
-
fill: "#c3000b"
|
|
155
|
-
}));
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
AboutSubscribeIcon.defaultProps = {
|
|
159
|
-
viewBox: "0 0 100 100",
|
|
160
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
161
|
-
fillRule: "evenodd",
|
|
162
|
-
clipRule: "evenodd",
|
|
163
|
-
strokeLinejoin: "round",
|
|
164
|
-
strokeMiterlimit: "1.414"
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
var ReporterIcon = function ReporterIcon(props) {
|
|
168
|
-
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("path", {
|
|
169
|
-
d: "M28.45 24.14l-10.616-2.554V8.335L28.45 5.38v18.76z",
|
|
170
|
-
fill: "#c3000b",
|
|
171
|
-
fillRule: "nonzero"
|
|
172
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
173
|
-
d: "M1.55 29.249l16.603-7.663V8.335L1.55.75V29.25z",
|
|
174
|
-
fill: "#e20012",
|
|
175
|
-
fillRule: "nonzero"
|
|
176
|
-
}));
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
ReporterIcon.defaultProps = {
|
|
180
|
-
viewBox: "0 0 30 30",
|
|
181
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
182
|
-
fillRule: "evenodd",
|
|
183
|
-
clipRule: "evenodd",
|
|
184
|
-
strokeLinejoin: "round",
|
|
185
|
-
strokeMiterlimit: "1.414"
|
|
186
|
-
}; // @twreporter
|
|
187
|
-
|
|
188
|
-
var mobileWidth = _styleUtils.breakPoints.mobileMaxWidth;
|
|
189
|
-
var ContentContainer = /*#__PURE__*/(0, _styledComponents["default"])(_section["default"]).withConfig({
|
|
190
|
-
displayName: "reporter-intro__ContentContainer",
|
|
191
|
-
componentId: "zrr71j-0"
|
|
192
|
-
})(["padding-bottom:123px;color:", ";", ""], _color["default"].darkGray, _styleUtils.finalMedia.mobile(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-bottom: 0px;\n "]))));
|
|
193
|
-
|
|
194
|
-
var TopContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
195
|
-
displayName: "reporter-intro__TopContainer",
|
|
196
|
-
componentId: "zrr71j-1"
|
|
197
|
-
})(["padding:0 10px 100px 10px;", " font-size:16px;max-width:500px;text-align:justify;", ""], _styleUtils.centerBlock, _styleUtils.finalMedia.mobile(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 0 0 40px 0;\n max-width: ", "%;\n font-size: 18px;\n "])), _mobileMockupSpecification.itemPlusPaddingWidthPct));
|
|
198
|
-
|
|
199
|
-
var ReporterIconWrapper = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
200
|
-
displayName: "reporter-intro__ReporterIconWrapper",
|
|
201
|
-
componentId: "zrr71j-2"
|
|
202
|
-
})(["", " margin-bottom:30px;width:38px;"], _styleUtils.centerBlock);
|
|
203
|
-
|
|
204
|
-
var FlexContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
205
|
-
displayName: "reporter-intro__FlexContainer",
|
|
206
|
-
componentId: "zrr71j-3"
|
|
207
|
-
})(["max-width:860px;margin:0 auto;display:flex;flex-wrap:wrap;flex-direction:row;justify-content:space-between;align-items:stretch;", " ", " ", ""], _styleUtils.finalMedia.tablet(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n max-width: 700px;\n "]))), _styleUtils.finalMedia.mobile(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: block;\n "]))), _styleUtils.finalMedia.overDesktop(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-width: 1440px;\n "]))));
|
|
208
|
-
|
|
209
|
-
var Item = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
210
|
-
displayName: "reporter-intro__Item",
|
|
211
|
-
componentId: "zrr71j-4"
|
|
212
|
-
})(["position:relative;flex-shrink:1;flex-basis:150px;display:flex;flex-direction:column;justify-content:flex-start;margin:0;text-align:center;", " ", ""], _styleUtils.finalMedia.mobile(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 0 auto 60px auto;\n "]))), _styleUtils.finalMedia.overDesktop(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n flex-basis: 220px;\n "]))));
|
|
213
|
-
|
|
214
|
-
var ItemTitle = /*#__PURE__*/_styledComponents["default"].h3.withConfig({
|
|
215
|
-
displayName: "reporter-intro__ItemTitle",
|
|
216
|
-
componentId: "zrr71j-5"
|
|
217
|
-
})(["margin:0;font-size:20px;font-weight:", ";", " color:", ";"], _font.fontWeight.bold, _styleUtils.finalMedia.mobile(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 6px;\n "]))), _color["default"].darkGray);
|
|
218
|
-
|
|
219
|
-
var ItemIconContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
220
|
-
displayName: "reporter-intro__ItemIconContainer",
|
|
221
|
-
componentId: "zrr71j-6"
|
|
222
|
-
})(["width:82px;height:82px;margin:40px auto;", ""], _styleUtils.finalMedia.mobile(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: 60px;\n height: 60px;\n order: -1;\n margin: 5px auto;\n "])))); // 320 is the iPhone5 mobile width
|
|
223
|
-
// 186 is the width on the mockup
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
var mobileDescPct = 186 / 320 * 100;
|
|
227
|
-
|
|
228
|
-
var ItemDescription = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
229
|
-
displayName: "reporter-intro__ItemDescription",
|
|
230
|
-
componentId: "zrr71j-7"
|
|
231
|
-
})(["line-height:1.5;font-size:16px;", ""], _styleUtils.finalMedia.mobile(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n line-height: 1.43;\n font-size: 18px;\n max-width: ", ";\n margin: 0 auto;\n "])), "".concat(mobileDescPct, "%")));
|
|
232
|
-
|
|
233
|
-
var ItemLink = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
234
|
-
displayName: "reporter-intro__ItemLink",
|
|
235
|
-
componentId: "zrr71j-8"
|
|
236
|
-
})(["position:absolute;right:0;left:0;bottom:-43px;", ""], _styleUtils.finalMedia.mobile(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n position: relative;\n margin-top: 20px;\n bottom: 0;\n "]))));
|
|
237
|
-
|
|
238
|
-
var ReporterIntro = /*#__PURE__*/function (_React$PureComponent) {
|
|
239
|
-
_inherits(ReporterIntro, _React$PureComponent);
|
|
240
|
-
|
|
241
|
-
var _super = _createSuper(ReporterIntro);
|
|
242
|
-
|
|
243
|
-
function ReporterIntro(props) {
|
|
244
|
-
var _this;
|
|
245
|
-
|
|
246
|
-
_classCallCheck(this, ReporterIntro);
|
|
247
|
-
|
|
248
|
-
_this = _super.call(this, props);
|
|
249
|
-
_this.handleNewsLetterLinkClick = _this._handleNewsLetterLinkClick.bind(_assertThisInitialized(_this));
|
|
250
|
-
return _this;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
_createClass(ReporterIntro, [{
|
|
254
|
-
key: "_handleNewsLetterLinkClick",
|
|
255
|
-
value: function _handleNewsLetterLinkClick() {
|
|
256
|
-
/* WORKAROUND
|
|
257
|
-
* react-router does not scroll the target element into view
|
|
258
|
-
* when you are using anchor links like
|
|
259
|
-
* <Link to="#news-letter" />
|
|
260
|
-
* Hence, the following code is a navie way to scroll to
|
|
261
|
-
* news-letter section
|
|
262
|
-
*/
|
|
263
|
-
var element = document.getElementById('news-letter');
|
|
264
|
-
|
|
265
|
-
if (element) {
|
|
266
|
-
var offsetTop = element.offsetTop;
|
|
267
|
-
return (0, _smoothscroll["default"])(offsetTop);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
return null;
|
|
271
|
-
}
|
|
272
|
-
}, {
|
|
273
|
-
key: "render",
|
|
274
|
-
value: function render() {
|
|
275
|
-
var authorHref = 'authors';
|
|
276
|
-
var donationHref = _externalLinks["default"].donation;
|
|
277
|
-
var hiringHref = 'a/hiring-job-description';
|
|
278
|
-
return /*#__PURE__*/_react["default"].createElement(ContentContainer, {
|
|
279
|
-
mobileWidth: mobileWidth
|
|
280
|
-
}, /*#__PURE__*/_react["default"].createElement(_sectionName["default"], {
|
|
281
|
-
mobileWidth: mobileWidth
|
|
282
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, _sectionStrings["default"].donation)), /*#__PURE__*/_react["default"].createElement(TopContainer, null, /*#__PURE__*/_react["default"].createElement(ReporterIconWrapper, null, /*#__PURE__*/_react["default"].createElement(ReporterIcon, null)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
283
|
-
itemProp: "description"
|
|
284
|
-
}, _app["default"].description)), /*#__PURE__*/_react["default"].createElement(FlexContainer, null, /*#__PURE__*/_react["default"].createElement(Item, null, /*#__PURE__*/_react["default"].createElement(ItemTitle, null, "\u4F5C\u8005\u7FA4"), /*#__PURE__*/_react["default"].createElement(ItemIconContainer, null, /*#__PURE__*/_react["default"].createElement(AboutAuthorIcon, null)), /*#__PURE__*/_react["default"].createElement(ItemDescription, null, "\u900F\u904E\u5831\u5C0E\u8A8D\u8B58\u5831\u5C0E\u8005\u5011"), /*#__PURE__*/_react["default"].createElement(ItemLink, null, /*#__PURE__*/_react["default"].createElement(_bottomLink["default"], {
|
|
285
|
-
text: "\u524D\u5F80\u4F5C\u8005\u7FA4",
|
|
286
|
-
path: authorHref
|
|
287
|
-
}))), /*#__PURE__*/_react["default"].createElement(Item, null, /*#__PURE__*/_react["default"].createElement(ItemTitle, null, "\u8D0A\u52A9\u6211\u5011"), /*#__PURE__*/_react["default"].createElement(ItemIconContainer, null, /*#__PURE__*/_react["default"].createElement(AboutDonateIcon, null)), /*#__PURE__*/_react["default"].createElement(ItemDescription, null, "\u60A8\u7684\u652F\u6301\uFF0C\u5C07\u6210\u70BA\u300A\u5831\u5C0E\u8005\u300B\u7E7C\u7E8C\u8FFD\u8E64\u771F\u76F8\u7684\u52D5\u529B\uFF01"), /*#__PURE__*/_react["default"].createElement(ItemLink, null, /*#__PURE__*/_react["default"].createElement(_bottomLink["default"], {
|
|
288
|
-
text: "\u524D\u5F80\u8D0A\u52A9\u5925\u4F34",
|
|
289
|
-
path: donationHref,
|
|
290
|
-
redirect: true,
|
|
291
|
-
target: '_blank'
|
|
292
|
-
}))), /*#__PURE__*/_react["default"].createElement(Item, null, /*#__PURE__*/_react["default"].createElement(ItemTitle, null, "\u8A02\u95B1"), /*#__PURE__*/_react["default"].createElement(ItemIconContainer, null, /*#__PURE__*/_react["default"].createElement(AboutSubscribeIcon, null)), /*#__PURE__*/_react["default"].createElement(ItemDescription, null, "\u900F\u904E\u96FB\u5B50\u5831\u8FFD\u8E64\u5831\u5C0E\u8005\u5011"), /*#__PURE__*/_react["default"].createElement(ItemLink, null, /*#__PURE__*/_react["default"].createElement(_bottomLink.Wrapper, {
|
|
293
|
-
onClick: this.handleNewsLetterLinkClick
|
|
294
|
-
}, /*#__PURE__*/_react["default"].createElement(_bottomLink.TextSpan, null, "\u524D\u5F80\u8A02\u95B1\u96FB\u5B50\u5831"), /*#__PURE__*/_react["default"].createElement(_bottomLink.LinkIcon, null)))), /*#__PURE__*/_react["default"].createElement(Item, null, /*#__PURE__*/_react["default"].createElement(ItemTitle, null, "\u52A0\u5165\u6211\u5011"), /*#__PURE__*/_react["default"].createElement(ItemIconContainer, null, /*#__PURE__*/_react["default"].createElement(AboutHiringIcon, null)), /*#__PURE__*/_react["default"].createElement(ItemDescription, null, "\u6B61\u8FCE\u4F60\uFF0F\u59B3\u6210\u70BA\u5831\u5C0E\u8005\u4E00\u54E1"), /*#__PURE__*/_react["default"].createElement(ItemLink, null, /*#__PURE__*/_react["default"].createElement(_bottomLink["default"], {
|
|
295
|
-
text: "\u524D\u5F80\u5FB5\u624D\u8AAA\u660E",
|
|
296
|
-
path: hiringHref
|
|
297
|
-
})))));
|
|
298
|
-
}
|
|
299
|
-
}]);
|
|
300
|
-
|
|
301
|
-
return ReporterIntro;
|
|
302
|
-
}(_react["default"].PureComponent);
|
|
303
|
-
|
|
304
|
-
var _default = (0, _sectionAnimationWrapper["default"])(ReporterIntro);
|
|
305
|
-
|
|
306
|
-
exports["default"] = _default;
|