visualifyjs 2.5.3-2.dev → 2.5.3-9-dev

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of visualifyjs might be problematic. Click here for more details.

Files changed (139) hide show
  1. package/.github/workflows/{static.yml.bak → build.yaml} +51 -51
  2. package/LICENSE +674 -674
  3. package/README.md +40 -58
  4. package/config-overrides.js +31 -31
  5. package/dist/visualify.js +3 -3
  6. package/docs/CLI.md +15 -0
  7. package/docs/{docs/README.md → README.md} +41 -65
  8. package/docs/{docs/Rechart → Rechart}/bar.md +190 -190
  9. package/docs/{docs/Rechart → Rechart}/funnel.md +193 -241
  10. package/docs/{docs/Rechart → Rechart}/line.md +355 -355
  11. package/docs/{docs/Rechart → Rechart}/pie.md +225 -225
  12. package/docs/{docs/Rechart → Rechart}/radar.md +253 -253
  13. package/docs/{docs/_404.md → _404.md} +51 -51
  14. package/docs/{docs/_coverpage.md → _coverpage.md} +11 -11
  15. package/docs/{docs/_sidebar.md → _sidebar.md} +42 -44
  16. package/docs/{docs/components → components}/dotBio.md +34 -34
  17. package/docs/{docs/components → components}/echart.md +82 -82
  18. package/docs/{docs/components → components}/html.md +34 -34
  19. package/docs/{docs/components → components}/macaron.md +145 -145
  20. package/docs/components/markdown.md +0 -0
  21. package/docs/{docs/components → components}/more.md +142 -142
  22. package/docs/{docs/components → components}/plotly.md +62 -62
  23. package/docs/{docs/components → components}/scatterL.md +70 -70
  24. package/docs/{docs/components → components}/visium.md +56 -56
  25. package/docs/{docs/configuration.md → configuration.md} +123 -121
  26. package/docs/{docs/deploy.md → deploy.md} +23 -31
  27. package/docs/index.html +70 -70
  28. package/docs/log.md +1 -0
  29. package/docs/manifest.json +23 -23
  30. package/docs/{docs/more-pages.md → more-pages.md} +23 -23
  31. package/docs/{docs/quickstart.md → quickstart.md} +115 -124
  32. package/docs/{docs/rechart-attributes.md → rechart-attributes.md} +74 -74
  33. package/docs/{docs/rechart-basic-usage.md → rechart-basic-usage.md} +162 -162
  34. package/docs/static/css/fluff-stuff.css +169 -169
  35. package/docs/static/css/font-awesome.min.css +4 -4
  36. package/docs/static/css/visualify.css +25 -25
  37. package/docs/static/js/configuration.js +448 -448
  38. package/docs/static/js/visualify.js +24 -23
  39. package/docs/theme.md +3 -0
  40. package/package.json +74 -83
  41. package/rollup.config.mjs +75 -75
  42. package/src/_css/404.css +115 -115
  43. package/src/_css/App.css +37 -37
  44. package/src/_css/autoSuggestion.css +26 -26
  45. package/src/_css/circular-progress.css +32 -32
  46. package/src/_css/index.css +36 -36
  47. package/src/_css/modern.css +24 -24
  48. package/src/_media/corner.svg +8 -8
  49. package/src/_media/download.svg +3 -3
  50. package/src/_media/logo.svg +14 -14
  51. package/src/_test/App.test.js +15 -15
  52. package/src/_utils/reportWebVitals.js +13 -13
  53. package/src/core/appContext.js +27 -27
  54. package/src/core/components/Scatter.js +188 -188
  55. package/src/core/components/ScatterBio.js +572 -572
  56. package/src/core/components/VisiumPlot.js +165 -165
  57. package/src/core/components/browser.js +42 -42
  58. package/src/core/components/dotplot.js +413 -413
  59. package/src/core/components/html.js +29 -29
  60. package/src/core/components/list.js +178 -178
  61. package/src/core/components/macaron.js +201 -201
  62. package/src/core/components/markdown.js +56 -56
  63. package/src/core/components/parser.scatterBio.js +579 -587
  64. package/src/core/components/ratio.js +80 -80
  65. package/src/core/components/scatterL.js +173 -173
  66. package/src/core/components/searchbar.js +131 -131
  67. package/src/core/components/selection.js +193 -193
  68. package/src/core/components/timeline.js +281 -281
  69. package/src/core/components/visium.js +97 -97
  70. package/src/core/fetch/condfetch.js +82 -82
  71. package/src/core/fetch/fetch.js +92 -92
  72. package/src/core/fetch/json.js +29 -29
  73. package/src/core/fetch/vfetch.js +42 -42
  74. package/src/core/liveEditor.js +44 -44
  75. package/src/core/modules/codeEditorWithPreview.js +104 -104
  76. package/src/core/modules/echarts/common.js +20 -20
  77. package/src/core/modules/echarts/presetHandler.js +41 -41
  78. package/src/core/modules/echarts/presets/esodev.chromium.js +172 -172
  79. package/src/core/modules/echarts/presets/esodev.codex.js +130 -130
  80. package/src/core/modules/echarts/presets/esodev.visium.js +123 -123
  81. package/src/core/modules/echarts/presets/mmtrbc.js +186 -186
  82. package/src/core/modules/echarts.js +71 -71
  83. package/src/core/modules/echartsUtils.js +43 -43
  84. package/src/core/modules/echartswitcher.js +152 -152
  85. package/src/core/modules/replotly/presetHandler.js +24 -24
  86. package/src/core/modules/replotly/presets/minimum.js +18 -18
  87. package/src/core/modules/replotly/presets/mmtrbc.dot.js +114 -114
  88. package/src/core/modules/replotly/presets/mmtrbc.violin.js +100 -100
  89. package/src/core/modules/replotly.js +71 -71
  90. package/src/core/pages/404.js +50 -50
  91. package/src/core/pages/error.js +27 -27
  92. package/src/core/pages/jsonPage.js +62 -62
  93. package/src/core/pages/loading.js +44 -44
  94. package/src/core/parser/echart.data.js +183 -183
  95. package/src/core/parser/echart.features.js +125 -125
  96. package/src/core/parser/echart.general.js +143 -147
  97. package/src/core/parser/echart.hilbert.js +57 -57
  98. package/src/core/parser/echart.parser.js +210 -210
  99. package/src/core/parser/echart.series.js +67 -67
  100. package/src/core/parser/echart.types.js +76 -76
  101. package/src/core/parser/plotly.config.js +10 -10
  102. package/src/core/parser/plotly.data.js +132 -132
  103. package/src/core/parser/plotly.layout.js +9 -9
  104. package/src/core/parser/plotly.violin.js +18 -18
  105. package/src/core/recharts.js +62 -62
  106. package/src/core/router/alias.js +49 -49
  107. package/src/core/router/jsonRouter.js +31 -31
  108. package/src/core/themes/modern.js +32 -32
  109. package/src/core/themes/themeSelector.js +33 -33
  110. package/src/core/visualify.js +47 -47
  111. package/src/core/widgets/circularProgress.js +23 -23
  112. package/src/core/widgets/controller.js +83 -83
  113. package/src/core/widgets/errorBoundary.js +36 -36
  114. package/src/core/widgets/footer.js +177 -177
  115. package/src/core/widgets/header.js +234 -234
  116. package/src/core/widgets/layout/Grid.js +31 -31
  117. package/src/core/widgets/layout.js +36 -36
  118. package/src/core/widgets/mapping.js +42 -42
  119. package/src/index.js +62 -62
  120. package/src/setupTests.js +5 -5
  121. package/docs/docs/CLI.md +0 -34
  122. package/docs/docs/Rechart/scatter.md +0 -298
  123. package/docs/docs/log.md +0 -9
  124. package/docs/docs/static/logo/favicon.ico +0 -0
  125. package/docs/docs/static/logo/logo_128x128.png +0 -0
  126. package/docs/docs/static/logo/logo_192x192.png +0 -0
  127. package/docs/docs/static/logo/logo_256x256.png +0 -0
  128. package/docs/docs/static/logo/logo_512x512.png +0 -0
  129. package/docs/docs/static/logo/logo_64x64.png +0 -0
  130. package/docs/docs/theme.md +0 -5
  131. /package/docs/{docs/Rechart → Rechart}/geo.md +0 -0
  132. /package/docs/{docs/Rechart → Rechart}/liquidfill.md +0 -0
  133. /package/docs/{docs/Rechart → Rechart}/polar.md +0 -0
  134. /package/docs/{docs/Rechart → Rechart}/sankey.md +0 -0
  135. /package/docs/{docs/Rechart/sunburst.md → Rechart/scatter.md} +0 -0
  136. /package/docs/{docs/Rechart/tree.md → Rechart/sunburst.md} +0 -0
  137. /package/docs/{docs/Rechart/wordcloud.md → Rechart/tree.md} +0 -0
  138. /package/docs/{docs/components/markdown.md → Rechart/wordcloud.md} +0 -0
  139. /package/docs/{docs/static → static}/_images/deploy-github-pages.png +0 -0
