fix: update loyalty cards and join loyalty sidebar design

This commit is contained in:
Christel Westerberg
2024-06-27 16:44:40 +02:00
parent 33771a0608
commit 5be118d9e5
20 changed files with 166 additions and 81 deletions

View File

@@ -1,5 +1,4 @@
import Button from "@/components/TempDesignSystem/Button"
import Divider from "@/components/TempDesignSystem/Divider"
import Link from "@/components/TempDesignSystem/Link"
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
import Body from "@/components/TempDesignSystem/Text/Body"
@@ -47,7 +46,6 @@ export default function Card({
<BiroScript className={styles.scriptedTitle} type="two">
{scriptedTopTitle}
</BiroScript>
<Divider />
</section>
) : null}
<Title as="h5" className={styles.heading} level="h3">

View File

@@ -102,6 +102,10 @@
color: var(--Scandic-Peach-80);
}
.white {
color: var(--Base-Button-Primary-On-Fill-Normal);
}
.regular {
font-family: var(--typography-Body-Regular-fontFamily);
font-size: var(--typography-Body-Regular-fontSize);

View File

@@ -13,6 +13,7 @@ export const linkVariants = cva(styles.link, {
none: "",
pale: styles.pale,
peach80: styles.peach80,
white: styles.white,
},
size: {
small: styles.small,

View File

@@ -26,6 +26,14 @@
line-height: var(--typography-Script-2-lineHeight);
}
.tiltedSmall {
transform: rotate(-2deg);
}
.tiltedLarge {
transform: rotate(-13deg) translate(0px, -15px);
}
.center {
text-align: center;
}

View File

@@ -10,6 +10,7 @@ export default function BiroScript({
color,
textAlign,
type,
tilted,
...props
}: BiroScriptProps) {
const Comp = asChild ? Slot : "span"
@@ -18,6 +19,7 @@ export default function BiroScript({
color,
textAlign,
type,
tilted,
})
return <Comp className={classNames} {...props} />
}

View File

@@ -19,6 +19,10 @@ const config = {
one: styles.one,
two: styles.two,
},
tilted: {
small: styles.tiltedSmall,
large: styles.tiltedLarge,
},
},
defaultVariants: {
type: "one",

View File

@@ -43,4 +43,8 @@
.pale {
color: var(--Scandic-Brand-Pale-Peach);
}
}
.textMediumContrast {
color: var(--Base-Text-UI-Medium-contrast);
}

View File

@@ -8,6 +8,7 @@ const config = {
black: styles.black,
burgundy: styles.burgundy,
pale: styles.pale,
textMediumContrast: styles.textMediumContrast,
},
textAlign: {
center: styles.center,