@fonixtree/magic-design 0.0.37 → 0.0.39

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.
Files changed (96) hide show
  1. package/README.md +320 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +11 -3
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +11 -3
  4. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/images/layout-icon/layout-navigation-newline.png +0 -0
  10. package/es/assets/images/layout-icon/layout-navigation-tile.png +0 -0
  11. package/es/common/FontStyles/index.js +25 -6
  12. package/es/common/ProductSource/index.less +2 -0
  13. package/es/composite-comp/common/components/ProductItem/index.js +23 -5
  14. package/es/composite-comp/common/components/ProductItem/index.less +46 -11
  15. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +21 -4
  16. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +6 -0
  17. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +94 -0
  18. package/es/composite-comp/dito/components/MobileNavigation/index.js +84 -0
  19. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +129 -0
  20. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +292 -0
  21. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +95 -15
  22. package/es/composite-comp/dito/components/Recommend/index.js +10 -1
  23. package/es/composite-comp/dito/components/Recommend/mobile/index.js +214 -77
  24. package/es/composite-comp/dito/components/Recommend/mobile/index.less +28 -27
  25. package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg1.png +0 -0
  26. package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg2.png +0 -0
  27. package/es/composite-comp/dito/components/Recommend/pc/imgs/defImg3.png +0 -0
  28. package/es/composite-comp/dito/components/Recommend/pc/index.js +653 -0
  29. package/es/composite-comp/dito/components/Recommend/pc/index.less +80 -0
  30. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +187 -4
  31. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +20 -20
  32. package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +126 -0
  33. package/es/composite-comp/dito/config-panels/MobileNavigationConfig/index.js +184 -0
  34. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +115 -44
  35. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +111 -0
  36. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -3
  37. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +89 -59
  38. package/es/constants/component-types.js +9 -3
  39. package/es/constants/index.js +5 -1
  40. package/es/constants/layout.js +31 -3
  41. package/es/core/Designer/ConfigPanel/index.js +5 -1
  42. package/es/locale/en/en.json +8 -1
  43. package/es/locale/es/es.json +12 -4
  44. package/es/locale/id/id.json +8 -1
  45. package/es/meta-comp/components/Button/index.less +1 -0
  46. package/es/meta-comp/components/Image/image/defalut-img.png +0 -0
  47. package/es/meta-comp/config-panels/TextConfig/index.js +1 -0
  48. package/lib/assets/fonts/magic-box-iconfont.css +11 -3
  49. package/lib/assets/fonts/magic-box-iconfont.css.bak +11 -3
  50. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  51. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  52. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  53. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  54. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  55. package/lib/assets/images/layout-icon/layout-navigation-newline.png +0 -0
  56. package/lib/assets/images/layout-icon/layout-navigation-tile.png +0 -0
  57. package/lib/common/FontStyles/index.js +25 -6
  58. package/lib/common/ProductSource/index.less +2 -0
  59. package/lib/composite-comp/common/components/ProductItem/index.js +23 -5
  60. package/lib/composite-comp/common/components/ProductItem/index.less +46 -11
  61. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +21 -4
  62. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +6 -0
  63. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +94 -0
  64. package/lib/composite-comp/dito/components/MobileNavigation/index.js +84 -0
  65. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +129 -0
  66. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +292 -0
  67. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +95 -15
  68. package/lib/composite-comp/dito/components/Recommend/index.js +10 -1
  69. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +214 -77
  70. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +28 -27
  71. package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg1.png +0 -0
  72. package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg2.png +0 -0
  73. package/lib/composite-comp/dito/components/Recommend/pc/imgs/defImg3.png +0 -0
  74. package/lib/composite-comp/dito/components/Recommend/pc/index.js +653 -0
  75. package/lib/composite-comp/dito/components/Recommend/pc/index.less +80 -0
  76. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +187 -4
  77. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +20 -20
  78. package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +126 -0
  79. package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/index.js +184 -0
  80. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +115 -44
  81. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +111 -0
  82. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -3
  83. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +89 -59
  84. package/lib/constants/component-types.js +9 -3
  85. package/lib/constants/index.js +5 -1
  86. package/lib/constants/layout.js +31 -3
  87. package/lib/core/Designer/ConfigPanel/index.js +5 -1
  88. package/lib/locale/en/en.json +8 -1
  89. package/lib/locale/es/es.json +12 -4
  90. package/lib/locale/id/id.json +8 -1
  91. package/lib/meta-comp/components/Button/index.less +1 -0
  92. package/lib/meta-comp/components/Image/image/defalut-img.png +0 -0
  93. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -0
  94. package/package.json +86 -1
  95. package/es/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png +0 -0
  96. package/lib/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png +0 -0
