namirasoft-site-react 1.3.54 → 1.3.55
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/components/NSLinkBlue.module.css +2 -2
- package/dist/pages/NSLoginPage.js +4 -4
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/dist/pages/NSLoginPage.module.css +18 -1
- package/package.json +2 -2
- package/src/components/NSLinkBlue.module.css +2 -2
- package/src/pages/NSLoginPage.module.css +18 -1
- package/src/pages/NSLoginPage.tsx +9 -7
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
box-shadow: inset 2px 2px 2px 0 #1754F3;
|
|
14
14
|
color: #fff;
|
|
15
15
|
font-size: 16px;
|
|
16
|
-
font-weight:
|
|
16
|
+
font-weight: 600;
|
|
17
17
|
line-height: 16px;
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: center;
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
top: 0;
|
|
34
34
|
bottom: 0;
|
|
35
35
|
cursor: pointer;
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Component } from 'react';
|
|
4
|
-
import { NSButtonGreen } from "../main";
|
|
5
|
-
import { NSLinkGreen } from "../main";
|
|
4
|
+
import { NSButtonGreen, NSSpace, NSSpaceSizeType } from "../main";
|
|
6
5
|
import Styles from './NSLoginPage.module.css';
|
|
6
|
+
import { NSLinkBlue } from 'namirasoft-site-react';
|
|
7
7
|
export class NSLoginPage extends Component {
|
|
8
8
|
render() {
|
|
9
9
|
var _a;
|
|
10
10
|
let button = _jsx(_Fragment, {});
|
|
11
11
|
if (this.props.href)
|
|
12
|
-
button = _jsx(
|
|
12
|
+
button = _jsx(NSLinkBlue, { title: "Login", href: (_a = this.props.href) !== null && _a !== void 0 ? _a : "" });
|
|
13
13
|
else if (this.props.onClick)
|
|
14
14
|
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: `${Styles.
|
|
15
|
+
return (_jsx("div", { style: { backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }, children: _jsxs("div", { className: `${Styles.ns_login_container}`, style: { marginTop: "100px" }, children: [_jsx("div", { className: `${Styles.ns_logo}`, children: _jsx("img", { width: 256, height: 256, src: this.props.logo, alt: "logo" }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { children: _jsx("h1", { className: `${Styles.ns_title}`, children: this.props.title }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx("div", { className: `${Styles.ns_button}`, children: button })] }) }));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=NSLoginPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"NSLoginPage.js","sourceRoot":"","sources":["../../src/pages/NSLoginPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAUnD,MAAM,OAAO,WAAY,SAAQ,SAAiB;IAErC,MAAM;;QAEX,IAAI,MAAM,GAAG,mBAAK,CAAC;QACnB,IAAI,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
5
|
justify-content: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ns_logo {
|
|
9
|
+
text-align: center;
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ns_title {
|
|
14
|
+
font-size: 32px;
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
margin: auto;
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ns_button {
|
|
21
|
+
margin: auto;
|
|
22
|
+
text-align: center;
|
|
6
23
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.55",
|
|
12
12
|
"author": "Amir Abolhasani, Alireza Esmaeeli, Hooman Shashaeh",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"link-react": "^3.0.0",
|
|
31
31
|
"namirasoft-api-link": "^1.3.1",
|
|
32
32
|
"namirasoft-core": "^1.3.18",
|
|
33
|
-
"namirasoft-site-react": "^1.3.
|
|
33
|
+
"namirasoft-site-react": "^1.3.54",
|
|
34
34
|
"path-browserify": "^1.0.1",
|
|
35
35
|
"react": "^18.2.0",
|
|
36
36
|
"react-app-rewired": "^2.2.1",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
box-shadow: inset 2px 2px 2px 0 #1754F3;
|
|
14
14
|
color: #fff;
|
|
15
15
|
font-size: 16px;
|
|
16
|
-
font-weight:
|
|
16
|
+
font-weight: 600;
|
|
17
17
|
line-height: 16px;
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: center;
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
top: 0;
|
|
34
34
|
bottom: 0;
|
|
35
35
|
cursor: pointer;
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ns_login_container {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ns_logo {
|
|
9
|
+
text-align: center;
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ns_title {
|
|
14
|
+
font-size: 32px;
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
margin: auto;
|
|
17
|
+
text-align: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ns_button {
|
|
21
|
+
margin: auto;
|
|
22
|
+
text-align: center;
|
|
6
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import { NSButtonGreen } from "../main";
|
|
4
|
-
import { NSLinkGreen } from "../main";
|
|
3
|
+
import { NSButtonGreen, NSSpace, NSSpaceSizeType } from "../main";
|
|
5
4
|
import Styles from './NSLoginPage.module.css'
|
|
5
|
+
import { NSLinkBlue } from 'namirasoft-site-react';
|
|
6
6
|
interface IProps
|
|
7
7
|
{
|
|
8
8
|
title: string;
|
|
@@ -18,17 +18,19 @@ export class NSLoginPage extends Component<IProps>
|
|
|
18
18
|
{
|
|
19
19
|
let button = <></>;
|
|
20
20
|
if (this.props.href)
|
|
21
|
-
button = <
|
|
21
|
+
button = <NSLinkBlue title="Login" href={this.props.href ?? ""} />;
|
|
22
22
|
else if (this.props.onClick)
|
|
23
23
|
button = <NSButtonGreen title="Login" onClick={this.props.onClick} />;
|
|
24
24
|
return (
|
|
25
25
|
<div style={{ backgroundImage: this.props.background, width: "100%", backgroundSize: "cover" }}>
|
|
26
|
-
<div className={`${Styles.
|
|
27
|
-
<div className=
|
|
26
|
+
<div className={`${Styles.ns_login_container}`} style={{ marginTop: "100px" }}>
|
|
27
|
+
<div className={`${Styles.ns_logo}`}>
|
|
28
28
|
<img width={256} height={256} src={this.props.logo} alt="logo"></img>
|
|
29
29
|
</div>
|
|
30
|
-
<
|
|
31
|
-
<div className=
|
|
30
|
+
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
31
|
+
<div><h1 className={`${Styles.ns_title}`}>{this.props.title}</h1></div>
|
|
32
|
+
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
33
|
+
<div className={`${Styles.ns_button}`}>
|
|
32
34
|
{button}
|
|
33
35
|
</div>
|
|
34
36
|
</div>
|