Skip to content

Commit de03730

Browse files
MahimatestgithubSyedImtiyaz-1
authored andcommitted
changed the button on homepage
1 parent a2de1e4 commit de03730

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

index.html

+2
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ <h3 id="name"></h3>
8282
</nav>
8383
</header>
8484

85+
<!--Button added by https://github.com/Mahimatestgithub-->
8586
<section id="home" class="home">
8687
<h1>Get IT Projects</h1>
8788
<h2>for Under Graduation and Post Graduation Students.</h2>
8889
<h2>B.E / BCA/ MCA / BSC-IT / etc.</h2>
90+
<a href="#projects" class="explore-button">Explore Projects</a>
8991
<div class="wave wave1"></div>
9092
<div class="wave wave2"></div>
9193
<div class="wave wave3"></div>

main.css

+19-1
Original file line numberDiff line numberDiff line change
@@ -1697,4 +1697,22 @@ input:checked+.slider:before {
16971697

16981698
.slider.round:before {
16991699
border-radius: 50%;
1700-
}
1700+
}
1701+
1702+
/*Style https://github.com/Mahimatestgithub*/
1703+
.explore-button {
1704+
display: inline-block;
1705+
padding: 10px 20px;
1706+
margin-top: 20px;
1707+
background-color: #007BFF;
1708+
color: white;
1709+
text-align: center;
1710+
text-decoration: none;
1711+
font-weight: bold;
1712+
border-radius: 5px;
1713+
transition: background-color 0.3s;
1714+
}
1715+
1716+
.explore-button:hover {
1717+
background-color: grey;
1718+
}

main.js

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Smooth scrolling when clicking the Explore Projects button done by https://github.com/Mahimatestgithub
2+
document.querySelector('.explore-button').addEventListener('click', function (e) {
3+
e.preventDefault();
4+
const projectsSection = document.getElementById('projects');
5+
projectsSection.scrollIntoView({ behavior: 'smooth' });
6+
});
7+
8+
9+
10+
111
$(document).ready(function(){
212

313
$('.fa-bars').click(function(){

0 commit comments

Comments
 (0)