mario-core 1.1.41-es-layout → 1.1.42-es-layout

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
@@ -16,7 +16,6 @@
16
16
  box-shadow: none !important;
17
17
  background-color: #EFF3FC !important; }
18
18
  ._2HqmH > span {
19
- font-family: "Poppins-Regular" !important;
20
19
  color: #316CD9 !important;
21
20
  line-height: 27px !important;
22
21
  font-size: 18px !important;
@@ -170,8 +169,7 @@
170
169
  display: block;
171
170
  border: none;
172
171
  outline: none;
173
- width: 100%;
174
- font-family: "Poppins-Regular" !important; }
172
+ width: 100%; }
175
173
  @media (max-width: 768px) {
176
174
  ._3IL10 {
177
175
  padding: 10px 27px; } }
@@ -351,7 +349,6 @@
351
349
  margin-top: 30px;
352
350
  color: #ffffff;
353
351
  font-weight: 500;
354
- font-family: "Poppins-Regular" !important;
355
352
  font-size: 18px;
356
353
  font-weight: 700;
357
354
  border-radius: 100px;
@@ -704,6 +701,80 @@
704
701
  font-size: 20px;
705
702
  padding: 10px 20px; }
706
703
 
704
+ @media (max-width: 768px) {
705
+ ._2v-L_ {
706
+ display: none; }
707
+ ._wWIyO {
708
+ border-radius: 5px !important; }
709
+ ._38Lo1 {
710
+ width: 500px !important;
711
+ max-width: 95%; }
712
+ ._2yRc8 {
713
+ font-size: 30px;
714
+ color: #ffffff; }
715
+ ._149oA {
716
+ padding: 20px !important; }
717
+ ._13Rk0 ._1Swkw > p {
718
+ font-size: 40px;
719
+ font-weight: 700;
720
+ text-align: center; }
721
+ ._13Rk0 ._gi8vj > p {
722
+ font-size: 16px;
723
+ font-weight: 600;
724
+ text-align: center; }
725
+ ._141p1 {
726
+ right: 20px; }
727
+ ._ABUIP {
728
+ overflow-x: scroll;
729
+ -ms-overflow-style: none;
730
+ scrollbar-width: none; }
731
+ ._ABUIP::-webkit-scrollbar {
732
+ display: none; }
733
+ ._F-hjL ._1TT1q ._NszFe {
734
+ width: 70%;
735
+ border: #8b0000;
736
+ color: #ffffff;
737
+ max-width: 500px;
738
+ margin: 5px auto;
739
+ background-color: #8b0000;
740
+ border-radius: 10px;
741
+ padding: 5px 40px; }
742
+ ._F-hjL ._1TT1q ._MDjzH {
743
+ width: 70%;
744
+ border: #8b0000;
745
+ max-width: 500px;
746
+ margin: 5px auto;
747
+ border-radius: 10px;
748
+ color: #ffffff;
749
+ background-color: #8b0000;
750
+ padding: 5px 40px; }
751
+ ._F-hjL ._1TT1q ._r9cAh {
752
+ justify-content: center;
753
+ width: 70%;
754
+ max-width: 500px;
755
+ margin: 5px auto;
756
+ border: #8b0000;
757
+ color: #ffffff;
758
+ background-color: #8b0000; }
759
+ ._F-hjL ._1TT1q ._r9cAh :hover {
760
+ background-color: transparent;
761
+ color: #8b0000; }
762
+ ._1INnO {
763
+ display: none; }
764
+ ._WX97m {
765
+ padding: 10px 40px !important; }
766
+ ._WX97m {
767
+ background: #ffff;
768
+ padding: 20px;
769
+ margin-top: 10px; }
770
+ ._WX97m > ul > li > a {
771
+ width: 100% !important;
772
+ border: none !important;
773
+ color: #000000 !important;
774
+ background-color: #fff !important;
775
+ text-align: left;
776
+ padding: 0 !important; } }
777
+
707
778
  @media (max-width: 991px) {
708
779
  ._2v-L_ {
709
780
  display: none; }
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ var axios = _interopDefault(require('axios'));
15
15
  var reactGoogleRecaptchaV3 = require('react-google-recaptcha-v3');
16
16
  var GoogleLogin = _interopDefault(require('react-google-login'));
17
17
  var Select = _interopDefault(require('react-select'));
18
+ var gi = require('react-icons/gi');
18
19
  var react = require('@coreui/react');
19
20
  var cg = require('react-icons/cg');
20
21
  var ri = require('react-icons/ri');
@@ -7406,7 +7407,7 @@ function _catch(body, recover) {
7406
7407
  return result;
7407
7408
  }
7408
7409
 
7409
- 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","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","school-icon":"_2OUwW","school-name":"_2Owso","login-description":"_fx-kA","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","privacy-policy":"_I4SVu","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","checkbox-keep-login":"_1AiX0","label-keep-login":"_2uNvW","option-text":"_pqn4y","form-user-name":"_39BJD","input":"_ozRAq","checkbox-remember":"_2K9b2","btn-rounder":"_2VvIr","btn-active":"_2A0HF","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","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","hide-in-mobile":"_1INnO","popover__sort__item":"_1ocBa","popover__sort__item--active":"_18NhM","popover__search__icon":"_2bquW","popover__search__input":"_3A4G4","popover__options":"_1MsEW","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","title":"_g-p72","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
7410
+ 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","descriptions-icon":"_3SOdX","box-login":"_38Lo1","block-verification":"_1OzGy","block-login":"_wWIyO","title-login":"_3nuns","title-forgot-password":"_21qb6","btn-close":"_NhW9l","btn-login":"_3IL10","school-icon":"_2OUwW","school-name":"_2Owso","login-description":"_fx-kA","return-to-login":"_Ce3Kg","recover-account":"_2t6d9","link-to-login":"_3bDsd","privacy-policy":"_I4SVu","remember":"_11FZt","term-and-conditions":"_3LXoI","descriptions-forgot-pass":"_PMcjT","content-icon":"_2rZY6","title-icon":"_y9lM2","nav-home":"_1TT1q","box-introduction":"_32V6L","icon":"_20YJX","checkbox-keep-login":"_1AiX0","label-keep-login":"_2uNvW","option-text":"_pqn4y","form-user-name":"_39BJD","input":"_ozRAq","checkbox-remember":"_2K9b2","btn-rounder":"_2VvIr","btn-active":"_2A0HF","block-reset-password":"_23Sua","block-forgot-pass":"_3CWP6","page-not-login":"_3Wmco","content-quote":"_13Rk0","home-page":"_o6HKW","red-background":"_jOY7o","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","hide-in-mobile":"_1INnO","popover__sort__item":"_1ocBa","popover__sort__item--active":"_18NhM","popover__search__icon":"_2bquW","popover__search__input":"_3A4G4","popover__options":"_1MsEW","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","title":"_g-p72","hamburger-menu":"_2yRc8","digital-privacy-icon":"_141p1","box-content-home-page":"_ABUIP","collapse-box":"_WX97m","hide-in-desktop":"_2LIqK","control-input":"_2Zz97","custom-control":"_3-yp5"};
7410
7411
 
7411
7412
  var style = {
7412
7413
  fontSize: "0.85rem"
@@ -8446,7 +8447,7 @@ var BlockLogin = function BlockLogin(_ref) {
8446
8447
  }, "Forgot password?")), React__default.createElement("button", {
8447
8448
  className: styles["btn-login"] + " mt-5",
8448
8449
  type: "submit"
8449
- }, "LOG IN"), React__default.createElement("p", {
8450
+ }, "LOG IN"), googleClientId && React__default.createElement("p", {
8450
8451
  className: styles["option-text"] + " my-3 text-center"
8451
8452
  }, "OR"), React__default.createElement(reactstrap.Row, {
8452
8453
  className: "mb-4"
@@ -8908,25 +8909,16 @@ var IconContent = function IconContent(_ref) {
8908
8909
  }, React__default.createElement("p", null, content)));
8909
8910
  };
8910
8911
 
8911
- var data = {
8912
- quote: {
8913
- title: "Powerful Personalized Learning",
8914
- description: "Focus on what matters most to you and make learning meaningful."
8915
- },
8916
- contents: [{
8917
- scrIcon: "/images/177_2_Finance.svg",
8918
- content: "Understand yourself better through helpful feedback."
8919
- }, {
8920
- scrIcon: "/images/177_9_Brain.svg",
8921
- content: "Create, explore, and share exciting personalized learning journeys."
8922
- }, {
8923
- scrIcon: "/images/177_6_Goal.svg",
8924
- content: "Set, monitor, and achieve your goals."
8925
- }, {
8926
- scrIcon: "/images/177_8_Space.svg",
8927
- content: "Empower parents to become part of the learning process."
8928
- }]
8929
- };
8912
+ var contents = [{
8913
+ scrIcon: "/images/ChatsTeardrop.svg",
8914
+ content: "<p>Understand yourself better through <span>helpful feedback</span>.</p>"
8915
+ }, {
8916
+ scrIcon: "/images/Student.svg",
8917
+ content: "<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"
8918
+ }, {
8919
+ scrIcon: "/images/Confetti.svg",
8920
+ content: "<p>Set, monitor, and achieve <span>your goals</span>.</p>"
8921
+ }];
8930
8922
 
8931
8923
  var ContentHomePage = function ContentHomePage(_ref) {
8932
8924
  _objectDestructuringEmpty(_ref);
@@ -8935,26 +8927,59 @@ var ContentHomePage = function ContentHomePage(_ref) {
8935
8927
  className: "" + styles["page-not-login"]
8936
8928
  }, React__default.createElement(reactstrap.Col, {
8937
8929
  md: 12
8938
- }, React__default.createElement(QuoteContent, {
8939
- descriptions: data.quote.description
8940
- })), data.contents.map(function (content, index) {
8941
- return React__default.createElement(reactstrap.Col, {
8942
- md: 6,
8943
- key: index
8944
- }, React__default.createElement(IconContent, {
8930
+ }, React__default.createElement(QuoteContent, null)), React__default.createElement(reactstrap.Col, {
8931
+ md: 12,
8932
+ className: styles["box-content-home-page"] + " d-flex align-items-center"
8933
+ }, contents.map(function (content) {
8934
+ return React__default.createElement(IconContent, {
8945
8935
  srcIcon: content.scrIcon,
8946
8936
  content: content.content
8947
- }));
8948
- }), React__default.createElement(reactstrap.Col, {
8949
- md: 12,
8950
- className: styles["student-image"] + " d-flex justify-content-end mt-5"
8951
- }, React__default.createElement("a", {
8952
- href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
8953
- target: "blank"
8954
- }, React__default.createElement(IconContent, {
8955
- srcIcon: "/images/STUDENT.png",
8956
- content: ""
8957
- }))));
8937
+ });
8938
+ })));
8939
+ };
8940
+
8941
+ var DEFAULT_ANIMATION_DURATION = 10000;
8942
+
8943
+ var BlockBackground = function BlockBackground(_ref) {
8944
+ var data = _ref.data,
8945
+ _ref$duration = _ref.duration,
8946
+ duration = _ref$duration === void 0 ? DEFAULT_ANIMATION_DURATION : _ref$duration;
8947
+
8948
+ var _useState = React.useState(data.length),
8949
+ activeImage = _useState[0],
8950
+ setActiveImage = _useState[1];
8951
+
8952
+ var ref = React.useRef();
8953
+ var getActiveClass = React.useCallback(function (index) {
8954
+ return index === activeImage ? styles["active"] + " " + styles["show"] : '';
8955
+ }, [activeImage]);
8956
+ var getBehindClass = React.useCallback(function (index) {
8957
+ return activeImage === 0 && index === data.length - 1 || index === activeImage - 1 ? styles["behind"] : '';
8958
+ }, [activeImage, data.length]);
8959
+ var animate = React.useCallback(function () {
8960
+ ref && ref.current && clearInterval(ref.current);
8961
+ ref.current = setInterval(function () {
8962
+ setActiveImage(function (state) {
8963
+ return state >= data.length - 1 ? 0 : state + 1;
8964
+ });
8965
+ }, duration);
8966
+ }, [duration, data.length]);
8967
+ React.useEffect(function () {
8968
+ animate();
8969
+ return function () {
8970
+ ref && ref.current && clearInterval(ref.current);
8971
+ };
8972
+ }, [data.length, duration]);
8973
+ return React__default.createElement("div", {
8974
+ className: styles["bg-animate"] + " position-absolute"
8975
+ }, data.map(function (img, index) {
8976
+ return React__default.createElement("img", {
8977
+ key: index,
8978
+ alt: "Image " + (index + 1),
8979
+ className: getBehindClass(index) + " " + getActiveClass(index),
8980
+ src: getStaticFileUrl(img)
8981
+ });
8982
+ }));
8958
8983
  };
