Skip to content

Commit

Permalink
Merge pull request #1359 from Antima2004/main
Browse files Browse the repository at this point in the history
add navbar in contact us
  • Loading branch information
rajveeerr authored Nov 4, 2024
2 parents 4e1cef6 + 8b44dcd commit f725cc6
Showing 1 changed file with 4 additions and 158 deletions.
162 changes: 4 additions & 158 deletions views/contactUs.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<%- include('includes/PRE.ejs') %>
<%- include('includes/header.ejs') %>
<%- include('includes/navbar.ejs') %>
<%- include('includes/sidebar.ejs') %>

<link rel="stylesheet" href="../public/css/style.css">
<script src="https://kit.fontawesome.com/c4254e24a8.js"></script>
Expand Down Expand Up @@ -98,161 +94,11 @@
</style>
</head>
<main>
<header>
<div class="navbar">
<div class="nav-container">
<!-- Dark mode toggle button -->
<div id="dark-mode-icon-mobile" class="dark-mode-toggle dark-mode-icon" onclick="toggleDarkMode()">
<i class="fa-sharp fa-solid fa-sun"></i>
</div>
<div class="logo-image">
<a href="/"><img src="imagine-ai-low-resolution-logo-color-on-transparent-background.png"
class="home-logo" alt="home-logo" loading="lazy" />
</a>
</div>
<div class="nav-links hide-sm nav-style" id="mainNav">
<div class="left-nav-links navs">
<div class="logo">
<a class="AI white-color hover-effect <%= path === '/' ? 'active' : '' %>" href="/">HOME</a>
</div>
<div class="imagh">
<a class="AI white-color hover-effect <%= path === '/generateImg' ? 'active' : '' %>"
href="/generateImg">IMAGINE - AI</a>
</div>
<div class="abth">
<a class="AI white-color hover-effect <%= path === '/aboutUs' ? 'active' : '' %>"
class="AI white-color hover-effect <%= path === '/contactUs' ? 'active' : '' %>"
href="/aboutUs">ABOUT - US</a>
</div>
<div class="conh">
<a class="AI white-color hover-effect <%= path === '/contactUs' ? 'active' : '' %>"
href="/contactUs">CONTACT - US</a>
</div>
<!-- Rest of the nav links -->
<div class="team">
<a class="AI white-color hover-effect <%= path === '/team' ? 'active' : '' %>"
href="/team">COMMUNITY</a>
</div>
<!-- Rest of the right-nav-links -->

</div>
<div class="right-nav-links">
<!-- Dark mode toggle button -->
<div id="dark-mode-icon-desktop" class="dark-mode-toggle dark-mode-icon" onclick="toggleDarkMode()">
<i class="fa-sharp fa-solid fa-sun"></i>
</div>
<div>
<a class="AI white-color hover-effect" href="https://openai.com/dall-e-2/" target="_blank">DALL.E
2 - OpenAI API</a>
</div>
</div>
</div>
<div>
<a class="login AI white-color" id="header-btn2" href="/login">Login</a>
</div>
<div onclick="toggleNavbar()" class="barIcon hide-lg hover-effect">
<i class="fa-solid fa-bars"></i>
</div>
</div>
</div>
</header>

<style>
/*adjusting nav-bar elements*/
.nav-style {
display: flex;
justify-content: space-between;
}
.navs {
justify-content: space-evenly;
}
/*adding hover effects to each nav elements*/
.nav-container {
display: flex;
justify-content: space-evenly;
align-items: center;
width: 100%;
}
/* Light mode styles */
/* .light-mode { } */
.AI {
display: inline-block;
padding: 10px;
margin-left: 25px;
}
/* Light mode styles
.light-mode {
} */
/* Dark mode styles */
.dark-mode {
background-color: #121212;
color: #ffffff;
}
/* Dark mode styles for navbar */
.dark-mode #navbar {
background-color: #121212;
color: #ffffff;
}
/* Dark mode styles for the about section */
.dark-mode .about {
background-color: #121212;
color: #ffffff;
}
/* Styles for the dark mode toggle button */
.dark-mode-toggle {
width: fit-content;
backdrop-filter: blur(4px);
padding: 5px;
border-radius: 50%;
cursor: pointer;
z-index: 999;
}
<%- include('includes/PRE.ejs') %>
<%- include('includes/header.ejs') %>
<%- include('includes/navbar.ejs') %>
<%- include('includes/sidebar.ejs') %>

.dark-mode-toggle i {
transition: transform 0.3s ease-in-out;
font-size: 1.1em;
}
#dark-mode-icon-mobile {
position: absolute;
right: 20%;
display: none;
}
#dark-mode-icon-desktop {
font-size: 1.1rem;
display: block;
}
@media (max-width: 989px) {
#dark-mode-icon-mobile {
display: block;
}
#dark-mode-icon-desktop {
display: none;
}
}
@media (max-width: 900px) {
.navbar {
display: none;
}
#dark-mode-icon-mobile {
display: block;
}
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/gsap.min.js"></script>
<section class="Contact-Us">
<div class="contact-top" id="slide">
Expand Down

0 comments on commit f725cc6

Please sign in to comment.