fix: remove custom style and add tiltedMedium variant

This commit is contained in:
Chuma McPhoy
2024-07-08 18:01:45 +02:00
parent 0f0678e829
commit 3f2f435461
4 changed files with 6 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ export default async function IntroSection({
<section className={styles.introSection}> <section className={styles.introSection}>
<div className={styles.mainContent}> <div className={styles.mainContent}>
<div className={styles.titleContainer}> <div className={styles.titleContainer}>
<BiroScript className={styles.welcomeLabel} color="red"> <BiroScript tilted="medium" color="red">
{formatMessage({ id: "Welcome to" })}: {formatMessage({ id: "Welcome to" })}:
</BiroScript> </BiroScript>
<Title level="h2">{hotelName}</Title> <Title level="h2">{hotelName}</Title>

View File

@@ -14,10 +14,6 @@
gap: var(--Spacing-x-one-and-half); gap: var(--Spacing-x-one-and-half);
} }
.welcomeLabel {
transform: rotate(-4deg) translate(0px, -15px);
}
.introLink { .introLink {
text-decoration-color: var(--Scandic-Peach-80); text-decoration-color: var(--Scandic-Peach-80);
width: fit-content; width: fit-content;

View File

@@ -30,6 +30,10 @@
transform: rotate(-2deg); transform: rotate(-2deg);
} }
.tiltedMedium {
transform: rotate(-4deg) translate(0px, -15px);
}
.tiltedLarge { .tiltedLarge {
transform: rotate(-13deg) translate(0px, -15px); transform: rotate(-13deg) translate(0px, -15px);
} }

View File

@@ -22,6 +22,7 @@ const config = {
}, },
tilted: { tilted: {
small: styles.tiltedSmall, small: styles.tiltedSmall,
medium: styles.tiltedMedium,
large: styles.tiltedLarge, large: styles.tiltedLarge,
}, },
}, },