namirasoft-site-react 1.3.8 → 1.3.9

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.
@@ -4,7 +4,7 @@
4
4
  flex-direction: column;
5
5
  align-items: center;
6
6
  justify-content: space-between;
7
- gap: 24px 0;
7
+ /* gap: 24px 0; */
8
8
  background-color: #fff;
9
9
  box-shadow: 0 2px 10px 4px #00000040;
10
10
  padding: 24px;
@@ -4,7 +4,7 @@ import { Component } from 'react';
4
4
  import Styles from './NSEntityBar.module.css';
5
5
  export class NSEntityBar extends Component {
6
6
  render() {
7
- return (_jsxs("article", { className: Styles.ns_entity_bar_item, children: [_jsx("figure", { className: Styles.ns_entity_bar_image_container, children: _jsx("img", { src: this.props.image.src, alt: this.props.image.alt, width: 310, height: 240 }) }), _jsxs("div", { className: Styles.ns_entity_bar_details_container, children: [_jsxs("h3", { className: Styles.ns_entity_bar_image_title, children: [" ", this.props.title, " "] }), _jsxs("p", { className: Styles.ns_entity_bar_image_description, children: [" ", this.props.description, " "] })] })] }));
7
+ return (_jsxs("article", { className: Styles.ns_entity_bar_item, children: [_jsx("figure", { className: Styles.ns_entity_bar_image_container, children: _jsx("img", { className: Styles.ns_entity_bar_image, src: this.props.image.src, alt: this.props.image.alt, width: 310, height: 240 }) }), _jsxs("div", { className: Styles.ns_entity_bar_details_container, children: [_jsxs("h3", { className: Styles.ns_entity_bar_image_title, children: [" ", this.props.title, " "] }), _jsxs("p", { className: Styles.ns_entity_bar_image_description, children: [" ", this.props.description, " "] })] })] }));
8
8
  }
9
9
  }
10
10
  //# sourceMappingURL=NSEntityBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSEntityBar.js","sourceRoot":"","sources":["../../src/components/NSEntityBar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAa7C,MAAM,OA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AC,yBAAyB,kBAAI,IAAI,CAAC,KAAK,CAAC,KAAK,SAAO,EAC1E,aAAG,SAAS,EAAE,MAAM,CAAC,+BAA+B,kBAAK,IAAI,CAAC,KAAK,CAAC,WAAW,SAAM,IAChF,IACG,CACV,CAAC;IACH,CAAC;CACD"}
@@ -2,28 +2,36 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  justify-content: flex-start;
5
- align-items: flex-start;
5
+ /* align-items: flex-start; */
6
6
  gap: 24px;
7
7
  padding: 24px;
8
8
  box-shadow: 0 2px 10px 4px #00000040;
9
9
  width: 100%;
10
10
  max-width: 358px;
11
+ border-radius: 24px;
11
12
  }
12
13
 
13
14
  .ns_entity_bar_image_container {
14
15
  width: 100%;
15
16
  }
16
17
 
18
+ .ns_entity_bar_image {
19
+ border-radius: 16px;
20
+ object-fit: cover;
21
+ width: 100% !important;
22
+ height: 100% !important;
23
+ }
24
+
17
25
  .ns_entity_bar_details_container {
18
26
  text-align: start;
19
27
  }
20
28
 
21
29
  .ns_entity_bar_image_title {
22
30
  color: #001664;
23
- font-size: 32px;
31
+ font-size: 24px;
24
32
  font-weight: 700;
25
33
  font-family: inherit;
26
- line-height: 32px;
34
+ line-height: 24px;
27
35
  margin-bottom: 16px;
28
36
  text-align: start;
29
37
  }
@@ -37,12 +45,12 @@
37
45
  text-align: justify;
38
46
  }
39
47
 
