Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
GI-Health authored Jan 1, 2025
1 parent 15aedb7 commit 29068dd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ <h2>Why Choose Us</h2>
<li>Customized Services</li>
<li>Regulatory Compliance</li>
<li>Experienced Team</li>
<li>Proven Results</li>
</ul>
<a href="contact.html" class="cta">Meet Our Team...</a>
</div>
</div>
</section>
Expand Down
34 changes: 20 additions & 14 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
min-height: 100vh;
position: relative;
}

.overlay {
position: absolute; /* Position it over the image */
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0); /* Add a transparent black overlay */
z-index: 1;
pointer-events: none; /* Allow clicks to pass through to lower elements */
}

header {
background: linear-gradient(45deg,var(--secondary-color), var(--primary-color)); /* Adds a gradient */
color: var(--text-color0);
Expand All @@ -33,7 +45,7 @@
justify-content: center; /* Center the content */
align-items: center;
position: relative; /* Ensure the logo can be positioned absolutely */
z-index: 3;
z-index: 0;
padding: 5px;
}

Expand Down Expand Up @@ -72,6 +84,7 @@ nav {
background-color: var(--primary-color); /* Ensures the header and menu have a cohesive color */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Slightly more prominent shadow for a floating effect */
border-radius: 8px; /* Rounded corners for a smoother look */
position: relative;
z-index: 5;
}

Expand Down Expand Up @@ -183,7 +196,8 @@ nav ul li a.active {
padding: 1.5rem;
border-radius: 10px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
z-index: 2;
pointer-events: none; /* Prevent interactions with the text */
position: relative;
order: 1; /* Ensure text comes first */
opacity: 0; /* Hidden initially */
Expand All @@ -208,7 +222,10 @@ nav ul li a.active {
}


.cta {
.cta {
position: relative; /* Create a new stacking context for the link */
z-index: 2; /* Place the link above the overlay */
pointer-events: auto; /* Enable clicks on this specific element */
display: grid;
place-self: center;
}
Expand Down Expand Up @@ -261,17 +278,6 @@ nav ul li a.active {
.more-content {
display: none;
}

.overlay {
position: absolute; /* Position it over the image */
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0); /* Add a transparent black overlay */
/*border-radius: 50%; Match an image's rounded corners */
z-index: 1;
}
h2 {
color: var(--secondary-color);
text-align: center;
Expand Down

0 comments on commit 29068dd

Please sign in to comment.