mario-core 1.1.41-es-layout → 1.1.43-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;
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
2
  interface Props {
3
- srcIcon?: string;
4
- content?: string;
3
+ srcIcon: string;
4
+ content: string;
5
5
  }
6
6
  declare const IconContent: FC<Props>;
7
7
  export default IconContent;
@@ -1,6 +1,3 @@
1
- import { FC } from "react";
2
- interface Props {
3
- descriptions?: string;
4
- }
5
- declare const QuoteContent: FC<Props>;
1
+ /// <reference types="react" />
2
+ declare const QuoteContent: () => JSX.Element;
6
3
  export default QuoteContent;
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;
@@ -63,18 +62,20 @@
63
62
  color: #ffffff; }
64
63
 
65
64
  ._r9cAh {
66
- background-color: transparent;
67
- border: 2px #ffffff solid;
68
- border-radius: 10px;
65
+ background-color: #ffb04f;
66
+ border-radius: 100px;
69
67
  padding: 5px 40px;
70
68
  text-align: center;
71
69
  text-transform: uppercase;
72
- font-weight: 500;
73
- font-size: 22px;
70
+ font-weight: 600;
71
+ font-size: 20px;
72
+ color: #242424;
74
73
  cursor: pointer;
75
74
  display: inline-block; }
76
75
  ._r9cAh:hover {
77
- color: inherit; }
76
+ color: inherit;
77
+ background: #f5a037;
78
+ text-decoration: none; }
78
79
 
79
80
  ._NszFe,
80
81
  ._MDjzH {
@@ -170,8 +171,7 @@
170
171
  display: block;
171
172
  border: none;
172
173
  outline: none;
173
- width: 100%;
174
- font-family: "Poppins-Regular" !important; }
174
+ width: 100%; }
175
175
  @media (max-width: 768px) {
176
176
  ._3IL10 {
177
177
  padding: 10px 27px; } }
@@ -257,11 +257,48 @@
257
257
  font-weight: 500;
258
258
  text-align: center; }
259
259
 
260
- ._2rZY6 ._3SOdX {
261
- padding-left: 0; }
260
+ ._2rZY6 {
261
+ border-radius: 12px;
262
+ padding: 20px 50px;
263
+ margin-right: 20px;
264
+ height: 100%;
265
+ width: 280px; }
266
+ ._2rZY6 ._3SOdX > p {
267
+ font-size: 14px;
268
+ font-weight: 400;
269
+ margin-bottom: 0; }
270
+ ._2rZY6 ._3SOdX > p > span {
271
+ font-size: 14px;
272
+ font-weight: 600; }
273
+ ._2rZY6 ._y9lM2 > img {
274
+ height: 30px; }
262
275
 
