feat: Pass User in to main menu and introduce avatar and dropdown

This commit is contained in:
Chuma McPhoy
2024-06-19 08:31:25 +02:00
committed by Michael Zetterberg
parent 88795b673d
commit 1326789683
5 changed files with 59 additions and 32 deletions

View File

@@ -1,14 +1,14 @@
.mainMenu {
background-color: #fff;
background-color: var(--Main-Grey-White);
background-image: none;
box-shadow: 0 0 7px rgba(0, 0, 0, 0.75);
box-shadow: 0px 1.001px 1.001px 0px rgba(0, 0, 0, 0.05);
max-height: 100%;
overflow: visible;
position: fixed;
top: 0;
width: 100%;
z-index: 99999;
height: 52.39px;
height: 70.047px;
}
.container {
@@ -26,8 +26,11 @@
.navBar {
display: grid;
grid-template-columns: 1fr 80px 1fr;
grid-template-columns: auto auto 1fr auto;
grid-template-areas: "expanderBtn logoLink . buttonContainer";
grid-template-rows: 100%;
height: 100%;
padding: 0 var(--Spacing-x2);
}
.expanderBtn {
@@ -46,7 +49,7 @@
background: #757575;
border-radius: 2.3px;
display: inline-block;
height: 5px;
height: 3px;
position: relative;
transition: 0.3s;
width: 32px;
@@ -98,16 +101,19 @@
}
.logoLink {
display: inline;
/*padding: 16px 0 8px;*/
display: inline-flex;
align-items: center;
height: 100%;
width: 80px;
padding: 16px 0 8px;
padding-left: var(--Spacing-x1);
}
.logo {
width: 80px;
object-fit: fill;
}
.listWrapper {
background-color: #fff;
border-top: 1px solid #e3e0db;
@@ -228,10 +234,15 @@
}
.buttonContainer {
display: flex;
/*display: flex;*/
/*justify-content: flex-end;*/
/*align-items: center;*/
/*margin-right: 8px;*/
display: inline-flex;
justify-content: flex-end;
align-items: center;
margin-right: 8px;
gap: var(--Spacing-x3);
}
@media screen and (min-width: 950px) {
@@ -255,8 +266,8 @@
.navBar {
grid-template-columns: 132.18px 1fr auto;
align-content: center;
padding-bottom: 2px;
/*padding-bottom: 2px;*/
padding: 0px 0px var(--Spacing-x-quarter) 0px;
overflow: hidden;
}
@@ -275,7 +286,7 @@
.logo {
width: 102.17px;
height: 100%;
padding-bottom: 4px;
padding-bottom: 4px; /* TODO: Needed? */
}
.listWrapper {
@@ -300,10 +311,16 @@
.link {
background-image: none;
font-family: Helvetica, Arial, sans-serif;
font-weight: 700;
line-height: 1.15;
font-family: var(--typography-Body-Regular-fontFamily);
font-size: var(--typography-Body-Regular-fontSize);
font-feature-settings:
"clig" off,
"liga" off;
font-weight: 600;
line-height: 125%;
padding: 30px 15px;
text-transform: uppercase;
color: var(--text-black); /* Design system should return #404040 */
}
.linkRow {
@@ -322,6 +339,10 @@
.buttonContainer {
margin-right: 0;
}
.avatarButton {
display: none;
}
}
@media (min-width: 1200px) {