@antv/dumi-theme-antv 0.2.2 → 0.3.0-beta.1

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 (258) 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 +14 -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 +7 -0
  43. package/dist/plugin/examples.js +83 -0
  44. package/dist/plugin/index.d.ts +3 -0
  45. package/dist/plugin/index.js +103 -0
  46. package/dist/slots/404.d.ts +2 -0
  47. package/{es/antv/404/index.js → dist/slots/404.js} +4 -9
  48. package/{es/antv/Cases/Cases.d.ts → dist/slots/Cases/index.d.ts} +4 -4
  49. package/{es/antv/Cases/Cases.js → dist/slots/Cases/index.js} +25 -25
  50. package/{src/antv/Cases/Cases.module.less → dist/slots/Cases/index.module.less} +36 -5
  51. package/dist/slots/CodeEditor/Toolbar.d.ts +67 -0
  52. package/dist/slots/CodeEditor/Toolbar.js +152 -0
  53. package/dist/slots/CodeEditor/Toolbar.module.less +81 -0
  54. package/dist/slots/CodeEditor/index.d.ts +58 -0
  55. package/dist/slots/CodeEditor/index.js +200 -0
  56. package/dist/slots/CodeEditor/index.module.less +11 -0
  57. package/dist/slots/CodeEditor/utils.d.ts +42 -0
  58. package/dist/slots/CodeEditor/utils.js +157 -0
  59. package/dist/slots/CodePreview/CodeHeader.d.ts +19 -0
  60. package/dist/slots/CodePreview/CodeHeader.js +32 -0
  61. package/dist/slots/CodePreview/CodeHeader.module.less +0 -0
  62. package/dist/slots/CodePreview/index.d.ts +17 -0
  63. package/dist/slots/CodePreview/index.js +29 -0
  64. package/dist/slots/CodePreview/index.module.less +42 -0
  65. package/dist/slots/CodeRunner/index.d.ts +14 -0
  66. package/dist/slots/CodeRunner/index.js +76 -0
  67. package/dist/slots/CodeRunner/index.module.less +0 -0
  68. package/dist/slots/CodeRunner/utils.d.ts +10 -0
  69. package/dist/slots/CodeRunner/utils.js +36 -0
  70. package/dist/slots/Companies/index.d.ts +13 -0
  71. package/dist/slots/Companies/index.js +49 -0
  72. package/dist/slots/Companies/index.module.less +82 -0
  73. package/dist/slots/Detail/News.d.ts +9 -0
  74. package/{es/antv/Banner/Notification.js → dist/slots/Detail/News.js} +8 -11
  75. package/{src/antv/Banner/Notification.module.less → dist/slots/Detail/News.module.less} +15 -3
  76. package/dist/slots/Detail/index.d.ts +26 -0
  77. package/dist/slots/Detail/index.js +124 -0
  78. package/{src/antv/Banner/Banner.module.less → dist/slots/Detail/index.module.less} +42 -74
  79. package/dist/slots/ExampleSider/index.d.ts +55 -0
  80. package/dist/slots/ExampleSider/index.js +218 -0
  81. package/dist/slots/ExampleSider/index.module.less +141 -0
  82. package/{es/antv → dist/slots}/Features/FeatureCard.d.ts +1 -1
  83. package/{es/antv → dist/slots}/Features/FeatureCard.js +6 -6
  84. package/{src/antv → dist/slots}/Features/FeatureCard.module.less +8 -1
  85. package/{es/antv → dist/slots}/Features/index.d.ts +2 -2
  86. package/{es/antv → dist/slots}/Features/index.js +17 -25
  87. package/{src/antv/Features/Features.module.less → dist/slots/Features/index.module.less} +34 -3
  88. package/dist/slots/Footer/index.d.ts +18 -0
  89. package/dist/slots/Footer/index.js +187 -0
  90. package/dist/slots/Footer/index.module.less +85 -0
  91. package/dist/slots/Header/Logo.d.ts +7 -0
  92. package/{es/antv → dist/slots}/Header/Logo.js +6 -2
  93. package/dist/slots/Header/LogoWhite.d.ts +7 -0
  94. package/dist/slots/Header/LogoWhite.js +19 -0
  95. package/dist/slots/Header/Navs.d.ts +17 -0
  96. package/dist/slots/Header/Navs.js +46 -0
  97. package/dist/slots/Header/Products/NavigatorBanner.d.ts +10 -0
  98. package/dist/slots/Header/Products/NavigatorBanner.js +34 -0
  99. package/dist/slots/Header/Products/NavigatorBanner.module.less +39 -0
  100. package/{es/antv → dist/slots/Header}/Products/Product.d.ts +3 -3
  101. package/{es/antv → dist/slots/Header}/Products/Product.js +11 -16
  102. package/{src/antv → dist/slots/Header}/Products/Product.module.less +10 -8
  103. package/{es/antv → dist/slots/Header}/Products/getProducts.d.ts +2 -7
  104. package/dist/slots/Header/Products/getProducts.js +67 -0
  105. package/dist/slots/Header/Products/index.d.ts +9 -0
  106. package/{es/antv → dist/slots/Header}/Products/index.js +15 -22
  107. package/dist/slots/Header/Search.d.ts +12 -0
  108. package/dist/slots/Header/Search.js +90 -0
  109. package/dist/slots/Header/Search.module.less +39 -0
  110. package/dist/slots/Header/index.d.ts +66 -0
  111. package/dist/slots/Header/index.js +379 -0
  112. package/dist/slots/Header/index.module.less +382 -0
  113. package/dist/slots/Header/utils.d.ts +1 -0
  114. package/dist/slots/Header/utils.js +26 -0
  115. package/dist/slots/Loading/index.d.ts +2 -0
  116. package/dist/slots/Loading/index.js +65 -0
  117. package/dist/slots/Loading/index.module.less +12 -0
  118. package/dist/slots/Loading.d.ts +5 -0
  119. package/dist/slots/Loading.js +8 -0
  120. package/dist/slots/ManualContent/NavigatorBanner.d.ts +9 -0
  121. package/dist/slots/ManualContent/NavigatorBanner.js +36 -0
  122. package/dist/slots/ManualContent/NavigatorBanner.module.less +39 -0
  123. package/dist/slots/ManualContent/ReadingTime.d.ts +3 -0
  124. package/dist/slots/ManualContent/ReadingTime.js +10 -0
  125. package/dist/slots/ManualContent/index.d.ts +9 -0
  126. package/dist/slots/ManualContent/index.js +321 -0
  127. package/dist/slots/ManualContent/index.module.less +656 -0
  128. package/dist/slots/TOC.d.ts +5 -0
  129. package/dist/slots/TOC.js +6 -0
  130. package/dist/slots/_.less +83 -0
  131. package/dist/slots/global.d.ts +1 -0
  132. package/dist/slots/global.js +7 -0
  133. package/dist/slots/hooks.d.ts +16 -0
  134. package/{es/antv → dist/slots}/hooks.js +60 -37
  135. package/dist/slots/utils.d.ts +20 -0
  136. package/dist/slots/utils.js +154 -0
  137. package/dist/types.d.ts +3 -0
  138. package/dist/types.js +1 -0
  139. package/dist/typings.d.ts +137 -0
  140. package/package.json +108 -47
  141. package/es/antv/404/index.d.ts +0 -2
  142. package/es/antv/Banner/Banner.module.less +0 -412
  143. package/es/antv/Banner/Notification.d.ts +0 -10
  144. package/es/antv/Banner/Notification.module.less +0 -108
  145. package/es/antv/Banner/index.d.ts +0 -25
  146. package/es/antv/Banner/index.js +0 -104
  147. package/es/antv/Cases/Cases.module.less +0 -203
  148. package/es/antv/Features/FeatureCard.module.less +0 -51
  149. package/es/antv/Features/Features.module.less +0 -169
  150. package/es/antv/Footer/Footer.module.less +0 -36
  151. package/es/antv/Footer/index.d.ts +0 -12
  152. package/es/antv/Footer/index.js +0 -237
  153. package/es/antv/Header/Logo.d.ts +0 -4
  154. package/es/antv/Products/Product.module.less +0 -146
  155. package/es/antv/Products/getNewProducts.d.ts +0 -24
  156. package/es/antv/Products/getNewProducts.js +0 -35
  157. package/es/antv/Products/getProducts.js +0 -460
  158. package/es/antv/Products/index.d.ts +0 -9
  159. package/es/antv/hooks.d.ts +0 -14
  160. package/es/antv/mixins.less +0 -21
  161. package/es/antv/utils.d.ts +0 -5
  162. package/es/antv/utils.js +0 -49
  163. package/es/builtins/API.d.ts +0 -3
  164. package/es/builtins/API.js +0 -37
  165. package/es/builtins/Alert.d.ts +0 -3
  166. package/es/builtins/Alert.js +0 -7
  167. package/es/builtins/Alert.less +0 -62
  168. package/es/builtins/Badge.d.ts +0 -3
  169. package/es/builtins/Badge.js +0 -7
  170. package/es/builtins/Badge.less +0 -31
  171. package/es/builtins/Example.d.ts +0 -5
  172. package/es/builtins/Example.less +0 -47
  173. package/es/builtins/Previewer.d.ts +0 -39
  174. package/es/builtins/Previewer.js +0 -225
  175. package/es/builtins/Previewer.less +0 -406
  176. package/es/builtins/SourceCode.d.ts +0 -10
  177. package/es/builtins/SourceCode.js +0 -70
  178. package/es/builtins/SourceCode.less +0 -103
  179. package/es/builtins/Table.d.ts +0 -4
  180. package/es/builtins/Table.less +0 -43
  181. package/es/builtins/Tree.d.ts +0 -4
  182. package/es/builtins/Tree.js +0 -213
  183. package/es/builtins/Tree.less +0 -159
  184. package/es/components/Dark.d.ts +0 -9
  185. package/es/components/Dark.js +0 -125
  186. package/es/components/Dark.less +0 -121
  187. package/es/components/LocaleSelect.d.ts +0 -6
  188. package/es/components/LocaleSelect.js +0 -53
  189. package/es/components/LocaleSelect.less +0 -59
  190. package/es/components/Navbar.d.ts +0 -10
  191. package/es/components/Navbar.js +0 -155
  192. package/es/components/Navbar.less +0 -180
  193. package/es/components/SearchBar.d.ts +0 -4
  194. package/es/components/SearchBar.js +0 -81
  195. package/es/components/SearchBar.less +0 -165
  196. package/es/components/SideMenu.d.ts +0 -10
  197. package/es/components/SideMenu.js +0 -99
  198. package/es/components/SideMenu.less +0 -379
  199. package/es/components/SlugList.d.ts +0 -7
  200. package/es/components/SlugList.js +0 -38
  201. package/es/components/SlugList.less +0 -18
  202. package/es/declaration.d.ts +0 -1
  203. package/es/layout.d.ts +0 -5
  204. package/es/layout.js +0 -276
  205. package/es/style/layout.less +0 -402
  206. package/es/style/markdown.less +0 -240
  207. package/es/style/variables.less +0 -37
  208. package/src/antv/404/index.tsx +0 -25
  209. package/src/antv/Banner/Notification.tsx +0 -45
  210. package/src/antv/Banner/index.tsx +0 -139
  211. package/src/antv/Cases/Cases.tsx +0 -116
  212. package/src/antv/Features/FeatureCard.tsx +0 -24
  213. package/src/antv/Features/index.tsx +0 -86
  214. package/src/antv/Footer/Footer.module.less +0 -36
  215. package/src/antv/Footer/index.tsx +0 -272
  216. package/src/antv/Header/Logo.tsx +0 -85
  217. package/src/antv/Products/Product.tsx +0 -80
  218. package/src/antv/Products/getNewProducts.tsx +0 -53
  219. package/src/antv/Products/getProducts.tsx +0 -626
  220. package/src/antv/Products/index.tsx +0 -70
  221. package/src/antv/hooks.ts +0 -87
  222. package/src/antv/mixins.less +0 -21
  223. package/src/antv/utils.ts +0 -44
  224. package/src/builtins/API.tsx +0 -57
  225. package/src/builtins/Alert.less +0 -62
  226. package/src/builtins/Alert.tsx +0 -4
  227. package/src/builtins/Badge.less +0 -31
  228. package/src/builtins/Badge.tsx +0 -4
  229. package/src/builtins/Example.less +0 -47
  230. package/src/builtins/Example.tsx +0 -34
  231. package/src/builtins/Previewer.less +0 -406
  232. package/src/builtins/Previewer.tsx +0 -264
  233. package/src/builtins/SourceCode.less +0 -103
  234. package/src/builtins/SourceCode.tsx +0 -55
  235. package/src/builtins/Table.less +0 -43
  236. package/src/builtins/Table.tsx +0 -42
  237. package/src/builtins/Tree.less +0 -159
  238. package/src/builtins/Tree.tsx +0 -130
  239. package/src/components/Dark.less +0 -121
  240. package/src/components/Dark.tsx +0 -78
  241. package/src/components/LocaleSelect.less +0 -59
  242. package/src/components/LocaleSelect.tsx +0 -53
  243. package/src/components/Navbar.less +0 -180
  244. package/src/components/Navbar.tsx +0 -152
  245. package/src/components/SearchBar.less +0 -165
  246. package/src/components/SearchBar.tsx +0 -68
  247. package/src/components/SideMenu.less +0 -379
  248. package/src/components/SideMenu.tsx +0 -148
  249. package/src/components/SlugList.less +0 -18
  250. package/src/components/SlugList.tsx +0 -20
  251. package/src/declaration.d.ts +0 -1
  252. package/src/layout.tsx +0 -225
  253. package/src/style/layout.less +0 -402
  254. package/src/style/markdown.less +0 -240
  255. package/src/style/variables.less +0 -37
  256. package/src/test/SearchBar.test.ts +0 -32
  257. package/src/test/Table.test.tsx +0 -41
  258. package/src/test/index.test.tsx +0 -377
