mario-core 2.9.168-level → 2.9.170-level

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.
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ data: string[];
4
+ duration?: number;
5
+ }
6
+ declare const BlockBackground: FC<Props>;
7
+ export default BlockBackground;
package/dist/index.css CHANGED
@@ -291,33 +291,40 @@
291
291
  margin-left: -30px;
292
292
  margin-right: -30px; }
293
293
 
294
- ._jOY7o {
295
- background-size: cover;
296
- opacity: 0;
297
- -webkit-animation: _wnn2_ 20s step-start infinite 0s;
298
- animation: _wnn2_ 20s step-start infinite 0s; }
299
-
300
- @-webkit-keyframes _wnn2_ {
294
+ ._30npl {
295
+ width: 100%;
296
+ height: 100%;
297
+ z-index: 1; }
298
+ ._30npl img {
299
+ width: 100%;
300
+ height: 100%;
301
+ -o-object-fit: cover;
302
+ object-fit: cover;
303
+ -o-object-position: center;
304
+ object-position: center;
305
+ position: absolute;
306
+ z-index: 1;
307
+ top: 0;
308
+ left: 0; }
309
+ ._30npl img._3oAH- {
310
+ z-index: 3; }
311
+ ._30npl img._3oAH-._16rY4 {
312
+ -webkit-animation: _26nbh 1s ease-in-out forwards;
313
+ animation: _26nbh 1s ease-in-out forwards; }
314
+ ._30npl img._3A7Vv {
315
+ z-index: 2; }
316
+
317
+ @-webkit-keyframes _26nbh {
301
318
  0% {
302
- opacity: 0;
303
- background-image: url("/images/landing-page.jpg"); }
304
- 50% {
305
- opacity: 1;
306
- background-image: url("/images/landing-page2.jpg"); }
319
+ opacity: 0; }
307
320
  100% {
308
- opacity: 2;
309
- background-image: url("/images/landing-page3.jpg"); } }
321
+ opacity: 1; } }
310
322
 
311
- @keyframes _wnn2_ {
323
+ @keyframes _26nbh {
312
324
  0% {
313
- opacity: 0;
314
- background-image: url("/images/landing-page.jpg"); }
315
- 50% {
316
- opacity: 1;
317
- background-image: url("/images/landing-page2.jpg"); }
325
+ opacity: 0; }
318
326
  100% {
319
- opacity: 2;
320
- background-image: url("/images/landing-page3.jpg"); } }
327
+ opacity: 1; } }
321
328
 
322
329
  ._F-hjL {
323
330
  background-color: #336dda;
@@ -331,6 +338,8 @@
331
338
  background-color: #336dda;
332
339
  overflow: hidden; } }
333
340
  ._F-hjL ._149oA {
341
+ position: relative;
342
+ z-index: 2;
334
343
  background: rgba(0, 0, 0, 0.57);
335
344
  height: 100%;
336
345
  padding: 20px 100px; }
package/dist/index.js CHANGED
@@ -2802,7 +2802,7 @@ function _catch(body, recover) {
2802
2802
  return result;
2803
2803
  }
2804
2804
 
2805
- var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","digital-privacy-icon":"_141p1","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","descriptions-icon":"_3SOdX","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","imageAnimation":"_wnn2_","login":"_F-hjL","login-content":"_149oA","logo-home":"_24U3W","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","popover__sort__item":"_1ocBa","popover__sort__item--active":"_18NhM","popover__search__icon":"_2bquW","popover__search__input":"_3A4G4","popover__options":"_1MsEW","button-export":"_2rTzM","button-content":"_18y0w","button-icon":"_3cZAT","hide-in-mobile":"_1INnO","hamburger-menu":"_2yRc8","box-content-home-page":"_ABUIP","collapse-box":"_WX97m","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","title":"_g-p72"};
2805
+ var styles = {"btn-login-google":"_2HqmH","notification-count":"_2sew7","text-introduction":"_3OgWF","btn-trans-border":"_r9cAh","contact":"_NszFe","learn-more":"_MDjzH","title-quote":"_1Swkw","descriptions-quote":"_gi8vj","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","digital-privacy-icon":"_141p1","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","descriptions-icon":"_3SOdX","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","form-user-name":"_39BJD","checkbox-remember":"_2K9b2","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","bg-animate":"_30npl","active":"_3oAH-","show":"_16rY4","fade-in":"_26nbh","behind":"_3A7Vv","login":"_F-hjL","login-content":"_149oA","logo-home":"_24U3W","img-box":"_2v-L_","img-login":"_3ncTL","img-login-rectangle":"_2kOvJ","c-main":"_39l0X","container-fluid":"_1BMwK","input-file-label":"_1XNpH","delete-avatar-button":"_1z5h9","header-logo":"_Gewcf","box-sidebar":"_2vcmv","sidebar-logo":"_1hXpy","sidebar-nav-links":"_3vb3s","c-active":"_36jSM","sidebar-nav-links-hover":"_DNrus","box-sidebar-header":"_3NEZj","box-logout":"_1wUDG","sidebar-btn-minimized":"_1S7Px","sidebar-logout":"_2P85D","nav-mobile":"_1qjbW","filter-media-file":"_1I62C","div":"_3cLcM","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","logout":"_1_9tV","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","popover__sort__item":"_1ocBa","popover__sort__item--active":"_18NhM","popover__search__icon":"_2bquW","popover__search__input":"_3A4G4","popover__options":"_1MsEW","button-export":"_2rTzM","button-content":"_18y0w","button-icon":"_3cZAT","hide-in-mobile":"_1INnO","hamburger-menu":"_2yRc8","box-content-home-page":"_ABUIP","collapse-box":"_WX97m","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","title":"_g-p72"};
2806
2806
 