package/docs/theme.md ADDED
@@ -0,0 +1,3 @@
1
+ # Theme
2
+
3
+ ## Modern
package/package.json CHANGED
@@ -1,84 +1,75 @@
1
- {
2
- "name": "visualifyjs",
3
- "version": "2.5.3-2.dev",
4
- "main": "dist/visualify.js",
5
- "homepage": "https://visualify.pharmacy.arizona.edu",
6
- "license": "GNU General Public License v3.0",
7
- "description": "Visualify is a web-based platform for visualizing and analyzing large-scale omics data.",
8
- "keywords": [
9
- "visualization",
10
- "analysis",
11
- "web",
12
- "platform"
13
- ],
14
- "dependencies": {
15
- "@testing-library/jest-dom": "^5.17.0",
16
- "@testing-library/react": "^13.4.0",
17
- "@testing-library/user-event": "^13.5.0",
18
- "ace-builds": "^1.32.0",
19
- "axios": "^1.6.2",
20
- "bootstrap": "^5.3.2",
21
- "dompurify": "^3.0.6",
22
- "echarts": "^5.4.3",
23
- "echarts-for-react": "^3.0.2",
24
- "hilbert": "^2.0.0",
25
- "lodash": "^4.17.21",
26
- "react": "^18.2.0",
27
- "react-ace": "^10.1.0",
28
- "react-bootstrap": "^2.9.1",
29
- "react-dom": "^18.2.0",
30
- "react-markdown": "^9.0.1",
31
- "react-plotly.js": "^2.6.0",
32
- "react-router-dom": "^6.20.0",
33
- "react-scripts": "5.0.1",
34
- "react-select": "^5.8.0",
35
- "remark": "^15.0.1",
36
- "remark-html": "^16.0.1",
37
- "web-vitals": "^2.1.4"
38
- },
39
- "scripts": {
40
- "rollup": "rollup -c",
41
- "start": "react-app-rewired start",
42
- "build": "npm run rollup & react-app-rewired build",
43
- "test": "react-app-rewired test",
44
- "eject": "react-scripts eject"
45
- },
46
- "eslintConfig": {
47
- "extends": [
48
- "react-app",
49
- "react-app/jest"
50
- ]
51
- },
52
- "browserslist": {
53
- "production": [
54
- ">0.2%",
55
- "not dead",
56
- "not op_mini all"
57
- ],
58
- "development": [
59
- "last 1 chrome version",
60
- "last 1 firefox version",
61
- "last 1 safari version"
62
- ]
63
- },
64
- "devDependencies": {
65
- "@babel/core": "^7.23.5",
66
- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
67
- "@babel/preset-env": "^7.23.5",
68
- "@babel/preset-react": "^7.23.3",
69
- "@rollup/plugin-babel": "^6.0.4",
70
- "@rollup/plugin-commonjs": "^25.0.7",
71
- "@rollup/plugin-image": "^3.0.3",
72
- "@rollup/plugin-json": "^6.0.1",
73
- "@rollup/plugin-node-resolve": "^15.2.3",
74
- "@rollup/plugin-replace": "^5.0.5",
75
- "@rollup/plugin-terser": "^0.4.4",
76
- "@rollup/plugin-url": "^8.0.2",
77
- "babel-plugin-inline-react-svg": "^2.0.2",
78
- "react-app-rewired": "^2.2.1",
79
- "rollup": "^2.79.1",
80
- "rollup-plugin-css-only": "^4.5.2",
81
- "rollup-plugin-polyfill-node": "^0.13.0",
82
- "rollup-plugin-postcss": "^4.0.2"
83
- }
1
+ {
2
+ "name": "visualifyjs",
3
+ "version": "2.5.3-9-dev+24.2.5",
4
+ "main": "dist/visualify.js",
5
+ "dependencies": {
6
+ "@testing-library/jest-dom": "^5.17.0",
7
+ "@testing-library/react": "^13.4.0",
8
+ "@testing-library/user-event": "^13.5.0",
9
+ "ace-builds": "^1.32.0",
10
+ "axios": "^1.6.2",
11
+ "bootstrap": "^5.3.2",
12
+ "dompurify": "^3.0.6",
13
+ "echarts": "^5.4.3",
14
+ "echarts-for-react": "^3.0.2",
15
+ "hilbert": "^2.0.0",
16
+ "lodash": "^4.17.21",
17
+ "react": "^18.2.0",
18
+ "react-ace": "^10.1.0",
19
+ "react-bootstrap": "^2.9.1",
20
+ "react-dom": "^18.2.0",
21
+ "react-markdown": "^9.0.1",
22
+ "react-plotly.js": "^2.6.0",
23
+ "react-router-dom": "^6.20.0",
24
+ "react-scripts": "5.0.1",
25
+ "react-select": "^5.8.0",
26
+ "remark": "^15.0.1",
27
+ "remark-html": "^16.0.1",
28
+ "web-vitals": "^2.1.4"
29
+ },
30
+ "scripts": {
31
+ "rollup": "rollup -c",
32
+ "start": "react-app-rewired start",
33
+ "build": "npm run rollup & react-app-rewired build",
34
+ "test": "react-app-rewired test",
35
+ "eject": "react-scripts eject"
36
+ },
37
+ "eslintConfig": {
38
+ "extends": [
39
+ "react-app",
40
+ "react-app/jest"
41
+ ]
42
+ },
43
+ "browserslist": {
44
+ "production": [
45
+ ">0.2%",
46
+ "not dead",
47
+ "not op_mini all"
48
+ ],
49
+ "development": [
50
+ "last 1 chrome version",
51
+ "last 1 firefox version",
52
+ "last 1 safari version"
53
+ ]
54
+ },
55
+ "devDependencies": {
56
+ "@babel/core": "^7.23.5",
57
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
58
+ "@babel/preset-env": "^7.23.5",
59
+ "@babel/preset-react": "^7.23.3",
60
+ "@rollup/plugin-babel": "^6.0.4",
61
+ "@rollup/plugin-commonjs": "^25.0.7",
62
+ "@rollup/plugin-image": "^3.0.3",
63
+ "@rollup/plugin-json": "^6.0.1",
64
+ "@rollup/plugin-node-resolve": "^15.2.3",
65
+ "@rollup/plugin-replace": "^5.0.5",
66
+ "@rollup/plugin-terser": "^0.4.4",
67
+ "@rollup/plugin-url": "^8.0.2",
68
+ "babel-plugin-inline-react-svg": "^2.0.2",
69
+ "react-app-rewired": "^2.2.1",
70
+ "rollup": "^2.79.1",
71
+ "rollup-plugin-css-only": "^4.5.2",
72
+ "rollup-plugin-polyfill-node": "^0.13.0",
73
+ "rollup-plugin-postcss": "^4.0.2"
74
+ }
84
75
  }
package/rollup.config.mjs CHANGED
@@ -1,76 +1,76 @@
1
- /*
2
- * @Author : Lihao leolihao@arizona.edu
3
- * @Date : 2023-12-01 12:51:04
4
- * @FilePath : /visualifyjs/rollup.config.mjs
5
- * @Description :
6
- * Copyright (c) 2023 by Lihao (leolihao@arizona.edu), All Rights Reserved.
7
- */
8
- // rollup.config.js
9
- import resolve from '@rollup/plugin-node-resolve';
10
- import commonjs from '@rollup/plugin-commonjs';
11
- import babel from '@rollup/plugin-babel';
12
- import replace from '@rollup/plugin-replace';
13
- import terser from '@rollup/plugin-terser';
14
- import json from '@rollup/plugin-json';
15
- import postcss from 'rollup-plugin-postcss';
16
- import nodePolyfills from 'rollup-plugin-polyfill-node';
17
- import image from '@rollup/plugin-image';
18
- import inlineReactSvg from 'babel-plugin-inline-react-svg';
19
- import url from '@rollup/plugin-url';
20
-
21
- //import css from 'rollup-plugin-css-only';
22
-
23
- function onwarn(warning, warn) {
24
- if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
25
- return;
26
- }
27
- warn(warning);
28
- }
29
-
30
- export default {
31
- input: 'src/index.js',
32
- output: [{
33
- dir: 'dist/',
34
- format: 'esm',
35
- entryFileNames: 'visualify.js',
36
- inlineDynamicImports: true,
37
- sourcemap: false,
38
- },
39
- {
40
- dir: 'docs/static/js',
41
- format: 'esm',
42
- entryFileNames: 'visualify.js',
43
- inlineDynamicImports: true,
44
- sourcemap: false,
45
- },
46
- ],
47
- plugins: [
48
- replace({
49
- preventAssignment: true,
50
- 'process.env.NODE_ENV': JSON.stringify('production'),
51
- }),
52
- resolve({ browser: true }),
53
- babel({
54
- exclude: 'node_modules/**',
55
- babelHelpers: 'bundled',
56
- presets: ['@babel/preset-env', '@babel/preset-react'],
57
- plugins: [inlineReactSvg],
58
- }),
59
- postcss({
60
- extensions: ['.css'],
61
- inject: true,
62
- minimize: true,
63
- }),
64
- url({
65
- include: ['**/*.svg'], // Only SVG files
66
- limit: 0, // 0 bytes
67
- emitFiles: true,
68
- }),
69
- commonjs(),
70
- terser(),
71
- json(),
72
- nodePolyfills(),
73
- image(),
74
- ],
75
- onwarn,
1
+ /*
2
+ * @Author : Lihao leolihao@arizona.edu
3
+ * @Date : 2023-12-01 12:51:04
4
+ * @FilePath : /visualifyjs/rollup.config.mjs
5
+ * @Description :
6
+ * Copyright (c) 2023 by Lihao (leolihao@arizona.edu), All Rights Reserved.
7
+ */
8
+ // rollup.config.js
9
+ import resolve from '@rollup/plugin-node-resolve';
10
+ import commonjs from '@rollup/plugin-commonjs';
11
+ import babel from '@rollup/plugin-babel';
12
+ import replace from '@rollup/plugin-replace';
13
+ import terser from '@rollup/plugin-terser';
14
+ import json from '@rollup/plugin-json';
15
+ import postcss from 'rollup-plugin-postcss';
16
+ import nodePolyfills from 'rollup-plugin-polyfill-node';
17
+ import image from '@rollup/plugin-image';
18
+ import inlineReactSvg from 'babel-plugin-inline-react-svg';
19
+ import url from '@rollup/plugin-url';
20
+
21
+ //import css from 'rollup-plugin-css-only';
22
+
23
+ function onwarn(warning, warn) {
24
+ if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
25
+ return;
26
+ }
27
+ warn(warning);
28
+ }
29
+
30
+ export default {
31
+ input: 'src/index.js',
32
+ output: [{
33
+ dir: 'dist/',
34
+ format: 'esm',
35
+ entryFileNames: 'visualify.js',
36
+ inlineDynamicImports: true,
37
+ sourcemap: false,
38
+ },
39
+ {
40
+ dir: 'docs/static/js',
41
+ format: 'esm',
42
+ entryFileNames: 'visualify.js',
43
+ inlineDynamicImports: true,
44
+ sourcemap: false,
45
+ },
46
+ ],
47
+ plugins: [
48
+ replace({
49
+ preventAssignment: true,
50
+ 'process.env.NODE_ENV': JSON.stringify('production'),
51
+ }),
52
+ resolve({ browser: true }),
53
+ babel({
54
+ exclude: 'node_modules/**',
55
+ babelHelpers: 'bundled',
56
+ presets: ['@babel/preset-env', '@babel/preset-react'],
57
+ plugins: [inlineReactSvg],
58
+ }),
59
+ postcss({
60
+ extensions: ['.css'],
61
+ inject: true,
62
+ minimize: true,
63
+ }),
64
+ url({
65
+ include: ['**/*.svg'], // Only SVG files
66
+ limit: 0, // 0 bytes
67
+ emitFiles: true,
68
+ }),
69
+ commonjs(),
70
+ terser(),
71
+ json(),
72
+ nodePolyfills(),
73
+ image(),
74
+ ],
75
+ onwarn,
76
76
  };
