namirasoft-site-react 1.3.3 → 1.3.5

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.
@@ -1,14 +1,14 @@
1
1
  import { Component } from 'react';
2
2
  export interface NSCardProps {
3
3
  id?: string | number;
4
- title: string;
4
+ title?: string;
5
5
  description?: string;
6
6
  image: {
7
7
  src: string;
8
8
  alt: string;
9
9
  };
10
10
  link?: {
11
- text: string;
11
+ text?: string;
12
12
  href: string;
13
13
  target?: string;
14
14
  };
@@ -4,10 +4,13 @@ import { Component } from 'react';
4
4
  import Styles from './NSCard.module.css';
5
5
  export class NSCard extends Component {
6
6
  render() {
7
- var _a;
8
- return (_jsx(_Fragment, { children: _jsxs("article", { className: Styles.ns_card, children: [_jsxs("div", { className: Styles.ns_card_detail_container, children: [_jsxs("div", { className: Styles.ns_card_title_img, style: { alignItems: this.props.description ? "flex-start" : "center" }, children: [_jsx("img", { className: Styles.ns_card_img, src: this.props.image.src, alt: this.props.image.alt }), _jsx("h3", { className: Styles.ns_card_title, children: this.props.title })] }), this.props.description &&
7
+ var _a, _b, _c, _d, _e, _f, _g;
8
+ return (_jsx(_Fragment, { children: _jsxs("article", { className: Styles.ns_card, children: [_jsxs("div", { className: Styles.ns_card_detail_container, children: [_jsxs("div", { className: Styles.ns_card_title_img, style: { alignItems: this.props.description ? "flex-start" : "center" }, children: [_jsx("img", { className: Styles.ns_card_img, src: this.props.image.src, alt: this.props.image.alt }), _jsx("h3", { className: Styles.ns_card_title, children: this.props.title && this.props.title })] }), this.props.description &&
9
9
  _jsx("p", { className: Styles.ns_card_description, children: this.props.description })] }), this.props.link &&
10
- _jsx("div", { className: Styles.ns_card_link_container, children: _jsx("a", { className: Styles.ns_card_link, href: this.props.link.href, target: (_a = this.props.link.target) !== null && _a !== void 0 ? _a : "_self", children: this.props.link.text }) })] }) }));
10
+ this.props.link.text ?
11
+ _jsx("div", { className: Styles.ns_card_link_container, children: _jsx("a", { className: Styles.ns_card_link, href: (_a = this.props.link) === null || _a === void 0 ? void 0 : _a.href, target: (_c = (_b = this.props.link) === null || _b === void 0 ? void 0 : _b.target) !== null && _c !== void 0 ? _c : "_self", children: (_d = this.props.link) === null || _d === void 0 ? void 0 : _d.text }) })
12
+ :
13
+ _jsx("div", { className: Styles.ns_card_link_container, children: _jsx("a", { className: Styles.ns_link_absolute, href: (_e = this.props.link) === null || _e === void 0 ? void 0 : _e.href, target: (_g = (_f = this.props.link) === null || _f === void 0 ? void 0 : _f.target) !== null && _g !== void 0 ? _g : "_self" }) })] }) }));
11
14
  }
12
15
  }
13
16
  //# sourceMappingURL=NSCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSCard.js","sourceRoot":"","sources":["../../src/components/NSCard.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,MAAM,MAAM,qBAAqB,CAAA;AAmBxC,MAAM,OAAO,MAAO,SAAQ,SAAsB;IACxC,MAAM;;QAEd,OAAO,CACN,4BACC,mBAAS,SAAS,EAAE,MAAM,CAAC,OAAO,aACjC,eAAK,SAAS,EAAE,MAAM,CAAC,wBAAwB,aAC9C,eAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE,aAChH,cAAK,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAI,EAC5F,aAAI,SAAS,EAAE,MAAM,CAAC,aAAa,YACjC,IAAI,CAAC,KAAK,CAAC,KAAK,GACb,IACA,EAEL,IAAI,CAAC,KAAK,CAAC,WAAW;gCACtB,YAAG,SA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C,IACA,EAEL,IAAI,CAAC,KAAK,CAAC,WAAW;gCACtB,YAAG,SAAS,EAAE,MAAM,CAAC,mBAAmB,YACtC,IAAI,CAAC,KAAK,CAAC,WAAW,GACpB,IAGA,EACL,IAAI,CAAC,KAAK,CAAC,IAAI;wBACf,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;wBACtB,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,YAAG,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,IAAI,EAAE,MAAM,EAAE,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,MAAM,mCAAI,OAAO,YACxG,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,IAAI,GACnB,GACC;wBACN,CAAC;4BACD,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,YAAG,SAAS,EAAE,MAAM,CAAC,gBAAgB,EAAE,IAAI,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,IAAI,EAAE,MAAM,EAAE,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,MAAM,mCAAI,OAAO,GAC1G,GACC,IAEG,GACT,CACH,CAAC;IACH,CAAC;CACD"}
@@ -11,6 +11,7 @@
11
11
  border-radius: 24px;
12
12
  width: 100%;
13
13
  max-width: 358px;
14
+ position: relative;
14
15
  }
15
16
 
16
17
  .ns_card_detail_container {
@@ -31,6 +32,7 @@
31
32
  }
32
33
 
33
34
  .ns_card_img {
35
+ border-radius: 24px;
34
36
  object-fit: cover;
35
37
  width: 100%;
36
38
  height: 100%;
@@ -78,6 +80,18 @@
78
80
  width: 100%;
79
81
  }
80
82
 
83
+ .ns_link_absolute {
84
+ position: absolute;
85
+ width: 100%;
86
+ height: 100%;
87
+ left: 0;
88
+ right: 0;
89
+ top: 0;
90
+ bottom: 0;
91
+ cursor: pointer;
92
+ }
93
+
94
+
81
95
  @media only screen and (min-width: 576px) {
82
96
  .ns_card {
83
97
  width: 65%;
@@ -0,0 +1,19 @@
1
+ import { Component } from 'react';
2
+ import { Background } from '../types/Background';
3
+ export interface IProps {
4
+ id?: string | number;
5
+ title: string;
6
+ link?: {
7
+ href: string;
8
+ target?: string;
9
+ };
10
+ background?: Background;
11
+ }
12
+ interface IState {
13
+ background?: Background;
14
+ }
15
+ export declare class NSEntityCardBackground extends Component<IProps, IState> {
16
+ constructor(props: IProps);
17
+ render(): import("react/jsx-runtime").JSX.Element;
18
+ }
19
+ export {};
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { Component } from 'react';
4
+ import Styles from './NSEntityCardBackground.module.css';
5
+ export class NSEntityCardBackground extends Component {
6
+ constructor(props) {
7
+ var _a, _b, _c;
8
+ super(props);
9
+ this.state = {
10
+ background: {
11
+ image: `url(${(_a = props.background) === null || _a === void 0 ? void 0 : _a.image})`,
12
+ color: (_b = props.background) === null || _b === void 0 ? void 0 : _b.color,
13
+ position: (_c = props.background) === null || _c === void 0 ? void 0 : _c.position
14
+ }
15
+ };
16
+ }
17
+ render() {
18
+ var _a, _b, _c, _d, _e, _f;
19
+ return (_jsx(_Fragment, { children: _jsxs("article", { className: Styles.card_background, style: {
20
+ backgroundImage: (_a = this.state.background) === null || _a === void 0 ? void 0 : _a.image,
21
+ backgroundColor: (_b = this.state.background) === null || _b === void 0 ? void 0 : _b.color,
22
+ backgroundPosition: (_c = this.state.background) === null || _c === void 0 ? void 0 : _c.position
23
+ }, children: [_jsx("p", { className: Styles.card_background_text, children: this.props.title }), this.props.link &&
24
+ _jsx("div", { className: Styles.ns_card_link_container, children: _jsx("a", { className: Styles.ns_link_absolute, href: (_d = this.props.link) === null || _d === void 0 ? void 0 : _d.href, target: (_f = (_e = this.props.link) === null || _e === void 0 ? void 0 : _e.target) !== null && _f !== void 0 ? _f : "_self" }) })] }) }));
25
+ }
26
+ }
27
+ //# sourceMappingURL=NSEntityCardBackground.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSEntityCardBackground.js","sourceRoot":"","sources":["../../src/components/NSEntityCardBackground.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,MAAM,MAAM,qCAAqC,CAAA;AAqBxD,MAAM,OAAO,sBAAuB,SAAQ,SAAyB;IAEpE,YAAY,KAAa;;QAExB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACZ,UAAU,EAAE;gBACX,KAAK,EAAE,OAAO,MAAA,KAAK,CAAC,UAAU,0CAAE,KAAK,GAAG;gBACxC,KAAK,EAAE,MAAA,KAAK,CAAC,UAAU,0CAAE,KAAK;gBAC9B,QAAQ,EAAE,MAAA,KAAK,CAAC,UAAU,0CAAE,QAAQ;aACpC;SACD,CAAA;IACF,CAAC;IAEQ,MAAM;;QAEd,OAAO,CACN,4BACC,mBAAS,SAAS,EAAE,MAAM,CAAC,eAAe,EACzC,KAAK,EACJ;oBACA,eAAe,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,0CAAE,KAAK;oBAC7C,eAAe,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,0CAAE,KAAK;oBAC7C,kBAAkB,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,0CAAE,QAAQ;iBACnD,aAGD,YAAG,SAAS,EAAE,MAAM,CAAC,oBAAoB,YACvC,IAAI,CAAC,KAAK,CAAC,KAAK,GACd,EAGH,IAAI,CAAC,KAAK,CAAC,IAAI;wBACf,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,YAAG,SAAS,EAAE,MAAM,CAAC,gBAAgB,EAAE,IAAI,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,IAAI,EAAE,MAAM,EAAE,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,MAAM,mCAAI,OAAO,GAC1G,GACC,IAEG,GACT,CACH,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,40 @@
1
+ .card_background {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: flex-end;
5
+ justify-content: flex-end;
6
+ gap: 24px 0;
7
+ box-shadow: 0 2px 10px 4px #00000040;
8
+ padding: 24px;
9
+ border-radius: 24px;
10
+ width: 100%;
11
+ max-width: 358px;
12
+ position: relative;
13
+ color: #fff;
14
+ background-repeat: no-repeat;
15
+ background-size: cover;
16
+ background-position: center;
17
+ min-height: 320px;
18
+ }
19
+
20
+ .card_background_text {
21
+ font-size: 16px;
22
+ font-weight: 400;
23
+ line-height: inherit;
24
+ font-family: inherit;
25
+ }
26
+
27
+ .ns_card_link_container {
28
+ width: 100%;
29
+ }
30
+
31
+ .ns_link_absolute {
32
+ position: absolute;
33
+ width: 100%;
34
+ height: 100%;
35
+ left: 0;
36
+ right: 0;
37
+ top: 0;
38
+ bottom: 0;
39
+ cursor: pointer;
40
+ }
@@ -1,9 +1,12 @@
1
1
  import React from "react";
2
2
  import { FilterLinkRow } from 'namirasoft-api-link';
3
+ import { Background } from "../types/Background";
3
4
  interface IProps {
4
5
  scope: string;
5
6
  name: string;
6
7
  logo: string;
8
+ account?: boolean;
9
+ background?: Background;
7
10
  }
8
11
  interface IState {
9
12
  filters: FilterLinkRow[];
@@ -35,7 +35,11 @@ export class NSHeader extends React.Component {
35
35
  this.setState({ showNavbar: !this.state.showNavbar });
36
36
  }
37
37
  render() {
38
- return (_jsx("nav", { className: Styles.ns_navbar, children: _jsxs("div", { className: `${Styles.ns_navbar_parent_content} container`, children: [_jsx("img", { src: this.props.logo, alt: "Logo", width: 48, height: 48 }), _jsxs("div", { className: `${Styles.ns_navbar_content} `, children: [_jsx("div", { className: `${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}`, children: this.render_menu(0, null) }), _jsxs("div", { className: `${Styles.ns_navbar_login_status}`, children: [_jsx("span", { className: `${Styles.ns_navbar_usersname}`, children: "name" }), _jsx("img", { src: '../assets/images/exit.svg', alt: "Exit", width: 20, height: 20 })] }), _jsx("div", { className: Styles.ns_navbar_menu_icon, onClick: this.handleShowNavbar, children: _jsx("img", { src: '../assets/images/menu.svg', alt: "Menu", width: 19, height: 17 }) })] })] }) }));
38
+ var _a, _b;
39
+ return (_jsx("nav", { className: Styles.ns_navbar, style: {
40
+ backgroundColor: ((_a = this.props.background) === null || _a === void 0 ? void 0 : _a.color) ? (_b = this.props.background) === null || _b === void 0 ? void 0 : _b.color : "#0000004d"
41
+ }, children: _jsxs("div", { className: `${Styles.ns_navbar_parent_content} container`, children: [_jsx("img", { src: this.props.logo, alt: "Logo", width: 48, height: 48 }), _jsxs("div", { className: `${Styles.ns_navbar_content} `, children: [_jsx("div", { className: `${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}`, children: this.render_menu(0, null) }), this.props.account &&
42
+ _jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_navbar_login_status}`, children: [_jsx("span", { className: `${Styles.ns_navbar_usersname}`, children: "name" }), _jsx("img", { src: '../assets/images/exit.svg', alt: "Exit", width: 20, height: 20 })] }), _jsx("div", { className: Styles.ns_navbar_menu_icon, onClick: this.handleShowNavbar, children: _jsx("img", { src: '../assets/images/menu.svg', alt: "Menu", width: 19, height: 17 }) })] })] })] }) }));
39
43
  }
40
44
  render_menu(level, parent_id) {
41
45
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"NSHeader.js","sourceRoot":"","sources":["../../src/components/NSHeader.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAA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I,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAC5B,CAAC;YACG,IAAI,SAAS,GAAG,mBAAK,CAAC;YACtB,IAAI,KAAK,KAAK,CAAC;gBACX,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EACvB,CAAC;oBACG,SAAS;wBACL,cACI,EAAE,EAAE,iBAAiB,MAAM,CAAC,EAAE,EAAE,YAC/B,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,GACzC,CAAA;gBACf,CAAC;YACL,OAAO,CAAC,4BACJ,KAAC,WAAW,IACR,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,EAC9D,SAAS,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM,CAAC,2BAA2B,EAC/F,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,EAAE,EAAE,kBAAkB,MAAM,CAAC,EAAE,EAAE,YAChC,SAAS,GACC,GAChB,CACF,CAAC;QACN,CAAC;aACD,CAAC;YACG,OAAO,CACH,YAAG,SAAS,EAAE,GAAG,MAAM,CAAC,oBAAoB,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,MAAA,MAAM,CAAC,IAAI,0CAAE,GAAG,YAAG,MAAM,CAAC,IAAI,GAAK,CACpL,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -19,7 +19,7 @@
19
19
 
20
20
  .ns_navbar {
21
21
  min-height: 60px;
22
- background-color: rgba(0, 0, 0, 0.3) !important;
22
+ /* background-color: #0000004d !important; */
23
23
  position: relative;
24
24
  z-index: 10;
25
25
  display: flex;
package/dist/main.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./components/NSButtonGreen";
2
2
  export * from "./components/NSButtonRed";
3
3
  export * from "./components/NSCard";
4
+ export * from "./components/NSEntityCardBackground";
4
5
  export * from "./components/NSEntityBar";
5
6
  export * from "./components/NSFooter";
6
7
  export * from "./components/NSHeader";
package/dist/main.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./components/NSButtonGreen";
2
2
  export * from "./components/NSButtonRed";
3
3
  export * from "./components/NSCard";
4
+ export * from "./components/NSEntityCardBackground";
4
5
  export * from "./components/NSEntityBar";
5
6
  export * from "./components/NSFooter";
6
7
  export * from "./components/NSHeader";
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,qBAAqB,CAAC;AACpC,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,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,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;AACpC,cAAc,qCAAqC,CAAC;AACpD,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,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
@@ -4,6 +4,7 @@ import "./NSLoginPage.modules.css";
4
4
  import { Component } from 'react';
5
5
  import { NSButtonGreen } from "../main";
6
6
  import { NSLinkGreen } from "../main";
7
+ import Styles from './NSLoginPage.module.css';
7
8
  export class NSLoginPage extends Component {
8
9
  render() {
9
10
  var _a;
@@ -12,7 +13,7 @@ export class NSLoginPage extends Component {
12
13
  button = _jsx(NSLinkGreen, { title: "Login", href: (_a = this.props.href) !== null && _a !== void 0 ? _a : "" });
13
14
  else if (this.props.onClick)
14
15
  button = _jsx(NSButtonGreen, { title: "Login", onClick: this.props.onClick });
15
- return (_jsx("div", { style: { backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }, children: _jsxs("div", { className: "d-flex flex-column align-items-center justify-content-center", style: { marginTop: "100px" }, children: [_jsx("div", { className: "m-auto", children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) }), _jsx("div", { children: _jsx("h1", { className: "text-center mb-3", children: this.props.title }) }), _jsx("div", { className: "m-auto", children: button })] }) }));
16
+ return (_jsx("div", { style: { backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }, children: _jsxs("div", { className: `${Styles.login_container}`, style: { marginTop: "100px" }, children: [_jsx("div", { className: "m-auto", children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) }), _jsx("div", { children: _jsx("h1", { className: "text-center mb-3", children: this.props.title }) }), _jsx("div", { className: "m-auto", children: button })] }) }));
16
17
  }
17
18
  }
18
19
  //# sourceMappingURL=NSLoginPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAWtC,MAAM,OAAO,WAAY,SAAQ,SAAiB;IAErC,MAAM;;QAEX,IAAI,MAAM,GAAG,mBAAK,CAAC;QACnB,IAAI,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iB;IAErC,MAAM;;QAEX,IAAI,MAAM,GAAG,mBAAK,CAAC;QACnB,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI;YACf,MAAM,GAAG,KAAC,WAAW,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,mCAAI,EAAE,GAAI,CAAC;aACnE,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO;YACvB,MAAM,GAAG,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAI,CAAC;QAC1E,OAAO,CACH,cAAK,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,YAC1F,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,aACtE,cAAK,SAAS,EAAC,QAAQ,YACnB,cAAK,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAC,MAAM,GAAO,GACnE,EACN,wBAAK,aAAI,SAAS,EAAC,kBAAkB,YAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,GAAM,EACnE,cAAK,SAAS,EAAC,QAAQ,YAClB,MAAM,GACL,IACJ,GACJ,CACT,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,6 @@
1
+ .login_container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "namirasoft-site-react",
3
- "title": "namirasoft Site React",
3
+ "title": "Namirasoft Site React",
4
4
  "description": "Namira Software Corporation Site React NPM Package",
5
5
  "icon": "logo.png",
6
6
  "logo": "https://static.namirasoft.com/logo/namirasoft/name.png",
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.3",
11
+ "version": "1.3.5",
12
12
  "main": "./dist/main.js",
13
13
  "types": "./dist/main.d.ts",
14
14
  "author": "Amir Abolhasani",
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@types/node": "^20.11.30",
25
- "@types/react": "^18.2.69",
25
+ "@types/react": "^18.2.72",
26
26
  "@types/react-dom": "^18.2.22",
27
- "antd": "^5.15.3",
27
+ "antd": "^5.15.4",
28
28
  "bootstrap": "^5.3.3",
29
29
  "link-react": "^3.0.0",
30
30
  "namirasoft-api-link": "^1.3.0",
31
- "namirasoft-core": "^1.3.11",
31
+ "namirasoft-core": "^1.3.12",
32
32
  "path-browserify": "^1.0.1",
33
33
  "react": "^18.2.0",
34
34
  "react-app-rewired": "^2.2.1",
@@ -11,6 +11,7 @@
11
11
  border-radius: 24px;
12
12
  width: 100%;
13
13
  max-width: 358px;
14
+ position: relative;
14
15
  }
15
16
 
16
17
  .ns_card_detail_container {
@@ -31,6 +32,7 @@
31
32
  }
32
33
 
33
34
  .ns_card_img {
35
+ border-radius: 24px;
34
36
  object-fit: cover;
35
37
  width: 100%;
36
38
  height: 100%;
@@ -78,6 +80,18 @@
78
80
  width: 100%;
79
81
  }
80
82
 
83
+ .ns_link_absolute {
84
+ position: absolute;
85
+ width: 100%;
86
+ height: 100%;
87
+ left: 0;
88
+ right: 0;
89
+ top: 0;
90
+ bottom: 0;
91
+ cursor: pointer;
92
+ }
93
+
94
+
81
95
  @media only screen and (min-width: 576px) {
82
96
  .ns_card {
83
97
  width: 65%;
@@ -7,7 +7,7 @@ import Styles from './NSCard.module.css'
7
7
  export interface NSCardProps
8
8
  {
9
9
  id?: string | number;
10
- title: string;
10
+ title?: string;
11
11
  description?: string;
12
12
  image: {
13
13
  src: string;
@@ -15,7 +15,7 @@ export interface NSCardProps
15
15
  };
16
16
  link?:
17
17
  {
18
- text: string;
18
+ text?: string;
19
19
  href: string;
20
20
  target?: string;
21
21
  }
@@ -31,7 +31,7 @@ export class NSCard extends Component<NSCardProps> {
31
31
  <div className={Styles.ns_card_title_img} style={{ alignItems: this.props.description ? "flex-start" : "center" }}>
32
32
  <img className={Styles.ns_card_img} src={this.props.image.src} alt={this.props.image.alt} />
33
33
  <h3 className={Styles.ns_card_title}>
34
- {this.props.title}
34
+ {this.props.title && this.props.title }
35
35
  </h3>
36
36
  </div>
37
37
 
@@ -43,9 +43,15 @@ export class NSCard extends Component<NSCardProps> {
43
43
 
44
44
  </div>
45
45
  {this.props.link &&
46
+ this.props.link.text ?
46
47
  <div className={Styles.ns_card_link_container}>
47
- <a className={Styles.ns_card_link} href={this.props.link.href} target={this.props.link.target ?? "_self"} >
48
- {this.props.link.text}
48
+ <a className={Styles.ns_card_link} href={this.props.link?.href} target={this.props.link?.target ?? "_self"} >
49
+ {this.props.link?.text}
50
+ </a>
51
+ </div>
52
+ :
53
+ <div className={Styles.ns_card_link_container}>
54
+ <a className={Styles.ns_link_absolute} href={this.props.link?.href} target={this.props.link?.target ?? "_self"} >
49
55
  </a>
50
56
  </div>
51
57
  }
@@ -0,0 +1,40 @@
1
+ .card_background {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: flex-end;
5
+ justify-content: flex-end;
6
+ gap: 24px 0;
7
+ box-shadow: 0 2px 10px 4px #00000040;
8
+ padding: 24px;
9
+ border-radius: 24px;
10
+ width: 100%;
11
+ max-width: 358px;
12
+ position: relative;
13
+ color: #fff;
14
+ background-repeat: no-repeat;
15
+ background-size: cover;
16
+ background-position: center;
17
+ min-height: 320px;
18
+ }
19
+
20
+ .card_background_text {
21
+ font-size: 16px;
22
+ font-weight: 400;
23
+ line-height: inherit;
24
+ font-family: inherit;
25
+ }
26
+
27
+ .ns_card_link_container {
28
+ width: 100%;
29
+ }
30
+
31
+ .ns_link_absolute {
32
+ position: absolute;
33
+ width: 100%;
34
+ height: 100%;
35
+ left: 0;
36
+ right: 0;
37
+ top: 0;
38
+ bottom: 0;
39
+ cursor: pointer;
40
+ }
@@ -0,0 +1,68 @@
1
+ "use client";
2
+
3
+ import { Component } from 'react';
4
+
5
+ import Styles from './NSEntityCardBackground.module.css'
6
+ import { Background } from '../types/Background';
7
+
8
+ export interface IProps
9
+ {
10
+ id?: string | number;
11
+ title: string;
12
+ link?:
13
+ {
14
+ href: string;
15
+ target?: string;
16
+ };
17
+
18
+ background?: Background;
19
+ }
20
+
21
+ interface IState
22
+ {
23
+ background?: Background;
24
+ }
25
+
26
+ export class NSEntityCardBackground extends Component<IProps, IState> {
27
+
28
+ constructor(props: IProps)
29
+ {
30
+ super(props);
31
+ this.state = {
32
+ background: {
33
+ image: `url(${props.background?.image})`,
34
+ color: props.background?.color,
35
+ position: props.background?.position
36
+ }
37
+ }
38
+ }
39
+
40
+ override render()
41
+ {
42
+ return (
43
+ <>
44
+ <article className={Styles.card_background}
45
+ style=
46
+ {{
47
+ backgroundImage: this.state.background?.image,
48
+ backgroundColor: this.state.background?.color,
49
+ backgroundPosition: this.state.background?.position
50
+ }}
51
+ >
52
+
53
+ <p className={Styles.card_background_text}>
54
+ {this.props.title}
55
+ </p>
56
+
57
+
58
+ {this.props.link &&
59
+ <div className={Styles.ns_card_link_container}>
60
+ <a className={Styles.ns_link_absolute} href={this.props.link?.href} target={this.props.link?.target ?? "_self"} >
61
+ </a>
62
+ </div>
63
+ }
64
+ </article >
65
+ </>
66
+ );
67
+ }
68
+ }
@@ -19,7 +19,7 @@
19
19
 
20
20
  .ns_navbar {
21
21
  min-height: 60px;
22
- background-color: rgba(0, 0, 0, 0.3) !important;
22
+ /* background-color: #0000004d !important; */
23
23
  position: relative;
24
24
  z-index: 10;
25
25
  display: flex;
@@ -5,12 +5,15 @@ import Styles from "./NSHeader.module.css";
5
5
 
6
6
  import NavDropdown from 'react-bootstrap/NavDropdown';
7
7
  import { NamirasoftAPILinkServer, FilterLinkRow } from 'namirasoft-api-link';
8
+ import { Background } from "../types/Background";
8
9
 
9
10
  interface IProps
10
11
  {
11
12
  scope: string;
12
13
  name: string;
13
- logo: string;
14
+ logo: string;
15
+ account?: boolean;
16
+ background?: Background;
14
17
  }
15
18
 
16
19
  interface IState
@@ -59,7 +62,11 @@ export class NSHeader extends React.Component<IProps, IState> {
59
62
  override render()
60
63
  {
61
64
  return (
62
- <nav className={Styles.ns_navbar}>
65
+ <nav className={Styles.ns_navbar}
66
+ style={{
67
+ backgroundColor: this.props.background?.color ?this.props.background?.color : "#0000004d"
68
+ }}
69
+ >
63
70
  <div className={`${Styles.ns_navbar_parent_content} container`}>
64
71
  <img
65
72
  src={this.props.logo}
@@ -70,23 +77,27 @@ export class NSHeader extends React.Component<IProps, IState> {
70
77
  <div className={`${Styles.ns_navbar_content} `} >
71
78
  <div className={`${Styles.ns_navbar_elements} ${this.state.showNavbar && Styles.ns_navbar_active}`}>
72
79
  {this.render_menu(0, null)}
73
- </div>
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
- width={20}
79
- height={20}
80
- />
81
- </div>
82
- <div className={Styles.ns_navbar_menu_icon} onClick={this.handleShowNavbar}>
83
- <img
84
- src='../assets/images/menu.svg'
85
- alt="Menu"
86
- width={19}
87
- height={17}
88
- />
89
- </div>
80
+ </div>
81
+ {this.props.account &&
82
+ <>
83
+ <div className={`${Styles.ns_navbar_login_status}`}>
84
+ <span className={`${Styles.ns_navbar_usersname}`}>name</span>
85
+ <img src='../assets/images/exit.svg'
86
+ alt="Exit"
87
+ width={20}
88
+ height={20}
89
+ />
90
+ </div>
91
+ <div className={Styles.ns_navbar_menu_icon} onClick={this.handleShowNavbar}>
92
+ <img
93
+ src='../assets/images/menu.svg'
94
+ alt="Menu"
95
+ width={19}
96
+ height={17}
97
+ />
98
+ </div>
99
+ </>
100
+ }
90
101
  </div>
91
102
  </div>
92
103
  </nav>
package/src/main.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./components/NSButtonGreen";
2
2
  export * from "./components/NSButtonRed";
3
3
  export * from "./components/NSCard";
4
+ export * from "./components/NSEntityCardBackground";
4
5
  export * from "./components/NSEntityBar";
5
6
  export * from "./components/NSFooter";
6
7
  export * from "./components/NSHeader";
@@ -0,0 +1,6 @@
1
+ .login_container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ }
@@ -4,7 +4,7 @@ import "./NSLoginPage.modules.css";
4
4
  import { Component } from 'react';
5
5
  import { NSButtonGreen } from "../main";
6
6
  import { NSLinkGreen } from "../main";
7
-
7
+ import Styles from './NSLoginPage.module.css'
8
8
  interface IProps
9
9
  {
10
10
  title: string;
@@ -25,7 +25,7 @@ export class NSLoginPage extends Component<IProps>
25
25
  button = <NSButtonGreen title="Login" onClick={this.props.onClick} />;
26
26
  return (
27
27
  <div style={{ backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }}>
28
- <div className="d-flex flex-column align-items-center justify-content-center" style={{ marginTop: "100px" }}>
28
+ <div className={`${Styles.login_container}`} style={{ marginTop: "100px" }}>
29
29
  <div className="m-auto">
30
30
  <img width={256} height={256} src={this.props.logo} alt="logo"></img>
31
31
  </div>
File without changes
File without changes