Skip to content

Commit

Permalink
navbar tweaks and accordion perf
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Oct 15, 2023
1 parent 910eb45 commit 0f5f37f
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 156 deletions.
1 change: 1 addition & 0 deletions apps/nextjs/components/ComponentBlocks/post-event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export const PostEventComponentRenderers: PostEventRenderers = {
className={styles.run}
key={run.id}
disableGutters
TransitionProps={{ unmountOnExit: true }}
// expanded={expanded}
// onChange={handleRunChange(run.id)}
>
Expand Down
62 changes: 42 additions & 20 deletions apps/nextjs/components/Navbar/Navbar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,16 @@
height: auto;
z-index: 2;
position: relative;
padding: 0 1rem;
padding: 8px 1rem;

.content {
display: flex;
align-items: center;
flex-flow: wrap;
flex-flow: column;
max-width: 2000px;

@include breakpoint($md) {
flex-direction: column;
justify-content: space-between;
}

@include breakpoint($md) {
flex-flow: row nowrap;
display: grid;
grid-template-columns: 1.5fr 1.5fr 1fr min-content;
}

@include breakpoint($lg) {
Expand All @@ -35,7 +30,7 @@

.title {
display: flex;
gap: 6px;
justify-content: space-between;

font-family: "Finger Paint";
font-size: 1.2rem;
Expand Down Expand Up @@ -88,18 +83,20 @@
}
}

@include nav-lists;

nav {
display: flex;
flex-flow: column wrap;
font-size: 1.5rem;

@include breakpoint($xs) {
@include breakpoint($md) {
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
font-size: 1rem;
}

@include nav-lists;

.signout {
margin-left: 1rem;
font-weight: 500;
Expand All @@ -121,26 +118,55 @@
}
}

.social {
display: flex;

@include nav-lists;

@include breakpoint($md) {
flex-flow: row nowrap;
align-items: center;
justify-content: flex-end;
padding-right: 8px;
}

&.menuopen {
display: flex !important;
flex-flow: row;
justify-content: center;
}
}

.auth {
display: flex;
justify-content: center;
align-items: center;

&.menuopen {
display: flex !important;
}
}

.break {
flex-basis: 100%;
height: 0;
}


.mainmenu {
.mainmenu, .social, .auth {
width: 100%;

&.menuopen {
display: block;
border-top: 2px solid white;
}

&.menuclosed {
display: none;
}

@include breakpoint($md) {
display: block !important;
display: flex !important;
flex-direction: row;
}

li {
Expand Down Expand Up @@ -178,7 +204,3 @@
// padding: 6px 32px;
// }
}

.auth {
justify-content: center;
}
Loading

0 comments on commit 0f5f37f

Please sign in to comment.