package/src/_css/404.css CHANGED
@@ -1,116 +1,116 @@
1
- * {
2
- -webkit-box-sizing: border-box;
3
- box-sizing: border-box;
4
- }
5
-
6
- body.colorlib-body {
7
- padding: 0;
8
- margin: 0;
9
- }
10
-
11
- #colorlib-notfound {
12
- min-height: 60vh;
13
- /* Ensures that the container takes at least the full viewport height */
14
- position: relative;
15
- display: flex;
16
- flex-direction: column;
17
- /* Stack children vertically */
18
- justify-content: center;
19
- /* Center children vertically */
20
- align-items: center;
21
- /* Center children horizontally */
22
- padding: 3rem 1rem;
23
- /* Add some padding around */
24
- }
25
-
26
- .colorlib-notfound {
27
- max-width: 767px;
28
- width: -moz-fit-content;
29
- width: fit-content;
30
- line-height: 1.4;
31
- padding: 0 15px;
32
- text-align: center;
33
- /* Center the text */
34
- }
35
-
36
- .colorlib-notfound .colorlib-notfound-404 {
37
- position: relative;
38
- height: 150px;
39
- line-height: 150px;
40
- margin-bottom: 25px;
41
- }
42
-
43
- .colorlib-notfound .colorlib-notfound-404 h1 {
44
- font-family: 'Titillium Web', sans-serif;
45
- font-size: 186px;
46
- font-weight: 900;
47
- margin: 0;
48
- text-transform: uppercase;
49
- background: url('../_media/404.png') no-repeat center;
50
- -webkit-background-clip: text;
51
- background-clip: text;
52
- -webkit-text-fill-color: transparent;
53
- background-size: cover;
54
- }
55
-
56
- .colorlib-notfound h2 {
57
- font-family: 'Titillium Web', sans-serif;
58
- font-size: 26px;
59
- font-weight: 700;
60
- margin: 0;
61
- }
62
-
63
- .colorlib-notfound p {
64
- font-family: 'Montserrat', sans-serif;
65
- font-size: 14px;
66
- font-weight: 500;
67
- margin-bottom: 0;
68
- text-transform: uppercase;
69
- }
70
-
71
- .colorlib-notfound a {
72
- font-family: 'Titillium Web', sans-serif;
73
- display: inline-block;
74
- text-transform: uppercase;
75
- color: #fff;
76
- text-decoration: none;
77
- background: #5c91fe;
78
- padding: 10px 40px;
79
- font-size: 14px;
80
- font-weight: 700;
81
- border-radius: 1px;
82
- margin-top: 15px;
83
- -webkit-transition: 0.2s all;
84
- transition: 0.2s all;
85
- }
86
-
87
- .colorlib-notfound a:hover {
88
- opacity: 0.8;
89
- }
90
-
91
- .colorlib-copyrigh {
92
- font-size: 0.8rem;
93
- text-align: center;
94
- margin-top: 20px;
95
- width: 100%;
96
- position: absolute;
97
- /* Make it break out of the flexbox */
98
- bottom: 10px;
99
- /* Position it at the bottom of the page */
100
- }
101
-
102
- @media only screen and (max-width: 767px) {
103
- .colorlib-notfound .colorlib-notfound-404 {
104
- height: 110px;
105
- line-height: 110px;
106
- }
107
- .colorlib-notfound .colorlib-notfound-404 h1 {
108
- font-size: 120px;
109
- }
110
- }
111
-
112
- @media only screen and (max-height: 600px) {
113
- #colorlib-notfound {
114
- min-height: 100vh;
115
- }
1
+ * {
2
+ -webkit-box-sizing: border-box;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ body.colorlib-body {
7
+ padding: 0;
8
+ margin: 0;
9
+ }
10
+
11
+ #colorlib-notfound {
12
+ min-height: 60vh;
13
+ /* Ensures that the container takes at least the full viewport height */
14
+ position: relative;
15
+ display: flex;
16
+ flex-direction: column;
17
+ /* Stack children vertically */
18
+ justify-content: center;
19
+ /* Center children vertically */
20
+ align-items: center;
21
+ /* Center children horizontally */
22
+ padding: 3rem 1rem;
23
+ /* Add some padding around */
24
+ }
25
+
26
+ .colorlib-notfound {
27
+ max-width: 767px;
28
+ width: -moz-fit-content;
29
+ width: fit-content;
30
+ line-height: 1.4;
31
+ padding: 0 15px;
32
+ text-align: center;
33
+ /* Center the text */
34
+ }
35
+
36
+ .colorlib-notfound .colorlib-notfound-404 {
37
+ position: relative;
38
+ height: 150px;
39
+ line-height: 150px;
40
+ margin-bottom: 25px;
41
+ }
42
+
43
+ .colorlib-notfound .colorlib-notfound-404 h1 {
44
+ font-family: 'Titillium Web', sans-serif;
45
+ font-size: 186px;
46
+ font-weight: 900;
47
+ margin: 0;
48
+ text-transform: uppercase;
49
+ background: url('../_media/404.png') no-repeat center;
50
+ -webkit-background-clip: text;
51
+ background-clip: text;
52
+ -webkit-text-fill-color: transparent;
53
+ background-size: cover;
54
+ }
55
+
56
+ .colorlib-notfound h2 {
57
+ font-family: 'Titillium Web', sans-serif;
58
+ font-size: 26px;
59
+ font-weight: 700;
60
+ margin: 0;
61
+ }
62
+
63
+ .colorlib-notfound p {
64
+ font-family: 'Montserrat', sans-serif;
65
+ font-size: 14px;
66
+ font-weight: 500;
67
+ margin-bottom: 0;
68
+ text-transform: uppercase;
69
+ }
70
+
71
+ .colorlib-notfound a {
72
+ font-family: 'Titillium Web', sans-serif;
73
+ display: inline-block;
74
+ text-transform: uppercase;
75
+ color: #fff;
76
+ text-decoration: none;
77
+ background: #5c91fe;
78
+ padding: 10px 40px;
79
+ font-size: 14px;
80
+ font-weight: 700;
81
+ border-radius: 1px;
82
+ margin-top: 15px;
83
+ -webkit-transition: 0.2s all;
84
+ transition: 0.2s all;
85
+ }
86
+
87
+ .colorlib-notfound a:hover {
88
+ opacity: 0.8;
89
+ }
90
+
91
+ .colorlib-copyrigh {
92
+ font-size: 0.8rem;
93
+ text-align: center;
94
+ margin-top: 20px;
95
+ width: 100%;
96
+ position: absolute;
97
+ /* Make it break out of the flexbox */
98
+ bottom: 10px;
99
+ /* Position it at the bottom of the page */
100
+ }
101
+
102
+ @media only screen and (max-width: 767px) {
103
+ .colorlib-notfound .colorlib-notfound-404 {
104
+ height: 110px;
105
+ line-height: 110px;
106
+ }
107
+ .colorlib-notfound .colorlib-notfound-404 h1 {
108
+ font-size: 120px;
109
+ }
110
+ }
111
+
112
+ @media only screen and (max-height: 600px) {
113
+ #colorlib-notfound {
114
+ min-height: 100vh;
115
+ }
116
116
  }
