Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 123 additions & 1 deletion faq.css
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ h1 {
}
.footer-section{
border: 3px solid;
padding: 20px;
}
.company-info {
margin: 50px 60px ;
Expand All @@ -230,4 +231,125 @@ h1 {
color: black;
font-size: 1.3rem;
line-height: 1.6;
}
}
.footer-section .social{
display: flex;
align-items: center;
justify-content: center;
}

nav {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}

main {
/* Adjust this value to match your nav bar's height */
margin-top: 100px;
}

/* --- Responsive Navigation Styles --- */
.nav-container {
display: flex;
justify-content: space-between;
align-items: center; /* This centers items vertically in the nav container */
}

.nav-right {
display: flex;
align-items: flex-end; /* This centers the links vertically */
}

.nav-link {
padding: 0.5rem 1rem;
text-decoration: none;
color: white;
transition: color 0.3s;
}

.dropdown-content {
display: none;
position: absolute;
background-color: #1a202c; /* A dark background color */
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 10;
}

.dropdown:hover .dropdown-content {
display: block;
}

.dropdown-content a {
color: white;
padding: 12px 16px;
text-decoration: none;
display: block;
border-bottom: 1px solid #2d3748;
}

.dropdown-content a:hover {
background-color: #2d3748;
}

.mobile-menu-toggle {
display: none;
cursor: pointer;
flex-direction: column;
justify-content: space-around;
width: 2rem;
height: 2rem;
background: transparent;
border: none;
}

.mobile-menu-toggle span {
width: 2rem;
height: 0.25rem;
background: white;
border-radius: 10px;
transition: all 0.3s linear;
position: relative;
transform-origin: 1px;
}

/* Mobile Styles */
@media (max-width: 768px) {
.nav-right {
display: none;
flex-direction: column;
width: 100%;
background-color: #2d3748;
position: absolute;
top: 72px; /* Adjust based on nav height */
left: 0;
padding-bottom: 1rem;
}

.nav-right.active {
display: flex;
}

.nav-link,
.dropdown-toggle {
width: 100%;
text-align: center;
padding: 1rem 0;
}

.dropdown {
width: 100%;
}

.dropdown-content {
position: relative;
width: 100%;
box-shadow: none;
}

.mobile-menu-toggle {
display: flex;
}
}
23 changes: 16 additions & 7 deletions faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
href="https://fonts.googleapis.com/css2?family=Dancing+Script:[email protected]&display=swap"
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>

<body>
<div class="mobile-menu" id="mobileMenu">
<div class="mobile-menu-header">
Expand Down Expand Up @@ -68,7 +68,7 @@
<span></span>
</div>

<div class="nav-right">
<div class="nav-right" id="navRight">
<a href="./index.html" class="nav-link"
><i class="fa-solid fa-house"></i> Home</a
>
Expand Down Expand Up @@ -104,10 +104,12 @@
<main>
<section id="Faq-img-container">
<div class="top-box">
<h1 class="text-gray-1000 text-3xl font-bold mb-6 text-center">
<h1 class="text-gray-1000 text-3xl font-bold mb-6 text-center pt-10">
<a href="#faq-heading">Do You Have Questions?</a>
</h1>
<h2>We have answers <i>(well, most of the time!)</i></h2>
<h2>
We have answers <i>(well, most of the time!)</i>
</h2>
<h4>
Below you'll find answers to the most common questions you may have
on Project-Vault. If you still can't find the answers you're looking
Expand Down Expand Up @@ -237,7 +239,7 @@ <h1 class="heading">Project Vault</h1>
<div class="social">
<a
class="message"
href="mailto:pavitraagopi@gmail.com"
href="mailto:pavitraa_gopi@gmail.com"
target="_blank"
aria-label="Email"
>
Expand All @@ -253,7 +255,7 @@ <h1 class="heading">Project Vault</h1>
</a>
<a
class="github"
href="https://www.github.com/pavitraag"
href="https://www.github.com/pavitraa"
target="_blank"
aria-label="GitHub"
>
Expand Down Expand Up @@ -345,7 +347,14 @@ <h1 class="heading">Keep In Touch</h1>
const item = element.parentElement;
item.classList.toggle("active");
}

const mobileMenuToggle = document.getElementById("mobileMenuToggle");
const navRight = document.getElementById("navRight");

mobileMenuToggle.addEventListener("click", () => {
navRight.classList.toggle("active");
});
</script>
<script src="script.js"></script>
</body>
</html>
</html>