File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 131
131
border-radius : 50% ;
132
132
}
133
133
134
+ .card-body {
135
+ cursor : pointer;
136
+ transition : transform 0.6s ease, box-shadow 0.6s ease;
137
+ padding : 20px 0px ;
138
+ border-radius : 18px ;
139
+ }
140
+ .card-body : hover {
141
+ cursor : pointer;
142
+ transform : scale (1.1 ); /* Enlarge the element */
143
+ box-shadow : 0 10px 20px rgba (0 , 0 , 0 , 0.2 );
144
+ }
145
+
134
146
@media (min-width : 768px ){
135
147
.col-md-2 {
136
148
width : 15.66667% ;
137
149
}
150
+ }
151
+
152
+ @media screen and (max-width : 500px ) {
153
+ .card-body {
154
+ transition : none;
155
+ }
156
+ .card-body : hover {
157
+ box-shadow : none;
158
+ transform : none;
159
+ }
138
160
}
Original file line number Diff line number Diff line change @@ -256,9 +256,9 @@ projects.forEach(project => {
256
256
projectDiv . className = 'col-md-2 mb-4 d-md-inline-block' ;
257
257
projectDiv . innerHTML = `
258
258
<div class="custom-card text-center" data-bs-toggle="tooltip" data-bs-placement="top" title="${ project . description } ">
259
- <img src="${ project . imgSrc } " class="card-img-top rounded-circle mx-auto d-block" alt="React App" style="width: 85px; height:85px">
260
259
<div class="card-body">
261
260
<a href="${ project . url } " target="_blank">
261
+ <img src="${ project . imgSrc } " class="card-img-top rounded-circle mx-auto d-block" alt="React App" style="width: 85px; height:85px">
262
262
<h5 class="card-title">${ project . title } </h5>
263
263
</a>
264
264
</div>
You can’t perform that action at this time.
0 commit comments