Feat(WEB-307) Display correct membership information * fix: fix typo * chore: update fetch of user membership * chore: update components to use api data * chore: remove lang as static value * fix: adapt to dev updates * fix: adapt to code from dev * fix: break out MembershipLevel into its a React component * fix: add enum to zod validation * refactor: rename tier to level * refactor: remove unnecessary casts * refactor: change toString() to hideEmpty=false * refactor: remove toString() * refactor: remove hideEmpty from title and subtitle * fix: update currentLevel with data * fix: fix from rebase Approved-by: Michael Zetterberg
58 lines
1.1 KiB
CSS
58 lines
1.1 KiB
CSS
.friend {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Spacing-x4);
|
|
justify-content: center;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.levelLabel {
|
|
position: relative;
|
|
transform: rotate(-13deg) translate(0px, -15px);
|
|
}
|
|
|
|
.name {
|
|
text-align: center;
|
|
}
|
|
|
|
.membership {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Spacing-x2);
|
|
justify-content: center;
|
|
}
|
|
|
|
.membershipContainer {
|
|
align-items: center;
|
|
background: var(--Scandic-Brand-Burgundy);
|
|
border-radius: var(--Corner-radius-Small);
|
|
display: grid;
|
|
gap: var(--Spacing-x1);
|
|
grid-template-columns: 1fr;
|
|
justify-items: center;
|
|
padding: var(--Spacing-x1) var(--Spacing-x2);
|
|
}
|
|
|
|
.membershipId {
|
|
color: var(--Scandic-Brand-Pale-Peach);
|
|
/* TODO: Not yet exported by the design team, change to variable l8r */
|
|
font-family: var(--ff-fira-mono, "fira mono");
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.168px;
|
|
line-height: 140%;
|
|
margin: 0;
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.membershipContainer {
|
|
grid-template-columns: auto auto;
|
|
}
|
|
}
|