feat(BOOK-757): Replaced Biroscript component with Typography

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2026-01-20 12:37:05 +00:00
parent 9e373ed600
commit 510f25a812
17 changed files with 92 additions and 250 deletions

View File

@@ -4,7 +4,6 @@ import { Typography } from "@scandic-hotels/design-system/Typography"
import { serverClient } from "@/lib/trpc/server"
import MembershipLevelIcon from "@/components/Levels/Icon"
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
import { getIntl } from "@/i18n"
import SectionWrapper from "../SectionWrapper"
@@ -62,19 +61,17 @@ async function LevelCard({ level }: LevelCardProps) {
return (
<article className={styles.card}>
<header>
<BiroScript
type="two"
color="primaryLightOnSurfaceAccent"
tilted="large"
>
{intl.formatMessage(
{
id: "common.membershipLevelWithValue",
defaultMessage: "Level {level}",
},
{ level: level.user_facing_tag }
)}
</BiroScript>
<Typography variant="Title/Decorative/md">
<p className={styles.scriptedText}>
{intl.formatMessage(
{
id: "common.membershipLevelWithValue",
defaultMessage: "Level {level}",
},
{ level: level.user_facing_tag }
)}
</p>
</Typography>
<MembershipLevelIcon level={level.level_id} color="red" />
</header>
<Typography variant="Title/xs" className={styles.pointMsg}>

View File

@@ -32,6 +32,13 @@
justify-content: center;
}
.scriptedText {
color: var(--Icon-Accent);
transform: rotate(-11deg);
transform-origin: left;
margin-bottom: -4px;
}
.redText {
color: var(--Base-Text-Accent);
}