Skip to content

Commit 76d6ce7

Browse files
authored
Merge pull request #114 from Durga-prasad-1/myBranch
made changes for proper redirect to git repos
2 parents b6c06ec + 12fca4a commit 76d6ce7

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

index.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,30 @@
131131
border-radius: 50%;
132132
}
133133

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+
134146
@media (min-width:768px){
135147
.col-md-2{
136148
width: 15.66667%;
137149
}
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+
}
138160
}

projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ projects.forEach(project => {
256256
projectDiv.className = 'col-md-2 mb-4 d-md-inline-block';
257257
projectDiv.innerHTML = `
258258
<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">
260259
<div class="card-body">
261260
<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">
262262
<h5 class="card-title">${project.title}</h5>
263263
</a>
264264
</div>

0 commit comments

Comments
 (0)