namirasoft-site-react 1.2.20 → 1.2.22
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.
- package/dist/App.js +1 -2
- package/dist/App.js.map +1 -1
- package/dist/components/NSLayout.d.ts +1 -0
- package/dist/components/NSLayout.js +1 -1
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLinkGreen.js +2 -2
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.js +2 -2
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/pages/NSLoginPage.d.ts +1 -0
- package/dist/pages/NSLoginPage.js +1 -1
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/package.json +3 -3
- package/src/App.tsx +0 -3
- package/src/components/NSLayout.tsx +3 -1
- package/src/components/NSLinkGreen.tsx +6 -8
- package/src/components/NSLinkRed.tsx +6 -8
- package/src/pages/NSLoginPage.tsx +2 -1
- package/dist/assets/images/background.svg +0 -9
- package/src/assets/images/background.svg +0 -9
package/dist/App.js
CHANGED
|
@@ -18,7 +18,6 @@ import { NSInputPhone } from './components/NSInputPhone';
|
|
|
18
18
|
import { NSButtonGreen } from './components/NSButtonGreen';
|
|
19
19
|
import { NSButtonRed } from './components/NSButtonRed';
|
|
20
20
|
import { NSSelectBox } from './components/NSSelectBox';
|
|
21
|
-
import { NSLinkGreen, NSLinkRed } from './main';
|
|
22
21
|
export function App() {
|
|
23
22
|
const options = [
|
|
24
23
|
{
|
|
@@ -42,6 +41,6 @@ export function App() {
|
|
|
42
41
|
desc: 'Test4',
|
|
43
42
|
},
|
|
44
43
|
];
|
|
45
|
-
return (_jsxs("div", Object.assign({ className: "App" }, { children: [_jsx(NSHeader, { scope: 'test', name: 'test', logo: '' }), _jsxs("div", Object.assign({ className: 'my-4 container' }, { children: [_jsx(NSInputText, { title: 'Text' }), _jsx(NSInputInteger, { title: 'Integer' }), _jsx(NSInputFloat, { title: 'Floating Point' }), _jsx(NSInputPrice, { title: 'Price' }), _jsx(NSInputDate, { title: 'Date' }), _jsx(NSInputTime, { title: 'Time' }), _jsx(NSInputDuration, { title: 'Duration' }), _jsx(NSInputString, { title: 'String' }), _jsx(NSInputIP, { title: 'IP' }), _jsx(NSInputEmail, { title: 'Email' }), _jsx(NSInputSearch, { title: 'Search' }), _jsx(NSInputPhone, { title: 'Phone' }), _jsx(NSSelectBox, { title: "t", options: options }), _jsx(NSButtonGreen, { title: 'Save', onClick: () => { } }), _jsx(NSButtonRed, { title: 'Delete', onClick: () => { } })
|
|
44
|
+
return (_jsxs("div", Object.assign({ className: "App" }, { children: [_jsx(NSHeader, { scope: 'test', name: 'test', logo: '' }), _jsxs("div", Object.assign({ className: 'my-4 container' }, { children: [_jsx(NSInputText, { title: 'Text' }), _jsx(NSInputInteger, { title: 'Integer' }), _jsx(NSInputFloat, { title: 'Floating Point' }), _jsx(NSInputPrice, { title: 'Price' }), _jsx(NSInputDate, { title: 'Date' }), _jsx(NSInputTime, { title: 'Time' }), _jsx(NSInputDuration, { title: 'Duration' }), _jsx(NSInputString, { title: 'String' }), _jsx(NSInputIP, { title: 'IP' }), _jsx(NSInputEmail, { title: 'Email' }), _jsx(NSInputSearch, { title: 'Search' }), _jsx(NSInputPhone, { title: 'Phone' }), _jsx(NSSelectBox, { title: "t", options: options }), _jsx(NSButtonGreen, { title: 'Save', onClick: () => { } }), _jsx(NSButtonRed, { title: 'Delete', onClick: () => { } })] })), _jsx(NSFooter, { scope: 'test', name: 'test', logo: '' })] })));
|
|
46
45
|
}
|
|
47
46
|
//# sourceMappingURL=App.js.map
|
package/dist/App.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,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AC,gBAAgB,GAAG,EACvC,KAAC,YAAY,IAAC,KAAK,EAAC,OAAO,GAAG,EAC9B,KAAC,WAAW,IAAC,KAAK,EAAC,MAAM,GAAG,EAC5B,KAAC,WAAW,IAAC,KAAK,EAAC,MAAM,GAAG,EAC5B,KAAC,eAAe,IAAC,KAAK,EAAC,UAAU,GAAG,EACpC,KAAC,aAAa,IAAC,KAAK,EAAC,QAAQ,GAAG,EAChC,KAAC,SAAS,IAAC,KAAK,EAAC,IAAI,GAAG,EACxB,KAAC,YAAY,IAAC,KAAK,EAAC,OAAO,GAAG,EAC9B,KAAC,aAAa,IAAC,KAAK,EAAC,QAAQ,GAAG,EAChC,KAAC,YAAY,IAAC,KAAK,EAAC,OAAO,GAAG,EAC9B,KAAC,WAAW,IAAC,KAAK,EAAC,GAAG,EAAC,OAAO,EAAE,OAAO,GAAI,EAC3C,KAAC,aAAa,IAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,GAAI,EAClD,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,GAAI,KAChD,EACN,KAAC,QAAQ,IAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,GAAG,KAC3C,CACT,CAAC;AACN,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { NSHeader } from './NSHeader';
|
|
|
4
4
|
import { NSFooter } from './NSFooter';
|
|
5
5
|
export class NSLayout extends Component {
|
|
6
6
|
render() {
|
|
7
|
-
return (_jsxs("div", Object.assign({ className: "d-flex flex-column text-center text-white" }, { children: [_jsx(NSHeader, { scope: this.props.scope, name: "Header", logo: this.props.logo }),
|
|
7
|
+
return (_jsxs("div", Object.assign({ className: "d-flex flex-column text-center text-white" }, { children: [_jsx(NSHeader, { scope: this.props.scope, name: "Header", logo: this.props.logo }), _jsxs("div", { children: [_jsx("h1", { children: this.props.title }), _jsx("h4", Object.assign({ className: "page-description" }, { children: this.props.description }))] }), _jsx("main", { children: this.props.children }), _jsx(NSFooter, { scope: this.props.scope, name: "Footer", logo: this.props.logo })] })));
|
|
8
8
|
}
|
|
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,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAWtC,MAAM,OAAO,QAAS,SAAQ,SAAiB;IAElC,MAAM;QAEX,OAAO,CACH,6BAAK,SAAS,EAAC,2CAA2C,iBACtD,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,EAC1E,0BACI,uBAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,EAC3B,2BAAI,SAAS,EAAC,kBAAkB,gBAAE,IAAI,CAAC,KAAK,CAAC,WAAW,IAAM,IAC5D,EACN,yBACK,IAAI,CAAC,KAAK,CAAC,QAAQ,GACjB,EACP,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,KACvE,CACV,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import Style from "./NSLinkGreen.module.css";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { Link } from "react-router-dom";
|
|
5
5
|
export class NSLinkGreen extends React.Component {
|
|
6
6
|
constructor(props) {
|
|
7
7
|
super(props);
|
|
@@ -14,7 +14,7 @@ export class NSLinkGreen extends React.Component {
|
|
|
14
14
|
this.setState({ href });
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (_jsx(
|
|
17
|
+
return (_jsx(Link, Object.assign({ className: "text-white text-decoration-none", to: this.state.href }, { children: _jsx("div", Object.assign({ className: Style.ns_link_green }, { children: this.state.title })) })));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=NSLinkGreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLinkGreen.js","sourceRoot":"","sources":["../../src/components/NSLinkGreen.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NSLinkGreen.js","sourceRoot":"","sources":["../../src/components/NSLinkGreen.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAcxC,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAyB;IAE5D,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,IAAY;QAEhB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,KAAC,IAAI,kBAAC,SAAS,EAAC,iCAAiC,EAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,gBACjE,4BAAK,SAAS,EAAE,KAAK,CAAC,aAAa,gBAC9B,IAAI,CAAC,KAAK,CAAC,KAAK,IACf,IACH,CACV,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import Style from "./NSLinkRed.module.css";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { Link } from "react-router-dom";
|
|
5
5
|
export class NSLinkRed extends React.Component {
|
|
6
6
|
constructor(props) {
|
|
7
7
|
super(props);
|
|
@@ -14,7 +14,7 @@ export class NSLinkRed extends React.Component {
|
|
|
14
14
|
this.setState({ href });
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (_jsx(
|
|
17
|
+
return (_jsx(Link, Object.assign({ className: "text-white text-decoration-none", to: this.state.href }, { children: _jsx("div", Object.assign({ className: Style.ns_link_red }, { children: this.state.title })) })));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=NSLinkRed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLinkRed.js","sourceRoot":"","sources":["../../src/components/NSLinkRed.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NSLinkRed.js","sourceRoot":"","sources":["../../src/components/NSLinkRed.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAcxC,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,SAAyB;IAE1D,YAAY,KAAa;QAErB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,QAAQ,CAAC,KAAa;QAElB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,IAAY;QAEhB,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,KAAC,IAAI,kBAAC,SAAS,EAAC,iCAAiC,EAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,gBACjE,4BAAK,SAAS,EAAE,KAAK,CAAC,WAAW,gBAC5B,IAAI,CAAC,KAAK,CAAC,KAAK,IACf,IACH,CACV,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -11,7 +11,7 @@ export class NSLoginPage extends Component {
|
|
|
11
11
|
button = _jsx(NSLinkGreen, { title: "Login", href: (_a = this.props.href) !== null && _a !== void 0 ? _a : "" });
|
|
12
12
|
else if (this.props.onClick)
|
|
13
13
|
button = _jsx(NSButtonGreen, { title: "Login", onClick: this.props.onClick });
|
|
14
|
-
return (_jsx("div", { children: _jsxs("div", Object.assign({ className: "d-flex flex-column align-items-center justify-content-center", style: { marginTop: "100px" } }, { children: [_jsx("div", Object.assign({ className: "m-auto" }, { children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) })), _jsx("div", { children: _jsx("h1", Object.assign({ className: "text-light text-center mb-3" }, { children: this.props.title })) }), _jsx("div", Object.assign({ className: "m-auto" }, { children: button }))] })) }));
|
|
14
|
+
return (_jsx("div", Object.assign({ style: { backgroundImage: this.props.background } }, { children: _jsxs("div", Object.assign({ className: "d-flex flex-column align-items-center justify-content-center", style: { marginTop: "100px" } }, { children: [_jsx("div", Object.assign({ className: "m-auto" }, { children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) })), _jsx("div", { children: _jsx("h1", Object.assign({ className: "text-light text-center mb-3" }, { children: this.props.title })) }), _jsx("div", Object.assign({ className: "m-auto" }, { children: button }))] })) })));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=NSLoginPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":";AAAA,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;
|
|
1
|
+
{"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":";AAAA,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,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,4BAAK,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,gBAClD,6BAAK,SAAS,EAAC,8DAA8D,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,iBACvG,4BAAK,SAAS,EAAC,QAAQ,gBACnB,cAAK,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAC,MAAM,GAAO,IACnE,EACN,wBAAK,2BAAI,SAAS,EAAC,6BAA6B,gBAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAAM,GAAM,EAC9E,4BAAK,SAAS,EAAC,QAAQ,gBAClB,MAAM,IACL,KACJ,IACJ,CACT,CAAC;IACN,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "namirasoft-site-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.22",
|
|
4
4
|
"main": "./dist/main.js",
|
|
5
5
|
"types": "./dist/main.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@types/node": "^20.11.5",
|
|
8
8
|
"@types/react": "^18.2.48",
|
|
9
9
|
"@types/react-dom": "^18.2.18",
|
|
10
|
-
"antd": "^5.13.
|
|
10
|
+
"antd": "^5.13.2",
|
|
11
11
|
"bootstrap": "^5.3.2",
|
|
12
12
|
"link-react": "^3.0.0",
|
|
13
13
|
"namirasoft-api-link": "^1.2.3",
|
|
@@ -19,7 +19,7 @@
|
|
|
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.
|
|
22
|
+
"react-router-dom": "^6.21.3",
|
|
23
23
|
"react-scripts": "5.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
package/src/App.tsx
CHANGED
|
@@ -18,7 +18,6 @@ import { NSButtonGreen } from './components/NSButtonGreen';
|
|
|
18
18
|
import { NSButtonRed } from './components/NSButtonRed';
|
|
19
19
|
import { NSSelectBox } from './components/NSSelectBox';
|
|
20
20
|
import type { SelectProps } from 'antd';
|
|
21
|
-
import { NSLinkGreen, NSLinkRed } from './main';
|
|
22
21
|
|
|
23
22
|
export function App()
|
|
24
23
|
{
|
|
@@ -64,8 +63,6 @@ export function App()
|
|
|
64
63
|
<NSSelectBox title="t" options={options} />
|
|
65
64
|
<NSButtonGreen title='Save' onClick={() => { }} />
|
|
66
65
|
<NSButtonRed title='Delete' onClick={() => { }} />
|
|
67
|
-
<NSLinkGreen title='NSLinkGreen' href='/' />
|
|
68
|
-
<NSLinkRed title='NSLinkRed' href='/' />
|
|
69
66
|
</div>
|
|
70
67
|
<NSFooter scope='test' name='test' logo='' />
|
|
71
68
|
</div>
|
|
@@ -7,9 +7,10 @@ interface IProps
|
|
|
7
7
|
scope: string;
|
|
8
8
|
logo: string;
|
|
9
9
|
title: string;
|
|
10
|
+
description?: string;
|
|
10
11
|
children: ReactNode;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
|
|
13
14
|
export class NSLayout extends Component<IProps>
|
|
14
15
|
{
|
|
15
16
|
override render()
|
|
@@ -19,6 +20,7 @@ export class NSLayout extends Component<IProps>
|
|
|
19
20
|
<NSHeader scope={this.props.scope} name="Header" logo={this.props.logo} />
|
|
20
21
|
<div>
|
|
21
22
|
<h1>{this.props.title}</h1>
|
|
23
|
+
<h4 className="page-description">{this.props.description}</h4>
|
|
22
24
|
</div>
|
|
23
25
|
<main>
|
|
24
26
|
{this.props.children}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Style from "./NSLinkGreen.module.css";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Link } from "react-router-dom";
|
|
4
4
|
|
|
5
5
|
interface IProps
|
|
6
6
|
{
|
|
@@ -32,13 +32,11 @@ export class NSLinkGreen extends React.Component<IProps, IState>
|
|
|
32
32
|
override render()
|
|
33
33
|
{
|
|
34
34
|
return (
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</Link>
|
|
41
|
-
</BrowserRouter>
|
|
35
|
+
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
36
|
+
<div className={Style.ns_link_green}>
|
|
37
|
+
{this.state.title}
|
|
38
|
+
</div>
|
|
39
|
+
</Link>
|
|
42
40
|
)
|
|
43
41
|
}
|
|
44
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Style from "./NSLinkRed.module.css";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Link } from "react-router-dom";
|
|
4
4
|
|
|
5
5
|
interface IProps
|
|
6
6
|
{
|
|
@@ -32,13 +32,11 @@ export class NSLinkRed extends React.Component<IProps, IState>
|
|
|
32
32
|
override render()
|
|
33
33
|
{
|
|
34
34
|
return (
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</Link>
|
|
41
|
-
</BrowserRouter>
|
|
35
|
+
<Link className="text-white text-decoration-none" to={this.state.href}>
|
|
36
|
+
<div className={Style.ns_link_red}>
|
|
37
|
+
{this.state.title}
|
|
38
|
+
</div>
|
|
39
|
+
</Link>
|
|
42
40
|
)
|
|
43
41
|
}
|
|
44
42
|
}
|
|
@@ -7,6 +7,7 @@ interface IProps
|
|
|
7
7
|
{
|
|
8
8
|
title: string;
|
|
9
9
|
logo: string;
|
|
10
|
+
background: string;
|
|
10
11
|
href?: string;
|
|
11
12
|
onClick?: () => void;
|
|
12
13
|
}
|
|
@@ -21,7 +22,7 @@ export class NSLoginPage extends Component<IProps>
|
|
|
21
22
|
else if (this.props.onClick)
|
|
22
23
|
button = <NSButtonGreen title="Login" onClick={this.props.onClick} />;
|
|
23
24
|
return (
|
|
24
|
-
<div>
|
|
25
|
+
<div style={{ backgroundImage: this.props.background }}>
|
|
25
26
|
<div className="d-flex flex-column align-items-center justify-content-center" style={{ marginTop: "100px" }}>
|
|
26
27
|
<div className="m-auto">
|
|
27
28
|
<img width={256} height={256} src={this.props.logo} alt="logo"></img>
|