Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alurubalakarthikeya committed Jul 25, 2024
1 parent 9c2f54e commit 725c32d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 12 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
<li><a href="#">Contact</a></li>
</ul>
</nav>
<div class="sun-moon-container">
<div id="sun" class="sun" onclick="toggleMode()"></div>
<div id="moon" class="moon nightmoon" onclick="toggleMode()"></div>
</div>
</header>
<div class="sun-moon-container">
<div id="sun" class="sun" onclick="toggleMode()"></div>
<div id="moon" class="moon nightmoon" onclick="toggleMode()"></div>
</div>
<div class="hero">
<div class="hero-content">
<h1 style="font-size: 3vh;">Where Learning is <span>made practical</span></h1>
</div>
<div class="floating-clouds">
<div class="cloud cloud-1"><img src="images/cloud.png" alt="Cloud"></div>
<div class="cloud cloud-2"><img src="images/cloud.png" alt="Cloud"></div>
<div class="cloud cloud-1 "><img src="images/cloud.png" alt="Cloud"></div>
<div class="cloud cloud-2 "><img src="images/cloud.png" alt="Cloud"></div>
</div>
</div>
<img class="tree-1" src="images/tree.png" alt="Tree" width="200px">
Expand Down
44 changes: 38 additions & 6 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ header {
align-items: center;
padding: 20px;
background-color: var(--main-blue);
border-bottom: 2px solid var(--main-white);
transition: background-color 0.5s ease;
position: relative;
position: sticky;
top: 0;
z-index: 100;
}

body.night header {
Expand Down Expand Up @@ -169,13 +172,13 @@ body.night .hero-content {
}

.cloud-1 {
top: 10%;
top: 16%;
left: 5%;
animation-delay: 0s;
}

.cloud-2 {
top: 25%;
top: 30%;
left: 10%;
animation-delay: 7s;
}
Expand All @@ -195,7 +198,7 @@ body.night .hero-content {
justify-content: center;
align-items: center;
position: absolute;
top: 80px;
top: 110px;
left: 50%;
transform: translateX(-50%);
gap: 20px;
Expand All @@ -206,7 +209,7 @@ body.night .hero-content {
height: 85px;
border-radius: 50%;
cursor: pointer;
transition: opacity 0.5s ease;
transition: opacity 0.8s ease;
}

.sun {
Expand Down Expand Up @@ -319,6 +322,7 @@ body.night .sky {
z-index: -1;
top: 20px;
left: 0;
transition: 2s ease-in-out;
}

body.night .stars {
Expand All @@ -344,6 +348,22 @@ body.night h3 {
letter-spacing: 5px;
}

body.night nav ul li a {
background-color: var(--night-sky);
color: var(--moon-color);
}

body.night nav ul li a:hover {
color: var(--main-green);
}

body.night nav ul {
background-color: var(--night-sky);
color: var(--moon-color);
margin-bottom: 10px;
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.09);
}

.cursor-dot {
width: 7px;
height: 7px;
Expand Down Expand Up @@ -409,6 +429,13 @@ body.night .cursor-dot {
display: inline-block;
margin: 20px;
text-align: center;
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.4);
transition: 1s ease-in;
}

.course:hover {
color: var(--main-green);
background-color: var(--main-dark);
}

.imagee {
Expand All @@ -418,4 +445,9 @@ body.night .cursor-dot {

.imag {
font-size: 72px;
}
}

.heading {
font-size: 3.5vh;
padding-bottom: 10px;
}

0 comments on commit 725c32d

Please sign in to comment.