feat(SW-243): add breakpoints
This commit is contained in:
@@ -1,30 +1,21 @@
|
||||
.main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--Spacing-x4);
|
||||
padding: var(--Spacing-x4) var(--Spacing-x4);
|
||||
justify-content: center;
|
||||
padding: var(--Spacing-x4);
|
||||
background-color: var(--Scandic-Brand-Warm-White);
|
||||
min-height: 100dvh;
|
||||
}
|
||||
|
||||
.section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--Spacing-x3);
|
||||
width: 100%;
|
||||
max-width: 525px;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--Spacing-x2);
|
||||
}
|
||||
|
||||
.button {
|
||||
gap: var(--Spacing-x4);
|
||||
width: 100%;
|
||||
max-width: 240px;
|
||||
justify-content: center;
|
||||
max-width: 365px;
|
||||
}
|
||||
@media screen and (min-width: 1367px) {
|
||||
.section {
|
||||
max-width: 525px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import ConfirmationCard from "@/components/HotelReservation/BookingConfirmation/ConfirmationCard"
|
||||
import ConfirmationHead from "@/components/HotelReservation/BookingConfirmation/ConfirmationHead"
|
||||
import ConfirmationSummary from "@/components/HotelReservation/BookingConfirmation/ConfirmationSummary"
|
||||
import ConfirmationTimes from "@/components/HotelReservation/BookingConfirmation/ConfirmationTimes"
|
||||
import Button from "@/components/TempDesignSystem/Button"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
|
||||
import styles from "./page.module.css"
|
||||
|
||||
@@ -11,38 +9,11 @@ export default function BookingConfirmationPage() {
|
||||
return (
|
||||
<main className={styles.main}>
|
||||
<section className={styles.section}>
|
||||
<div>
|
||||
<Title textAlign="center">Thank you</Title>
|
||||
<Title textAlign="center" as="h3">
|
||||
We look forward to your visit!
|
||||
</Title>
|
||||
</div>
|
||||
<Body color="burgundy" textAlign="center">
|
||||
We have sent a detailed confirmation of your booking to your email:
|
||||
lisa.andersson@gmail.com.
|
||||
</Body>
|
||||
<div className={styles.buttons}>
|
||||
<Button
|
||||
size="small"
|
||||
theme="base"
|
||||
intent="secondary"
|
||||
className={styles.button}
|
||||
>
|
||||
Download the Scandic app
|
||||
</Button>
|
||||
<Button
|
||||
size="small"
|
||||
theme="base"
|
||||
intent="secondary"
|
||||
className={styles.button}
|
||||
>
|
||||
View your booking
|
||||
</Button>
|
||||
</div>
|
||||
<ConfirmationHead />
|
||||
<ConfirmationCard />
|
||||
<ConfirmationTimes />
|
||||
<ConfirmationSummary />
|
||||
</section>
|
||||
<ConfirmationCard />
|
||||
<ConfirmationTimes />
|
||||
<ConfirmationSummary />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
.test {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
max-width: 365px;
|
||||
background-color: var(--Base-Surface-Primary-light-Normal);
|
||||
border-radius: var(--Corner-radius-Small);
|
||||
overflow: hidden;
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
.section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--Spacing-x3);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--Spacing-x2);
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 100%;
|
||||
max-width: 240px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1367px) {
|
||||
.buttons {
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import React from "react"
|
||||
|
||||
import Button from "@/components/TempDesignSystem/Button"
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
|
||||
import styles from "./confirmationHead.module.css"
|
||||
|
||||
export default function ConfirmationHead() {
|
||||
return (
|
||||
<section className={styles.section}>
|
||||
<div>
|
||||
<Title textAlign="center" as="h2">
|
||||
Thank you
|
||||
</Title>
|
||||
<Title textAlign="center" as="h3">
|
||||
We look forward to your visit!
|
||||
</Title>
|
||||
</div>
|
||||
<Body color="burgundy" textAlign="center">
|
||||
We have sent a detailed confirmation of your booking to your email:
|
||||
lisa.andersson@gmail.com.
|
||||
</Body>
|
||||
<div className={styles.buttons}>
|
||||
<Button
|
||||
size="small"
|
||||
theme="base"
|
||||
intent="secondary"
|
||||
className={styles.button}
|
||||
>
|
||||
Download the Scandic app
|
||||
</Button>
|
||||
<Button
|
||||
size="small"
|
||||
theme="base"
|
||||
intent="secondary"
|
||||
className={styles.button}
|
||||
>
|
||||
View your booking
|
||||
</Button>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
.section {
|
||||
width: 100%;
|
||||
max-width: 365px;
|
||||
}
|
||||
|
||||
.summary {
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
border-radius: var(--Corner-radius-Small);
|
||||
background-color: var(--Base-Surface-Primary-dark-Normal);
|
||||
width: 100%;
|
||||
max-width: 365px;
|
||||
}
|
||||
|
||||
.breakfast,
|
||||
|
||||
Reference in New Issue
Block a user