namirasoft-site-react 1.2.34 → 1.2.36

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.
Files changed (122) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/App.js.map +1 -1
  3. package/dist/components/NSButtonGreen.d.ts +2 -0
  4. package/dist/components/NSButtonGreen.js +1 -0
  5. package/dist/components/NSButtonGreen.js.map +1 -1
  6. package/dist/components/NSButtonRed.js +1 -0
  7. package/dist/components/NSButtonRed.js.map +1 -1
  8. package/dist/components/NSCard.d.ts +20 -0
  9. package/dist/components/NSCard.js +13 -0
  10. package/dist/components/NSCard.js.map +1 -0
  11. package/dist/components/NSCard.module.css +85 -0
  12. package/dist/components/NSFooter.js +4 -2
  13. package/dist/components/NSFooter.js.map +1 -1
  14. package/dist/components/NSFooter.module.css +86 -20
  15. package/dist/components/NSHeader.js +4 -6
  16. package/dist/components/NSHeader.js.map +1 -1
  17. package/dist/components/NSHeader.module.css +56 -2
  18. package/dist/components/NSInputDate.js +2 -1
  19. package/dist/components/NSInputDate.js.map +1 -1
  20. package/dist/components/NSInputDate.module.css +30 -26
  21. package/dist/components/NSInputDuration.js +1 -0
  22. package/dist/components/NSInputDuration.js.map +1 -1
  23. package/dist/components/NSInputEmail.js +1 -0
  24. package/dist/components/NSInputEmail.js.map +1 -1
  25. package/dist/components/NSInputFloat.js +1 -0
  26. package/dist/components/NSInputFloat.js.map +1 -1
  27. package/dist/components/NSInputFloat.module.css +7 -4
  28. package/dist/components/NSInputIP.js +1 -0
  29. package/dist/components/NSInputIP.js.map +1 -1
  30. package/dist/components/NSInputIP.module.css +6 -3
  31. package/dist/components/NSInputInteger.js +1 -0
  32. package/dist/components/NSInputInteger.js.map +1 -1
  33. package/dist/components/NSInputPhone.js +1 -0
  34. package/dist/components/NSInputPhone.js.map +1 -1
  35. package/dist/components/NSInputPhone.module.css +10 -7
  36. package/dist/components/NSInputPrice.js +1 -0
  37. package/dist/components/NSInputPrice.js.map +1 -1
  38. package/dist/components/NSInputPrice.module.css +6 -3
  39. package/dist/components/NSInputSearch.js +1 -0
  40. package/dist/components/NSInputSearch.js.map +1 -1
  41. package/dist/components/NSInputString.js +1 -0
  42. package/dist/components/NSInputString.js.map +1 -1
  43. package/dist/components/NSInputString.module.css +6 -3
  44. package/dist/components/NSInputText.js +1 -0
  45. package/dist/components/NSInputText.js.map +1 -1
  46. package/dist/components/NSInputText.module.css +6 -3
  47. package/dist/components/NSInputTime.js +1 -0
  48. package/dist/components/NSInputTime.js.map +1 -1
  49. package/dist/components/NSInputTime.module.css +6 -3
  50. package/dist/components/NSLayout.d.ts +2 -6
  51. package/dist/components/NSLayout.js +2 -5
  52. package/dist/components/NSLayout.js.map +1 -1
  53. package/dist/components/NSLayout.module.css +7 -0
  54. package/dist/components/NSLayoutHeroBanner.d.ts +12 -0
  55. package/dist/components/NSLayoutHeroBanner.js +8 -0
  56. package/dist/components/NSLayoutHeroBanner.js.map +1 -0
  57. package/dist/components/NSLayoutHeroBanner.module.css +44 -0
  58. package/dist/components/NSLayoutTitle.d.ts +10 -0
  59. package/dist/components/NSLayoutTitle.js +6 -0
  60. package/dist/components/NSLayoutTitle.js.map +1 -0
  61. package/dist/components/NSLinkGreen.js +1 -0
  62. package/dist/components/NSLinkGreen.js.map +1 -1
  63. package/dist/components/NSLinkRed.js +1 -0
  64. package/dist/components/NSLinkRed.js.map +1 -1
  65. package/dist/components/NSPagination.js +1 -0
  66. package/dist/components/NSPagination.js.map +1 -1
  67. package/dist/components/NSParentCard.module.css +35 -0
  68. package/dist/components/NSSelectBox.js +1 -0
  69. package/dist/components/NSSelectBox.js.map +1 -1
  70. package/dist/components/NSSelectBox.module.css +6 -2
  71. package/dist/components/NSTable.js +1 -0
  72. package/dist/components/NSTable.js.map +1 -1
  73. package/dist/main.d.ts +3 -0
  74. package/dist/main.js +3 -0
  75. package/dist/main.js.map +1 -1
  76. package/dist/pages/NSLoginPage.js +1 -0
  77. package/dist/pages/NSLoginPage.js.map +1 -1
  78. package/package.json +7 -7
  79. package/src/App.tsx +3 -2
  80. package/src/components/NSButtonGreen.tsx +4 -0
  81. package/src/components/NSButtonRed.tsx +2 -0
  82. package/src/components/NSCard.module.css +85 -0
  83. package/src/components/NSCard.tsx +54 -0
  84. package/src/components/NSFooter.module.css +86 -20
  85. package/src/components/NSFooter.tsx +21 -20
  86. package/src/components/NSHeader.module.css +56 -2
  87. package/src/components/NSHeader.tsx +14 -14
  88. package/src/components/NSInputDate.module.css +30 -26
  89. package/src/components/NSInputDate.tsx +4 -1
  90. package/src/components/NSInputDuration.tsx +2 -0
  91. package/src/components/NSInputEmail.tsx +2 -0
  92. package/src/components/NSInputFloat.module.css +7 -4
  93. package/src/components/NSInputFloat.tsx +2 -0
  94. package/src/components/NSInputIP.module.css +6 -3
  95. package/src/components/NSInputIP.tsx +2 -0
  96. package/src/components/NSInputInteger.tsx +2 -0
  97. package/src/components/NSInputPhone.module.css +10 -7
  98. package/src/components/NSInputPhone.tsx +2 -0
  99. package/src/components/NSInputPrice.module.css +6 -3
  100. package/src/components/NSInputPrice.tsx +2 -0
  101. package/src/components/NSInputSearch.tsx +2 -0
  102. package/src/components/NSInputString.module.css +6 -3
  103. package/src/components/NSInputString.tsx +2 -0
  104. package/src/components/NSInputText.module.css +6 -3
  105. package/src/components/NSInputText.tsx +2 -0
  106. package/src/components/NSInputTime.module.css +6 -3
  107. package/src/components/NSInputTime.tsx +2 -0
  108. package/src/components/NSLayout.module.css +7 -0
  109. package/src/components/NSLayout.tsx +18 -27
  110. package/src/components/NSLayoutHeroBanner.module.css +44 -0
  111. package/src/components/NSLayoutHeroBanner.tsx +84 -0
  112. package/src/components/NSLayoutTitle.tsx +24 -0
  113. package/src/components/NSLinkGreen.tsx +2 -0
  114. package/src/components/NSLinkRed.tsx +2 -0
  115. package/src/components/NSPagination.tsx +2 -0
  116. package/src/components/NSParentCard.module.css +35 -0
  117. package/src/components/NSParentCard.tsx.temp +59 -0
  118. package/src/components/NSSelectBox.module.css +6 -2
  119. package/src/components/NSSelectBox.tsx +2 -0
  120. package/src/components/NSTable.tsx +2 -0
  121. package/src/main.ts +4 -0
  122. package/src/pages/NSLoginPage.tsx +2 -0