263
- ._2rZY6 ._y9lM2 {
264
- padding-top: 10px; }
276
+ ._2rZY6:nth-child(1) {
277
+ background: #316cd9;
278
+ color: #ffffff; }
279
+
280
+ ._2rZY6:nth-child(2) {
281
+ background: #c54140;
282
+ color: #ffffff; }
283
+
284
+ ._2rZY6:nth-child(3) {
285
+ background: #73c8e5;
286
+ color: #242424; }
287
+
288
+ ._13Rk0 ._1Swkw > p {
289
+ font-size: 40px;
290
+ font-weight: 700;
291
+ text-align: center; }
292
+
293
+ ._13Rk0 ._gi8vj > p {
294
+ font-size: 16px;
295
+ font-weight: 600;
296
+ text-align: center; }
297
+
298
+ ._141p1 {
299
+ bottom: 20px;
300
+ position: absolute;
301
+ right: 100px; }
265
302
 
266
303
  ._1TT1q ._NszFe,
267
304
  ._1TT1q ._MDjzH {
@@ -351,7 +388,6 @@
351
388
  margin-top: 30px;
352
389
  color: #ffffff;
353
390
  font-weight: 500;
354
- font-family: "Poppins-Regular" !important;
355
391
  font-size: 18px;
356
392
  font-weight: 700;
357
393
  border-radius: 100px;
@@ -704,6 +740,103 @@
704
740
  font-size: 20px;
705
741
  padding: 10px 20px; }
706
742
 
743
+ ._30npl {
744
+ width: 100%;
745
+ height: 100%;
746
+ z-index: 1; }
747
+ ._30npl img {
748
+ width: 100%;
749
+ height: 100%;
750
+ -o-object-fit: cover;
751
+ object-fit: cover;
752
+ -o-object-position: center;
753
+ object-position: center;
754
+ position: absolute;
755
+ z-index: 1;
756
+ top: 0;
757
+ left: 0; }
758
+ ._30npl img._3oAH- {
759
+ z-index: 3; }
760
+ ._30npl img._3oAH-._16rY4 {
761
+ -webkit-animation: _26nbh 1s ease-in-out forwards;
762
+ animation: _26nbh 1s ease-in-out forwards; }
763
+ ._30npl img._3A7Vv {
764
+ z-index: 2; }
765
+
766
+ @media (max-width: 768px) {
767
+ ._2v-L_ {
768
+ display: none; }
769
+ ._wWIyO {
770
+ border-radius: 5px !important; }
771
+ ._38Lo1 {
772
+ width: 500px !important;
773
+ max-width: 95%; }
774
+ ._2yRc8 {
775
+ font-size: 30px;
776
+ color: #ffffff; }
777
+ ._149oA {
778
+ padding: 20px !important; }
779
+ ._13Rk0 ._1Swkw > p {
780
+ font-size: 40px;
781
+ font-weight: 700;
782
+ text-align: center; }
783
+ ._13Rk0 ._gi8vj > p {
784
+ font-size: 16px;
785
+ font-weight: 600;
786
+ text-align: center; }
787
+ ._141p1 {
788
+ right: 20px; }
789
+ ._ABUIP {
790
+ overflow-x: scroll;
791
+ -ms-overflow-style: none;
792
+ scrollbar-width: none; }
793
+ ._ABUIP::-webkit-scrollbar {
794
+ display: none; }
795
+ ._F-hjL ._1TT1q ._NszFe {
796
+ width: 70%;
797
+ border: #8b0000;
798
+ color: #ffffff;
799
+ max-width: 500px;
800
+ margin: 5px auto;
801
+ background-color: #8b0000;
802
+ border-radius: 10px;
803
+ padding: 5px 40px; }
804
+ ._F-hjL ._1TT1q ._MDjzH {
805
+ width: 70%;
806
+ border: #8b0000;
807
+ max-width: 500px;
808
+ margin: 5px auto;
809
+ border-radius: 10px;
810
+ color: #ffffff;
811
+ background-color: #8b0000;
812
+ padding: 5px 40px; }
813
+ ._F-hjL ._1TT1q ._r9cAh {
814
+ justify-content: center;
815
+ width: 70%;
816
+ max-width: 500px;
817
+ margin: 5px auto;
818
+ border: #8b0000;
819
+ color: #ffffff;
820
+ background-color: #8b0000; }
821
+ ._F-hjL ._1TT1q ._r9cAh :hover {
822
+ background-color: transparent;
823
+ color: #8b0000; }
824
+ ._1INnO {
825
+ display: none; }
826
+ ._WX97m {
827
+ padding: 10px 40px !important; }
828
+ ._WX97m {
829
+ background: #ffff;
830
+ padding: 20px;
831
+ margin-top: 10px; }
832
+ ._WX97m > ul > li > a {
833
+ width: 100% !important;
834
+ border: none !important;
835
+ color: #000000 !important;
836
+ background-color: #fff !important;
837
+ text-align: left;
838
+ padding: 0 !important; } }
839
+
707
840
  @media (max-width: 991px) {
708
841
  ._2v-L_ {
709
842
  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","content-quote":"_13Rk0","digital-privacy-icon":"_141p1","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","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","bg-animate":"_30npl","active":"_3oAH-","show":"_16rY4","fade-in":"_26nbh","behind":"_3A7Vv","hamburger-menu":"_2yRc8","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"
@@ -8878,55 +8879,45 @@ var Login = function Login(props) {
8878
8879
  }))));
8879
8880
  };
8880
8881
 
8881
- var QuoteContent = function QuoteContent(_ref) {
8882
- var descriptions = _ref.descriptions;
8882
+ var QuoteContent = function QuoteContent() {
8883
8883
  return React__default.createElement("div", {
8884
8884
  className: "" + styles["content-quote"]
8885
- }, React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
8886
- md: 5,
8887
- className: "" + styles["title-quote"]
8888
- }, React__default.createElement("p", null, "Powerful"), React__default.createElement("p", null, "Personalized"), React__default.createElement("p", null, "Learning")), React__default.createElement(reactstrap.Col, {
8889
- md: 7,
8890
- className: styles["descriptions-quote"] + " d-flex align-items-center"
8891
- }, React__default.createElement("p", null, descriptions))));
8885
+ }, React__default.createElement("div", {
8886
+ className: styles["title-quote"] + " d-block"
8887
+ }, React__default.createElement("p", null, "Powerful"), React__default.createElement("p", null, "Personalized"), React__default.createElement("p", null, "Learning")), React__default.createElement("div", {
8888
+ className: styles["descriptions-quote"] + " d-block"
8889
+ }, React__default.createElement("p", null, "Focus on what matters most to you and"), React__default.createElement("p", null, "make learning meaningful.")));
8892
8890
  };
8893
8891
 