package/src/_css/App.css CHANGED
@@ -1,38 +1,38 @@
1
- .App {
2
- text-align: center;
3
- }
4
-
5
- .App-logo {
6
- height: 20vmin;
7
- pointer-events: none;
8
- }
9
-
10
- @media (prefers-reduced-motion: no-preference) {
11
- .App-logo {
12
- animation: App-logo-spin infinite 20s linear;
13
- }
14
- }
15
-
16
- .App-header {
17
- background-color: #282c34;
18
- min-height: 10vh;
19
- display: flex;
20
- flex-direction: column;
21
- align-items: center;
22
- justify-content: center;
23
- font-size: calc(10px + 2vmin);
24
- color: white;
25
- }
26
-
27
- .App-link {
28
- color: #61dafb;
29
- }
30
-
31
- @keyframes App-logo-spin {
32
- from {
33
- transform: rotate(0deg);
34
- }
35
- to {
36
- transform: rotate(360deg);
37
- }
1
+ .App {
2
+ text-align: center;
3
+ }
4
+
5
+ .App-logo {
6
+ height: 20vmin;
7
+ pointer-events: none;
8
+ }
9
+
10
+ @media (prefers-reduced-motion: no-preference) {
11
+ .App-logo {
12
+ animation: App-logo-spin infinite 20s linear;
13
+ }
14
+ }
15
+
16
+ .App-header {
17
+ background-color: #282c34;
18
+ min-height: 10vh;
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ justify-content: center;
23
+ font-size: calc(10px + 2vmin);
24
+ color: white;
25
+ }
26
+
27
+ .App-link {
28
+ color: #61dafb;
29
+ }
30
+
31
+ @keyframes App-logo-spin {
32
+ from {
33
+ transform: rotate(0deg);
34
+ }
35
+ to {
36
+ transform: rotate(360deg);
37
+ }
38
38
  }