Skip to content

Commit

Permalink
Merge pull request #557 from Nayan2003/main
Browse files Browse the repository at this point in the history
Nav bar element contact and setup icon changed and nav bar theam changed
  • Loading branch information
suryanshsk authored Nov 9, 2024
2 parents 383a09b + 5480d0e commit fad416a
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 8 deletions.
Binary file added frontend/image/cont.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/image/scrolltop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/image/setups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/image/voice_as.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,18 @@
<a href="#features">Features</a></li>

<li>
<img class="icon1" src="image/setup.png" alt="">
<img class="icon1" src="image/setups.png" alt="">
<a href="#setup">Setup</a></li>

<li>
<img class="icon1" src="image/contact_us.jpg" alt="">
<img class="icon1" src="image/cont.png" alt="">
<a href="contact.html">Contact</a></li>

<img id="icon" src="image/light_mode_24dp_E8EAED_FILL0_wght400_GRAD0_opsz24.svg">
</ul>
</nav>
<div class="header-content">
<img src="image/ voice.png" alt="Voice Assistant Image" class="header-image" /> <!-- Add image here -->
<img src="image/voice_as.gif" alt="Voice Assistant Image" class="header-image" /> <!-- Add image here -->
<h1 class="main_topic">Python Voice Assistant with Gemini AI</h1>
<p class="main_para">A smart, AI-powered voice assistant that simplifies your living!</p>

Expand Down Expand Up @@ -262,7 +262,7 @@ <h2>Contact Us</h2>
</div>
</footer>
<a href="#" class="to_top" id="scroll_top_btn">
<img class="scroll_back" src="image/scroll_top.png">
<img class="scroll_back" src="image/scrolltop.png">
</a>

<script>
Expand Down
6 changes: 6 additions & 0 deletions frontend/script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// change navbar style on scroll

window.addEventListener('scroll', () =>{
document.querySelector('nav').classList.toggle('window-scroll', window.scrollY > 0 )
})

// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
Expand Down
28 changes: 24 additions & 4 deletions frontend/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
--color13: #2c3e50; /* Deep background */
--color14: #2980b9; /* Blue for emphasized elements */
--color15: #494d52;

--transition: all 400ms ease;
}


Expand All @@ -51,6 +53,13 @@ body {
}

/* Navbar Styles */

.window-scroll {
background: var(--color4);
box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
transition: var(--transition);
}

#icon{
width: 50px;
height: 30px;
Expand All @@ -64,7 +73,7 @@ body {
}

nav {
background-color: var(--color4);
/* background-color: var(--color4); */
display: flex;
justify-content:space-between;
align-items: center;
Expand All @@ -75,12 +84,15 @@ nav {
width: 100%;
z-index: 1000;
box-sizing: border-box;
background: transparent;
}


nav .logo {
color: var(--color3);
font-size: 1.5rem;
font-weight: bold;
/* background: transparent; */
}

/* Adjusted nav ul styles for inline buttons */
Expand Down Expand Up @@ -113,6 +125,7 @@ nav ul li a:hover {
color: white;
}


/* Responsive Styles */
/* Header Section */

Expand All @@ -122,7 +135,7 @@ nav ul li a:hover {
.main-header {
width: 100%;
height: 100%;
background-color: var(--color4);
background:transparent;
color: var(--color6);
text-align: center;
padding: 50px 20px;
Expand Down Expand Up @@ -280,6 +293,7 @@ nav ul li a:hover {
font-size: 1rem;
margin: 0; /* Remove default margin */
color: var(--color12);
padding: 10%;
}


Expand All @@ -292,6 +306,10 @@ nav ul li a:hover {
margin: 0 auto;
}

.setup-section p {
margin-bottom: 20px;
}

.setup-section h2 {
font-size: 2rem;
margin-bottom: 20px;
Expand Down Expand Up @@ -320,7 +338,7 @@ nav ul li a:hover {

.api-item p {
font-size: 1rem;
margin-bottom: 10px;
margin-bottom: 20px;
}

.api-item ul {
Expand Down Expand Up @@ -464,11 +482,13 @@ nav ul li a:hover {
bottom:10px;
right: 70px;
position: fixed;

}

.scroll_back{
height: auto;
width: 50px;
width: 58px;
margin-right: 10px;
}

.circle {
Expand Down

0 comments on commit fad416a

Please sign in to comment.