@@ -7,18 +7,22 @@
7
7
  height: 48px;
8
8
  width: 304px !important;
9
9
  }
10
- .ns_input_select span span svg path{
10
+
11
+ .ns_input_select span span svg path {
11
12
  height: 24px !important;
12
13
  width: 24px !important;
13
14
  }
15
+
14
16
  .ns_input_select span span svg {
15
17
  height: 24px !important;
16
18
  width: 24px !important;
17
19
  }
18
- .ns_input_select span span span svg path{
20
+
21
+ .ns_input_select span span span svg path {
19
22
  height: 12px !important;
20
23
  width: 12px !important;
21
24
  }
25
+
22
26
  .ns_input_select span span span svg {
23
27
  height: 12px !important;
24
28
  width: 12px !important;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import "./NSTable.modules.css";
3
4
  import { Component } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":";AAAA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBlC,MAAM,OAAO,OAAiB,SAAQ,SAA2C;IAE7E,YAAY,KAAsB;QAE9B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC9D,CAAC;IACD,UAAU,CAAC,OAAkC;QAEzC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,CAAC,IAAe;QAEnB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,IAAI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SButtonRed";
3
+ export * from "./components/NSCard";
3
4
  export * from "./components/NSFooter";
4
5
  export * from "./components/NSHeader";
5
6
  export * from "./components/NSInputDate";
@@ -15,6 +16,8 @@ export * from "./components/NSInputString";
15
16
  export * from "./components/NSInputText";
16
17
  export * from "./components/NSInputTime";
17
18
  export * from "./components/NSLayout";
19
+ export * from "./components/NSLayoutHeroBanner";
20
+ export * from "./components/NSLayoutTitle";
18
21
  export * from "./components/NSSelectBox";
19
22
  export * from "./components/NSLinkGreen";
20
23
  export * from "./components/NSLinkRed";
package/dist/main.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./components/NSButtonGreen";
2
2
  export * from "./components/NSButtonRed";
3
+ export * from "./components/NSCard";
3
4
  export * from "./components/NSFooter";
4
5
  export * from "./components/NSHeader";
5
6
  export * from "./components/NSInputDate";
@@ -15,6 +16,8 @@ export * from "./components/NSInputString";
15
16
  export * from "./components/NSInputText";
16
17
  export * from "./components/NSInputTime";
17
18
  export * from "./components/NSLayout";
19
+ export * from "./components/NSLayoutHeroBanner";
20
+ export * from "./components/NSLayoutTitle";
18
21
  export * from "./components/NSSelectBox";
19
22
  export * from "./components/NSLinkGreen";
20
23
  export * from "./components/NSLinkRed";
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
3
  import "./NSLoginPage.modules.css";
3
4
  import { Component } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[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"./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "dependencies": {
7
- "@types/node": "^20.11.5",
8
- "@types/react": "^18.2.48",
9
- "@types/react-dom": "^18.2.18",
10
- "antd": "^5.13.2",
7
+ "@types/node": "^20.11.17",
8
+ "@types/react": "^18.2.55",
9
+ "@types/react-dom": "^18.2.19",
10
+ "antd": "^5.14.0",
11
11
  "bootstrap": "^5.3.2",
12
12
  "link-react": "^3.0.0",
13
13
  "namirasoft-api-link": "^1.2.3",
@@ -15,11 +15,11 @@
15
15
  "path-browserify": "^1.0.1",
16
16
  "react": "^18.2.0",
17
17
  "react-app-rewired": "^2.2.1",
18
- "react-bootstrap": "^2.10.0",
18
+ "react-bootstrap": "^2.10.1",
19
19
  "react-dom": "^18.2.0",
20
20
  "react-phone-input-2": "^2.15.1",
21
21
  "react-phone-number-input": "^3.3.9",
22
- "react-router-dom": "^6.21.3",
22
+ "react-router-dom": "^6.22.0",
23
23
  "react-scripts": "5.0.1"
24
24
  },
25
25
  "scripts": {
package/src/App.tsx CHANGED
@@ -45,7 +45,7 @@ export function App()
45
45
 
46
46
  return (
47
47
  <div className="App">
48
- <NSLayout scope='Namirasoft SOP console' title="Hooman" logo=''>
48
+ <NSLayout scope='Namirasoft SOP console' logo=''>
49
49
  <div className='my-4 container'>
50
50
  {/* <NSInputText title='Text' />
51
51
  <NSInputInteger title='Integer' />
@@ -64,7 +64,8 @@ export function App()
64
64
  <NSButtonRed title='Delete' onClick={() => { }} />
65
65
  <NSPagination page={1} size={25} />
66
66
  </div>
67
- asdasd</NSLayout>
67
+ asdasd
68
+ </NSLayout>
68
69
  </div>
69
70
  );
70
71
  }
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Style from "./NSButtonGreen.module.css";
3
5
 
@@ -12,6 +14,8 @@ interface IState
12
14
  title: string;
13
15
  }
14
16
 
17
+ interface IState { }
18
+
15
19
  export class NSButtonGreen extends React.Component<IProps, IState>
16
20
  {
17
21
  constructor(props: IProps)
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Style from "./NSButtonRed.module.css";
3
5
 
@@ -0,0 +1,85 @@
1
+ .ns_card {
2
+ width: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ gap: 24px 0;
8
+ background-color: #fff;
9
+ box-shadow: 0 2px 10px 4px #00000040;
10
+ padding: 24px;
11
+ border-radius: 24px;
12
+ }
13
+
14
+ .ns_card_detail_container {
15
+ display: flex;
16
+ flex-direction: column;
17
+ align-items: center;
18
+ justify-content: space-between;
19
+ }
20
+
21
+ .ns_card_title_img {
22
+ display: flex;
23
+ flex-direction: column;
24
+ align-items: center;
25
+ justify-content: flex-start;
26
+ }
27
+
28
+ .card_img {
29
+ object-fit: cover;
30
+ width: 100%;
31
+ height: 100%;
32
+ max-height: 310px;
33
+ }
34
+
35
+ .card_title {
36
+ font-style: normal;
37
+ font-size: 24;
38
+ font-weight: 700;
39
+ line-height: normal;
40
+ color: inherit;
41
+ text-align: inherit;
42
+ }
43
+
44
+ .card_description {
45
+ font-style: normal;
46
+ font-size: 16px;
47
+ font-weight: 400;
48
+ line-height: normal;
49
+ color: inherit;
50
+ text-align: justify;
51
+ }
52
+
53
+ .ns_card_link {
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ padding: 12px 24px;
58
+ background-color: #3963FF;
59
+ box-shadow: inset 2px 2px 2px 0 #1754F3;
60
+ color: #fff;
61
+ font-weight: 400;
62
+ font-style: 16px;
63
+ line-height: normal;
64
+ border-radius: 24px;
65
+ width: 100%;
66
+ max-width: 310px;
67
+ }
68
+
69
+ @media only screen and (min-width: 576px) {
70
+ .ns_card {
71
+ width: 65%;
72
+ }
73
+ }
74
+
75
+ @media only screen and (min-width: 768px) {
76
+ .ns_card {
77
+ width: 41%;
78
+ }
79
+ }
80
+
81
+ @media only screen and (min-width: 1024px) {
82
+ .ns_card {
83
+ width: 31%;
84
+ }
85
+ }
@@ -0,0 +1,54 @@
1
+ "use client"
2
+ import { Component } from 'react';
3
+
4
+ import Styles from './NSCard.module.css'
5
+
6
+ interface IProps
7
+ {
8
+ title: string;
9
+ description?: string;
10
+ image: {
11
+ src: string;
12
+ alt: string;
13
+ };
14
+ link?:
15
+ {
16
+ text: string;
17
+ href: string;
18
+ target?: string;
19
+ }
20
+ }
21
+
22
+ interface IStart
23
+ { }
24
+
25
+ export default class NSCard extends Component<IProps, IStart> {
26
+ override render()
27
+ {
28
+ const { title, image, description, link } = this.props;
29
+ return (
30
+ <>
31
+ <article className={Styles.ns_card}>
32
+ <div className={Styles.ns_card_detail_container}>
33
+ <div className={Styles.ns_card_title_img}>
34
+ <h3 className={Styles.card_title}>
35
+ {title}
36
+ </h3>
37
+ <img className={Styles.card_img} src={image.src} alt={image.alt} />
38
+ </div>
39
+ <p className={Styles.card_description}>
40
+ {description}
41
+ </p>
42
+ </div>
43
+ {link &&
44
+ <div >
45
+ <a className={Styles.ns_card_link} href={link.href} target={link.target ?? "_self"} >
46
+ {link.text}
47
+ </a>
48
+ </div>
49
+ }
50
+ </article >
51
+ </>
52
+ );
53
+ }
54
+ }
@@ -1,36 +1,102 @@
1
1
  .ns_footer {
2
- width: 100%;
3
- background: rgba(0, 0, 0, 0.3);
4
- padding: 16px 0 8px 0;
2
+ width: 100%;
3
+ background-color: #001664;
4
+ padding: 16px 0 8px 0;
5
+ display: flex;
6
+ justify-content: center;
5
7
  }
6
8
 
7
- .footns_footer li {
8
- color: #fff;
9
+ .ns_footer>.ns_package_footer {
10
+ padding-left: 1rem !important;
11
+ padding-right: 1rem !important;
12
+ margin-right: auto;
13
+ margin-left: auto;
14
+ }
15
+
16
+ .ns_footer_parent_items {
17
+ display: flex;
18
+ justify-content: space-between;
19
+ gap: 64px;
20
+ }
21
+
22
+ .ns_footer_project_logo_tablet {
23
+ display: none;
24
+ }
25
+
26
+ .ns_footer_menu_container {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ width: 100%;
30
+ gap: 48px;
31
+ }
32
+
33
+ .ns_footer_namira_logo_tablet {
34
+ display: none;
35
+ }
36
+
37
+ .ns_footer_logos_mobile {
38
+ display: flex;
39
+ justify-content: center;
40
+ gap: 24px;
41
+ margin-bottom: 16px;
42
+ }
43
+
44
+ .ns_footer_menu_container ul {
45
+ list-style: none;
46
+ color: #fff;
47
+ padding: 0;
48
+ font-size: 16px;
49
+ font-weight: 600;
50
+ line-height: normal;
9
51
  }
10
52
 
11
- .ns_footer ul {
12
- list-style: none;
13
- color: #fff;
14
- padding: 0;
53
+ .ns_footer_menu_container li {
54
+ font-size: 12px !important;
55
+ font-weight: 300 !important;
15
56
  }
16
57
 
17
58
  .ns_footer_copyright {
18
- color: #fff !important;
19
- text-align: center;
20
- justify-content: center;
21
- width: 100%;
59
+ color: #fff !important;
60
+ text-align: center;
61
+ width: 100%;
22
62
  }
23
63
 
24
- .ns_footer_parent_items {
25
- gap: 64px;
64
+ .ns_footer_copyright span,
65
+ .ns_footer_copyright a {
66
+ color: #fff !important;
67
+ text-align: center;
26
68
  }
27
69
 
28
- .ns_footer li {
29
- font-size: 12px !important;
30
- font-weight: 300 !important;
70
+ @media only screen and (min-width: 768px) {
71
+ .ns_footer_project_logo_tablet {
72
+ display: block;
73
+ }
74
+
75
+ .ns_footer_namira_logo_tablet {
76
+ display: flex;
77
+ justify-content: flex-end;
78
+ }
79
+
80
+ .ns_footer_logos_mobile {
81
+ display: none;
82
+ }
31
83
  }
32
84
 
85
+ @media only screen and (min-width: 1024px) {
86
+ .ns_footer>.ns_package_footer {
87
+ padding-left: 3rem !important;
88
+ padding-right: 3rem !important;
89
+ margin-right: auto;
90
+ margin-left: auto;
91
+ }
92
+ }
93
+
94
+ /* Is these two exist ? */
33
95
  .ns_footer h5 {
34
- font-size: 16px !important;
35
- font-weight: 600 !important;
96
+ font-size: 16px !important;
97
+ font-weight: 600 !important;
98
+ }
99
+
100
+ .footns_footer li {
101
+ color: #fff;
36
102
  }
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSFooter.module.css";
3
5
  import { NamirasoftAPILinkServer, FilterLinkRow } from 'namirasoft-api-link';
@@ -44,39 +46,38 @@ export class NSFooter extends React.Component<IProps, IState>
44
46
  {
45
47
  return (
46
48
  <div className={Styles.ns_footer}>
47
- <div className="container">
48
- <div className={`d-flex justify-content-between ${Styles.ns_footer_parent_items}`}>
49
- <div className="d-none d-md-block">
50
- <div>
51
- <a href="/">
52
- <img src={this.props.logo} alt='footer' width={80} height={80} />
53
- </a>
54
- </div>
49
+ <div className={`container ${Styles.ns_package_footer}`}>
50
+ <div className={`${Styles.ns_footer_parent_items}`}>
51
+ <div className={`${Styles.ns_footer_project_logo_tablet}`}>
52
+ <a href="/">
53
+ <img src={this.props.logo} alt='Logo' width={80} height={80} />
54
+ </a>
55
55
  </div>
56
- <div className="d-flex flex-wrap w-100 gap-5">
56
+ <div className={`${Styles.ns_footer_menu_container}`}>
57
57
  {this.render_menu(0, null)}
58
58
  </div>
59
- <div className="justify-content-end d-none d-md-flex">
60
- <div>
61
- <a href="/">
62
- <img src="https://static.namirasoft.com/logo/namirasoft/name.png" alt='footer' width={80} height={80} />
63
- </a>
64
- </div>
59
+ <div className={`${Styles.ns_footer_namira_logo_tablet}`}>
60
+ <a href="/">
61
+ <img src="https://static.namirasoft.com/logo/namirasoft/name.png" alt='Namira Software Corporation Logo' width={80} height={80} />
62
+ </a>
65
63
  </div>
66
64
  </div>
67
- <div className="d-flex justify-content-center gap-4 mb-3 d-block d-md-none">
65
+ <div className={`${Styles.ns_footer_logos_mobile}`}>
68
66
  <div>
69
67
  <a href="/">
70
- <img src={this.props.logo} alt='footer' width={80} height={80} />
68
+ <img src={this.props.logo} alt='Logo' width={80} height={80} />
71
69
  </a>
72
70
  </div>
73
71
  <div>
74
72
  <a href="/">
75
- <img src="https://static.namirasoft.com/logo/namirasoft/name.png" alt='footer' width={80} height={80} />
73
+ <img src="https://static.namirasoft.com/logo/namirasoft/name.png" alt='Namira Software Corporation Logo' width={80} height={80} />
76
74
  </a>
77
75
  </div>
78
76
  </div>
79
- <div className={`row ${Styles.ns_footer_copyright}`}>©Copyright 2010 - 2023 Namira Software Corporation. All rights reserved.</div>
77
+ <div className={`${Styles.ns_footer_copyright}`}>
78
+ <span> ©Copyright 2010 - {new Date().getFullYear()} </span>
79
+ <a href="https://namirasoft.com/" target="_blank" rel="noopener noreferrer"> Namira Software Corporation</a>. All rights reserved.
80
+ </div>
80
81
  </div>
81
82
  </div>
82
83
  );
@@ -116,7 +117,7 @@ export class NSFooter extends React.Component<IProps, IState>
116
117
  else
117
118
  {
118
119
  return (
119
- <li className="mb-2">{filter.name}</li>
120
+ <a href={filter.link?.url}><li className="mb-2">{filter.name}</li></a>
120
121
  );
121
122
  }
122
123
  }
@@ -1,7 +1,20 @@
1
+ .ns_navbar_content {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ gap: 8px;
5
+ }
6
+
7
+ .ns_navbar_login_status {
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ }
12
+
1
13
  .ns_navbar_usersname {
2
14
  color: #fff !important;
3
15
  font-size: 16px;
4
16
  font-weight: 400;
17
+ margin-right: 8px;
5
18
  }
6
19
 
7
20
  .ns_navbar {
@@ -11,6 +24,7 @@
11
24
  z-index: 10;
12
25
  display: flex;
13
26
  align-items: center;
27
+ justify-content: center;
14
28
  }
15
29
 
16
30
  .ns_navbar_menu_icon {
@@ -50,13 +64,43 @@
50
64
  background-color: #574c4c;
51
65
  }
52
66
 
67
+ .ns_navbar_items_container {
68
+ margin-right: auto;
69
+ margin-inline-end: auto;
70
+ --bs-nav-link-padding-x: 1rem;
71
+ --bs-nav-link-padding-y: 0.5rem;
72
+ --bs-nav-link-font-weight: ;
73
+ --bs-nav-link-color: var(--bs-link-color);
74
+ --bs-nav-link-hover-color: var(--bs-link-hover-color);
75
+ --bs-nav-link-disabled-color: var(--bs-secondary-color);
76
+ display: flex;
77
+ flex-wrap: wrap;
78
+ padding-left: 0;
79
+ margin-bottom: 0;
80
+ list-style: none;
81
+ }
82
+
83
+ .ns_navbar_items_link {
84
+ display: block;
85
+ padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
86
+ font-size: var(--bs-nav-link-font-size);
87
+ font-weight: var(--bs-nav-link-font-weight);
88
+ color: var(--bs-nav-link-color);
89
+ text-decoration: none;
90
+ background: 0 0;
91
+ border: 0;
92
+ transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
93
+ }
94
+
95
+
96
+
53
97
  @media (max-width: 768px) {
54
98
  .ns_navbar_elements ul li:not(:last-child) {
55
99
  margin-right: 30px;
56
100
  }
57
101
  }
58
102
 
59
- @media (max-width: 600px) {
103
+ @media (max-width: 1024px) {
60
104
  .ns_navbar_menu_icon {
61
105
  display: block;
62
106
  cursor: pointer;
@@ -97,9 +141,19 @@
97
141
  display: flex;
98
142
  align-items: center;
99
143
  justify-content: space-between;
144
+ padding-left: 1rem;
145
+ padding-right: 1rem;
146
+ margin-left: auto;
147
+ margin-right: auto;
100
148
  }
101
149
 
102
- @media only screen and (min-width: 991px) {
150
+ @media only screen and (min-width: 1024px) {
151
+
152
+ .ns_navbar_parent_content {
153
+ padding-right: 3rem;
154
+ padding-left: 3rem;
155
+ }
156
+
103
157
  .ns_nav_second_item .dropdown-menu {
104
158
  margin-top: -20% !important;
105
159
  margin-left: 100%;
@@ -1,8 +1,8 @@
1
+ "use client";
2
+
1
3
  import React from "react";
2
4
  import Styles from "./NSHeader.module.css";
3
- import Nav from 'react-bootstrap/Nav';
4
- import Menu from '../assets/images/menu.svg';
5
- import Exit from '../assets/images/exit.svg';
5
+
6
6
  import NavDropdown from 'react-bootstrap/NavDropdown';
7
7
  import { NamirasoftAPILinkServer, FilterLinkRow } from 'namirasoft-api-link';
8
8
 
@@ -63,26 +63,26 @@ export class NSHeader extends React.Component<IProps, IState> {
63
63
  <div className={`${Styles.ns_navbar_parent_content} container`}>
64
64
  <img
65
65
  src={this.props.logo}
66
- alt="logo"
66
+ alt="Logo"
67
67
  width={48}
68
68
  height={48}
69
69
  />
70
- <div className={`${Styles.ns_navbar_content} gap-2 d-flex justify-content-between`} >
70
+ <div className={`${Styles.ns_navbar_content} `} >
71
71
  <div className={`${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}`}>
72
72
  {this.render_menu(0, null)}
73
73
  </div>
74
- <div className="d-flex justify-content-center align-items-center">
75
- <span className={`me-2 ${Styles.ns_navbar_usersname}`}>name</span>
76
- <img src={Exit}
77
- alt="exit"
74
+ <div className={`${Styles.ns_navbar_login_status}`}>
75
+ <span className={`${Styles.ns_navbar_usersname}`}>name</span>
76
+ <img src='../assets/images/exit.svg'
77
+ alt="Exit"
78
78
  width={20}
79
79
  height={20}
80
80
  />
81
81
  </div>
82
82
  <div className={Styles.ns_navbar_menu_icon} onClick={this.handleShowNavbar}>
83
83
  <img
84
- src={Menu}
85
- alt="menu"
84
+ src='../assets/images/menu.svg'
85
+ alt="Menu"
86
86
  width={19}
87
87
  height={17}
88
88
  />
@@ -96,9 +96,9 @@ export class NSHeader extends React.Component<IProps, IState> {
96
96
  {
97
97
  let fs: FilterLinkRow[] = this.state.filters?.filter(f => f.parent_id === parent_id);
98
98
  return (
99
- <Nav className="me-auto" >
99
+ <div className={`me-auto nav ${Styles.ns_navbar_items_container}`} >
100
100
  {(fs?.map(f => this.render_menuItem(level, f)))}
101
- </Nav>
101
+ </div>
102
102
  );
103
103
  }
104
104
  private render_menuItem(level: number, filter: FilterLinkRow)
@@ -128,7 +128,7 @@ export class NSHeader extends React.Component<IProps, IState> {
128
128
  } else
129
129
  {
130
130
  return (
131
- <Nav.Link className={level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item} href={filter.link?.url}>{filter.name}</Nav.Link>
131
+ <a className={`${Styles.ns_navbar_items_link} ${level === 0 ? Styles.ns_navbar_first_level_item : Styles.ns_navbar_second_level_item}`} href={filter.link?.url}>{filter.name}</a>
132
132
  );
133
133
  }
134
134
  }