Skip to content

Commit

Permalink
background only transparent on large screens at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
ofjuneskies committed Nov 2, 2024
1 parent 131f11f commit 8f90a3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
25 changes: 11 additions & 14 deletions apps/site/src/components/NavBar/NavBar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@
.nav {
width: 100%;
z-index: 101;
background-color: rgba(20, 20, 20, 0.7);
mix-blend-mode: hard-light;
@include utils.media-breakpoint-up(lg) {
backdrop-filter: none;
}
backdrop-filter: blur(7px);
position: fixed;
text-align: right;
transition: background-color 0.2s ease;
background-color: rgba(20, 20, 20, 0.7);

@include utils.media-breakpoint-up(lg) {
backdrop-filter: none;
}
}

.bg-no-scroll {
@include utils.media-breakpoint-up(lg) {
background-color: transparent !important;
}
}

.navbar {
Expand Down Expand Up @@ -60,12 +66,3 @@
text-underline-offset: 0.3rem;
text-decoration-thickness: 0.14rem;
}

.bg-transparent {
background-color: transparent;
}

.bg-scrolled {
background-color: rgba(20, 20, 20, 0.7);
mix-blend-mode: hard-light;
}
8 changes: 4 additions & 4 deletions apps/site/src/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function NavBar() {

return (
<div
className={`${styles.nav} fixed-top ${hasScrolled ? "bg-scrolled" : "bg-transparent"}`}
className={`${styles.nav} fixed-top ${hasScrolled ? "" : styles["bg-no-scroll"]}`}
>
<Navbar variant="dark" expand="lg" className={`${styles.navbar}`}>
<Container fluid>
Expand Down Expand Up @@ -68,20 +68,20 @@ export default function NavBar() {
>
SCHEDULE
</Link>
{/* <Link
<Link
href="https://forms.gle/cCixQqKR2gDXAUMLA"
className={styles.notActive}
target="_blank"
>
INCIDENT FORM
</Link>
<Link
href="https://zothacks-2023.devpost.com/"
href="https://zothacks-2024.devpost.com/"
className={styles.notActive}
target="_blank"
>
DEVPOST
</Link> */}
</Link>
</Nav>
</Navbar.Collapse>
</Container>
Expand Down

0 comments on commit 8f90a3b

Please sign in to comment.