package/package.json CHANGED
@@ -1,63 +1,124 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.2.2",
4
- "description": "The official antv site theme of dumi",
5
- "files": [
6
- "es",
7
- "src"
3
+ "version": "0.3.0-beta.1",
4
+ "description": "AntV website theme based on dumi2.",
5
+ "types": "dist/types.d.ts",
6
+ "scripts": {
7
+ "dev": "father dev",
8
+ "build": "father build",
9
+ "prepare": "father link-dev-theme",
10
+ "lint": "npm run lint:es && npm run lint:css",
11
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
12
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
13
+ "prepublishOnly": "npm run build"
14
+ },
15
+ "keywords": [
16
+ "dumi",
17
+ "dumi-theme",
18
+ "dumi-theme-antv"
8
19
  ],
9
- "sideEffects": [
10
- "*.less",
11
- "*.module.less",
12
- "*.css"
20
+ "authors": [
21
+ "dumi",
22
+ "antv"
13
23
  ],
14
- "scripts": {
15
- "start": "father build --watch",
16
- "build": "father build"
24
+ "license": "MIT",
25
+ "files": [
26
+ "dist"
27
+ ],
28
+ "commitlint": {
29
+ "extends": [
30
+ "@commitlint/config-conventional"
31
+ ]
32
+ },
33
+ "lint-staged": {
34
+ "*.{md,json}": [
35
+ "prettier --write --no-error-on-unmatched-pattern"
36
+ ],
37
+ "*.{css,less}": [
38
+ "stylelint --fix",
39
+ "prettier --write"
40
+ ],
41
+ "*.{js,jsx}": [
42
+ "eslint --fix",
43
+ "prettier --write"
44
+ ],
45
+ "*.{ts,tsx}": [
46
+ "eslint --fix",
47
+ "prettier --parser=typescript --write"
48
+ ]
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
17
52
  },
18
- "homepage": "https://github.com/antvis/dumi-theme-antv",
19
- "authors": [],
20
53
  "dependencies": {
21
54
  "@ant-design/icons": "^4.7.0",
22
- "@umijs/preset-dumi": "latest",
23
- "antd": "^4.19.5",
24
- "dumi": "^1.1.40",
25
- "i18next": "^21.6.14",
26
- "lodash": "^4.17.21",
27
- "lodash.throttle": "^4.1.1",
28
- "omit.js": "^2.0.2",
55
+ "@babel/standalone": "^7.19.5",
56
+ "@docsearch/css": "^3.3.0",
57
+ "@docsearch/react": "^3.3.0",
58
+ "@monaco-editor/react": "^4.4.6",
59
+ "@stackblitz/sdk": "^1.8.0",
60
+ "antd": "^4.23.5",
61
+ "classnames": "^2.3.2",
62
+ "codesandbox": "^2.2.3",
63
+ "docsearch.js": "^2.6.3",
64
+ "dumi": "^2.0.0-beta.11",
65
+ "front-matter": "^4.0.2",
66
+ "fs-extra": "^10.1.0",
67
+ "glob": "^8.0.3",
68
+ "indent-string": "^5.0.0",
69
+ "insert-css": "^2.0.0",
70
+ "lodash-es": "^4.17.21",
71
+ "monaco-editor": "^0.25.0",
29
72
  "parse-github-url": "^1.0.2",
30
- "prism-react-renderer": "^1.1.1",
31
- "prismjs": "^1.21.0",
73
+ "rc-drawer": "^4.0.0",
32
74
  "rc-footer": "^0.6.6",
33
- "rc-motion": "^2.4.1",
34
- "rc-tabs": "^11.7.1",
35
- "rc-tree": "^5.2.0",
36
- "react": "^17.0.1",
75
+ "react": "^18.2.0",
76
+ "react-dom": "^18.2.0",
37
77
  "react-github-button": "^0.1.11",
38
- "react-i18next": "^11.16.2",
39
- "react-slick": "^0.28.1",
40
- "react-use": "^17.3.2",
41
- "slick-carousel": "^1.8.1"
78
+ "react-router-dom": "^6.4.2",
79
+ "react-slick": "^0.29.0",
80
+ "react-split-pane": "^0.1.92",
81
+ "react-use": "^17.4.0",
82
+ "reading-time": "^1.5.0",
83
+ "slick-carousel": "^1.8.1",
84
+ "uri-parse": "^1.0.0"
42
85
  },
43
- "repository": {
44
- "type": "git",
45
- "url": "https://github.com/antvis/dumi-theme-antv.git",
46
- "directory": "src"
86
+ "peerDependencies": {
87
+ "dumi": "^2.0.0-beta.14",
88
+ "react": ">=16.9.0",
89
+ "react-dom": ">=16.9.0"
47
90
  },
48
91
  "devDependencies": {
49
- "@testing-library/jest-dom": "^5.11.3",
50
- "@testing-library/react": "^10.4.8",
51
- "@types/react": "^17.0.43",
52
- "father": "^2.30.17",
53
- "react-test-renderer": "^16.13.1"
92
+ "@commitlint/cli": "^17.1.2",
93
+ "@commitlint/config-conventional": "^17.1.0",
94
+ "@types/classnames": "^2.3.1",
95
+ "@types/fs-extra": "^9.0.13",
96
+ "@types/glob": "^8.0.0",
97
+ "@types/lodash-es": "^4.17.6",
98
+ "@types/node": "^18.11.3",
99
+ "@types/react": "^18.0.21",
100
+ "@types/react-router-dom": "^5.3.3",
101
+ "@types/react-slick": "^0.23.10",
102
+ "@umijs/lint": "^4.0.0",
103
+ "dumi": "^2.0.0-beta.14",
104
+ "eslint": "^8.23.0",
105
+ "father": "^4.1.0",
106
+ "father-plugin-dumi-theme": "^1.0.0-beta.1",
107
+ "husky": "^8.0.1",
108
+ "lint-staged": "^13.0.3",
109
+ "prettier": "^2.7.1",
110
+ "prettier-plugin-organize-imports": "^3.0.0",
111
+ "prettier-plugin-packagejson": "^2.2.18",
112
+ "react": "^18.0.0",
113
+ "react-dom": "^18.0.0",
114
+ "stylelint": "^14.9.1"
54
115
  },
55
- "peerDependencies": {
56
- "react": "^17.x",
57
- "react-dom": "^17.x"
116
+ "repository": {
117
+ "type": "git",
118
+ "url": "https://github.com/antvis/dumi-theme-antv"
58
119
  },
59
- "license": "MIT",
60
- "publishConfig": {
61
- "access": "public"
62
- }
120
+ "bugs": {
121
+ "url": "https://github.com/antvis/dumi-theme-antv/issues"
122
+ },
123
+ "homepage": "https://github.com/antvis/dumi-theme-antv#readme"
63
124
  }
@@ -1,2 +0,0 @@
1
- declare const NotFoundPage: () => JSX.Element;
2
- export default NotFoundPage;
@@ -1,412 +0,0 @@
1
- @import '../mixins';
2
- .container1440() {
3
- width: 1440px;
4
- max-width: calc(100% - 80px);
5
- margin-left: auto;
6
- margin-right: auto;
7
-
8
- @media only screen and (max-width: 931.99px) {
9
- & {
10
- max-width: calc(100% - 60px);
11
- }
12
- }
13
-
14
- @media only screen and (max-width: 767.99px) {
15
- & {
16
- max-width: calc(100% - 32px);
17
- }
18
- }
19
- }
20
-
21
- .wrapper {
22
- min-height: 650px;
23
- max-height: 803px;
24
- background: linear-gradient(225deg, #ffffff, #f0f5ff);
25
- height: calc(94vh);
26
- position: relative;
27
- overflow: hidden;
28
- .content {
29
- .container1440;
30
- height: 100%;
31
- position: relative;
32
- }
33
- .text {
34
- position: relative;
35
- top: 26%;
36
- z-index: 1;
37
- margin-left: 4.5%;
38
- .title {
39
- font-size: 3.4em; //2.875em;
40
- font-weight: 800;
41
- color: rgba(0, 0, 0, 1);
42
- position: relative;
43
- }
44
- .description {
45
- margin-top: 0.83%; //12px;
46
- margin-bottom: 0px;
47
- color: rgba(106, 123, 140, 1);
48
- font-size: 1.14em;
49
- font-weight: 200;
50
- position: relative;
51
- width: 40%;
52
- max-width: 700px;
53
- }
54
- .buttons {
55
- display: flex;
56
- margin-top: 5.56%;
57
-
58
- .buttonLink + .buttonLink {
59
- margin-left: 16px;
60
- }
61
-
62
- .buttonLink {
63
- cursor: pointer;
64
- border-radius: 50px;
65
- min-width: 134px;
66
- padding-left: 15px;
67
- padding-right: 15px;
68
- height: 40px;
69
- z-index: 10;
70
- position: relative;
71
- transition: all 0.3s;
72
- border: 1px solid @primary-color;
73
- color: @primary-color;
74
- background: transparent;
75
- text-align: center;
76
- font-size: 1.14em;
77
- line-height: 40px;
78
-
79
- &:hover {
80
- color: tint(@primary-color, 25%);
81
- border: 1px solid tint(@primary-color, 25%);
82
- background-color: fade(@primary-color, 3%);
83
- }
84
-
85
- &.primary {
86
- border: none;
87
- outline: none;
88
- color: #fff;
89
- background: linear-gradient(60deg, fade(@primary-color, 70%), shade(@primary-color, 20%));
90
- opacity: 0.8;
91
- box-shadow: 0 8px 10px fade(@primary-color, 20%);
92
-
93
- &:hover {
94
- opacity: 1;
95
- }
96
- }
97
- }
98
- .videoButtonWrapper {
99
- margin-left: 16px;
100
- width: fit-content;
101
- height: fit-content;
102
- .videoButton {
103
- width: 40px;
104
- height: 40px;
105
- background-size: contain;
106
- border: 1px solid @primary-color;
107
- border-radius: 20px;
108
- transition: all 0.15s;
109
- display: flex;
110
- cursor: pointer;
111
- overflow: hidden;
112
- .videoButtonIcon {
113
- margin-left: 12px;
114
- font-size: 16px;
115
- color: @primary-color;
116
- line-height: 44px;
117
- }
118
- .videoButtonText {
119
- line-height: 40px;
120
- margin-left: 10px;
121
- color: @primary-color;
122
- }
123
- &:hover {
124
- width: 134px;
125
- }
126
- }
127
- }
128
- .githubWrapper {
129
- margin-left: 16px;
130
- display: flex;
131
- :global {
132
- .gh-btn {
133
- width: 40px;
134
- height: 40px;
135
- border-radius: 20px;
136
- padding: 9px;
137
- border: 1px solid #ced4d9;
138
- background: transparent;
139
- text-decoration: none;
140
- white-space: nowrap;
141
- display: flex;
142
- cursor: pointer;
143
- float: left;
144
- transition: all 0.15s;
145
- &:hover {
146
- background: #f2f4f5;
147
- }
148
- .gh-ico {
149
- width: 16px;
150
- height: 16px;
151
- margin-left: 2px;
152
- margin-top: 2px;
153
- background-image: url(https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*Nk9mQ48ZoZMAAAAAAAAAAABkARQnAQ);
154
- background-size: 100% 100%;
155
- background-repeat: no-repeat;
156
- box-sizing: border-box;
157
- cursor: pointer;
158
- color: #333;
159
- }
160
- .gh-text {
161
- display: none;
162
- }
163
- }
164
- .gh-count {
165
- position: relative;
166
- display: none;
167
- /* hidden to start */
168
- margin-left: 52px;
169
- margin-top: 7px;
170
- border: 1px solid #d4d4d4;
171
- padding: 2px 10px;
172
- font-weight: 700;
173
- height: 65%;
174
- border-radius: 5px;
175
- color: rgb(49, 70, 89);
176
- &:hover {
177
- background: #f2f4f5;
178
- transition: all 0.15s;
179
- }
180
- }
181
- .gh-count:hover,
182
- .gh-count:focus {
183
- color: #4183c4;
184
- }
185
- .gh-count:before,
186
- .gh-count:after {
187
- content: '';
188
- position: absolute;
189
- display: inline-block;
190
- width: 0;
191
- height: 0;
192
- border-color: transparent;
193
- border-style: solid;
194
- }
195
- .gh-count:before {
196
- top: 50%;
197
- left: -3px;
198
- margin-top: -5px;
199
- border-width: 4px 4px 4px 0;
200
- border-right-color: #fafafa;
201
- }
202
- .gh-count:after {
203
- top: 50%;
204
- border-width: 5px 5px 5px 0;
205
- border-right-color: #d4d4d4;
206
- left: -5px;
207
- z-index: -1;
208
- margin-top: -6px;
209
- }
210
- }
211
- }
212
- }
213
- }
214
- .notifications {
215
- width: 80%;
216
- display: flex;
217
- bottom: 40px;
218
- position: absolute;
219
- z-index: 3;
220
- margin-left: 4.5%;
221
- }
222
- .teaser {
223
- display: flex;
224
- position: absolute;
225
- right: 0;
226
- margin-top: -300px;
227
- width: 52%;
228
- max-width: 598px;
229
- height: 324px;
230
- margin: auto;
231
- margin-top: 0;
232
- top: 0;
233
- bottom: 0;
234
- .teaserimg {
235
- width: 100%;
236
- height: auto;
237
- position: relative;
238
- }
239
- }
240
- .backLeftBottom {
241
- position: absolute;
242
- left: -8%;
243
- bottom: -20px;
244
- }
245
- }
246
- .videoModal {
247
- :global {
248
- .video-react-big-play-button {
249
- display: none !important;
250
- }
251
- .video-react-control-bar {
252
- border-radius: 0 0 4px 4px;
253
- }
254
- .video-react {
255
- border-radius: 4px;
256
- .video-react-video {
257
- border-radius: 4px;
258
- }
259
- }
260
- .ant-modal-close {
261
- right: -50px;
262
- top: -12px;
263
- color: #fff;
264
- }
265
- .anticon-info-circle {
266
- display: none !important;
267
- }
268
- .ant-modal-confirm-btns {
269
- display: none !important;
270
- }
271
- .ant-modal-confirm-title {
272
- display: none !important;
273
- }
274
- .ant-modal-close {
275
- display: block !important;
276
- }
277
- .ant-modal-body {
278
- padding: 0 !important;
279
- .ant-modal-confirm-content {
280
- margin: 0 !important;
281
- }
282
- }
283
- }
284
- }
285
-
286
- @media (max-width: 1144px) {
287
- .wrapper {
288
- .teaser {
289
- transition: 0.3s all;
290
- margin: auto;
291
- margin-top: 0;
292
- top: 0;
293
- bottom: 0;
294
- }
295
- }
296
- }
297
-
298
- @media (max-width: 900px) {
299
- .wrapper {
300
- .content {
301
- width: 91.46%;
302
- margin-left: 4.27%;
303
- margin-bottom: 5%;
304
- position: relative;
305
- }
306
- .text {
307
- top: 16.7%;
308
- text-align: center;
309
- margin-left: 0;
310
- .title {
311
- font-size: 2.857em;
312
- margin-left: 0;
313
- }
314
- .description {
315
- width: 100%;
316
- max-width: 100%;
317
- margin-left: 0;
318
- font-size: 1em;
319
- }
320
- .buttons {
321
- display: inline-flex;
322
- .more {
323
- font-size: 1em;
324
- }
325
- .githubIframe {
326
- height: 40px;
327
- }
328
- .videoButtonWrapper {
329
- width: fit-content;
330
- height: fit-content;
331
- }
332
- }
333
- }
334
- .notifications {
335
- width: 100%;
336
- display: block;
337
- bottom: 20px;
338
- height: 44px;
339
- overflow: hidden;
340
- }
341
- .teaser {
342
- width: 100%;
343
- max-width: 1200px;
344
- margin-top: auto;
345
- margin-left: unset;
346
- margin-right: unset;
347
- right: unset;
348
- top: 30%;
349
- display: flex;
350
- justify-content: center;
351
- .teaserimg {
352
- width: 40%;
353
- margin-left: unset;
354
- margin-right: unset;
355
- }
356
- }
357
- }
358
- }
359
-
360
- @media (max-width: 786px) {
361
- .wrapper {
362
- .text {
363
- .buttons {
364
- .videoButtonWrapper {
365
- display: none;
366
- }
367
- }
368
- }
369
- }
370
- }
371
-
372
- @media (max-width: 510px) {
373
- .wrapper {
374
- .text {
375
- .buttons {
376
- margin-top: 70%;
377
- .githubWrapper {
378
- display: none;
379
- }
380
- }
381
- }
382
- .teaser {
383
- width: 100%;
384
- top: 5%;
385
- .teaserimg {
386
- width: 100%;
387
- }
388
- }
389
- .backLeftBottom {
390
- display: none;
391
- }
392
- }
393
- }
394
- @media (max-width: 480px) {
395
- .wrapper {
396
- .text {
397
- height: 70%;
398
- .buttons {
399
- bottom: 10px;
400
- margin-top: unset;
401
- z-index: 1;
402
- position: absolute;
403
- left: 0;
404
- width: 100%;
405
- justify-content: center;
406
- }
407
- }
408
- .teaser {
409
- top: 14%;
410
- }
411
- }
412
- }
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface NotificationProps {
3
- index?: number;
4
- type: string;
5
- title: string;
6
- date: string;
7
- link: string;
8
- }
9
- declare const Notification: React.FC<NotificationProps>;
10
- export default Notification;
@@ -1,108 +0,0 @@
1
- .notification {
2
- width: 50%;
3
- margin-right: 2%;
4
-
5
- &:last-child {
6
- margin-right: 0;
7
- }
8
-
9
- .container {
10
- height: 44px;
11
- display: flex;
12
- .number {
13
- height: 100%;
14
- width: 44px;
15
- }
16
- .content {
17
- padding-left: 20px;
18
- color: rgba(49, 70, 89, 1);
19
- text-align: left;
20
- .description {
21
- top: 0;
22
- font-size: 1.14em;
23
- margin-bottom: 0;
24
- transition: all 0.3s;
25
- }
26
- .date {
27
- color: rgba(216, 203, 249, 1);
28
- bottom: 0;
29
- font-size: 1em;
30
- margin-top: 4px;
31
- margin-bottom: 0;
32
- }
33
- }
34
- }
35
-
36
- &:hover .description {
37
- color: rgba(89, 126, 247, 1);
38
- }
39
- }
40
-
41
- @media (max-width: 900px) {
42
- .notification {
43
- position: absolute;
44
- width: 100%;
45
-
46
- &:nth-child(1) {
47
- animation: showAndHide0 6s infinite;
48
- }
49
-
50
- &:nth-child(2) {
51
- top: 44px;
52
- animation: showAndHide1 6s infinite;
53
- }
54
- }
55
- }
56
-
57
- @media (max-width: 768px) {
58
- .notification {
59
- width: 100%;
60
- }
61
- }
62
-
63
- @keyframes showAndHide0 {
64
- 0% {
65
- opacity: 1;
66
- top: 0px;
67
- }
68
- 33.3% {
69
- opacity: 1;
70
- top: 0px;
71
- }
72
- 50% {
73
- opacity: 0;
74
- top: -30px;
75
- }
76
- 83.3% {
77
- opacity: 0;
78
- top: 30px;
79
- }
80
- 100% {
81
- opacity: 1;
82
- top: 0px;
83
- }
84
- }
85
-
86
- /* Standard syntax */
87
- @keyframes showAndHide1 {
88
- 0% {
89
- opacity: 0;
90
- top: 30px;
91
- }
92
- 33.3% {
93
- opacity: 0;
94
- top: 30px;
95
- }
96
- 50% {
97
- opacity: 1;
98
- top: 0px;
99
- }
100
- 83.3% {
101
- opacity: 1;
102
- top: 0px;
103
- }
104
- 100% {
105
- opacity: 0;
106
- top: -30px;
107
- }
108
- }