Skip to content

Commit f5a158b

Browse files
committed
refactor(css/app.css, index.html, js/scroll_reveal.js): add styled "View More Projects" card and animate it
1 parent 01cedc6 commit f5a158b

3 files changed

Lines changed: 57 additions & 1 deletion

File tree

css/app.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,38 @@ article.body h1 {
268268
}
269269
}
270270

271+
.view-more-card {
272+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
273+
border: none !important;
274+
color: white;
275+
transition: all 0.4s ease;
276+
cursor: pointer;
277+
}
278+
279+
.view-more-card:hover {
280+
transform: translateY(-10px);
281+
box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
282+
}
283+
284+
.view-more-card .card-title {
285+
color: white !important;
286+
font-size: 24px;
287+
margin-bottom: 10px;
288+
}
289+
290+
.view-more-card .card-title i {
291+
font-size: 32px;
292+
margin-right: 10px;
293+
}
294+
295+
.view-more-card .card-text {
296+
color: rgba(255, 255, 255, 0.9) !important;
297+
}
298+
299+
.view-more-card .card-body {
300+
padding: 40px 20px;
301+
}
302+
271303
.animate-fade-in-up {
272304
animation: fadeInUp 0.8s ease forwards;
273305
}

index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,18 @@ <h4 class="card-title">College Mini Project</h4>
460460
</div>
461461
</div>
462462
</div>
463+
<div class="col-md-12 col-sm-12 text-center mt-4">
464+
<div class="card h-100 projects view-more-card">
465+
<div class="card-body d-flex flex-column justify-content-center align-items-center">
466+
<a href="https://github.com/mrunal77/" style="text-decoration: none;" target="_blank">
467+
<h4 class="card-title"><i class="fa-brands fa-github"></i> View More Projects</h4>
468+
</a>
469+
<p class="card-text text-center">
470+
Check out more projects on my GitHub profile
471+
</p>
472+
</div>
473+
</div>
474+
</div>
463475
<!-- </div> -->
464476
</div>
465477
<br />
@@ -550,7 +562,7 @@ <h4 class="white">Here I am located...</h4>
550562
</li>
551563
</ul>
552564
</div>
553-
<div class="col-sm-6 col-md-6 text-center" style="color:whitesmoke;">
565+
<div class="col-sm-6 col-md-6 text-center designed-text" style="color:whitesmoke;">
554566
Designed in - 2017
555567
</div>
556568
</div>

js/scroll_reveal.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ document.addEventListener("contextmenu", event => event.preventDefault());
8787
interval: 200
8888
});
8989

90+
sr.reveal(".view-more-card", {
91+
duration: 1000,
92+
origin: "top",
93+
delay: 300
94+
});
95+
9096
sr.reveal(".contact", {
9197
duration: 1000,
9298
origin: "bottom",
@@ -120,4 +126,10 @@ sr.reveal(".ser-title", {
120126
sr.reveal("#footer", {
121127
duration: 1000,
122128
origin: "bottom"
129+
});
130+
131+
sr.reveal(".designed-text", {
132+
duration: 1000,
133+
origin: "right",
134+
delay: 300
123135
});

0 commit comments

Comments
 (0)