8894
8892
  var IconContent = function IconContent(_ref) {
8895
8893
  var srcIcon = _ref.srcIcon,
8896
8894
  content = _ref.content;
8897
- return React__default.createElement(reactstrap.Row, {
8895
+ return React__default.createElement("div", {
8896
+ key: content,
8898
8897
  className: "" + styles["content-icon"]
8899
- }, React__default.createElement(reactstrap.Col, {
8900
- md: 4,
8898
+ }, React__default.createElement("div", {
8901
8899
  className: "" + styles["title-icon"]
8902
8900
  }, React__default.createElement("img", {
8903
- src: srcIcon,
8901
+ src: getStaticFileUrl(srcIcon),
8904
8902
  alt: "icon"
8905
- })), React__default.createElement(reactstrap.Col, {
8906
- md: 8,
8907
- className: styles["descriptions-icon"] + " d-flex align-items-center"
8908
- }, React__default.createElement("p", null, content)));
8903
+ })), React__default.createElement("div", {
8904
+ className: "" + styles["descriptions-icon"],
8905
+ dangerouslySetInnerHTML: {
8906
+ __html: content
8907
+ }
8908
+ }));
8909
8909
  };
8910
8910
 
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
- };
8911
+ var contents = [{
8912
+ scrIcon: "/images/ChatsTeardrop.svg",
8913
+ content: "<p>Understand yourself better through <span>helpful feedback</span>.</p>"
8914
+ }, {
8915
+ scrIcon: "/images/Student.svg",
8916
+ content: "<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"
8917
+ }, {
8918
+ scrIcon: "/images/Confetti.svg",
8919
+ content: "<p>Set, monitor, and achieve <span>your goals</span>.</p>"
8920
+ }];
8930
8921
 
8931
8922
  var ContentHomePage = function ContentHomePage(_ref) {
8932
8923
  _objectDestructuringEmpty(_ref);
@@ -8935,26 +8926,59 @@ var ContentHomePage = function ContentHomePage(_ref) {
8935
8926
  className: "" + styles["page-not-login"]
8936
8927
  }, React__default.createElement(reactstrap.Col, {
8937
8928
  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, {
8929
+ }, React__default.createElement(QuoteContent, null)), React__default.createElement(reactstrap.Col, {
8930
+ md: 12,
8931
+ className: styles["box-content-home-page"] + " d-flex align-items-center"
8932
+ }, contents.map(function (content) {
8933
+ return React__default.createElement(IconContent, {
8945
8934
  srcIcon: content.scrIcon,
8946
8935
  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
- }))));
8936
+ });
8937
+ })));
8938
+ };
8939
+
8940
+ var DEFAULT_ANIMATION_DURATION = 10001;
8941
+
8942
+ var BlockBackground = function BlockBackground(_ref) {
8943
+ var data = _ref.data,
8944
+ _ref$duration = _ref.duration,
8945
+ duration = _ref$duration === void 0 ? DEFAULT_ANIMATION_DURATION : _ref$duration;
8946
+
8947
+ var _useState = React.useState(data.length),
8948
+ activeImage = _useState[0],
8949
+ setActiveImage = _useState[1];
8950
+
8951
+ var ref = React.useRef();
8952
+ var getActiveClass = React.useCallback(function (index) {
8953
+ return index === activeImage ? styles["active"] + " " + styles["show"] : '';
8954
+ }, [activeImage]);
8955
+ var getBehindClass = React.useCallback(function (index) {
8956
+ return activeImage === 0 && index === data.length - 1 || index === activeImage - 1 ? styles["behind"] : '';
8957
+ }, [activeImage, data.length]);
8958
+ var animate = React.useCallback(function () {
8959
+ ref && ref.current && clearInterval(ref.current);
8960
+ ref.current = setInterval(function () {
8961
+ setActiveImage(function (state) {
8962
+ return state >= data.length - 1 ? 0 : state + 1;
8963
+ });
8964
+ }, duration);
8965
+ }, [duration, data.length]);
8966
+ React.useEffect(function () {
8967
+ animate();
8968
+ return function () {
8969
+ ref && ref.current && clearInterval(ref.current);
8970
+ };
8971
+ }, [data.length, duration]);
8972
+ return React__default.createElement("div", {
8973
+ className: styles["bg-animate"] + " position-absolute"
8974
+ }, data.map(function (img, index) {
8975
+ return React__default.createElement("img", {
8976
+ key: index,
8977
+ alt: "Image " + (index + 1),
8978
+ className: getBehindClass(index) + " " + getActiveClass(index),
8979
+ src: getStaticFileUrl(img)
8980
+ });
8981
+ }));
8958
8982
  };
8959
8983
 
8960
8984
  var HOME_ADMIN = "/admin/users/user-list";