8959
8984
 
8960
8985
  var HOME_ADMIN = "/admin/users/user-list";
@@ -8962,41 +8987,79 @@ var HOME_TEACHER = "/home";
8962
8987
  var HOME_STUDENT = "/home";
8963
8988
  var DASHBOARD_TITLE = "Dashboard";
8964
8989
  var ROOT_TITLE = "Mario Framework";
8990
+ var BG_IMAGES = ["images/landing-page.jpg", "images/landing-page2.jpg", "images/landing-page3.jpg"];
8965
8991
 
8966
8992
  var Dashboard = function Dashboard() {
8967
8993
  var user = reactRedux.useSelector(function (state) {
8968
8994
  return state.common.user;
8969
8995
  });
8996
+
8997
+ var _useState = React.useState(false),
8998
+ isOpen = _useState[0],
8999
+ setIsOpen = _useState[1];
9000
+
9001
+ var toggle = function toggle() {
9002
+ return setIsOpen(!isOpen);
9003
+ };
9004
+
8970
9005
  React.useEffect(function () {
8971
9006
  !!user ? document.title = DASHBOARD_TITLE : document.title = ROOT_TITLE;
8972
9007
  }, [user]);
8973
9008
  return React__default.createElement("div", {
8974
- className: styles["login"] + " " + styles["red-background"]
8975
- }, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
8976
- className: styles["nav-home"] + " d-flex w-100"
8977
- }, React__default.createElement("a", {
8978
- className: styles["learn-more"] + " align-self-lg-center",
8979
- href: "/privacy-policy",
9009
+ className: styles["login"] + " " + styles["red-background"] + " position-relative"
9010
+ }, React__default.createElement(BlockBackground, {
9011
+ data: BG_IMAGES
9012
+ }), React__default.createElement("div", {
9013
+ className: "" + styles["login-content"]
9014
+ }, React__default.createElement(reactstrap.Navbar, {
9015
+ light: true,
9016
+ expand: "md"
9017
+ }, React__default.createElement(reactstrap.NavbarBrand, {
9018
+ href: "/",
9019
+ className: "" + styles["logo-home"]
9020
+ }, React__default.createElement("img", {
9021
+ src: getStaticFileUrl("/images/logo-white.svg"),
9022
+ alt: "mario"
9023
+ })), React__default.createElement(gi.GiHamburgerMenu, {
9024
+ onClick: toggle,
9025
+ className: styles["hide-in-desktop"] + " " + styles["hamburger-menu"]
9026
+ }), React__default.createElement(reactstrap.Collapse, {
9027
+ isOpen: isOpen,
9028
+ navbar: true,
9029
+ className: "" + styles["collapse-box"]
9030
+ }, React__default.createElement(reactstrap.Nav, {
9031
+ className: styles["nav-home"] + " d-md-flex w-100 justify-content-center mr-auto",
9032
+ navbar: true
9033
+ }, React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactstrap.NavLink, {
9034
+ className: styles["learn-more"] + " align-self-md-center",
9035
+ href: "https://marioframework.com/software",
8980
9036
  target: "blank"
8981
- }, "Privacy Policy"), React__default.createElement(reactRouterDom.Link, {
8982
- className: styles["contact"] + " align-self-lg-center",
9037
+ }, "Learn More")), React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactRouterDom.Link, {
9038
+ className: styles["contact"] + " align-self-md-center",
8983
9039
  to: "/contact"
8984
- }, "Contact"), React__default.createElement("a", {
8985
- className: styles["learn-more"] + " align-self-lg-center",
8986
- href: "https://marioframework.com/software",
9040
+ }, "Contact")), React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactstrap.NavLink, {
9041
+ className: styles["learn-more"] + " align-self-md-center",
9042
+ href: "/privacy-policy",
8987
9043
  target: "blank"
8988
- }, "Learn More"), user ? React__default.createElement(reactRouterDom.Link, {
9044
+ }, "Privacy Policy"))), React__default.createElement("div", {
9045
+ className: styles["hide-in-mobile"] + " d-flex justify-content-end"
9046
+ }, user ? React__default.createElement(reactRouterDom.Link, {
8989
9047
  to: user.roles.includes("Admin") ? HOME_ADMIN : user.roles.includes("Teacher") ? HOME_TEACHER : HOME_STUDENT,
8990
9048
  className: "" + styles["btn-trans-border"]
8991
9049
  }, "Dashboard") : React__default.createElement(reactRouterDom.Link, {
8992
9050
  to: "/login",
8993
9051
  className: "" + styles["btn-trans-border"]
8994
- }, "Login"))), React__default.createElement(reactstrap.Row, {
8995
- className: styles["hide-in-mobile"] + " " + styles["hide-in-tablet"]
8996
- }, React__default.createElement(reactstrap.Col, {
8997
- md: 6,
8998
- className: "offset-6 d-flex justify-content-center"
8999
- }, React__default.createElement(ContentHomePage, null))));
9052
+ }, "Login")))), React__default.createElement("div", {
9053
+ className: ""
9054
+ }, React__default.createElement(ContentHomePage, null)), React__default.createElement("div", {
9055
+ className: "" + styles["digital-privacy-icon"]
9056
+ }, React__default.createElement("a", {
9057
+ href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
9058
+ target: "blank"
9059
+ }, React__default.createElement("img", {
9060
+ src: getStaticFileUrl("/images/STUDENT1.png"),
9061
+ alt: "icon"
9062
+ })))));
9000
9063
  };
9001
9064
 
9002
9065
  var Images = {