File tree Expand file tree Collapse file tree 2 files changed +76
-24
lines changed
Expand file tree Collapse file tree 2 files changed +76
-24
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,14 @@ import { Link } from 'react-router-dom';
44class MentorList extends Component {
55 render ( ) {
66 return (
7- < div className = "col-sm-4 productList" >
8- < Link to = { { pathname : '/MentorList' , state : { id : this . props . data } } } >
9- < div className = "productItems" >
10- < div >
11- { /* <img className="card-img-top"
12- src={`../assets/${this.props.data.image}`} alt="Card cap" /> */ }
13- < img className = "card-img-top"
14- src = { this . props . data . image } alt = "Card cap" />
15- </ div >
16- < div className = "card-body" >
17- < h5 className = "card-title font-weight-bold" > { this . props . data . name } </ h5 >
18- < p > { this . props . data . technology } </ p >
19- < p > { this . props . data . country } </ p >
7+ < div className = "col-sm-4" >
8+ < Link to = { { pathname : '/MentorList' , state : { id : this . props . data } } } className = "card" >
9+ < div className = "thumbnail" style = { { backgroundImage : `url(${ this . props . data . image } )` } } alt = "Card cap" />
10+ < div className = "content-card" >
11+ < h3 > { this . props . data . name } </ h3 >
12+ < p className = "tags" > { this . props . data . technology } </ p >
13+ < div className = "bottom-info" >
14+ < p > { this . props . data . country } </ p >
2015 </ div >
2116 </ div >
2217 </ Link >
Original file line number Diff line number Diff line change 2626 }
2727 to {
2828 transform : rotate (360deg );
29- }
29+ }
3030}
3131
3232.thememain-header {
3838 height : 400px ;
3939}
4040
41- .login {
41+ .login {
4242 margin-right : 10px ;
4343 background-color : none !important ;
4444}
5858 margin-left : auto;
5959 margin-right : auto;
6060 height : 100px ;
61- width : 100px ;
62- border-radius : 50% ;
61+ width : 100px ;
62+ border-radius : 50% ;
6363 margin-bottom : 10px ;
6464}
6565
7676}
7777
7878.text-center {
79- display : block;
79+ display : block;
8080}
8181
8282.modal-content {
@@ -85,18 +85,75 @@ body {
8585
8686.ErrorMessage {
8787 color : rgb (197 , 0 , 0 );
88- font : bold;
89- margin-bottom : 5% ;
88+ font : bold;
89+ margin-bottom : 5% ;
9090 text-align : center;
9191}
9292
93- .userName {
94- text-align : center;
93+ .userName {
94+ text-align : center;
9595 margin-right : 10px ;
9696}
9797
98+ .card {
99+ position : relative;
100+ background : # FFF ;
101+ color : # 758F9B ;
102+ border-radius : 5px ;
103+ box-shadow : 0px 15px 40px rgba (0 , 0 , 0 , 0.05 );
104+ border : none;
105+ margin-bottom : 5px ;
106+ text-align : left;
107+ transition : all .25s ease-in-out;
108+ }
109+
110+ .card : hover {
111+ box-shadow : 0px 20px 40px 0px rgba (0 , 0 , 0 , 0.15 );
112+ text-decoration : none;
113+ transform : translateY (-5px );
114+ }
115+
116+ .card .content-card {
117+ padding : 20px ;
118+ margin-bottom : 20px ;
119+ }
120+
121+ .card h3 {
122+ font-size : 18px ;
123+ font-weight : bold;
124+ margin-bottom : 0px ;
125+ }
126+
127+ .card p {
128+ font-size : 14px ;
129+ margin-bottom : 0 ;
130+ }
131+
132+ .card .thumbnail {
133+ min-height : 300px ;
134+ background-repeat : no-repeat;
135+ background-position : center center;
136+ background-attachment : scroll;
137+ -webkit-background-size : cover;
138+ -moz-background-size : cover;
139+ -o-background-size : cover;
140+ background-size : cover;
141+ }
142+
143+ .card .tags {
144+ margin-bottom : 25px ;
145+ }
146+
147+ .card .bottom-info {
148+ font-size : 14px ;
149+ width : 100% ;
150+ position : absolute;
151+ bottom : 0px ;
152+ padding : 20px 0 ;
153+ }
154+
98155.productList {
99-
156+
100157}
101158
102159.productItems {
@@ -116,7 +173,7 @@ body {
116173 padding-top : 15px ;
117174 padding-bottom : 15px ;
118175}
119-
176+
120177.productDesc h3 {
121178 float : left;
122179}
You can’t perform that action at this time.
0 commit comments