@@ -121,7 +121,22 @@ function (_super) {
121
121
  _this.props.store.setState({
122
122
  CarouselStore: __assign(__assign({}, _mobx.store.CarouselStore), (_a = {}, _a[id] = v, _a))
123
123
  });
124
- } // this.setState({});
124
+ } // 移动端导航特殊处理
125
+
126
+
127
+ if (component == 'mobileNavigation') {
128
+ if (v === 'tile') {
129
+ _this.setState({
130
+ showRowNum: false
131
+ });
132
+ } else {
133
+ _this.setState({
134
+ showRowNum: true
135
+ });
136
+ }
137
+ }
138
+
139
+ _this.selfRender(); // this.setState({});
125
140
 
126
141
  };
127
142
 
@@ -163,7 +178,6 @@ function (_super) {
163
178
  layoutSource = _a.layoutSource,
164
179
  selectedLayoutFun = _a.selectedLayoutFun;
165
180
  var showRowNum = this.state.showRowNum;
166
- console.log('customize', data);
167
181
  var layoutVal = data.layout;
168
182
 
169
183
  if (selectedLayoutFun) {
@@ -171,12 +185,15 @@ function (_super) {
171
185
  }
172
186
 
173
187
  var maxRowNum = ((0, _coreUtil.isPc)() ? data === null || data === void 0 ? void 0 : data.pcMaxRowNum : data === null || data === void 0 ? void 0 : data.mobileMaxRowNum) || 3;
188
+ var minRowNum = ((0, _coreUtil.isPc)() ? data === null || data === void 0 ? void 0 : data.pcMinRowNum : data === null || data === void 0 ? void 0 : data.mobileMinRowNum) || 1;
174
189
  var rowNumArr = [];
175
190
 
176
- for (var i = 1; i <= maxRowNum; i += 1) {
191
+ for (var i = minRowNum; i <= maxRowNum; i += 1) {
177
192
  rowNumArr.push(i);
178
193
  }
179
194
 
195
+ var _showRowNum = showRowNum && ((0, _coreUtil.isPc)() && this.props.data.pcRowNum || !(0, _coreUtil.isPc)() && this.props.data.rowNum);
196
+
180
197
  return /*#__PURE__*/_react["default"].createElement("div", {
181
198
  className: "m-customize-config"
182
199
  }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
@@ -197,7 +214,7 @@ function (_super) {
197
214
  _this.selfRender();
198
215
  },
199
216
  value: data.align
200
- })), showRowNum && (data === null || data === void 0 ? void 0 : data.rowNum) && /*#__PURE__*/_react["default"].createElement("div", {
217
+ })), _showRowNum && /*#__PURE__*/_react["default"].createElement("div", {
201
218
  className: "selectWrap"
202
219
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
203
220
  className: "iconNum",
@@ -84,8 +84,14 @@
84
84
 
85
85
  // 秒杀特有样式
86
86
  .m-product-item-wrap {
87
+ width: 142px;
87
88
  margin-right: 8px;
88
89
 
90
+ .product-img {
91
+ height: 140px;
92
+ width: 140px;
93
+ }
94
+
89
95
  .product-name {
90
96
  height: 36px;
91
97
  }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = exports.MobileNavGroupSourceJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var _locale = require("../../../../locale");
11
+
12
+ var MobileNavGroupSourceJSON = function MobileNavGroupSourceJSON() {
13
+ var groupId = (0, _uuid.v4)();
14
+ return {
15
+ id: groupId,
16
+ image: {
17
+ parentId: groupId,
18
+ id: (0, _uuid.v4)(),
19
+ open: true,
20
+ type: 'IMAGE',
21
+ content: {
22
+ h5Name: 'name2',
23
+ pcName: 'name2',
24
+ h5ImgSrc: '',
25
+ pcImgSrc: '',
26
+ clickUrl: ''
27
+ },
28
+ hover: {
29
+ open: false,
30
+ backgroundType: 'enlarge',
31
+ magnification: 1.5,
32
+ pcImgHoverUrl: '',
33
+ h5ImgHoverUrl: ''
34
+ }
35
+ },
36
+ title: {
37
+ parentId: groupId,
38
+ id: (0, _uuid.v4)(),
39
+ open: true,
40
+ type: 'TEXT',
41
+ specialContent: [],
42
+ text: (0, _locale.i18n)('NAVIGATION_NAME'),
43
+ content: {
44
+ sizeType: 'Headline 1',
45
+ fontFamily: 'Open Sans',
46
+ fontWeight: 600,
47
+ fontSize: 12,
48
+ color: '#232F46',
49
+ width: 0
50
+ },
51
+ underline: {
52
+ open: false,
53
+ textDecorationColor: '',
54
+ textDecorationStyle: 'solid'
55
+ },
56
+ vertical: {}
57
+ }
58
+ };
59
+ };
60
+
61
+ exports.MobileNavGroupSourceJSON = MobileNavGroupSourceJSON;
62
+
63
+ var getDefaultJSON = function getDefaultJSON() {
64
+ return {
65
+ id: (0, _uuid.v4)(),
66
+ type: 'MOBILE_NAVIGATION',
67
+ spacing: {
68
+ pc: {
69
+ paddingTop: 10,
70
+ paddingBottom: 10,
71
+ marginBottom: 0
72
+ },
73
+ mobile: {
74
+ paddingTop: 10,
75
+ paddingBottom: 10,
76
+ marginBottom: 0
77
+ }
78
+ },
79
+ customize: {
80
+ layout: 'newline',
81
+ rowNum: 4,
82
+ mobileMaxRowNum: 5
83
+ },
84
+ background: {
85
+ opacity: 100,
86
+ color: '#FFFFFF',
87
+ image: '',
88
+ bgType: 'color'
89
+ },
90
+ groupSource: [MobileNavGroupSourceJSON()]
91
+ };
92
+ };
93
+
94
+ exports.getDefaultJSON = getDefaultJSON;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _mobile = _interopRequireDefault(require("./mobile"));
11
+
12
+ var _defaultJSON = require("./defaultJSON");
13
+
14
+ var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23
+
24
+ var __extends = void 0 && (void 0).__extends || function () {
25
+ var _extendStatics = function extendStatics(d, b) {
26
+ _extendStatics = Object.setPrototypeOf || {
27
+ __proto__: []
28
+ } instanceof Array && function (d, b) {
29
+ d.__proto__ = b;
30
+ } || function (d, b) {
31
+ for (var p in b) {
32
+ if (b.hasOwnProperty(p)) d[p] = b[p];
33
+ }
34
+ };
35
+
36
+ return _extendStatics(d, b);
37
+ };
38
+
39
+ return function (d, b) {
40
+ _extendStatics(d, b);
41
+
42
+ function __() {
43
+ this.constructor = d;
44
+ }
45
+
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ }();
49
+
50
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
+ var c = arguments.length,
52
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
+ d;
54
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
55
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
+ }
57
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
58
+ };
59
+
60
+ var MobileNavigation =
61
+ /** @class */
62
+ function (_super) {
63
+ __extends(MobileNavigation, _super);
64
+
65
+ function MobileNavigation() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+
69
+ MobileNavigation.prototype.render = function () {
70
+ var nodeData = this.props.nodeData;
71
+ return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
+ data: nodeData
73
+ }));
74
+ };
75
+
76
+ MobileNavigation.defaultProps = {};
77
+ MobileNavigation.type = 'MOBILE_NAVIGATION';
78
+ MobileNavigation.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
+ MobileNavigation = __decorate([_compositeDecorator["default"]], MobileNavigation);
80
+ return MobileNavigation;
81
+ }(_react.Component);
82
+
83
+ var _default = MobileNavigation;
84
+ exports["default"] = _default;
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ require("./index.less");
13
+
14
+ var _AlignSelector = require("../../../../../common/AlignSelector");
15
+
16
+ var _businessUtil = require("../../../../../utils/businessUtil");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ var __extends = void 0 && (void 0).__extends || function () {
21
+ var _extendStatics = function extendStatics(d, b) {
22
+ _extendStatics = Object.setPrototypeOf || {
23
+ __proto__: []
24
+ } instanceof Array && function (d, b) {
25
+ d.__proto__ = b;
26
+ } || function (d, b) {
27
+ for (var p in b) {
28
+ if (b.hasOwnProperty(p)) d[p] = b[p];
29
+ }
30
+ };
31
+
32
+ return _extendStatics(d, b);
33
+ };
34
+
35
+ return function (d, b) {
36
+ _extendStatics(d, b);
37
+
38
+ function __() {
39
+ this.constructor = d;
40
+ }
41
+
42
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
+ };
44
+ }();
45
+
46
+ var NavigationMobile =
47
+ /** @class */
48
+ function (_super) {
49
+ __extends(NavigationMobile, _super);
50
+
51
+ function NavigationMobile() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+
54
+ _this.calcWidth = function (num) {
55
+ return (100 - (num - 1) * 2) / num + "%";
56
+ };
57
+
58
+ _this.getCardStyle = function (source, i) {
59
+ var data = _this.props.data;
60
+ var cardStyle = {
61
+ textAlign: data.customize.align
62
+ };
63
+
64
+ if (data.customize.layout.h5Layout !== 'centerM' && data.customize.layout.h5Layout !== 'normal1') {
65
+ cardStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
66
+ }
67
+
68
+ if (data.customize.layout.h5Layout === 'normal3') {
69
+ cardStyle.width = _this.calcWidth(data.customize.rowNum);
70
+ cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '2%' : 0;
71
+ }
72
+
73
+ if (source.background.bgType == 'color') {
74
+ cardStyle.backgroundColor = source.background.color;
75
+ cardStyle.opacity = source.background.opacity ? source.background.opacity : 1;
76
+ } else {
77
+ cardStyle.backgroundImage = "url(" + source.background.image + ")";
78
+ cardStyle.backgroundPosition = 'center';
79
+ }
80
+
81
+ return cardStyle;
82
+ };
83
+
84
+ return _this;
85
+ }
86
+
87
+ NavigationMobile.prototype.render = function () {
88
+ var data = this.props.data; // const { ready } = this.state;
89
+ // console.log('----imagetext mobile', data);
90
+
91
+ var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
92
+ wrapStyle.textAlign = data.customize.align; // if (data.background.bgType === 'color') {
93
+ // wrapStyle.backgroundColor = data.background.color;
94
+ // wrapStyle.opacity = data.background.opacity ? data.background.opacity : 1;
95
+ // } else {
96
+ // wrapStyle.backgroundImage = `url(${data.background.image})`;
97
+ // wrapStyle.backgroundPosition = 'center';
98
+ // }
99
+
100
+ var cardBtnStyle = {};
101
+
102
+ if (data.customize.layout.h5Layout === 'normal3') {
103
+ cardBtnStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
104
+ }
105
+
106
+ if (data.customize.layout.h5Layout === 'normal2' || data.customize.layout.h5Layout === 'normal1' || data.customize.layout.h5Layout === 'outsideM') {
107
+ cardBtnStyle.justifyContent = _AlignSelector.alignItemMap[data.customize.align];
108
+ }
109
+
110
+ return /*#__PURE__*/_react["default"].createElement("div", {
111
+ className: (0, _classnames["default"])('mobile-navigation-mobile', data.customize.layout.h5Layout)
112
+ }, (data === null || data === void 0 ? void 0 : data.groupSource.length) > 0 && /*#__PURE__*/_react["default"].createElement("div", {
113
+ className: "group-wrap"
114
+ }, data.groupSource.map(function (source, i) {
115
+ return /*#__PURE__*/_react["default"].createElement("div", {
116
+ key: source.id,
117
+ className: data.groupSource.length > data.customize.rowNum ? 'one-card card-margin-bottom' : 'one-card'
118
+ }, "11");
119
+ })));
120
+ };
121
+
122
+ NavigationMobile.defaultProps = {
123
+ data: {}
124
+ };
125
+ return NavigationMobile;
126
+ }(_react["default"].Component);
127
+
128
+ var _default = NavigationMobile;
129
+ exports["default"] = _default;
@@ -0,0 +1,292 @@
1
+ .image-text-mobile {
2
+ // display: flex;
3
+ // flex-direction: column;
4
+ padding: 17px 0;
5
+ .headline {
6
+ margin-bottom: 8px;
7
+ }
8
+ .subtitle {
9
+ margin-bottom: 36px;
10
+ }
11
+ .group-wrap .one-card .card-btn-wrap {
12
+ .card-first-btn, .card-second-btn {
13
+ width: fit-content;
14
+ }
15
+ }
16
+
17
+ .btn-wrap {
18
+ display: flex;
19
+ width: 100%;
20
+ justify-content: center;
21
+
22
+ .first-btn {
23
+ margin-top: 36px;
24
+ }
25
+ .second-btn {
26
+ margin-top: 36px;
27
+ margin-left: 12px;
28
+ }
29
+ }
30
+ }
31
+ .normal1 {
32
+ .group-wrap {
33
+ padding: 0 15px;
34
+ width: 100%;
35
+ .one-card {
36
+ display: flex;
37
+ align-items: stretch;
38
+ padding: 18px;
39
+ margin-bottom: 8px;
40
+ &:last-of-type {
41
+ margin-bottom: 0;
42
+ }
43
+ .card-image-wrap {
44
+ flex-shrink: 0;
45
+ margin-right: 12px;
46
+ }
47
+ .card-content-wrap {
48
+ flex: 1;
49
+ display: flex;
50
+ flex-direction: column;
51
+ justify-content: center;
52
+ .card-title {
53
+ margin-bottom: 6px;
54
+ text-align: left !important;
55
+ }
56
+ .card-text {
57
+ margin-bottom: 12px;
58
+ text-align: left !important;
59
+ }
60
+ .card-btn-wrap {
61
+ display: flex;
62
+ .card-first-btn {
63
+ margin-right: 12px;
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+
71
+ .normal2 {
72
+ .group-wrap {
73
+ width: 100%;
74
+ padding: 0 15px;
75
+ .one-card {
76
+ width: 100%;
77
+ padding: 20px 16px;
78
+ margin-bottom: 36px;
79
+ &:last-of-type {
80
+ margin-bottom: 0;
81
+ }
82
+ .card-image-wrap {
83
+ .card-image {
84
+ width: fit-content;
85
+ margin: 0 auto;
86
+ }
87
+ }
88
+ .card-content-wrap {
89
+ .card-title {
90
+ margin-bottom: 8px;
91
+ }
92
+ .card-text {
93
+ margin-bottom: 16px;
94
+ }
95
+ .card-btn-wrap {
96
+ display: flex;
97
+ .card-first-btn {
98
+ margin-right: 12px;
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ .normal3 {
106
+ .group-wrap {
107
+ display: flex;
108
+ // margin-bottom: 36px;
109
+ // margin-top: 36px;
110
+ flex-wrap: wrap;
111
+ width: 100%;
112
+ padding: 0 15px;
113
+
114
+ .one-card {
115
+ display: flex;
116
+ flex-direction: column;
117
+ .card-image-wrap {
118
+ width: 100%;
119
+ .card-image {
120
+ // max-height: 107px;
121
+ width: fit-content;
122
+ margin: 0 auto 7px;
123
+ }
124
+ }
125
+
126
+ .card-title {
127
+ margin-bottom: 4px;
128
+ }
129
+
130
+ .card-text {
131
+ margin-bottom: 7px;
132
+ }
133
+ .card-btn-wrap {
134
+ display: flex;
135
+ flex-direction: column;
136
+ }
137
+
138
+ .card-second-btn {
139
+ margin-top: 8px;
140
+ }
141
+ }
142
+ .card-margin-bottom {
143
+ margin-bottom: 10px;
144
+ }
145
+ }
146
+ }
147
+
148
+ .outsideM {
149
+ .group-wrap {
150
+ padding: 0 15px;
151
+ width: 100%;
152
+ .one-card {
153
+ margin-top: 35px;
154
+ position: relative;
155
+ padding: 30px 10px 20px 36px;
156
+ .card-image-wrap {
157
+ position: absolute;
158
+ left: 18px;
159
+ top: 0;
160
+ transform: translateY(-50%);
161
+ }
162
+ .card-content-wrap {
163
+ .card-title {
164
+ margin-bottom: 4px;
165
+ text-align: left !important;
166
+ }
167
+ .card-text {
168
+ margin-bottom: 12px;
169
+ text-align: left !important;
170
+ }
171
+ .card-btn-wrap {
172
+ display: flex;
173
+ .card-first-btn {
174
+ margin-right: 12px;
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+
182
+ .centerM {
183
+ .group-wrap {
184
+ position: relative;
185
+ width: 100%;
186
+ &::before {
187
+ content: '';
188
+ position: absolute;
189
+ width: 1px;
190
+ height: 100%;
191
+ border-right: 1px dashed #D2D9E5;
192
+ left: 50%;
193
+ transform: translateX(-50%);
194
+ }
195
+ .one-card {
196
+ width: calc((100% - 1px)/2);
197
+ position: relative;
198
+ padding: 0 14px 16px;
199
+ &::before {
200
+ content: '';
201
+ position: absolute;
202
+ border-radius: 50%;
203
+ background: #2F54EB;
204
+ width: 10px;
205
+ height: 10px;
206
+ z-index: 10;
207
+ border: 2px solid #CCE3FF;
208
+ }
209
+ // &::before {
210
+ // opacity: 0.2;
211
+ // width: 10px;
212
+ // height: 10px;
213
+ // }
214
+ &:nth-of-type(2n-1) {
215
+ left: 0;
216
+ &::before {
217
+ right: -5px;
218
+ top: 5px;
219
+ }
220
+ // &::after {
221
+ // right: -3px;
222
+ // top: 7px;
223
+ // }
224
+ .card-content-wrap {
225
+ display: flex;
226
+ flex-direction: column;
227
+ align-items: flex-end;
228
+ .card-title, .card-text {
229
+ text-align: right !important;
230
+ }
231
+ .image-subtext-wrap {
232
+ flex-direction: row-reverse;
233
+ .card-image-wrap {
234
+ margin-left: 8px;
235
+ }
236
+ // .card-text {
237
+ // .m-meta-text {
238
+ // text-align: right !important;
239
+ // }
240
+ // }
241
+ }
242
+ .card-btn-wrap {
243
+ display: flex;
244
+ flex-direction: column;
245
+ align-items: flex-end;
246
+ }
247
+ }
248
+ }
249
+ &:nth-of-type(2n) {
250
+ left: 50%;
251
+ &::before {
252
+ left: -5px;
253
+ top: 5px;
254
+ }
255
+ // &::after {
256
+ // left: -3px;
257
+ // top: 7px;
258
+ // }
259
+ .card-content-wrap {
260
+ .card-title, .card-text {
261
+ text-align: left !important;
262
+ }
263
+ .image-subtext-wrap {
264
+ .card-image-wrap {
265
+ margin-right: 8px;
266
+ }
267
+ // .card-text {
268
+ // .m-meta-text {
269
+ // text-align: left !important;
270
+ // }
271
+ // }
272
+ }
273
+ }
274
+ }
275
+ .card-content-wrap {
276
+ .card-title {
277
+ margin-bottom: 10px;
278
+ }
279
+ .image-subtext-wrap {
280
+ display: flex;
281
+ margin-bottom: 20px;
282
+ align-items: center;
283
+ }
284
+ .card-btn-wrap {
285
+ .card-second-btn {
286
+ margin-top: 12px;
287
+ }
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }