Skip to content

Commit

Permalink
new-button
Browse files Browse the repository at this point in the history
  • Loading branch information
alurubalakarthikeya committed Aug 7, 2024
1 parent 4a1e7f8 commit 2503837
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 28 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<!--Loader animation-->
<div id="pulse-wrapper">
<div id="pulse">
<img src="images/logo-1.png" alt="logo">
<span></span>
<span></span>
</div>
Expand Down Expand Up @@ -85,7 +84,8 @@ <h2 class="hehe fadeInUp-animation">Where Learning is <span>made practical</span
<div class="cloud cloud-2 "><img src="images/cloudy.png" alt="Cloud"></div>
</div>
<!--Cloud resource end-->
</div>
<div class="back-to-top"><i class="fa-solid fa-caret-up"></i></div>
</div>
<!--Home Page Ends-->
<!--Tree resource-->
<img class="tree-1" src="images/tree.png" alt="Tree" width="200px">
Expand Down
14 changes: 0 additions & 14 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,3 @@ function signUp() {
/*Loader Animation*/


$(document).ready(function(){
$(window).scroll(function(){
if ($(this).scrollTop() > 100) {
$('#scroll').fadeIn();
} else {
$('#scroll').fadeOut();
}
});
$('#scroll').click(function(){
$("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
});

61 changes: 49 additions & 12 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ body.day .box {
color: var(--moon-color);
border: 2px solid var(--moon-color);
border-radius: 15px;
padding: 10px 110px;
padding: 10px 90px;
left: 50%;
margin-top: 15px;
font-family: "Anek Devanagari", sans-serif;
Expand Down Expand Up @@ -940,7 +940,7 @@ body.day .sign-in:hover {
}

.hero-content button {
width: 100%;
width: 90%;
box-sizing: border-box;
}

Expand Down Expand Up @@ -1078,15 +1078,6 @@ footer {
border-radius: 50%;
}

#pulse img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60px; /* Adjust the width as needed */
height: 60px; /* Adjust the height as needed */
z-index: 10000;
}

.div-course {
display: flex;
Expand Down Expand Up @@ -1241,4 +1232,50 @@ dialog {
opacity: 1;
color: var(--night-sky);
padding: 70px;
}
}

/* Styles for the content section */

.content {
width: 77%;
margin: 50px auto;
font-family: 'Merriweather', serif;
font-size: 17px;
color: #6c767a;
line-height: 1.9;
}
@media (min-width: 500px) {
.content {
width: 43%;
}
#button {
margin: 30px;
}
}
.content h1 {
margin-bottom: -10px;
color: #03a9f4;
line-height: 1.5;
}
.content h3 {
font-style: italic;
color: #96a2a7;
}

.back-to-top {
color: var(--moon-color);
background-color: var(--main-green);
border: 1px solid var(--moon-color);
font-size: 2vh;
border-radius: 50%;
padding: 9px 16px 7px 16px;
position: fixed;
top: 85%;
right: 5%;
transition: 0.4s ease;
}

.back-to-top:hover {
background-color: var(--main-white);
color: #008000;
}

0 comments on commit 2503837

Please sign in to comment.