namirasoft-site-react 1.3.87 → 1.3.88

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.
@@ -2,10 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import Styles from './NSCard.module.css';
3
3
  import { NSLinkBlue } from './NSLinkBlue';
4
4
  export function NSCard(props) {
5
- var _a, _b, _c;
5
+ var _a, _b;
6
6
  return (_jsxs("article", { id: props.id, className: `${Styles.ns_card} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsxs("div", { className: Styles.ns_card_detail_container, children: [_jsxs("div", { className: Styles.ns_card_title_img, style: {
7
7
  alignItems: props.description ? "flex-start" : "center",
8
- }, children: [_jsx("img", Object.assign({ className: Styles.ns_card_img }, props.image)), _jsxs("span", { className: Styles.ns_card_headline, style: { color: (_b = props.headline) === null || _b === void 0 ? void 0 : _b.color }, children: [" ", (_c = props.headline) === null || _c === void 0 ? void 0 : _c.text, " "] }), _jsx("h3", { className: Styles.ns_card_title, children: props.title })] }), props.description &&
8
+ }, children: [_jsx("img", Object.assign({ className: Styles.ns_card_img }, props.image)), props.headline &&
9
+ _jsxs("span", { className: Styles.ns_card_headline, style: { color: (_b = props.headline) === null || _b === void 0 ? void 0 : _b.color }, children: [" ", props.headline.text, " "] }), _jsx("h3", { className: Styles.ns_card_title, children: props.title })] }), props.description &&
9
10
  _jsx("p", { className: Styles.ns_card_description, children: props.description })] }), props.link ?
10
11
  props.link.title ?
11
12
  _jsx("div", { className: Styles.ns_card_link_container, children: _jsx(NSLinkBlue, { title: props.link.title, href: props.link.href, target: props.link.target, style: { marginTop: "24px" } }) })
@@ -1 +1 @@
1
- {"version":3,"file":"NSCard.js","sourceRoot":"","sources":["../../src/components/NSCard.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE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AAG,SAAS,EAAE,MAAM,CAAC,mBAAmB,YACtC,KAAK,CAAC,WAAW,GACf,IAEA,EAEL,KAAK,CAAC,IAAI,CAAC,CAAC;gBACX,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACjB,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,KAAC,UAAU,IACV,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EACvB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EACzB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,GAC3B,GACG;oBACN,CAAC;wBACD,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,KAAC,UAAU,IACV,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GACxB,GACG;gBACP,CAAC;oBACD,mBAAK,IAEG,CACX,CAAC;AACH,CAAC"}
@@ -46,6 +46,8 @@
46
46
  font-family: inherit;
47
47
  line-height: normal;
48
48
  text-align: center;
49
+ width: 100%;
50
+ color: inherit;
49
51
  }
50
52
 
51
53
  .ns_card_headline {
@@ -5,6 +5,6 @@ import { NSFooter } from './NSFooter';
5
5
  import { NSNotification } from './NSNotification';
6
6
  export function NSLayout(props) {
7
7
  var _a;
8
- return (_jsxs("div", { id: props.id, className: `${Styles.ns_container} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsx(NSHeader, { scope: props.scope, name: "Header", logo: props.logo }), props.notifications.map(props => _jsx(NSNotification, Object.assign({}, props))), _jsx("main", { className: "d-flex flex-column text-white px-3", style: { background: props.background }, children: props.children }), _jsx(NSFooter, { scope: props.scope, name: "Footer", logo: props.logo })] }));
8
+ return (_jsxs("div", { id: props.id, className: `${Styles.ns_container} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsx(NSHeader, { scope: props.scope, name: "Header", logo: props.logo }), props.notifications.map(props => _jsx(NSNotification, Object.assign({}, props))), _jsx("main", { className: `d-flex flex-column text-white px-3 ${Styles.ns_layout_main}`, style: { background: props.background }, children: props.children }), _jsx(NSFooter, { scope: props.scope, name: "Footer", logo: props.logo })] }));
9
9
  }
10
10
  //# sourceMappingURL=NSLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAwB,MAAM,kBAAkB,CAAC;AAWxE,MAAM,UAAU,QAAQ,CAAC,KAAqB;;IAE7C,OAAO,CACN,eAAK,EAAE,EAAE,KAAK,CAAC,EAAE,EAChB,SAAS,EAAE,GAAG,MAAM,CAAC,YAAY,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EACjE,KAAK,EAAE,KAAK,CAAC,KAAK,aAClB,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,EAC/D,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAC,cAAc,oBAAK,KAAK,EAAmB,CAAC,EAC/E,eAAM,SAAS,EAAC,oCAAoC,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,YAC1F,KAAK,CAAC,QAAQ,GACT,EACP,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,IAC1D,CACP,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAwB,MAAM,kBAAkB,CAAC;AAWxE,MAAM,UAAU,QAAQ,CAAC,KAAqB;;IAE7C,OAAO,CACN,eAAK,EAAE,EAAE,KAAK,CAAC,EAAE,EAChB,SAAS,EAAE,GAAG,MAAM,CAAC,YAAY,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EACjE,KAAK,EAAE,KAAK,CAAC,KAAK,aAClB,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,EAC/D,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAC,cAAc,oBAAK,KAAK,EAAmB,CAAC,EAC/E,eAAM,SAAS,EAAE,sCAAsC,MAAM,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,YACrH,KAAK,CAAC,QAAQ,GACT,EACP,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,IAC1D,CACP,CAAC;AACH,CAAC"}
@@ -4,4 +4,15 @@
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  justify-content: center;
7
+ }
8
+
9
+ .ns_layout_main {
10
+ display: flex;
11
+ flex-direction: column;
12
+ color: #fff;
13
+ padding-left: 16px;
14
+ padding-right: 16px;
15
+ background-attachment: fixed;
16
+ background-repeat: no-repeat;
17
+ background-size: cover;
7
18
  }
@@ -33,4 +33,5 @@
33
33
  top: 0;
34
34
  bottom: 0;
35
35
  cursor: pointer;
36
+ background-color: transparent !important;
36
37
  }
@@ -2,7 +2,7 @@
2
2
  font-size: 24px;
3
3
  font-weight: 700;
4
4
  line-height: normal;
5
- color: #001664;
5
+ color: inherit;
6
6
  margin-bottom: 16px;
7
7
  width: 100%;
8
8
  text-align: center;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.87",
11
+ "version": "1.3.88",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -46,6 +46,8 @@
46
46
  font-family: inherit;
47
47
  line-height: normal;
48
48
  text-align: center;
49
+ width: 100%;
50
+ color: inherit;
49
51
  }
50
52
 
51
53
  .ns_card_headline {
@@ -30,7 +30,9 @@ export function NSCard(props: INSCardProps)
30
30
  }}
31
31
  >
32
32
  <img className={Styles.ns_card_img} {...props.image} />
33
- <span className={Styles.ns_card_headline} style={{ color: props.headline?.color }}> {props.headline?.text} </span>
33
+ {props.headline &&
34
+ <span className={Styles.ns_card_headline} style={{ color: props.headline?.color }}> {props.headline.text} </span>
35
+ }
34
36
  <h3 className={Styles.ns_card_title}>
35
37
  {props.title}
36
38
  </h3>
@@ -4,4 +4,15 @@
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  justify-content: center;
7
+ }
8
+
9
+ .ns_layout_main {
10
+ display: flex;
11
+ flex-direction: column;
12
+ color: #fff;
13
+ padding-left: 16px;
14
+ padding-right: 16px;
15
+ background-attachment: fixed;
16
+ background-repeat: no-repeat;
17
+ background-size: cover;
7
18
  }
@@ -22,7 +22,7 @@ export function NSLayout(props: INSLayoutProps)
22
22
  style={props.style}>
23
23
  <NSHeader scope={props.scope} name="Header" logo={props.logo} />
24
24
  {props.notifications.map(props => <NSNotification {...props}></NSNotification>)}
25
- <main className="d-flex flex-column text-white px-3" style={{ background: props.background }}>
25
+ <main className={`d-flex flex-column text-white px-3 ${Styles.ns_layout_main}`} style={{ background: props.background }}>
26
26
  {props.children}
27
27
  </main>
28
28
  <NSFooter scope={props.scope} name="Footer" logo={props.logo} />
@@ -33,4 +33,5 @@
33
33
  top: 0;
34
34
  bottom: 0;
35
35
  cursor: pointer;
36
+ background-color: transparent !important;
36
37
  }
@@ -2,7 +2,7 @@
2
2
  font-size: 24px;
3
3
  font-weight: 700;
4
4
  line-height: normal;
5
- color: #001664;
5
+ color: inherit;
6
6
  margin-bottom: 16px;
7
7
  width: 100%;
8
8
  text-align: center;