2e0427c3 by Jeff Balicki

pi charts and elements

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 53f44931
Showing 57 changed files with 1610 additions and 20 deletions
<?php
// Create id attribute allowing for custom "anchor" value.
$id = 'msf-pi-' . $block['id'];
if( !empty($block['anchor']) ) {
$id = $block['anchor'];
}
// Create class attribute allowing for custom "className" and "align" values.
$className = 'msf-pi';
if( !empty($block['className']) ) {
$className .= ' ' . $block['className'];
}
if( !empty($block['align']) ) {
$className .= ' align' . $block['align'];
}
$title = get_field('title') ?: null;
$theme = null;
$inner_blocks = get_field('data') ?: null;
$color = get_field('foreground_color') ?: null;
$data = [];
foreach($inner_blocks as $ib) {
$data[] = [ "name" => $ib['name'], "value" => (int)$ib['value'], 'color' => $ib['color'], 'font_color' => $color ];
}
?>
<script>
window.addEventListener('scroll', function(event) {
if(!jQuery("#<?= $id ?>").hasClass('visible') && window.tz_checkVisible(jQuery("#<?= $id ?>"), null, 200)) {
jQuery("#<?= $id ?>").addClass('visible');
jQuery("#<?= $id ?>").addClass('is-visible');
window.renderPI(document.getElementById("<?= $id ?>"))
}
});
</script>
<div class='pi <?= $theme ?>' class="<?php echo esc_attr($className); ?>" style='width:100%;'>
<h3><?= $title ?></h3>
<div id="<?= $id ?>" data-points='<?= json_encode($data) ?>' data-color="<?= $color ?>"></div>
</div>
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `yarn test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `yarn build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `yarn eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `yarn build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
{
"files": {
"main.js": "/static/js/main.a7bb4a96.chunk.js",
"main.js.map": "/static/js/main.a7bb4a96.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.a933fda7.js",
"runtime-main.js.map": "/static/js/runtime-main.a933fda7.js.map",
"static/js/2.c3c99db9.chunk.js": "/static/js/2.c3c99db9.chunk.js",
"static/js/2.c3c99db9.chunk.js.map": "/static/js/2.c3c99db9.chunk.js.map",
"index.html": "/index.html",
"static/js/2.c3c99db9.chunk.js.LICENSE.txt": "/static/js/2.c3c99db9.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.a933fda7.js",
"static/js/2.c3c99db9.chunk.js",
"static/js/main.a7bb4a96.chunk.js"
]
}
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"><title>React App</title></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="cbv-globe"></div><script>!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],p=0,s=[];p<f.length;p++)l=f[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var f=this["webpackJsonpcbv-globe"]=this["webpackJsonpcbv-globe"]||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var c=i;t()}([])</script><script src="/static/js/2.c3c99db9.chunk.js"></script><script src="/static/js/main.a7bb4a96.chunk.js"></script></body><script>window.renderProgression(document.getElementById("cbv-globe"))</script></html>
\ No newline at end of file
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
This diff could not be displayed because it is too large.
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*! Conditions:: INITIAL */
/*! Production:: $accept : expression $end */
/*! Production:: css_value : ANGLE */
/*! Production:: css_value : CHS */
/*! Production:: css_value : EMS */
/*! Production:: css_value : EXS */
/*! Production:: css_value : FREQ */
/*! Production:: css_value : LENGTH */
/*! Production:: css_value : PERCENTAGE */
/*! Production:: css_value : REMS */
/*! Production:: css_value : RES */
/*! Production:: css_value : SUB css_value */
/*! Production:: css_value : TIME */
/*! Production:: css_value : VHS */
/*! Production:: css_value : VMAXS */
/*! Production:: css_value : VMINS */
/*! Production:: css_value : VWS */
/*! Production:: css_variable : CSS_VAR LPAREN CSS_CPROP COMMA math_expression RPAREN */
/*! Production:: css_variable : CSS_VAR LPAREN CSS_CPROP RPAREN */
/*! Production:: expression : math_expression EOF */
/*! Production:: math_expression : LPAREN math_expression RPAREN */
/*! Production:: math_expression : NESTED_CALC LPAREN math_expression RPAREN */
/*! Production:: math_expression : SUB PREFIX SUB NESTED_CALC LPAREN math_expression RPAREN */
/*! Production:: math_expression : css_value */
/*! Production:: math_expression : css_variable */
/*! Production:: math_expression : math_expression ADD math_expression */
/*! Production:: math_expression : math_expression DIV math_expression */
/*! Production:: math_expression : math_expression MUL math_expression */
/*! Production:: math_expression : math_expression SUB math_expression */
/*! Production:: math_expression : value */
/*! Production:: value : NUMBER */
/*! Production:: value : SUB NUMBER */
/*! Rule:: $ */
/*! Rule:: (--[0-9a-z-A-Z-]*) */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)% */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)Hz\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ch\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)cm\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)deg\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dpcm\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dpi\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dppx\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)em\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ex\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)grad\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)in\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)kHz\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)mm\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ms\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)pc\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)pt\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)px\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)rad\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)rem\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)s\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)turn\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vh\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vmax\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vmin\b */
/*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vw\b */
/*! Rule:: ([a-z]+) */
/*! Rule:: (calc) */
/*! Rule:: (var) */
/*! Rule:: , */
/*! Rule:: - */
/*! Rule:: \( */
/*! Rule:: \) */
/*! Rule:: \* */
/*! Rule:: \+ */
/*! Rule:: \/ */
/*! Rule:: \s+ */
/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */
/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.10.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
This diff could not be displayed because it is too large.
!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],p=0,s=[];p<f.length;p++)l=f[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var f=this["webpackJsonpcbv-globe"]=this["webpackJsonpcbv-globe"]||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var c=i;t()}([]);
//# sourceMappingURL=runtime-main.a933fda7.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","this","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrBiB,EAAG,GAGAZ,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU8B,QAGnC,IAAIC,EAASH,EAAiB5B,GAAY,CACzCK,EAAGL,EACHgC,GAAG,EACHF,QAAS,IAUV,OANAhB,EAAQd,GAAUW,KAAKoB,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,GAG/DK,EAAOC,GAAI,EAGJD,EAAOD,QAKfJ,EAAoBO,EAAInB,EAGxBY,EAAoBQ,EAAIN,EAGxBF,EAAoBS,EAAI,SAASL,EAASM,EAAMC,GAC3CX,EAAoBY,EAAER,EAASM,IAClC5B,OAAO+B,eAAeT,EAASM,EAAM,CAAEI,YAAY,EAAMC,IAAKJ,KAKhEX,EAAoBgB,EAAI,SAASZ,GACX,qBAAXa,QAA0BA,OAAOC,aAC1CpC,OAAO+B,eAAeT,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DrC,OAAO+B,eAAeT,EAAS,aAAc,CAAEe,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKzC,OAAO0C,OAAO,MAGvB,GAFAxB,EAAoBgB,EAAEO,GACtBzC,OAAO+B,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOnB,EAAoBS,EAAEc,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRvB,EAAoB2B,EAAI,SAAStB,GAChC,IAAIM,EAASN,GAAUA,EAAOiB,WAC7B,WAAwB,OAAOjB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAL,EAAoBS,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRX,EAAoBY,EAAI,SAASgB,EAAQC,GAAY,OAAO/C,OAAOC,UAAUC,eAAeC,KAAK2C,EAAQC,IAGzG7B,EAAoB8B,EAAI,IAExB,IAAIC,EAAaC,KAAK,yBAA2BA,KAAK,0BAA4B,GAC9EC,EAAmBF,EAAW5C,KAAKuC,KAAKK,GAC5CA,EAAW5C,KAAOf,EAClB2D,EAAaA,EAAWG,QACxB,IAAI,IAAIvD,EAAI,EAAGA,EAAIoD,EAAWlD,OAAQF,IAAKP,EAAqB2D,EAAWpD,IAC3E,IAAIU,EAAsB4C,EAI1BxC,I","file":"static/js/runtime-main.a933fda7.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = this[\"webpackJsonpcbv-globe\"] = this[\"webpackJsonpcbv-globe\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
This diff could not be displayed because it is too large.
{
"name": "cbv-globe",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"babel-loader": "8.1.0",
"i18next": "^20.3.1",
"i18next-browser-languagedetector": "^6.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^11.10.0",
"react-scripts": "4.0.3",
"react-simple-maps": "2.1.2",
"react-spring": "^9.2.1",
"react-tooltip": "latest",
"react-visibility-sensor": "^5.1.1",
"recharts": "^2.0.9",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
<svg width="768px" height="318px" viewBox="0 0 768 318" version="1.1">
<title>sectors-2</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="sectors-2">
<circle cx="300" cy="152" r="58" data-r="58" id="Fill-115" fill="#A4D6CF"></circle>
<circle cx="450" cy="150" r="24" data-r="24" id="Fill-116" fill="#6BC1BA"></circle>
<circle cx="470" cy="225" r="2425" data-r="24" id="Fill-117" fill="#A4D6CF"></circle>
<circle cx="375" cy="280" r="47" data-r="47" id="Fill-118" fill="#DAEEEB"></circle>
<g id="Professional-Valuation-Services" className="115" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(50.000000, 83.000000)" : "translate(50.000000, 83.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="18" font-weight="300">
<text id="Professional-Valuati">
<tspan x="0.273" y="14">{t('pro.professional')}</tspan>
<tspan x={t('pro.valuation.x')} y="35.6000073">{t('pro.Valuation')}</tspan>
<tspan x={t('pro.services.x')} y="57.2000146">{t('pro.Services')}</tspan>
</text>
</g>
<g id="Financial-Services" className="118" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(125.000000, 224.000000)" : "translate(125.000000, 224.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="13" font-weight="300">
<text>
<tspan x="0.677" y="10">{t('pro.Financial Services')}</tspan>
<tspan x="17.395" y="25.6000053">{t('pro.Industry')}</tspan>
<tspan x="18.5585" y="41.2000105">{t('pro.Government')}</tspan>
</text>
</g>
<g id="Other" className="116" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(55.000000, 224.000000)" : "translate(63.000000, 224.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="10" font-weight="300">
<text>
<tspan x="0.802" y="10">{t('pro.Retired')}</tspan>
</text>
</g>
<g id="50%" class="115" opacity="1" transform="translate(270.000000, 147.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="36" font-weight="bold" style="opacity: 1;"><text id="49%"><tspan x="0.8076" y="14.8007812">50%</tspan></text></g>
<g id="34%" class="118" opacity="1" transform="translate(345.000000, 275.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="34" font-weight="bold" style="opacity: 1;"><text><tspan x="0.5856" y="14.800781">39%</tspan></text></g>
<g id="10%" class="116" opacity="1" transform="translate(437.000000, 143.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="22" font-weight="bold" style="opacity: 1;"><text><tspan x="0.2997" y="14.800781">3%</tspan></text></g>
<g id="Retired" className="117" opacity={0} transform="translate(76.000000, 308.000000)" fill="#FFFFFF" font-family="Gotham-ExtraLight, Gotham" font-size="11" font-weight="300">
<text>
<tspan x="0" y="9">{t('pro.Other')}</tspan>
</text>
</g>
<g id="6%" class="117" opacity="1" transform="translate(455.000000, 217.000000)" fill="#221D58" font-family="Gotham-Bold, Gotham" font-size="22" font-weight="700" style="opacity: 1;"><text><tspan x="0.2495" y="14.800781">3%</tspan></text></g>
<path className="117" opacity={0} d="M94.4777,289.2349 L94.4777,263.4129" id="Stroke-210" stroke="#FFFFFF" stroke-width="0.5"></path>
</g>
</g>
</svg>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="cbv-globe"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
<script>
window.renderProgression(document.getElementById('cbv-globe'));
</script>
</html>
\ No newline at end of file
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
This diff could not be displayed because it is too large.
import React, { memo } from "react";
import { BarChart, Bar, ResponsiveContainer, LabelList, XAxis, YAxis, Cell } from 'recharts';
import { useTranslation, Trans } from 'react-i18next';
const renderCustomizedLabel = (props) => {
const {
x, y, width, height, name, fill
} = props;
return (
<text x={20} y={y + 35} fill={"#fff"} offset={15} height={55} textAnchor="start">
{(name < 900)?name+"*":name}
</text>
);
};
const CBVBars = ({ data }) => {
const { t } = useTranslation();
return (
<>
<ResponsiveContainer width={'100%'} >
<BarChart layout="vertical" data={ data } height={600}>
<XAxis type="number" dataKey="value" axisLine={false} tick={false} />
<YAxis dataKey="name" type="category" axisLine={false} tick={false}/>
<Bar dataKey="value">
{
data.map((entry, index) => (
<Cell x={0} height={55} key={`cell-${index}`} fill={(index % 2 == 0)?"#706B88":"#453E61"} />
))
}
<LabelList dataKey="name" content={renderCustomizedLabel} />
</Bar>
</BarChart>
</ResponsiveContainer>
<small>&nbsp;{t("one-term-only")}</small>
</>
)
}
export default memo(CBVBars);
\ No newline at end of file
import React, { memo } from "react";
import { BarChart, Bar, ResponsiveContainer, LabelList, XAxis, YAxis, Cell } from 'recharts';
import { useTranslation, Trans } from 'react-i18next';
const renderCustomizedLabel2021 = (props) => {
const {
x, y, width, height, name, fill
} = props;
return (
<text x={20} y={y + 30} fill={"#fff"} offset={15} height={55} textAnchor="start">
{(name < 900)?name+"*":name}
</text>
);
};
const CBVBars2021 = ({ data }) => {
const { t } = useTranslation();
return (
<>
<ResponsiveContainer width={'100%'} >
<BarChart layout="vertical" data={ data } height={600}>
<XAxis type="number" dataKey="value" axisLine={false} tick={false} />
<YAxis dataKey="name" type="category" axisLine={false} tick={false}/>
<Bar dataKey="value">
{
data.map((entry, index) => (
<Cell x={0} height={45} key={`cell-${index}`} fill={(index % 2 == 0)?"#6AC9C8":"#b0e0df"} />
))
}
<LabelList dataKey="name" content={renderCustomizedLabel2021} />
</Bar>
</BarChart>
</ResponsiveContainer>
</>
)
}
export default memo(CBVBars2021);
\ No newline at end of file
import React, { memo } from "react";
import { AreaChart, Area, XAxis, YAxis, Tooltip, ResponsiveContainer } from 'recharts';
import { useTranslation, Trans } from 'react-i18next';
const CustomTooltip = ({ active, payload, label }) => {
const { t } = useTranslation();
if (active && payload && payload.length) {
return (
<div className="custom-tooltip">
<p className="label" style={ {'color':'#221d58'} } >{`${label}`}</p>
</div>
);
}
return null;
};
const GraphChart = ({ data }) => {
var first_val = data[0]['name'];
var last_val = data[data.length - 1]['name'];
var ticks = Math.floor(last_val / 500);
var tick_array = [];
for(var i = 0;i < ticks;++i) {
tick_array.push((i+1) * 500);
}
return (
<>
<ResponsiveContainer width={'99%'} height={475}>
<AreaChart>
<defs>
<linearGradient id="colorUv" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stopColor="#b4eded" stopOpacity={1}/>
<stop offset="100%" stopColor="#FFFFFF" stopOpacity={0.1}/>
</linearGradient>
</defs>
<XAxis tick={{ fill: '#FFFFFF' }} stroke="#BFBECF" dataKey="name" ticks={[first_val, last_val]} />
<YAxis tick={{ fill: '#FFFFFF' }} stroke="#BFBECF" ticks={tick_array} />
<Tooltip content={<CustomTooltip />} />
<Area dot={false} strokeWidth={2} data={ data } fill="url(#colorUv)" dataKey="value" stroke="#FFFFFF" />
</AreaChart></ResponsiveContainer>
</>
)
}
export default memo(GraphChart);
\ No newline at end of file
import React, { memo } from "react";
import {
ComposableMap,
Geographies,
Geography
} from "react-simple-maps";
import { useTranslation, Trans } from 'react-i18next';
const geoUrl =
// "http://arreport.test/world-110m.json";
"https://yearinreview.cbvinstitute.com/world-110m.json";
const MapChart = ({ setTooltipContent, countries }) => {
const { t } = useTranslation();
return (
<>
<ComposableMap data-tip="" projection="geoMercator" >
<Geographies geography={geoUrl}>
{({ geographies }) =>
geographies.map(geo => {
var found = false;
for(var i = 0;i < countries.length;++i) {
for(const cprop in geo.properties) {
if(typeof geo.properties[cprop].indexOf == 'function' && geo.properties[cprop].indexOf(countries[i].name) !== -1) {
geo.properties.NICENAME = countries[i].name
found = true;
break;
}
}
}
var style = {};
if(found) {
style = {
default: {
fill: "#5CBFBC",
outline: "#0F1647",
stroke: "#0F1647",
strokeWidth: "0.25px"
},
hover: {
fill: "white",
outline: "none"
}
}
} else {
style = {
default: {
fill: "#594D78",
outline: "none",
},
hover: {
fill: "#594D78",
outline: "none"
},
pressed: {
fill: "#594D78",
outline: "none"
}
}
}
return (
<Geography
key={geo.rsmKey}
geography={geo}
onMouseEnter={() => {
if(found) {
const { NICENAME } = geo.properties;
setTooltipContent(`${NICENAME}`);
}
}}
onMouseLeave={() => {
setTooltipContent("");
}}
style={style}
/>
) } )
}
</Geographies>
</ComposableMap>
</>
);
};
export default memo(MapChart);
import React, { memo } from "react";
import { Pie, PieChart, Sector, ResponsiveContainer } from 'recharts';
const renderActiveShape = (props) => {
const RADIAN = Math.PI / 180;
const { cx, cy, midAngle, innerRadius, outerRadius, startAngle, endAngle, fill, payload, percent, value, name, color, font_color } = props;
const sin = Math.sin(-RADIAN * midAngle);
const cos = Math.cos(-RADIAN * midAngle);
const sx = cx + (outerRadius + 10) * cos;
const sy = cy + (outerRadius + 10) * sin;
const mx = cx + (outerRadius + 30) * cos;
const my = cy + (outerRadius + 30) * sin;
const ex = mx + (cos >= 0 ? 1 : -1) * 22;
const ey = my;
const textAnchor = cos >= 0 ? 'start' : 'end';
return (
<g>
<Sector
cx={cx}
cy={cy}
innerRadius={innerRadius}
outerRadius={outerRadius}
startAngle={startAngle}
endAngle={endAngle}
fill={color}
/>
<Sector
cx={cx}
cy={cy}
startAngle={startAngle}
endAngle={endAngle}
innerRadius={outerRadius + 6}
outerRadius={outerRadius + 10}
fill={color}
/>
<path d={`M${sx},${sy}L${mx},${my}L${ex},${ey}`} stroke={color} fill="none" />
<circle cx={ex} cy={ey} r={2} fill={color} stroke="none" />
<text x={ex + (cos >= 0 ? 1 : -1) * 12} y={ey} style={{fontWeight:'bold'}} textAnchor={textAnchor} fill={font_color}>{`${name}`}</text>
<text x={ex + (cos >= 0 ? 1 : -1) * 12} y={ey} dy={18} textAnchor={textAnchor} fill={font_color}>
{`${(value)}%`}
</text>
</g>
);
};
const PiChart = ({ data, color }) => {
return (
<>
<ResponsiveContainer width={'100%'} height={300}><PieChart>
<Pie
activeIndex={Array.from({length: data.length}, (_, i) => (i-1) + 1)}
activeShape={renderActiveShape}
data={ data } dataKey="value" cx="50%" cy="50%" innerRadius={70} outerRadius={100} fill="#82ca9d" />
</PieChart></ResponsiveContainer>
</>
)
}
export default memo(PiChart);
\ No newline at end of file
import React, { memo } from "react";
import { useTranslation, Trans } from 'react-i18next';
const ProgressionChart = (props) => {
const { t } = useTranslation();
return (
<>
<svg width="240px" height="318px" viewBox="0 0 240 318" version="1.1">
<title>sectors-2</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="sectors-2">
<circle cx="94" cy="102" r="0" data-r="85" id="Fill-115" fill="#A4D6CF" ></circle>
<circle cx="78" cy="217" r="0" data-r="31" id="Fill-116" fill="#6BC1BA"></circle>
<circle cx="96" cy="265" r="0" data-r="21" id="Fill-117" fill="#A4D6CF"></circle>
<circle cx="175" cy="230" r="0" data-r="65" id="Fill-118" fill="#DAEEEB"></circle>
<g id="Professional-Valuation-Services" className="115" opacity={0} transform="translate(41.000000, 83.000000)" fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="18" font-weight="300">
<text id="Professional-Valuati">
<tspan x="0.273" y="14">{t('pro.professional')}</tspan>
<tspan x={t('pro.valuation.x')} y="35.6000073">{t('pro.Valuation')}</tspan>
<tspan x={t('pro.services.x')} y="57.2000146">{t('pro.Services')}</tspan>
</text>
</g>
<g id="Financial-Services" className="118" opacity={0} transform="translate(117.000000, 224.000000)" fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="13" font-weight="300">
<text>
<tspan x="0.677" y="10">{t('pro.Financial Services')}</tspan>
<tspan x="17.395" y="25.6000053">{t('pro.Industry')}</tspan>
<tspan x="18.5585" y="41.2000105">{t('pro.Government')}</tspan>
</text>
</g>
<g id="Other" className="116" opacity={0} transform="translate(59.000000, 224.000000)" fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="12" font-weight="300">
<text>
<tspan x="0.802" y="10">{t('pro.Other')}</tspan>
</text>
</g>
<g id="50%" className="115" opacity={0} transform="translate(73.000000, 58.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text id="49%">
<tspan x="0.8076" y="14.8007812">49%</tspan>
</text>
</g>
<g id="34%" className="118" opacity={0} transform="translate(154.000000, 201.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text>
<tspan x="0.5856" y="14.800781">36%</tspan>
</text>
</g>
<g id="10%" className="116" opacity={0} transform="translate(59.000000, 204.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text>
<tspan x="0.2997" y="14.800781">9%</tspan>
</text>
</g>
<g id="Retired" className="117" opacity={0} transform="translate(76.000000, 308.000000)" fill="#FFFFFF" font-family="Gotham-ExtraLight, Gotham" font-size="11" font-weight="300">
<text>
<tspan x="0" y="9">{t('pro.Retired')}</tspan>
</text>
</g>
<g id="6%" className="117" opacity={0} transform="translate(81.000000, 288.000000)" fill="#FFFFFF" font-family="Gotham-Medium, Gotham" font-size="18" font-weight="400">
<text>
<tspan x="0.2495" y="14.800781">6%</tspan>
</text>
</g>
<path className="117" opacity={0} d="M94.4777,289.2349 L94.4777,263.4129" id="Stroke-210" stroke="#FFFFFF" stroke-width="0.5"></path>
</g>
</g>
</svg>
</>
)
}
export default memo(ProgressionChart);
\ No newline at end of file
import React, { memo } from "react";
import { useTranslation, Trans } from 'react-i18next';
const ProgressionChart2021 = () => {
const { t } = useTranslation();
return (
<>
<svg width="240px" height="318px" viewBox="0 0 240 318" version="1.1">
<title>sectors-2</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="sectors-2">
<circle cx="94" cy="102" r="0" data-r="85" id="Fill-115" fill="#A4D6CF" ></circle>
<circle cx="78" cy="217" r="0" data-r="31" id="Fill-116" fill="#6BC1BA"></circle>
<circle cx="96" cy="265" r="0" data-r="21" id="Fill-117" fill="#A4D6CF"></circle>
<circle cx="175" cy="230" r="0" data-r="65" id="Fill-118" fill="#DAEEEB"></circle>
<g id="Professional-Valuation-Services" className="115" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(50.000000, 83.000000)" : "translate(50.000000, 83.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="18" font-weight="300">
<text id="Professional-Valuati">
<tspan x="0.273" y="14">{t('pro.professional')}</tspan>
<tspan x={t('pro.valuation.x')} y="35.6000073">{t('pro.Valuation')}</tspan>
<tspan x={t('pro.services.x')} y="57.2000146">{t('pro.Services')}</tspan>
</text>
</g>
<g id="Financial-Services" className="118" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(125.000000, 224.000000)" : "translate(125.000000, 224.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="13" font-weight="300">
<text>
<tspan x="0.677" y="10">{t('pro.Financial Services')}</tspan>
<tspan x="17.395" y="25.6000053">{t('pro.Industry')}</tspan>
<tspan x="18.5585" y="41.2000105">{t('pro.Government')}</tspan>
</text>
</g>
<g id="Other" className="116" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(55.000000, 224.000000)" : "translate(63.000000, 224.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="10" font-weight="300">
<text>
<tspan x="0.802" y="10">{t('pro.Retired')}</tspan>
</text>
</g>
<g id="50%" className="115" opacity={0} transform="translate(73.000000, 58.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text id="49%">
<tspan x="0.8076" y="14.8007812">50%</tspan>
</text>
</g>
<g id="34%" className="118" opacity={0} transform="translate(154.000000, 201.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text>
<tspan x="0.5856" y="14.800781">39%</tspan>
</text>
</g>
<g id="10%" className="116" opacity={0} transform="translate(66.000000, 204.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="18" font-weight="bold">
<text>
<tspan x="0.2997" y="14.800781">7%</tspan>
</text>
</g>
<g id="Retired" className="117" opacity={0} transform="translate(76.000000, 308.000000)" fill="#FFFFFF" font-family="Gotham-ExtraLight, Gotham" font-size="11" font-weight="300">
<text>
<tspan x="0" y="9">{t('pro.Other')}</tspan>
</text>
</g>
<g id="6%" className="117" opacity={0} transform="translate(81.000000, 288.000000)" fill="#FFFFFF" font-family="Gotham-Medium, Gotham" font-size="18" font-weight="400">
<text>
<tspan x="0.2495" y="14.800781">4%</tspan>
</text>
</g>
<path className="117" opacity={0} d="M94.4777,289.2349 L94.4777,263.4129" id="Stroke-210" stroke="#FFFFFF" stroke-width="0.5"></path>
</g>
</g>
</svg>
</>
)
}
export default memo(ProgressionChart2021);
\ No newline at end of file
import React, { memo } from "react";
import { useTranslation, Trans } from 'react-i18next';
const ProgressionChart2022 = () => {
const { t } = useTranslation();
return (
<>
<svg width="1024px" height="400px" viewBox="0 0 1024 400" version="1.1">
<title>sectors-2</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="sectors-2">
<circle cx="450" cy="152" r="15" data-r="15" id="Fill-115" fill="#A4D6CF"></circle>
<circle cx="570" cy="165" r="6" data-r="6" id="Fill-116" fill="#6BC1BA"></circle>
<circle cx="600" cy="225" r="6" data-r="6" id="Fill-117" fill="#A4D6CF"></circle>
<circle cx="505" cy="270" r="10" data-r="10" id="Fill-118" fill="#DAEEEB"></circle>
<g id="Professional-Valuation-Services" className="115" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(0.000000, 160.000000)" : "translate(30.000000, 160.000000)" } fill="#1B193F" font-family="Gotham-Book, Gotham" font-size="18" font-weight="300">
<text id="Professional-Valuati">
<tspan x="0" y="0">{t('pro.professional')}</tspan>
<tspan x={document.documentElement.lang === "fr-FR" ? "78" : "115" } y="0">{t('pro.Valuation')}</tspan>
<tspan x={document.documentElement.lang === "fr-FR" ? "210" : "205" } y="0">{t('pro.Services')}</tspan>
</text>
</g>
<g id="Financial-Services" className="118" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(175.000000, 262.000000)" : "translate(175.000000, 262.000000)" } fill="#1B193F" font-family="Gotham-Book, Gotham" font-size="17" font-weight="300">
<text>
<tspan x={document.documentElement.lang === "fr-FR" ? "50" : "0" } y="0">{t('pro.Financial Services')}</tspan>
<tspan x="85" y="25">{t('pro.Government')}</tspan>
</text>
</g>
<g id="Other" className="116" opacity={0} transform={document.documentElement.lang === "fr-FR" ? "translate(710.000000, 218.000000)" : "translate(710.000000, 218.000000)" } fill="#1B193F" font-family="Gotham-ExtraLight, Gotham" font-size="16" font-weight="300">
<text>
<tspan x="0.802" y="10">{t('pro.Retired')}</tspan>
</text>
</g>
<g id="50%" class="115" opacity={0} transform="translate(415.000000, 165.000000)" fill="#221D58" font-family="Gotham-Bold, Gotham" font-size="36" font-weight="bold"><text id="49%"><tspan x="0" y="0">52%</tspan></text></g>
<g id="34%" class="118" opacity={0} transform="translate(470, 265)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="34" font-weight="bold"><text><tspan x="0.5856" y="14.800781">41%</tspan></text></g>
<g id="10%" class="116" opacity={0} transform="translate(557.000000, 158.000000)" fill="#1B193F" font-family="Gotham-Bold, Gotham" font-size="22" font-weight="bold"><text><tspan x="0.2997" y="14.800781">4%</tspan></text></g>
<g id="Retired" className="117" opacity={0} transform="translate(695.000000, 160.000000)" fill="#FFFFFF" font-family="Gotham-Bold, Gotham" font-size="16" font-weight="300">
<text>
<tspan x="0" y="9">{t('pro.Other')}</tspan>
</text>
</g>
<g id="6%" class="117" opacity={0} transform="translate(585.000000, 218.000000)" fill="#221D58" font-family="Gotham-Bold, Gotham" font-size="22" font-weight="700"><text><tspan x="0.2495" y="14.800781">3%</tspan></text></g>
<path class="115-line" opacity={0} d="M320,155 L390,155" id="Stroke-210" stroke="#AED5CF" stroke-width="1.5"></path>
<path class="118-line" opacity={0} d="M410,270 L460,270" id="Stroke-210" stroke="#DEEDEB" stroke-width="1.5"></path>
<path class="116-line" opacity={0} d="M680,165 L595,165" id="Stroke-210" stroke="#7FBFBA" stroke-width="1.5"></path>
<path class="117-line" opacity={0} d="M700,225 L625,225" id="Stroke-210" stroke="#AED5CF" stroke-width="1.5"></path>
</g>
</g>
</svg>
</>
)
}
export default memo(ProgressionChart2022);
\ No newline at end of file
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
i18n
// detect user language
// learn more: https://github.com/i18next/i18next-browser-languageDetector
.use(LanguageDetector)
// pass the i18n instance to react-i18next.
.use(initReactI18next)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
detection: {
order: ['querystring'],
"lookupQuerystring": 'lang',
lookupCookie: '',
lookupLocalStorage: '',
lookupSessionStorage: '',
caches: [],
},
debug: false,
fallbackLng: 'en',
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
resources: {
en: {
translation: {
"one-term-only":"* ONE TERM ONLY",
"pro.valuation.x":"11.991",
"pro.services.x":"16.401",
"pro.professional":"Professional",
"pro.Valuation":"Valuation",
"pro.Services":"Services",
"pro.Financial Services":"Financial Services, Industry",
"pro.Industry":"Industry",
"pro.Government":"and Government",
"pro.Retired":"Retired",
"charts.members":"Members",
"pro.Other":"Other",
}
},
fr: {
translation: {
"pro.valuation.x":"0",
"pro.services.x":"0",
"one-term-only":"*UN TRIMESTRE SEULEMENT",
"pro.professional":"Services",
"pro.Valuation":"professionnels",
"pro.Services":"d’évaluation",
"pro.Financial Services":"Services financiers,",
"pro.Industry":"industrie, et",
"pro.Government":"gouvernement",
"pro.Retired":"À la retraite",
"charts.members":"Membres",
"pro.Other":"Autres",
}
}
}
});
export default i18n;
\ No newline at end of file
import React, { useState } from "react";
import ReactDOM from "react-dom";
import ReactTooltip from "react-tooltip";
import './i18n';
import MapChart from "./MapChart";
import GraphChart from "./GraphChart";
import PiChart from './PiChart';
import CBVBars from './BarChart';
import ProgressionChart from './ProgressionChart';
import ProgressionChart2021 from './ProgressionChart2021';
import ProgressionChart2022 from './ProgressionChart2022';
import CBVBars2021 from './BarChart2021';
function CBVGlobe(props) {
const [content, setContent] = useState("");
const [countries] = useState(props.countries);
return (
<div>
<MapChart setTooltipContent={setContent} countries={countries} />
<ReactTooltip backgroundColor="#715f8a" textColor="white">{content}</ReactTooltip>
</div>
);
}
window.renderGlobe = (el) => {
ReactDOM.render(<CBVGlobe countries={JSON.parse(el.dataset.countries)} />, el);
}
function CBVGraph(props) {
const [data] = useState(props.data);
return (
<div>
<GraphChart data={data} />
</div>
);
}
window.renderGraph = (el) => {
ReactDOM.render(<CBVGraph data={JSON.parse(el.dataset.points)} />, el);
}
function CBVPI(props) {
const [data] = useState(props.data);
const [color] = useState(props.color);
return (
<PiChart data={data} color={color} />
);
}
window.renderPI = (el) => {
ReactDOM.render(<CBVPI color={el.dataset.color} data={JSON.parse(el.dataset.points)} />, el);
}
function CBVBarChart2021(props) {
const [data] = useState(props.data);
return (
<CBVBars2021 data={data} />
);
}
window.renderBarChart2021 = (el) => {
ReactDOM.render(<CBVBarChart2021 data={JSON.parse(el.dataset.points)} />, el);
}
function CBVBarChart(props) {
const [data] = useState(props.data);
return (
<CBVBars data={data} />
);
}
window.renderBarChart = (el) => {
ReactDOM.render(<CBVBarChart data={JSON.parse(el.dataset.points)} />, el);
}
function CBVProgression(props) {
return (
<ProgressionChart />
);
}
window.renderProgression = (el) => {
ReactDOM.render(<CBVProgression />, el);
}
function CBVProgression2021(props) {
return (
<ProgressionChart2021 />
);
}
window.renderProgression2021 = (el) => {
ReactDOM.render(<CBVProgression2021 />, el);
}
function CBVProgression2022(props) {
return (
<ProgressionChart2022 />
);
}
window.renderProgression2022 = (el) => {
ReactDOM.render(<CBVProgression2022 />, el);
}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -21,11 +21,11 @@ $container = get_theme_mod( 'understrap_container_type' );
<div class="row">
<div class="col-md-6 col-sm-12">
<div class="col-md-6 col-sm-12 site-info-menu">
<footer class="site-footer" id="colophon">
<footer class="site-footer">
<div class="site-info">
<div class="">
<?php dynamic_sidebar( 'custom-footer-left-widget' ); ?>
......@@ -36,7 +36,7 @@ $container = get_theme_mod( 'understrap_container_type' );
</div><!-- col -->
<div class="col-md-6 col-sm-12">
<footer class="site-footer" id="colophon">
<footer class="site-footer">
<div class="site-info">
......
......@@ -49,6 +49,9 @@ function theme_enqueue_styles() {
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
wp_enqueue_script( 'msf-globe-main', get_stylesheet_directory_uri() . '/blocks/react-app/build/static/js/main.a7bb4a96.chunk.js?v=1.222', array(), false, true );
wp_enqueue_script( 'msf-globe-runtime', get_stylesheet_directory_uri() . '/blocks/react-app/build/static/js/2.c3c99db9.chunk.js?v=2.222', array(), false, true );
wp_enqueue_script( 'msf-globe-chunk', get_stylesheet_directory_uri() . '/blocks/react-app/build/static/js/runtime-main.a933fda7.js?v=2.22', array(), false, true );
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
......
......@@ -12,3 +12,17 @@ if( function_exists('acf_add_options_page') ) {
));
}
add_action('acf/init', 'my_acf_init_block_types');
function my_acf_init_block_types() {
acf_register_block_type( array(
'title' => __( 'MSF PI Chart', 'client_textdomain' ),
'name' => 'msf-pi',
'render_template' => 'blocks/msf-PI/msf-PI.php',
'mode' => 'edit'
));
}
\ No newline at end of file
......
......@@ -7494,8 +7494,8 @@
}
// Search Filter
jQuery(document).ready(function ($) {
var Search = function ($) {
function init() {
$(".searchandfilter ul li:contains('hidden')").hide();
$('<li class="sf-field-reset"><input type="submit" class="search-filter-reset-custom" value="CLEAR ALL" "></li>').appendTo(jQuery('#advance-search-modal .searchandfilter ul:first-child '));
$(document).on("click", ".search-filter-reset-custom", function (e) {
......@@ -7512,7 +7512,23 @@
$('#search-box-content').removeClass('show');
$('.search-box').removeClass('show');
});
if ($(window).width() < 960) {
$(".search-result .entry-summary").each(function () {
var yourString = $(this).text();
var maxLength = 160;
if (yourString.length > maxLength) {
var trimmedString = yourString.substr(0, maxLength);
trimmedString = trimmedString.substr(0, Math.min(trimmedString.length, trimmedString.lastIndexOf(" ")));
$(this).text(trimmedString + "...");
}
});
}
}
return {
init: init
};
}(jquery);
jquery(document).ready(Search.init);
var Responsive = function ($) {
// $('.play-pause-btn').on('click', function() {
......@@ -7694,6 +7710,20 @@
// Add your custom JS here.
new LazyLoad();
window.tz_checkVisible = function (elm, evalType, offset, heightBuffer) {
evalType = evalType || "visible";
var vpH = jQuery(window).height(),
// Viewport Height
st = jQuery(window).scrollTop(),
// Scroll Top
y = jQuery(elm).offset().top + offset,
elementHeight = jQuery(elm).height();
if (heightBuffer) {
elementHeight += heightBuffer;
}
if (evalType === "visible") return y < vpH + st && y > st - elementHeight;
if (evalType === "above") return y < vpH + st;
};
exports.Alert = alert;
exports.Button = button;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -50,7 +50,7 @@ if($post_type == 'attachment') {
<div class="entry-summary" id='content'>
<?= wp_strip_all_tags(get_the_excerpt(), true) ?>
<?= str_replace("[...]Read More...", "",wp_strip_all_tags(get_the_excerpt(), true)); ?>
</div><!-- .entry-summary -->
......
// Search Filter
jQuery(document).ready(function($){
import jquery from 'jquery';
var Search = (function($) {
function init() {
$(".searchandfilter ul li:contains('hidden')").hide();
$('<li class="sf-field-reset"><input type="submit" class="search-filter-reset-custom" value="CLEAR ALL" "></li>').appendTo( jQuery( '#advance-search-modal .searchandfilter ul:first-child ' ) );
......@@ -22,6 +26,28 @@ jQuery(document).ready(function($){
$('#search-box-content').removeClass('show');
$('.search-box').removeClass('show');
})
});
if ($(window).width() < 960) {
$( ".search-result .entry-summary" ).each(function() {
var yourString = $(this).text();
var maxLength = 160;
if (yourString.length > maxLength) {
var trimmedString = yourString.substr(0, maxLength);
trimmedString = trimmedString.substr(0, Math.min(trimmedString.length, trimmedString.lastIndexOf(" ")));
$(this).text(trimmedString + "...");
}
});
}
}
return {
init: init
};
}(jquery));
jquery(document).ready(Search.init);
export { Search };
......
// Add your custom JS here.
import jquery from 'jquery';
import LazyLoad from "vanilla-lazyload";
import "./_menu_mobile";
......@@ -9,3 +10,18 @@ import "./_header_menu";
var myLazyLoad = new LazyLoad();
window.tz_checkVisible = function(elm, evalType , offset, heightBuffer) {
evalType = evalType || "visible";
var vpH = jQuery(window).height(), // Viewport Height
st = jQuery(window).scrollTop(), // Scroll Top
y = jQuery(elm).offset().top + offset,
elementHeight = jQuery(elm).height();
if (heightBuffer) {
elementHeight += heightBuffer;
}
if (evalType === "visible") return ((y < (vpH + st)) && (y > (st - elementHeight)));
if (evalType === "above") return ((y < (vpH + st)));
};
\ No newline at end of file
......
.wp-block-pb-accordion-item{
/*
We're overriding the page structure global for this because this
was seen to be different than usual blocks on page #49 in accordion section
*/
&.first-accordion {
margin-top:1.563rem !important;
}
//This should be the default when it's closed as seen on page #49
padding-bottom:0.969rem;
&.is-open {
//This was seen to be the correct spacing in page #49 in the accordion with the download cards
//And it's only bottom because the header makes the space for the top
padding-bottom:1.563rem;
}
border-bottom:#BEBEBE solid 1px;
//This was seen to be the correct spacing in page #49 in the accordion with the download cards
& > h1, h2, h3, h4, h5 {
margin-top:0.969rem !important;
line-height: normal;
}
&:hover {
& > h1, & > h2, & > h3, & > h4, & > h5 {
text-decoration: underline;
}
}
&.first-accordion {
border-top: #bebebe solid 1px;
}
&.job-app-accordion {
border-top:0 !important;
border-bottom:0;
padding-bottom:0;
margin-top:0 !important;
& > h2 {
margin-left:2rem;
font-size: 1rem;
text-transform: uppercase;
margin-top:1.563rem !important;
&:after {
width: 19px;
height: 12px;
left:-30px;
}
}
}
}
.c-accordion__title{
font-size: 1.25rem;
}
.accordion-header:not(.timeline) {
margin-top:0 !important;
padding:1.563rem 0;
font-size: 1.563rem !important;
& + .first-accordion { //This is for the FAQ pages
margin-top:0 !important;
}
}
.c-accordion__title {
position: relative;
}
.c-accordion__title:before {
content: "";
width: 100%;
height: 3.5rem;
position: absolute;
top: -1rem;
}
.c-accordion__title:after {
color: #777;
content: "" !important;
font-weight: 300;
position: absolute;
right: unset;
left: -40px;
top: 50%;
width: 25px;
height: 15px;
background-image:url("./../img/down-arrow.png") ;
background-size: contain;
background-repeat: no-repeat;
}
.is-open > .c-accordion__title::after {
content: "" !important;
background-image:url("./../img/up-arrow.png") ;
}
.c-accordion__title.js-accordion-controller{
margin-left: 2.5rem;
}
.c-accordion__content {
padding-left: 2.5rem;
//This was set because this was the default space found on page #49 in the accordion section
& > *:first-child {
margin-top:1.156rem;
}
#dd-container {
margin-top:1.156rem;
}
}
.available-jobs {
.c-accordion__content{
padding-left: 2rem;
}
}
\ No newline at end of file
......@@ -13,4 +13,4 @@ body{
@import "front_page";
@import "page";
@import "footer";
@import "accordion";
......
......@@ -18,15 +18,125 @@ a.skip-link {
}
}
.fr-only {
display: none !important;
h1, h2, h3, h4, h5, h6 {
font-family: "PT Sans",sans-serif;
font-weight: 700;
margin: 0 0 10px;
padding: 0;
}
h1 {
font-size: 45px;
line-height: 52px;
}
h2{
font-size: 35px;
line-height: 42px;
}
h3 {
font-size: 24px;
line-height: 30px;
}
h4 {
font-size: 20px;
line-height: 25px;
}
ul{
li{
color: #4D4D4D;
margin-bottom: 8px;
padding: 3px 0 2px 10px;
ul{
list-style: none;
margin-top: 8px;
li:before{
content: "-";
color: #4D4D4D;
font-weight: bold;
display: inline-block;
width: 1.5em;
margin-left: -1.5em;
}
}
}
}
ol{
li{
color: #4D4D4D;
margin-bottom: 8px;
padding: 3px 0 2px 10px;
html:lang(fr-FR) {
.en-only {
display: none !important;
}
.fr-only {
display: inline-block !important;
}
.wp-block-pullquote{
padding: 2em 0;
margin-bottom:80px;
}
blockquote{
border-left: 1px solid #EE0000;
border-right: 1px solid #EE0000;
margin: 0 70px 80px 70px;
@media only screen and (max-width: 782px) {
margin: 0 20px;
}
position: relative;
p{
font-size: 20px;
line-height: 26px;
font-style: italic;
margin: 0 0 20px;
padding: 0px 25px ;
color: #4D4D4D;
text-align: left;
margin-bottom: -20px;
&::before{
content: "“";
display: block;
position: absolute;
top: 0px;
padding-top: 10px;
left: -20px;
font-size: 80px;
line-height: 55px;
color: #e00;
height: 30px;
width: 30px;
background-color: #fff;
}
&::after{
content: "”";
display: block;
position: absolute;
bottom: 0px;
right: -7px;
font-size: 80px;
line-height: 55px;
padding-top: 10px;
color: #e00;
height: 20px;
background-color: #fff;
}
}
cite{
font-size: 16px;
line-height: 20px;
display: block;
color: #4D4D4D;
font-weight: bold;
font-style: normal;
text-align: right;
position: absolute;
right: 30px;
bottom: -40px;
@media only screen and (max-width: 782px) {
max-width: 50%;
}
float: right;
}
}
\ No newline at end of file
......
#wrapper-footer{
background-color: #F0F0F0;
padding: 33px 0px;
padding: 33px 40px;
.appArea{
h2{
margin-left: -15px;
}
}
.site-info-menu{
padding-left: 0px;
margin-left: 0px;
}
}
......@@ -11,11 +20,23 @@
text-transform: uppercase;
text-align: left;
}
.chw-widget h2{
font-size: 20px;
font-weight: bold;
margin-bottom: 10px;
text-transform: uppercase;
text-align: left;
}
#menu-footer{
list-style: none;
margin-left: 0px;
padding-left: 0px;
li{
margin-bottom: 0px;
padding-bottom: 0px;
padding-left: 0px;
a{
color: #000;
font-size: 16px;
......@@ -23,7 +44,8 @@
font-weight: 400;
text-decoration: none;
&:hover{
color: #fff;
color: #000;
text-decoration: underline;
}
}
}
......
......@@ -172,6 +172,7 @@
}
#page-wrapper{
margin-top: 34px;
margin: 34px 40px 0 40px;
.breadcrumb{
margin-bottom: 0px;
#breadcrumb{
......@@ -196,7 +197,7 @@ h1+p {
.side-menu{
list-style: none;
margin-top: 14px;
padding-left: 15px;
padding-left: 0px;
li{
margin-bottom: 14px;
......@@ -215,3 +216,43 @@ h1+p {
width: 100%;
}
}
.pi {
height:300px;
min-height:300px;
@media(min-width: 1024px) {
min-height:200px;
text-align: center;
justify-content: center;
width: 100%;
height: auto;
}
.recharts-wrapper {
margin:0 auto;
}
h3 {
color:#000;
font-family:Gotham,Helvetica,Arial,sans-serif;
font-weight: 700;
margin:0;
}
svg {
height:200px;
overflow: visible;
}
svg:lang(en) {
height:300px;
}
@media(max-width: 768px) {
h3 {
text-align:center;
}
svg {
height:200px;
}
svg:lang(en) {
height:200px;
}
}
}
\ No newline at end of file
......