File tree Expand file tree Collapse file tree 7 files changed +118
-32
lines changed Expand file tree Collapse file tree 7 files changed +118
-32
lines changed Original file line number Diff line number Diff line change 38
38
"xlsx" : " ^0.18.5"
39
39
},
40
40
"scripts" : {
41
- "start" : " PORT=8003 react-scripts start" ,
41
+ "start" : " cross-env PORT=8003 react-scripts start" ,
42
42
"build" : " react-scripts build" ,
43
43
"test" : " react-scripts test" ,
44
44
"eject" : " react-scripts eject"
Original file line number Diff line number Diff line change 1
1
.home {
2
2
filter : blur (10px );
3
+ width : 100% ;
4
+ height : 100vh ;
3
5
position : relative;
4
6
}
7
+
5
8
.typewriterStyle {
6
9
position : absolute;
7
10
top : 4% ;
Original file line number Diff line number Diff line change 1
1
.modalprofile {
2
- position : fixed;
3
- top : 36 % ;
4
- right : 1 % ;
5
- height : 100 % ;
2
+ position : fixed;
3
+ top : 50 % ;
4
+ left : 50 % ;
5
+ transform : translate ( -50 % , -50 % ); /* Ensures proper centering */
6
6
display : flex;
7
7
align-items : center;
8
- }
9
-
10
- .modal-contentprofile {
8
+ justify-content : center;
9
+ height : auto;
10
+ z-index : 1000 ;
11
+ width : fit-content; /* Adjusts width dynamically */
12
+ min-width : 300px ;
13
+ max-width : 90vw ; /* Prevents it from being too wide */
14
+ }
15
+
16
+ .modal-contentprofile {
11
17
background-color : rgb (165 , 201 , 221 );
12
- border-radius : 5 px ;
18
+ border-radius : 10 px ;
13
19
box-shadow : 2px 5px 10px rgba (20 , 20 , 20 , 0.261 );
14
20
padding : 20px ;
21
+ width : 300px ; /* Ensures uniform size */
22
+ text-align : center;
23
+ }
15
24
16
- }
25
+ /*
17
26
.closespro {
18
27
position: relative;
19
28
top: -180px;
20
29
font-size: 1.7rem;
21
30
cursor: pointer;
22
- }
23
- .imagepro {
31
+ } */
32
+
33
+ .closespro {
34
+ position : absolute;
35
+ top : 10px ;
36
+ right : 15px ; /* Aligns it to the top-right */
37
+ font-size : 1.7rem ;
38
+ cursor : pointer;
39
+ }
40
+
41
+
42
+ /* .imagepro{
24
43
position: relative;
25
44
border-radius: 50%;
26
45
height: 200px;
27
46
width: 200px;
28
- }
47
+ } */
48
+
49
+ .imagepro {
50
+ display : block;
51
+ margin : 0 auto; /* Ensures the image is centered */
52
+ border-radius : 50% ;
53
+ height : 200px ;
54
+ width : 200px ;
55
+ }
56
+
57
+
29
58
.linkedicon {
30
59
/* color: #0077B5; */
31
60
font-size : 1.5rem ;
32
61
cursor : pointer;
33
62
}
34
- .iconbutton {
63
+
64
+ /* .iconbutton{
35
65
color: #0000005d;
36
66
font-size: 1.5rem;
37
67
font-weight: 900;
38
68
position: relative;
39
69
left: 30%;
40
- }
70
+ } */
71
+
72
+ .iconbutton {
73
+ color : # 0000005d ;
74
+ font-size : 1.5rem ;
75
+ font-weight : 900 ;
76
+ position : relative;
77
+ left : 50% ;
78
+ transform : translateX (-50% ); /* Ensures perfect centering */
79
+ }
Original file line number Diff line number Diff line change 1
- .tree_ {
1
+ .tree_ {
2
2
display : flex;
3
- justify-content : center;
4
- align-items : center;
3
+ justify-content : center; /* Centers the tree horizontally */
4
+ align-items : center; /* Adjusts alignment */
5
5
height : 100vh ;
6
6
width : 100vw ;
7
- min-width : 2400px ;
8
- min-height : 100vh ;
7
+ overflow : auto; /* Ensure it scrolls properly */
9
8
}
9
+
10
+
10
11
.tree_ ul {
11
12
padding-top : 20px ;
12
13
position : relative;
Original file line number Diff line number Diff line change @@ -117,6 +117,34 @@ const TwoDTree = ({ data }) => {
117
117
strokeWidth : 10 ,
118
118
} ) ;
119
119
120
+ const handleNodeMouseOver = ( nodeDatum , event ) => {
121
+ if ( nodeDatum . name !== 'All' ) {
122
+ setroll ( nodeDatum )
123
+ setShowModal ( true )
124
+
125
+ }
126
+ } ;
127
+ const handleNodeMouseOut = ( nodeData , event ) => {
128
+ if ( nodeData . name !== 'All' ) {
129
+ setShowModal ( false )
130
+ }
131
+ } ;
132
+ // const dimensions = {
133
+ // width: 800,
134
+ // height: 600
135
+ // };
136
+
137
+ const dimensions = {
138
+ width : window . innerWidth , // Full screen width
139
+ height : window . innerHeight // Full screen height
140
+ } ;
141
+
142
+ < Tree
143
+ data = { new_data }
144
+ translate = { { x : dimensions . width / 2 , y : dimensions . height / 2 } } // Center both horizontally & vertically
145
+ dimensions = { dimensions }
146
+ />
147
+
120
148
return (
121
149
< >
122
150
{ /* {showModal && <Profile rollNo={roll.rollNo} /> } */ }
Original file line number Diff line number Diff line change @@ -8,14 +8,27 @@ const Home = ({data}) => {
8
8
const team = ( ) => {
9
9
setteamshow ( ! teamshow )
10
10
}
11
- const mystyle = {
12
- backgroundImage : `url(${ background } )` ,
13
- backdropFilter : "blur(6px)" ,
11
+ // const mystyle={
12
+ // backgroundImage: `url(${background})`,
13
+ // backdropFilter: "blur(6px)",
14
+ // backgroundSize: "cover",
15
+ // backgroundRepeat: "no-repeat",
16
+ // height: "100vh",
17
+ // opacity: '0.8',
18
+ // };
19
+
20
+ const mystyle = {
21
+ backgroundImage : `url(${ background } )` , // Corrected syntax
14
22
backgroundSize : "cover" ,
23
+ backgroundPosition : "center" ,
15
24
backgroundRepeat : "no-repeat" ,
16
25
height : "100vh" ,
17
- opacity : '0.8' ,
18
- } ;
26
+ width : "100%" ,
27
+ opacity : 0.8 ,
28
+ } ;
29
+
30
+
31
+
19
32
return (
20
33
21
34
< >
Original file line number Diff line number Diff line change @@ -67,18 +67,20 @@ const Search = () => {
67
67
} )
68
68
69
69
return navigate ( '/' )
70
-
71
70
}
72
- const mystyle = {
73
- backgroundImage : `url(${ background } )` ,
71
+
72
+ const mystyle = {
73
+ backgroundImage : `url(${ background } )` , // Corrected syntax
74
74
backgroundSize : "cover" ,
75
+ backdropFilter : "blur(6px)" ,
76
+ backgroundPosition : "center" ,
75
77
backgroundRepeat : "no-repeat" ,
76
78
height : "100vh" ,
77
- opacity : '0.8' ,
78
- minWidth : "2400px" ,
79
79
width : "100%" ,
80
-
81
- } ;
80
+ opacity : 0.8 ,
81
+ } ;
82
+
83
+
82
84
return (
83
85
< div className = 'topmargin' >
84
86
< ToastContainer />
You can’t perform that action at this time.
0 commit comments