Skip to content

Commit eb74a25

Browse files
Merge pull request #584 from DiyaGhorpade/ui-change-index
Added a slide navigation button,fixed "learn more" buttons to redirec…
2 parents 0961082 + 23e4808 commit eb74a25

File tree

1 file changed

+87
-10
lines changed

1 file changed

+87
-10
lines changed

index.html

Lines changed: 87 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
}
305305

306306
.about-card h4 {
307-
color: #409B44;
307+
color: #28a745
308308
font-weight: 600;
309309
white-space: nowrap;
310310
}
@@ -1508,8 +1508,66 @@
15081508
transform: none !important;
15091509
box-shadow: none !important;
15101510
}
1511-
1512-
/*Dark Mode*/
1511+
1512+
.arrow-slide-btn {
1513+
width: 60px;
1514+
height: 60px;
1515+
border-radius: 50%;
1516+
background: rgba(255, 255, 255, 0.9);
1517+
border: 2px solid #fff;
1518+
color: #3498db;
1519+
cursor: pointer;
1520+
position: absolute;
1521+
right: 20px;
1522+
top: 40%; /* Changed from 50% to position it higher */
1523+
transform: translateY(-50%);
1524+
overflow: hidden;
1525+
transition: all 0.3s ease;
1526+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
1527+
display: flex;
1528+
align-items: center;
1529+
justify-content: center;
1530+
z-index: 10;
1531+
}
1532+
1533+
.arrow-slide-btn:hover {
1534+
transform: translateY(-50%) translateX(5px);
1535+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
1536+
background: #fff;
1537+
}
1538+
1539+
.arrow-slide-btn:active {
1540+
transform: translateY(-50%);
1541+
}
1542+
1543+
.arrow-icon {
1544+
font-size: 24px;
1545+
transition: all 0.3s ease;
1546+
color: #3498db;
1547+
}
1548+
1549+
.arrow-slide-btn:hover .arrow-icon {
1550+
transform: translateX(3px);
1551+
color: #8e44ad;
1552+
}
1553+
1554+
/* Optional pulse animation */
1555+
@keyframes pulse {
1556+
0% { transform: translateY(-50%) scale(1); }
1557+
50% { transform: translateY(-50%) scale(1.05); }
1558+
100% { transform: translateY(-50%) scale(1); }
1559+
}
1560+
1561+
.arrow-slide-btn {
1562+
animation: pulse 2s infinite;
1563+
}
1564+
1565+
/* Make sure the container has relative positioning */
1566+
.container {
1567+
position: relative;
1568+
padding-right: 90px; /* Add space for the button */
1569+
}
1570+
15131571
</style>
15141572
<!-- END: Custom CSS changes -->
15151573
</head>
@@ -1666,7 +1724,7 @@ <h6 class="mb-0">Cyber Analyst</h6>
16661724
<div class="carousel-caption d-block">
16671725
<h2>Website Development</h2>
16681726
<div class="redirect-btns m-4">
1669-
<a href="#learn" class="btn btn-primary m-1 fade-in">Learn more</a>
1727+
<a href="src/web.html" class="btn btn-primary m-1 fade-in">Learn More</a>
16701728
<a href="learn/webdev.html" class="btn btn-custom-purple m-1 fade-in">Portfolio</a>
16711729
</div>
16721730
</div>
@@ -1682,7 +1740,7 @@ <h2>Website Development</h2>
16821740
<div class="carousel-caption d-block">
16831741
<h2>Graphic Design</h2>
16841742
<div class="redirect-btns m-4">
1685-
<a href="#learn" class="btn btn-primary m-1 fade-in">Learn more</a>
1743+
<a href="src/graphic_design.html" class="btn btn-primary m-1 fade-in">Learn More</a>
16861744
<a href="learn/graphic.html" class="btn btn-custom-purple m-1 fade-in">Portfolio</a>
16871745
</div>
16881746
</div>
@@ -1698,7 +1756,7 @@ <h2>Graphic Design</h2>
16981756
<div class="carousel-caption d-block">
16991757
<h2>Digital Marketing</h2>
17001758
<div class="redirect-btns m-4">
1701-
<a href="src/digital-marketing.html" class="btn btn-primary m-1 fade-in">Learn more</a>
1759+
<a href="src/digital-marketing.html" class="btn btn-primary m-1 fade-in">Learn More</a>
17021760
<a href="learn/marketing.html" class="btn btn-custom-purple m-1 fade-in">Portfolio</a>
17031761
</div>
17041762
</div>
@@ -1714,7 +1772,7 @@ <h2>Digital Marketing</h2>
17141772
<div class="carousel-caption d-block">
17151773
<h2>Social Media Management</h2>
17161774
<div class="redirect-btns m-4">
1717-
<a href="#learn" class="btn btn-primary m-1 fade-in">Learn more</a>
1775+
<a href="src/social-media.html" class="btn btn-primary m-1 fade-in">Learn More</a>
17181776
<a href="learn/socialmedia.html" class="btn btn-custom-purple m-1 fade-in">Portfolio</a>
17191777
</div>
17201778
</div>
@@ -1730,7 +1788,7 @@ <h2>Social Media Management</h2>
17301788
<div class="carousel-caption d-block">
17311789
<h2>Content Writing</h2>
17321790
<div class="redirect-btns m-4">
1733-
<a href="#learn" class="btn btn-primary m-1 fade-in">Learn more</a>
1791+
<a href="src/content-writing.html" class="btn btn-primary m-1 fade-in">Learn More</a>
17341792
<a href="learn/contentwriting.html" class="btn btn-custom-purple m-1 fade-in">Portfolio</a>
17351793
</div>
17361794
</div>
@@ -1745,11 +1803,17 @@ <h2>Content Writing</h2>
17451803
<div class="carousel-caption d-block">
17461804
<h2>Cyber Analyst</h2>
17471805
<div class="redirect-btns m-4">
1748-
<a href="#learn" class="btn btn-primary m-1 fade-in">Learn more</a>
1806+
<a href="src/cyber-analyst.html" class="btn btn-primary m-1 fade-in">Learn More</a>
17491807
<a href="learn/cyberanalyst.html" class="btn btn-custom-purple m-1 fade-in">Portfolio</a>
17501808
</div>
17511809
</div>
17521810
</div>
1811+
<button class="arrow-slide-btn" id="customNextButton">
1812+
<span class="arrow-icon">
1813+
<i class="fas fa-arrow-right"></i>
1814+
</span>
1815+
</button>
1816+
17531817
</div>
17541818

17551819
</div>
@@ -2292,7 +2356,20 @@ <h5 class="footer-title">Newsletter</h5>
22922356
yearSpan.textContent = new Date().getFullYear();
22932357
});
22942358
</script>
2295-
2359+
<script>
2360+
document.addEventListener('DOMContentLoaded', function() {
2361+
// Get the custom button and Bootstrap carousel
2362+
const customNextButton = document.getElementById('customNextButton');
2363+
const carousel = new bootstrap.Carousel(document.getElementById('carouselExampleDark'));
2364+
2365+
// Add click event to custom button
2366+
if (customNextButton) {
2367+
customNextButton.addEventListener('click', function() {
2368+
carousel.next(); // Go to next slide
2369+
});
2370+
}
2371+
});
2372+
</script>
22962373
</body>
22972374

22982375
</html>

0 commit comments

Comments
 (0)