feat(SW-243): make section responsive
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
.test {
|
.section {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: var(--Base-Surface-Primary-light-Normal);
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
||||||
@@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
.info {
|
.info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--Spacing-x1);
|
gap: var(--Spacing-x1);
|
||||||
padding: var(--Spacing-x2);
|
padding: var(--Spacing-x2);
|
||||||
@@ -23,12 +22,7 @@
|
|||||||
font-size: var(--typography-Caption-Regular-fontSize);
|
font-size: var(--typography-Caption-Regular-fontSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hotel {
|
.hotel,
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: var(--Spacing-x-half);
|
|
||||||
}
|
|
||||||
|
|
||||||
.stay {
|
.stay {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -38,3 +32,26 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1367px) {
|
||||||
|
.section {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.image {
|
||||||
|
max-width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
max-height: 195px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: var(--Spacing-x4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hotel,
|
||||||
|
.stay {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 230px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import styles from "./confirmationCard.module.css"
|
|||||||
|
|
||||||
export default function ConfirmationCard() {
|
export default function ConfirmationCard() {
|
||||||
return (
|
return (
|
||||||
<section className={styles.test}>
|
<section className={styles.section}>
|
||||||
<div>
|
<div>
|
||||||
<Image
|
<Image
|
||||||
src="https://test3.scandichotels.com/imagevault/publishedmedia/i11isd60bh119s9486b7/downtown-camper-by-scandic-lobby-reception-desk-ch.jpg?w=640"
|
src="https://test3.scandichotels.com/imagevault/publishedmedia/i11isd60bh119s9486b7/downtown-camper-by-scandic-lobby-reception-desk-ch.jpg?w=640"
|
||||||
@@ -17,13 +17,11 @@ export default function ConfirmationCard() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.info}>
|
<div className={styles.info}>
|
||||||
<header>
|
<div className={styles.hotel}>
|
||||||
<ScandicLogoIcon color="red" />
|
<ScandicLogoIcon color="red" />
|
||||||
<Title as="h5" textTransform="capitalize">
|
<Title as="h5" textTransform="capitalize">
|
||||||
Helsinki Hub
|
Helsinki Hub
|
||||||
</Title>
|
</Title>
|
||||||
</header>
|
|
||||||
<div className={styles.hotel}>
|
|
||||||
<span>Kaisaniemenkatu 7, Helsinki</span>
|
<span>Kaisaniemenkatu 7, Helsinki</span>
|
||||||
<span>Call us at +358 300 870680</span>
|
<span>Call us at +358 300 870680</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user