@@ -8962,41 +8986,79 @@ var HOME_TEACHER = "/home";
8962
8986
  var HOME_STUDENT = "/home";
8963
8987
  var DASHBOARD_TITLE = "Dashboard";
8964
8988
  var ROOT_TITLE = "Mario Framework";
8989
+ var BG_IMAGES = ["images/landing-page.jpg", "images/landing-page2.jpg", "images/landing-page3.jpg"];
8965
8990
 
8966
8991
  var Dashboard = function Dashboard() {
8967
8992
  var user = reactRedux.useSelector(function (state) {
8968
8993
  return state.common.user;
8969
8994
  });
8995
+
8996
+ var _useState = React.useState(false),
8997
+ isOpen = _useState[0],
8998
+ setIsOpen = _useState[1];
8999
+
9000
+ var toggle = function toggle() {
9001
+ return setIsOpen(!isOpen);
9002
+ };
9003
+
8970
9004
  React.useEffect(function () {
8971
9005
  !!user ? document.title = DASHBOARD_TITLE : document.title = ROOT_TITLE;
8972
9006
  }, [user]);
8973
9007
  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",
9008
+ className: styles["login"] + " " + styles["red-background"] + " position-relative"
9009
+ }, React__default.createElement(BlockBackground, {
9010
+ data: BG_IMAGES
9011
+ }), React__default.createElement("div", {
9012
+ className: "" + styles["login-content"]
9013
+ }, React__default.createElement(reactstrap.Navbar, {
9014
+ light: true,
9015
+ expand: "md"
9016
+ }, React__default.createElement(reactstrap.NavbarBrand, {
9017
+ href: "/",
9018
+ className: "" + styles["logo-home"]
9019
+ }, React__default.createElement("img", {
9020
+ src: getStaticFileUrl("/images/logo-white.svg"),
9021
+ alt: "mario"
9022
+ })), React__default.createElement(gi.GiHamburgerMenu, {
9023
+ onClick: toggle,
9024
+ className: styles["hide-in-desktop"] + " " + styles["hamburger-menu"]
9025
+ }), React__default.createElement(reactstrap.Collapse, {
9026
+ isOpen: isOpen,
9027
+ navbar: true,
9028
+ className: "" + styles["collapse-box"]
9029
+ }, React__default.createElement(reactstrap.Nav, {
9030
+ className: styles["nav-home"] + " d-md-flex w-100 justify-content-center mr-auto",
9031
+ navbar: true
9032
+ }, React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactstrap.NavLink, {
9033
+ className: styles["learn-more"] + " align-self-md-center",
9034
+ href: "https://marioframework.com/software",
8980
9035
  target: "blank"
8981
- }, "Privacy Policy"), React__default.createElement(reactRouterDom.Link, {
8982
- className: styles["contact"] + " align-self-lg-center",
9036
+ }, "Learn More")), React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactRouterDom.Link, {
9037
+ className: styles["contact"] + " align-self-md-center",
8983
9038
  to: "/contact"
8984
- }, "Contact"), React__default.createElement("a", {
8985
- className: styles["learn-more"] + " align-self-lg-center",
8986
- href: "https://marioframework.com/software",
9039
+ }, "Contact")), React__default.createElement(reactstrap.NavItem, null, React__default.createElement(reactstrap.NavLink, {
9040
+ className: styles["learn-more"] + " align-self-md-center",
9041
+ href: "/privacy-policy",
8987
9042
  target: "blank"
8988
- }, "Learn More"), user ? React__default.createElement(reactRouterDom.Link, {
9043
+ }, "Privacy Policy"))), React__default.createElement("div", {
9044
+ className: styles["hide-in-mobile"] + " d-flex justify-content-end"
9045
+ }, user ? React__default.createElement(reactRouterDom.Link, {
8989
9046
  to: user.roles.includes("Admin") ? HOME_ADMIN : user.roles.includes("Teacher") ? HOME_TEACHER : HOME_STUDENT,
8990
9047
  className: "" + styles["btn-trans-border"]
8991
9048
  }, "Dashboard") : React__default.createElement(reactRouterDom.Link, {
8992
9049
  to: "/login",
8993
9050
  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))));
9051
+ }, "Login")))), React__default.createElement("div", {
9052
+ className: ""
9053
+ }, React__default.createElement(ContentHomePage, null)), React__default.createElement("div", {
9054
+ className: "" + styles["digital-privacy-icon"]
9055
+ }, React__default.createElement("a", {
9056
+ href: "https://cert.privo.com/#/companies/marioFrameworkLlc",
9057
+ target: "blank"
9058
+ }, React__default.createElement("img", {
9059
+ src: getStaticFileUrl("/images/STUDENT1.png"),
9060
+ alt: "icon"
9061
+ })))));
9000
9062
  };
9001
9063
 
9002
9064
  var Images = {