@antv/dumi-theme-antv 0.2.2 → 0.3.0-beta.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.
Files changed (260) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -33
  3. package/dist/builtins/Playground/index.d.ts +24 -0
  4. package/{es/builtins/Example.js → dist/builtins/Playground/index.js} +40 -33
  5. package/dist/builtins/Playground/index.module.less +15 -0
  6. package/dist/context.d.ts +5 -0
  7. package/dist/context.js +2 -0
  8. package/dist/layouts/DocLayout.d.ts +7 -0
  9. package/dist/layouts/DocLayout.js +38 -0
  10. package/dist/layouts/entry/API.d.ts +10 -0
  11. package/dist/layouts/entry/API.js +12 -0
  12. package/dist/layouts/entry/Index.d.ts +7 -0
  13. package/dist/layouts/entry/Index.js +71 -0
  14. package/dist/layouts/entry/Manual.d.ts +8 -0
  15. package/dist/layouts/entry/Manual.js +14 -0
  16. package/dist/locales/en.json +98 -0
  17. package/dist/locales/zh.json +98 -0
  18. package/dist/pages/404.d.ts +6 -0
  19. package/dist/pages/404.js +15 -0
  20. package/dist/pages/Example/index.d.ts +6 -0
  21. package/dist/pages/Example/index.js +139 -0
  22. package/dist/pages/Example/index.module.less +40 -0
  23. package/dist/pages/Examples/components/Accouncement/index.d.ts +6 -0
  24. package/dist/pages/Examples/components/Accouncement/index.js +60 -0
  25. package/dist/pages/Examples/components/Accouncement/index.module.less +9 -0
  26. package/dist/pages/Examples/components/Article/index.d.ts +2 -0
  27. package/dist/pages/Examples/components/Article/index.js +8 -0
  28. package/dist/pages/Examples/components/Article/index.module.less +2 -0
  29. package/dist/pages/Examples/components/ExampleTopicMenu/components/LeftMenu/index.d.ts +10 -0
  30. package/dist/pages/Examples/components/ExampleTopicMenu/components/LeftMenu/index.js +74 -0
  31. package/dist/pages/Examples/components/ExampleTopicMenu/index.d.ts +9 -0
  32. package/{es/builtins/Table.js → dist/pages/Examples/components/ExampleTopicMenu/index.js} +47 -41
  33. package/dist/pages/Examples/components/GalleryPageContent/DemoCard/index.d.ts +10 -0
  34. package/dist/pages/Examples/components/GalleryPageContent/DemoCard/index.js +33 -0
  35. package/dist/pages/Examples/components/GalleryPageContent/index.d.ts +10 -0
  36. package/dist/pages/Examples/components/GalleryPageContent/index.js +81 -0
  37. package/dist/pages/Examples/index.d.ts +8 -0
  38. package/dist/pages/Examples/index.js +75 -0
  39. package/dist/pages/Examples/index.module.less +605 -0
  40. package/dist/pages/Examples/types.d.ts +33 -0
  41. package/dist/pages/Examples/types.js +1 -0
  42. package/dist/plugin/examples.d.ts +12 -0
  43. package/dist/plugin/examples.js +91 -0
  44. package/dist/plugin/index.d.ts +3 -0
  45. package/dist/plugin/index.js +100 -0
  46. package/dist/plugin/utils.d.ts +5 -0
  47. package/dist/plugin/utils.js +45 -0
  48. package/dist/slots/404.d.ts +2 -0
  49. package/{es/antv/404/index.js → dist/slots/404.js} +4 -9
  50. package/{es/antv/Cases/Cases.d.ts → dist/slots/Cases/index.d.ts} +4 -4
  51. package/{es/antv/Cases/Cases.js → dist/slots/Cases/index.js} +25 -25
  52. package/{src/antv/Cases/Cases.module.less → dist/slots/Cases/index.module.less} +36 -5
  53. package/dist/slots/CodeEditor/Toolbar.d.ts +67 -0
  54. package/dist/slots/CodeEditor/Toolbar.js +152 -0
  55. package/dist/slots/CodeEditor/Toolbar.module.less +81 -0
  56. package/dist/slots/CodeEditor/index.d.ts +58 -0
  57. package/dist/slots/CodeEditor/index.js +200 -0
  58. package/dist/slots/CodeEditor/index.module.less +11 -0
  59. package/dist/slots/CodeEditor/utils.d.ts +42 -0
  60. package/dist/slots/CodeEditor/utils.js +157 -0
  61. package/dist/slots/CodePreview/CodeHeader.d.ts +19 -0
  62. package/dist/slots/CodePreview/CodeHeader.js +32 -0
  63. package/dist/slots/CodePreview/CodeHeader.module.less +0 -0
  64. package/dist/slots/CodePreview/index.d.ts +17 -0
  65. package/dist/slots/CodePreview/index.js +29 -0
  66. package/dist/slots/CodePreview/index.module.less +42 -0
  67. package/dist/slots/CodeRunner/index.d.ts +14 -0
  68. package/dist/slots/CodeRunner/index.js +76 -0
  69. package/dist/slots/CodeRunner/index.module.less +0 -0
  70. package/dist/slots/CodeRunner/utils.d.ts +10 -0
  71. package/dist/slots/CodeRunner/utils.js +36 -0
  72. package/dist/slots/Companies/index.d.ts +13 -0
  73. package/dist/slots/Companies/index.js +49 -0
  74. package/dist/slots/Companies/index.module.less +82 -0
  75. package/dist/slots/Detail/News.d.ts +9 -0
  76. package/{es/antv/Banner/Notification.js → dist/slots/Detail/News.js} +8 -11
  77. package/{src/antv/Banner/Notification.module.less → dist/slots/Detail/News.module.less} +15 -3
  78. package/dist/slots/Detail/index.d.ts +26 -0
  79. package/dist/slots/Detail/index.js +124 -0
  80. package/{src/antv/Banner/Banner.module.less → dist/slots/Detail/index.module.less} +42 -74
  81. package/dist/slots/ExampleSider/index.d.ts +55 -0
  82. package/dist/slots/ExampleSider/index.js +218 -0
  83. package/dist/slots/ExampleSider/index.module.less +141 -0
  84. package/{es/antv → dist/slots}/Features/FeatureCard.d.ts +1 -1
  85. package/{es/antv → dist/slots}/Features/FeatureCard.js +6 -6
  86. package/{src/antv → dist/slots}/Features/FeatureCard.module.less +8 -1
  87. package/{es/antv → dist/slots}/Features/index.d.ts +2 -2
  88. package/{es/antv → dist/slots}/Features/index.js +17 -25
  89. package/{src/antv/Features/Features.module.less → dist/slots/Features/index.module.less} +34 -3
  90. package/dist/slots/Footer/index.d.ts +18 -0
  91. package/dist/slots/Footer/index.js +187 -0
  92. package/dist/slots/Footer/index.module.less +85 -0
  93. package/dist/slots/Header/Logo.d.ts +7 -0
  94. package/{es/antv → dist/slots}/Header/Logo.js +6 -2
  95. package/dist/slots/Header/LogoWhite.d.ts +7 -0
  96. package/dist/slots/Header/LogoWhite.js +19 -0
  97. package/dist/slots/Header/Navs.d.ts +17 -0
  98. package/dist/slots/Header/Navs.js +46 -0
  99. package/dist/slots/Header/Products/NavigatorBanner.d.ts +10 -0
  100. package/dist/slots/Header/Products/NavigatorBanner.js +34 -0
  101. package/dist/slots/Header/Products/NavigatorBanner.module.less +39 -0
  102. package/{es/antv → dist/slots/Header}/Products/Product.d.ts +3 -3
  103. package/{es/antv → dist/slots/Header}/Products/Product.js +11 -16
  104. package/{src/antv → dist/slots/Header}/Products/Product.module.less +10 -8
  105. package/{es/antv → dist/slots/Header}/Products/getProducts.d.ts +2 -7
  106. package/dist/slots/Header/Products/getProducts.js +67 -0
  107. package/dist/slots/Header/Products/index.d.ts +9 -0
  108. package/{es/antv → dist/slots/Header}/Products/index.js +15 -22
  109. package/dist/slots/Header/Search.d.ts +12 -0
  110. package/dist/slots/Header/Search.js +90 -0
  111. package/dist/slots/Header/Search.module.less +39 -0
  112. package/dist/slots/Header/index.d.ts +66 -0
  113. package/dist/slots/Header/index.js +379 -0
  114. package/dist/slots/Header/index.module.less +382 -0
  115. package/dist/slots/Header/utils.d.ts +1 -0
  116. package/dist/slots/Header/utils.js +26 -0
  117. package/dist/slots/Loading/index.d.ts +2 -0
  118. package/dist/slots/Loading/index.js +65 -0
  119. package/dist/slots/Loading/index.module.less +12 -0
  120. package/dist/slots/Loading.d.ts +5 -0
  121. package/dist/slots/Loading.js +8 -0
  122. package/dist/slots/ManualContent/NavigatorBanner.d.ts +9 -0
  123. package/dist/slots/ManualContent/NavigatorBanner.js +36 -0
  124. package/dist/slots/ManualContent/NavigatorBanner.module.less +39 -0
  125. package/dist/slots/ManualContent/ReadingTime.d.ts +3 -0
  126. package/dist/slots/ManualContent/ReadingTime.js +10 -0
  127. package/dist/slots/ManualContent/index.d.ts +9 -0
  128. package/dist/slots/ManualContent/index.js +321 -0
  129. package/dist/slots/ManualContent/index.module.less +656 -0
  130. package/dist/slots/TOC.d.ts +5 -0
  131. package/dist/slots/TOC.js +6 -0
  132. package/dist/slots/_.less +83 -0
  133. package/dist/slots/global.d.ts +1 -0
  134. package/dist/slots/global.js +7 -0
  135. package/dist/slots/hooks.d.ts +16 -0
  136. package/{es/antv → dist/slots}/hooks.js +60 -37
  137. package/dist/slots/utils.d.ts +20 -0
  138. package/dist/slots/utils.js +154 -0
  139. package/dist/types.d.ts +3 -0
  140. package/dist/types.js +1 -0
  141. package/dist/typings.d.ts +140 -0
  142. package/package.json +108 -47
  143. package/es/antv/404/index.d.ts +0 -2
  144. package/es/antv/Banner/Banner.module.less +0 -412
  145. package/es/antv/Banner/Notification.d.ts +0 -10
  146. package/es/antv/Banner/Notification.module.less +0 -108
  147. package/es/antv/Banner/index.d.ts +0 -25
  148. package/es/antv/Banner/index.js +0 -104
  149. package/es/antv/Cases/Cases.module.less +0 -203
  150. package/es/antv/Features/FeatureCard.module.less +0 -51
  151. package/es/antv/Features/Features.module.less +0 -169
  152. package/es/antv/Footer/Footer.module.less +0 -36
  153. package/es/antv/Footer/index.d.ts +0 -12
  154. package/es/antv/Footer/index.js +0 -237
  155. package/es/antv/Header/Logo.d.ts +0 -4
  156. package/es/antv/Products/Product.module.less +0 -146
  157. package/es/antv/Products/getNewProducts.d.ts +0 -24
  158. package/es/antv/Products/getNewProducts.js +0 -35
  159. package/es/antv/Products/getProducts.js +0 -460
  160. package/es/antv/Products/index.d.ts +0 -9
  161. package/es/antv/hooks.d.ts +0 -14
  162. package/es/antv/mixins.less +0 -21
  163. package/es/antv/utils.d.ts +0 -5
  164. package/es/antv/utils.js +0 -49
  165. package/es/builtins/API.d.ts +0 -3
  166. package/es/builtins/API.js +0 -37
  167. package/es/builtins/Alert.d.ts +0 -3
  168. package/es/builtins/Alert.js +0 -7
  169. package/es/builtins/Alert.less +0 -62
  170. package/es/builtins/Badge.d.ts +0 -3
  171. package/es/builtins/Badge.js +0 -7
  172. package/es/builtins/Badge.less +0 -31
  173. package/es/builtins/Example.d.ts +0 -5
  174. package/es/builtins/Example.less +0 -47
  175. package/es/builtins/Previewer.d.ts +0 -39
  176. package/es/builtins/Previewer.js +0 -225
  177. package/es/builtins/Previewer.less +0 -406
  178. package/es/builtins/SourceCode.d.ts +0 -10
  179. package/es/builtins/SourceCode.js +0 -70
  180. package/es/builtins/SourceCode.less +0 -103
  181. package/es/builtins/Table.d.ts +0 -4
  182. package/es/builtins/Table.less +0 -43
  183. package/es/builtins/Tree.d.ts +0 -4
  184. package/es/builtins/Tree.js +0 -213
  185. package/es/builtins/Tree.less +0 -159
  186. package/es/components/Dark.d.ts +0 -9
  187. package/es/components/Dark.js +0 -125
  188. package/es/components/Dark.less +0 -121
  189. package/es/components/LocaleSelect.d.ts +0 -6
  190. package/es/components/LocaleSelect.js +0 -53
  191. package/es/components/LocaleSelect.less +0 -59
  192. package/es/components/Navbar.d.ts +0 -10
  193. package/es/components/Navbar.js +0 -155
  194. package/es/components/Navbar.less +0 -180
  195. package/es/components/SearchBar.d.ts +0 -4
  196. package/es/components/SearchBar.js +0 -81
  197. package/es/components/SearchBar.less +0 -165
  198. package/es/components/SideMenu.d.ts +0 -10
  199. package/es/components/SideMenu.js +0 -99
  200. package/es/components/SideMenu.less +0 -379
  201. package/es/components/SlugList.d.ts +0 -7
  202. package/es/components/SlugList.js +0 -38
  203. package/es/components/SlugList.less +0 -18
  204. package/es/declaration.d.ts +0 -1
  205. package/es/layout.d.ts +0 -5
  206. package/es/layout.js +0 -276
  207. package/es/style/layout.less +0 -402
  208. package/es/style/markdown.less +0 -240
  209. package/es/style/variables.less +0 -37
  210. package/src/antv/404/index.tsx +0 -25
  211. package/src/antv/Banner/Notification.tsx +0 -45
  212. package/src/antv/Banner/index.tsx +0 -139
  213. package/src/antv/Cases/Cases.tsx +0 -116
  214. package/src/antv/Features/FeatureCard.tsx +0 -24
  215. package/src/antv/Features/index.tsx +0 -86
  216. package/src/antv/Footer/Footer.module.less +0 -36
  217. package/src/antv/Footer/index.tsx +0 -272
  218. package/src/antv/Header/Logo.tsx +0 -85
  219. package/src/antv/Products/Product.tsx +0 -80
  220. package/src/antv/Products/getNewProducts.tsx +0 -53
  221. package/src/antv/Products/getProducts.tsx +0 -626
  222. package/src/antv/Products/index.tsx +0 -70
  223. package/src/antv/hooks.ts +0 -87
  224. package/src/antv/mixins.less +0 -21
  225. package/src/antv/utils.ts +0 -44
  226. package/src/builtins/API.tsx +0 -57
  227. package/src/builtins/Alert.less +0 -62
  228. package/src/builtins/Alert.tsx +0 -4
  229. package/src/builtins/Badge.less +0 -31
  230. package/src/builtins/Badge.tsx +0 -4
  231. package/src/builtins/Example.less +0 -47
  232. package/src/builtins/Example.tsx +0 -34
  233. package/src/builtins/Previewer.less +0 -406
  234. package/src/builtins/Previewer.tsx +0 -264
  235. package/src/builtins/SourceCode.less +0 -103
  236. package/src/builtins/SourceCode.tsx +0 -55
  237. package/src/builtins/Table.less +0 -43
  238. package/src/builtins/Table.tsx +0 -42
  239. package/src/builtins/Tree.less +0 -159
  240. package/src/builtins/Tree.tsx +0 -130
  241. package/src/components/Dark.less +0 -121
  242. package/src/components/Dark.tsx +0 -78
  243. package/src/components/LocaleSelect.less +0 -59
  244. package/src/components/LocaleSelect.tsx +0 -53
  245. package/src/components/Navbar.less +0 -180
  246. package/src/components/Navbar.tsx +0 -152
  247. package/src/components/SearchBar.less +0 -165
  248. package/src/components/SearchBar.tsx +0 -68
  249. package/src/components/SideMenu.less +0 -379
  250. package/src/components/SideMenu.tsx +0 -148
  251. package/src/components/SlugList.less +0 -18
  252. package/src/components/SlugList.tsx +0 -20
  253. package/src/declaration.d.ts +0 -1
  254. package/src/layout.tsx +0 -225
  255. package/src/style/layout.less +0 -402
  256. package/src/style/markdown.less +0 -240
  257. package/src/style/variables.less +0 -37
  258. package/src/test/SearchBar.test.ts +0 -32
  259. package/src/test/Table.test.tsx +0 -41
  260. package/src/test/index.test.tsx +0 -377
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import { NotificationProps } from "./Notification";
3
- declare type BannerButtonShape = "round" | "square";
4
- interface BannerButton {
5
- text: string;
6
- link: string;
7
- style?: React.CSSProperties;
8
- type?: string;
9
- shape?: BannerButtonShape;
10
- }
11
- interface BannerProps {
12
- coverImage?: React.ReactNode;
13
- title: string;
14
- description: string;
15
- notifications?: NotificationProps[];
16
- style?: React.CSSProperties;
17
- className?: string;
18
- video?: string;
19
- showGithubStars?: boolean;
20
- buttons?: BannerButton[];
21
- onCloseVideo?: () => void;
22
- onPlayVideo?: () => void;
23
- }
24
- declare const Banner: React.FC<BannerProps>;
25
- export default Banner;
@@ -1,104 +0,0 @@
1
- import classNames from "classnames";
2
- import { context } from "dumi/theme";
3
- import gh from "parse-github-url";
4
- import React, { useContext } from "react";
5
- import GitHubButton from "react-github-button"; //@ts-ignore
6
-
7
- import styles from "./Banner.module.less";
8
- import Notification from "./Notification";
9
- var backLeftBottom = "https://gw.alipayobjects.com/zos/basement_prod/441d5eaf-e623-47cd-b9b9-2a581d9ce1e3.svg";
10
-
11
- var Banner = function Banner(_ref) {
12
- var coverImage = _ref.coverImage,
13
- title = _ref.title,
14
- description = _ref.description,
15
- notifications = _ref.notifications,
16
- _ref$style = _ref.style,
17
- style = _ref$style === void 0 ? {} : _ref$style,
18
- className = _ref.className,
19
- _ref$showGithubStars = _ref.showGithubStars,
20
- showGithubStars = _ref$showGithubStars === void 0 ? true : _ref$showGithubStars,
21
- _ref$buttons = _ref.buttons,
22
- buttons = _ref$buttons === void 0 ? [] : _ref$buttons;
23
-
24
- var _useContext = useContext(context),
25
- repository = _useContext.config.repository;
26
-
27
- var githubUrl = repository.url;
28
- var notificationsNode = notifications.slice(0, 2).map(function (notification, i) {
29
- return /*#__PURE__*/React.createElement(Notification, Object.assign({
30
- index: i,
31
- key: i
32
- }, notification));
33
- });
34
- var renderButtons = buttons.map(function (button, i) {
35
- var ButtonLink = "a";
36
- var buttonProps = {};
37
-
38
- if (button.link.startsWith("http")) {
39
- buttonProps.target = "_blank";
40
- buttonProps.rel = "noopener noreferrer";
41
- }
42
-
43
- if (ButtonLink === "a") {
44
- buttonProps.href = button.link;
45
- } else {
46
- buttonProps.to = button.link;
47
- }
48
-
49
- var _button$shape = button.shape,
50
- shape = _button$shape === void 0 ? "round" : _button$shape;
51
- return /*#__PURE__*/React.createElement(ButtonLink, Object.assign({}, buttonProps, {
52
- className: classNames(styles.buttonLink, styles[button.type || ""], button.type === "primary" ? "primary-button" : "common-button"),
53
- key: i,
54
- style: Object.assign({
55
- borderRadius: shape === "round" ? "1000px" : "4px"
56
- }, button.style)
57
- }), /*#__PURE__*/React.createElement("span", {
58
- className: styles.button
59
- }, button.text));
60
- });
61
-
62
- if (showGithubStars) {
63
- var githubObj = gh(githubUrl);
64
-
65
- if (githubObj && githubObj.owner && githubObj.name) {
66
- renderButtons.push( /*#__PURE__*/React.createElement("div", {
67
- key: "github",
68
- className: styles.githubWrapper
69
- }, /*#__PURE__*/React.createElement(GitHubButton, {
70
- type: "stargazers",
71
- size: "large",
72
- namespace: githubObj.owner,
73
- repo: githubObj.name
74
- })));
75
- }
76
- }
77
-
78
- return /*#__PURE__*/React.createElement("section", {
79
- className: classNames(styles.wrapper, className),
80
- style: style
81
- }, /*#__PURE__*/React.createElement("div", {
82
- className: styles.content
83
- }, /*#__PURE__*/React.createElement("div", {
84
- className: styles.text
85
- }, /*#__PURE__*/React.createElement("div", {
86
- className: classNames(styles.title, "banner-title")
87
- }, title), /*#__PURE__*/React.createElement("div", {
88
- className: classNames(styles.description, "banner-description")
89
- }, description), /*#__PURE__*/React.createElement("div", {
90
- className: classNames(styles.buttons, "banner-buttons")
91
- }, renderButtons)), /*#__PURE__*/React.createElement("div", {
92
- className: classNames(styles.notifications, "notifications")
93
- }, notificationsNode), /*#__PURE__*/React.createElement("div", {
94
- className: classNames(styles.teaser, "teaser")
95
- }, /*#__PURE__*/React.createElement("div", {
96
- className: classNames(styles.teaserimg, "teaser-img")
97
- }, coverImage)), /*#__PURE__*/React.createElement("img", {
98
- className: styles.backLeftBottom,
99
- src: backLeftBottom,
100
- alt: "back"
101
- })));
102
- };
103
-
104
- export default Banner;
@@ -1,203 +0,0 @@
1
- @import '../mixins';
2
- .wrapper {
3
- height: 667px;
4
- margin: auto;
5
- position: relative;
6
- padding: 0;
7
- overflow: hidden;
8
- background: rgba(250, 251, 252, 1);
9
- .slider {
10
- .container1440;
11
- }
12
- .appWrapper {
13
- margin-left: 5%;
14
- margin-bottom: 5%;
15
- width: 83.88%;
16
- height: 100%;
17
- overflow-y: hidden;
18
- display: flex;
19
- .appLeft {
20
- margin-left: 3.06%;
21
- width: 35%;
22
- margin-top: 8%;
23
- height: 613px;
24
- .appContent {
25
- height: fit-content;
26
- position: relative;
27
- .appLogo {
28
- height: 80px;
29
- }
30
- .appTitle {
31
- font-size: 1.2857em;
32
- font-weight: 500;
33
- margin: 48px 0 0 0;
34
- position: relative;
35
- height: min-content;
36
- color: rgba(0, 0, 0, 1);
37
- user-select: text;
38
- }
39
- .appDescription {
40
- color: rgba(105, 123, 140, 0.6);
41
- font-size: 1em;
42
- margin: 16px 0 0 0;
43
- user-select: text;
44
- }
45
- .detailWrapper {
46
- margin: 20px 0 0 0;
47
- .detail {
48
- color: @primary-color;
49
- font-size: 1em;
50
- }
51
- }
52
- }
53
- .buttons {
54
- cursor: pointer;
55
- position: absolute;
56
- display: flex;
57
- bottom: 30%;
58
- height: 100px;
59
- .controlButton {
60
- width: 47px;
61
- height: 47px;
62
- line-height: 47px;
63
- border: 1px solid #a3b1bf;
64
- transition: all 0.3s;
65
- &:hover {
66
- border: 1px solid #ced4d9;
67
- fill: #000000;
68
- }
69
- &:hover :only-child {
70
- color: #ced4d9;
71
- }
72
- .controlButtonIcon {
73
- width: 100%;
74
- color: #a3b1bf;
75
- transition: all 0.3s;
76
- }
77
- }
78
- .nextButton {
79
- width: 47px;
80
- margin-left: -1px;
81
- background-image: url('https://gw.alipayobjects.com/zos/basement_prod/27ce6e21-bbb6-4490-8326-43483ac39e0b.svg');
82
- background-size: 100% 100%;
83
- &:hover {
84
- background-image: url('https://gw.alipayobjects.com/zos/basement_prod/4d1f0d0a-4e56-4f21-a9aa-06b2f8c3e18e.svg');
85
- }
86
- }
87
- }
88
- }
89
- }
90
- }
91
- .appTeaser {
92
- position: absolute;
93
- height: 667px;
94
- left: 50%;
95
- right: 0;
96
- }
97
-
98
- .slider {
99
- height: 100%;
100
- :global {
101
- .slick-dots {
102
- display: none;
103
- }
104
- }
105
- }
106
-
107
- :global {
108
- .slick-current {
109
- z-index: 2 !important;
110
- }
111
- }
112
-
113
- @media (max-width: 1200px) {
114
- .wrapper {
115
- .appWrapper {
116
- .appLeft {
117
- width: 270px;
118
- }
119
- }
120
- }
121
- .appTeaser {
122
- position: absolute;
123
- width: 857px;
124
- left: 350px;
125
- }
126
- }
127
-
128
- @media (max-width: 768px) {
129
- .wrapper {
130
- width: 100%;
131
- height: fit-content;
132
- .slider {
133
- width: 100%;
134
- max-width: 100%;
135
- margin-left: 0;
136
- margin-right: 0;
137
- }
138
- .appWrapper {
139
- width: 100%;
140
- padding-bottom: 150px;
141
- margin-left: 0;
142
- flex-direction: column;
143
- text-align: center;
144
- .appLeft {
145
- height: 286px;
146
- margin-left: 4.27%;
147
- width: 91.47%;
148
- margin-top: 64px;
149
- .appContent {
150
- width: 90%;
151
- margin-left: 5%;
152
- .appLogo {
153
- position: absolute;
154
- top: -36px;
155
- left: 50%;
156
- transform: translateX(-40px);
157
- }
158
- .appTitle {
159
- padding-top: 76px;
160
- }
161
- .detailWrapper {
162
- margin-top: 40px;
163
- .detail {
164
- font-size: 1em;
165
- }
166
- }
167
- }
168
- .buttons {
169
- display: none;
170
- position: absolute;
171
- bottom: 60px;
172
- left: 50%;
173
- height: 100px;
174
- transform: translateX(-47px);
175
- width: 92%;
176
- }
177
- }
178
- .appTeaser {
179
- left: 0;
180
- margin-top: 60px;
181
- margin-bottom: 40px;
182
- margin-left: 4.06%;
183
- width: 91.47%;
184
- height: auto;
185
- position: relative;
186
- }
187
- }
188
- }
189
-
190
- .slider {
191
- height: 100%;
192
- :global {
193
- .slick-dots {
194
- display: block;
195
- bottom: 100px;
196
- }
197
- .slick-dots li.slick-active button:before {
198
- opacity: 1;
199
- color: #1890ff;
200
- }
201
- }
202
- }
203
- }
@@ -1,51 +0,0 @@
1
- .card {
2
- background-color: #fff;
3
- height: auto;
4
- .content {
5
- padding-left: 15.9%;
6
- padding-right: 15.9%;
7
- .icon {
8
- height: 60px;
9
- }
10
- .title {
11
- font-size: 1.714em;
12
- color: #000;
13
- margin-top: 40px;
14
- margin-bottom: 0;
15
- }
16
- .description {
17
- opacity: 0.6;
18
- width: 100%;
19
- color: rgba(105, 123, 140, 1);
20
- font-size: 1em;
21
- line-height: 1.8em;
22
- margin-top: 24px;
23
- margin-bottom: 0;
24
- }
25
- }
26
- }
27
-
28
- @media (max-width: 768px) {
29
- .cards {
30
- .cardWrapper {
31
- .card {
32
- margin: 84px 19px 80px 19px;
33
- .content {
34
- .icon {
35
- width: 25.6%;
36
- }
37
- .title {
38
- font-size: 1.4em;
39
- margin-top: 28px;
40
- }
41
- .description {
42
- font-size: 1em;
43
- padding-bottom: 0px;
44
- padding-top: 0px;
45
- margin-top: 12px;
46
- }
47
- }
48
- }
49
- }
50
- }
51
- }
@@ -1,169 +0,0 @@
1
- @import '../mixins';
2
-
3
- .wrapper {
4
- display: flex;
5
- margin: auto;
6
- position: relative;
7
- flex-direction: column;
8
- padding: 0;
9
- background: rgb(240, 245, 250);
10
- height: auto;
11
- overflow-x: hidden;
12
- .content {
13
- width: 95.8%;
14
- height: 100%;
15
- margin-left: 4.2%;
16
- margin-bottom: 5%;
17
- position: relative;
18
- .container1440;
19
- }
20
- .title {
21
- font-size: 2.8em;
22
- padding-left: 4.06%;
23
- font-weight: 500;
24
- margin: 48px 0 0 0;
25
- position: relative;
26
- height: min-content;
27
- color: #fff;
28
- }
29
- .slicerbarv {
30
- display: none;
31
- }
32
- .slicerbarv2 {
33
- display: none;
34
- }
35
- .lefttop {
36
- background: linear-gradient(130deg, fade(@primary-color, 70%), shade(@primary-color, 20%));
37
- width: 100%;
38
- top: 0;
39
- position: absolute;
40
- }
41
- .lefttopWithTitle {
42
- height: 60%;
43
- }
44
- .lefttopWithoutTitle {
45
- height: 75%;
46
- }
47
- .rightbottom {
48
- position: absolute;
49
- width: 95.83%;
50
- left: 4.17%;
51
- top: 144px;
52
- background: #fff;
53
- height: 65%;
54
- box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
55
- }
56
- .rightbottomWithoutTitle {
57
- top: 48px;
58
- height: 75%;
59
- }
60
- .cardsContainer {
61
- width: 100%;
62
- height: 65%;
63
- margin-top: 48px;
64
- position: relative;
65
- .cards {
66
- display: flex;
67
- text-align: center;
68
- position: relative;
69
- width: -webkit-fill-available;
70
- flex-wrap: wrap;
71
- margin-left: 4.06%;
72
- .cardWrapper {
73
- margin: 68px 0 93px 0;
74
- border-right: 1px solid rgba(0, 0, 0, 0.1);
75
- &:last-child {
76
- border-right: 0px;
77
- }
78
- }
79
- }
80
- }
81
- }
82
- .dot {
83
- position: absolute;
84
- width: 3px;
85
- height: 3px;
86
- border-radius: 50%;
87
- background: #d8d8d8;
88
- display: none;
89
- }
90
-
91
- @media (max-width: 768px) {
92
- .wrapper {
93
- width: 100%;
94
- .lefttop {
95
- left: 0px;
96
- height: 100%;
97
- width: 100%;
98
- }
99
- .rightbottom {
100
- height: 79.5%;
101
- margin-top: 48px;
102
- .slicerbarv {
103
- position: absolute;
104
- background-color: #f2f4f5;
105
- width: 1px;
106
- height: 100%;
107
- margin-left: 3%;
108
- display: block;
109
- z-index: 1;
110
- }
111
- .slicerbarv2 {
112
- margin-left: 92.2%; // 1 - (0.96 * 0.04 + 0.04)
113
- }
114
- .slicerbarh {
115
- position: absolute;
116
- background-color: #f2f4f5;
117
- width: 100%;
118
- height: 1px;
119
- display: block;
120
- margin-top: 45px;
121
- }
122
- .slicerbarh2 {
123
- margin-top: 395px;
124
- }
125
- .slicerbarh3 {
126
- margin-top: 745px;
127
- }
128
- .slicerbarh4 {
129
- margin-top: 1095px;
130
- }
131
- }
132
-
133
- .rightbottomWithoutTitle {
134
- top: 48px;
135
- height: 86.5%;
136
- }
137
- .lefttopWithTitle {
138
- height: 95.73%;
139
- }
140
- .lefttopWithoutTitle {
141
- height: 95.73%;
142
- }
143
- .content {
144
- .title {
145
- font-size: 2.143rem;
146
- margin: 80px 0 60px 0;
147
- }
148
- .cardsContainer {
149
- margin-bottom: 70px;
150
- .cards {
151
- margin-top: 60px;
152
- margin-left: 3.34%;
153
- padding-top: 45px;
154
- padding-bottom: 45px;
155
- .cardWrapper {
156
- margin: 68px 0 68px 0;
157
- width: 100%;
158
- height: 216px;
159
- border-right: 0px;
160
- }
161
- }
162
- }
163
- }
164
- }
165
- .dot {
166
- display: block;
167
- z-index: 2;
168
- }
169
- }
@@ -1,36 +0,0 @@
1
- @import '../mixins';
2
-
3
- .footer {
4
- font-family: Avenir, @font-family;
5
-
6
- :global(.rc-footer-container),
7
- :global(.rc-footer-bottom-container) {
8
- .container1440;
9
- }
10
-
11
- .description {
12
- opacity: 0.6;
13
- font-weight: normal;
14
- margin-left: 0.5em;
15
- }
16
-
17
- .bottom {
18
- display: flex;
19
- justify-content: space-between;
20
- font-size: 14px;
21
-
22
- :global(.anticon),
23
- a {
24
- margin-right: 8px;
25
- color: rgba(255, 255, 255, 0.6);
26
- }
27
- }
28
- }
29
-
30
- @media only screen and (max-width: 767.99px) {
31
- .footer {
32
- .bottom {
33
- display: block;
34
- }
35
- }
36
- }
@@ -1,12 +0,0 @@
1
- import { FooterProps as RcFooterProps } from "rc-footer";
2
- import "rc-footer/assets/index.less";
3
- import React from "react";
4
- export declare const OLD_SITE_DOMAIN = "https://antv-2018.alipay.com";
5
- interface FooterProps extends RcFooterProps {
6
- rootDomain?: string;
7
- language?: string;
8
- githubUrl?: string;
9
- location: Location;
10
- }
11
- declare const Footer: React.FC<FooterProps>;
12
- export default Footer;