40
- @media only screen and (min-width: 992px) {
48
+ @media only screen and (min-width: 1024px) {
41
49
  .ns_entity_bar_item {
42
50
  display: flex;
43
51
  flex-direction: row;
44
52
  justify-content: flex-start;
45
- align-items: flex-start;
53
+ /* align-items: flex-start; */
46
54
  gap: 48px;
47
55
  width: 100%;
48
56
  max-width: 1170px;
@@ -50,5 +58,21 @@
50
58
 
51
59
  .ns_entity_bar_details_container {
52
60
  padding: 24px 0;
61
+ width: 68%;
62
+ }
63
+
64
+ .ns_entity_bar_image_container {
65
+ width: 30%;
66
+ max-width: 310px;
53
67
  }
68
+
69
+ .ns_entity_bar_image_title {
70
+ font-size: 32px;
71
+ line-height: 32px;
72
+ }
73
+
74
+ .ns_entity_bar_image {
75
+ border-radius: 8px;
76
+ }
77
+
54
78
  }
@@ -1,5 +1,5 @@
1
1
  .ns_title {
2
- font-size: 32px;
2
+ font-size: 24px;
3
3
  font-weight: 700;
4
4
  line-height: normal;
5
5
  color: #001664;
@@ -7,4 +7,10 @@
7
7
  width: 100%;
8
8
  text-align: center;
9
9
  font-family: inherit;
10
+ }
11
+
12
+ @media only screen and (min-width: 1024px) {
13
+ .ns_title {
14
+ font-size: 32px;
15
+ }
10
16
  }
@@ -2,4 +2,5 @@ export interface Background {
2
2
  image?: string;
3
3
  color?: string;
4
4
  position?: string;
5
+ filter?: string;
5
6
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.8",
11
+ "version": "1.3.9",
12
12
  "main": "./dist/main.js",
13
13
  "types": "./dist/main.d.ts",
14
14
  "author": "Amir Abolhasani",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@types/node": "^20.11.30",
25
- "@types/react": "^18.2.72",
25
+ "@types/react": "^18.2.73",
26
26
  "@types/react-dom": "^18.2.22",
27
27
  "antd": "^5.15.4",
28
28
  "bootstrap": "^5.3.3",
@@ -4,7 +4,7 @@
4
4
  flex-direction: column;
5
5
  align-items: center;
6
6
  justify-content: space-between;
7
- gap: 24px 0;
7
+ /* gap: 24px 0; */
8
8
  background-color: #fff;
9
9
  box-shadow: 0 2px 10px 4px #00000040;
10
10
  padding: 24px;
@@ -2,28 +2,36 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  justify-content: flex-start;
5
- align-items: flex-start;
5
+ /* align-items: flex-start; */
6
6
  gap: 24px;
7
7
  padding: 24px;
8
8
  box-shadow: 0 2px 10px 4px #00000040;
9
9
  width: 100%;
10
10
  max-width: 358px;
11
+ border-radius: 24px;
11
12
  }
12
13
 
13
14
  .ns_entity_bar_image_container {
14
15
  width: 100%;
15
16
  }
16
17
 
18
+ .ns_entity_bar_image {
19
+ border-radius: 16px;
20
+ object-fit: cover;
21
+ width: 100% !important;
22
+ height: 100% !important;
23
+ }
24
+
17
25
  .ns_entity_bar_details_container {
18
26
  text-align: start;
19
27
  }
20
28
 
21
29
  .ns_entity_bar_image_title {
22
30
  color: #001664;
23
- font-size: 32px;
31
+ font-size: 24px;
24
32
  font-weight: 700;
25
33
  font-family: inherit;
26
- line-height: 32px;
34
+ line-height: 24px;
27
35
  margin-bottom: 16px;
28
36
  text-align: start;
29
37
  }
@@ -37,12 +45,12 @@
37
45
  text-align: justify;
38
46
  }
39
47
 
40
- @media only screen and (min-width: 992px) {
48
+ @media only screen and (min-width: 1024px) {
41
49
  .ns_entity_bar_item {
42
50
  display: flex;
43
51
  flex-direction: row;
44
52
  justify-content: flex-start;
45
- align-items: flex-start;
53
+ /* align-items: flex-start; */
46
54
  gap: 48px;
47
55
  width: 100%;
48
56
  max-width: 1170px;
@@ -50,5 +58,21 @@
50
58
 
51
59
  .ns_entity_bar_details_container {
52
60
  padding: 24px 0;
61
+ width: 68%;
62
+ }
63
+
64
+ .ns_entity_bar_image_container {
65
+ width: 30%;
66
+ max-width: 310px;
53
67
  }
68
+
69
+ .ns_entity_bar_image_title {
70
+ font-size: 32px;
71
+ line-height: 32px;
72
+ }
73
+
74
+ .ns_entity_bar_image {
75
+ border-radius: 8px;
76
+ }
77
+
54
78
  }
@@ -21,7 +21,7 @@ export class NSEntityBar extends Component<NSEntityBarProps> {
21
21
  return (
22
22
  <article className={Styles.ns_entity_bar_item}>
23
23
  <figure className={Styles.ns_entity_bar_image_container}>
24
- <img src={this.props.image.src} alt={this.props.image.alt} width={310} height={240} />
24
+ <img className={Styles.ns_entity_bar_image} src={this.props.image.src} alt={this.props.image.alt} width={310} height={240} />
25
25
  </figure>
26
26
  <div className={Styles.ns_entity_bar_details_container}>
27
27
  <h3 className={Styles.ns_entity_bar_image_title}> {this.props.title} </h3>
@@ -1,5 +1,5 @@
1
1
  .ns_title {
2
- font-size: 32px;
2
+ font-size: 24px;
3
3
  font-weight: 700;
4
4
  line-height: normal;
5
5
  color: #001664;
@@ -7,4 +7,10 @@
7
7
  width: 100%;
8
8
  text-align: center;
9
9
  font-family: inherit;
10
+ }
11
+
12
+ @media only screen and (min-width: 1024px) {
13
+ .ns_title {
14
+ font-size: 32px;
15
+ }
10
16
  }
@@ -2,5 +2,6 @@ export interface Background
2
2
  {
3
3
  image?: string,
4
4
  color?: string,
5
- position? :string
5
+ position?: string,
6
+ filter?: string
6
7
  }