2807
2807
  var style = {
2808
2808
  fontSize: "0.85rem"
@@ -4293,11 +4293,56 @@ var ContentHomePage = function ContentHomePage(_ref) {
4293
4293
  })));
4294
4294
  };
4295
4295
 
4296
+ var DEFAULT_ANIMATION_DURATION = 10000;
4297
+
4298
+ var BlockBackground = function BlockBackground(_ref) {
4299
+ var data = _ref.data,
4300
+ _ref$duration = _ref.duration,
4301
+ duration = _ref$duration === void 0 ? DEFAULT_ANIMATION_DURATION : _ref$duration;
4302
+
4303
+ var _useState = React.useState(data.length),
4304
+ activeImage = _useState[0],
4305
+ setActiveImage = _useState[1];
4306
+
4307
+ var ref = React.useRef();
4308
+ var getActiveClass = React.useCallback(function (index) {
4309
+ return index === activeImage ? styles["active"] + " " + styles["show"] : '';
4310
+ }, [activeImage]);
4311
+ var getBehindClass = React.useCallback(function (index) {
4312
+ return activeImage === 0 && index === data.length - 1 || index === activeImage - 1 ? styles["behind"] : '';
4313
+ }, [activeImage, data.length]);
4314
+ var animate = React.useCallback(function () {
4315
+ ref && ref.current && clearInterval(ref.current);
4316
+ ref.current = setInterval(function () {
4317
+ setActiveImage(function (state) {
4318
+ return state >= data.length - 1 ? 0 : state + 1;
4319
+ });
4320
+ }, duration);
4321
+ }, [duration, data.length]);
4322
+ React.useEffect(function () {
4323
+ animate();
4324
+ return function () {
4325
+ ref && ref.current && clearInterval(ref.current);
4326
+ };
4327
+ }, [data.length, duration]);
4328
+ return React__default.createElement("div", {
4329
+ className: styles["bg-animate"] + " position-absolute"
4330
+ }, data.map(function (img, index) {
4331
+ return React__default.createElement("img", {
4332
+ key: index,
4333
+ alt: "Image " + (index + 1),
4334
+ className: getBehindClass(index) + " " + getActiveClass(index),
4335
+ src: getStaticFileUrl(img)
4336
+ });
4337
+ }));
4338
+ };
4339
+
4296
4340
  var HOME_ADMIN = "/admin/users/user-list";
4297
4341
  var HOME_TEACHER = "/home";
4298
4342
  var HOME_STUDENT = "/home";
4299
4343
  var DASHBOARD_TITLE = "Dashboard";
4300
4344
  var ROOT_TITLE = "Mario Framework";
4345
+ var BG_IMAGES = ["images/landing-page.jpg", "images/landing-page2.jpg", "images/landing-page3.jpg"];
4301
4346
 
4302
4347
  var Dashboard = function Dashboard() {
4303
4348
  var _useState = React.useState(false),
@@ -4316,8 +4361,10 @@ var Dashboard = function Dashboard() {
4316
4361
  !!user ? document.title = DASHBOARD_TITLE : document.title = ROOT_TITLE;
4317
4362
  }, [user]);
4318
4363
  return React__default.createElement("div", {
4319
- className: styles["login"] + " " + styles["red-background"]
4320
- }, React__default.createElement("div", {
4364
+ className: styles["login"] + " " + styles["red-background"] + " position-relative"
4365
+ }, React__default.createElement(BlockBackground, {
4366
+ data: BG_IMAGES
4367
+ }), React__default.createElement("div", {
4321
4368
  className: "" + styles["login-content"]
4322
4369
  }, React__default.createElement(reactstrap.Navbar, {
4323
4370
  light: true,
@@ -4326,7 +4373,7 @@ var Dashboard = function Dashboard() {
4326
4373
  href: "/",
4327
4374
  className: "" + styles["logo-home"]
4328
4375
  }, React__default.createElement("img", {
4329
- src: "/images/logo-white.svg",
4376
+ src: getStaticFileUrl("/images/logo-white.svg"),
4330
4377
  alt: "mario"
4331
4378
  })), React__default.createElement(gi.GiHamburgerMenu, {
4332
4379
  onClick: toggle,
@@ -4365,7 +4412,7 @@ var Dashboard = function Dashboard() {
4365
4412
  href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
4366
4413
  target: "blank"
4367
4414
  }, React__default.createElement("img", {
4368
- src: "/images/STUDENT.png",
4415
+ src: getStaticFileUrl("/images/STUDENT.png"),
4369
4416
  alt: "icon"
4370
4417
  })))));
4371
4418
  };