feat(SW-243): refactor

This commit is contained in:
Fredrik Thorsson
2024-08-20 15:26:35 +02:00
parent 65509622d2
commit 56a85dcde7
5 changed files with 16 additions and 14 deletions

View File

@@ -9,7 +9,6 @@
.section {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--Spacing-x4);
width: 100%;
max-width: 365px;

View File

@@ -35,7 +35,7 @@ export default async function IntroSection({ email }: IntroSectionProps) {
intent="secondary"
className={styles.button}
>
Download the Scandic app
{intl.formatMessage({ id: "Download the Scandic app" })}
</Button>
<Button
size="small"
@@ -43,7 +43,7 @@ export default async function IntroSection({ email }: IntroSectionProps) {
intent="secondary"
className={styles.button}
>
View your booking
{intl.formatMessage({ id: "View your booking" })}
</Button>
</div>
</section>

View File

@@ -1,5 +1,3 @@
import { Stay } from "@/server/routers/user/output"
import { ArrowRightIcon, ScandicLogoIcon } from "@/components/Icons"
import Image from "@/components/Image"
import Body from "@/components/TempDesignSystem/Text/Body"
@@ -58,20 +56,26 @@ export default async function StaySection({ hotel, stay }: StaySectionProps) {
<Body color="burgundy">
{intl.formatMessage({ id: "Breakfast" })}
</Body>
<span>{`Mon-fri ${hotel.breakfast.start}-${hotel.breakfast.end}`}</span>
<span>{`Sat-sun ${hotel.breakfast.start}-${hotel.breakfast.end}`}</span>
<Caption className={styles.caption}>
<span>{`Mon-fri ${hotel.breakfast.start}-${hotel.breakfast.end}`}</span>
<span>{`Sat-sun ${hotel.breakfast.start}-${hotel.breakfast.end}`}</span>
</Caption>
</div>
<div className={styles.checkIn}>
<Body color="burgundy">{intl.formatMessage({ id: "Check in" })}</Body>
<span>From</span>
<span>{hotel.checkIn}</span>
<Caption className={styles.caption}>
<span>{intl.formatMessage({ id: "From" })}</span>
<span>{hotel.checkIn}</span>
</Caption>
</div>
<div className={styles.checkOut}>
<Body color="burgundy">
{intl.formatMessage({ id: "Check out" })}
</Body>
<span>At latest</span>
<span>{hotel.checkOut}</span>
<Caption className={styles.caption}>
<span>{intl.formatMessage({ id: "At latest" })}</span>
<span>{hotel.checkOut}</span>
</Caption>
</div>
</section>
</>

View File

@@ -31,6 +31,7 @@
display: flex;
flex-direction: column;
}
.dates {
display: flex;
align-items: center;
@@ -52,8 +53,6 @@
display: flex;
flex-direction: column;
gap: var(--Spacing-x-half);
font-family: var(--typography-Caption-Regular-fontFamily);
font-size: var(--typography-Caption-Regular-fontSize);
}
@media screen and (min-width: 1367px) {
@@ -69,7 +68,6 @@
.info {
flex-direction: row;
justify-content: space-between;
gap: var(--Spacing-x4);
}
.hotel,

View File

@@ -157,6 +157,7 @@
"We have sent a detailed confirmation of your booking to your email: ": "We have sent a detailed confirmation of your booking to your email: ",
"Download the Scandic app": "Download the Scandic app",
"View your booking": "View your booking",
"At latest": "At latest",
"Where to": "Where to",
"When": "When",
"Rooms & Guests": "Rooms & Guests",