feat(SW-936): add breakpoints
This commit is contained in:
@@ -23,7 +23,7 @@ export default async function MeetingsAndConferencesSidePeek({
|
|||||||
const intl = await getIntl()
|
const intl = await getIntl()
|
||||||
const fallbackAlt = intl.formatMessage({ id: "Creative spaces for meetings" })
|
const fallbackAlt = intl.formatMessage({ id: "Creative spaces for meetings" })
|
||||||
|
|
||||||
const getImage = (index: number) => {
|
function getImage(index: number) {
|
||||||
const list = meetingFacilities?.heroImages[index]
|
const list = meetingFacilities?.heroImages[index]
|
||||||
return {
|
return {
|
||||||
image: list?.imageSizes.medium,
|
image: list?.imageSizes.medium,
|
||||||
@@ -60,7 +60,7 @@ export default async function MeetingsAndConferencesSidePeek({
|
|||||||
alt={secondaryAltText}
|
alt={secondaryAltText}
|
||||||
height={300}
|
height={300}
|
||||||
width={200}
|
width={200}
|
||||||
className={styles.image}
|
className={`${styles.image} ${styles.secondaryImage}`}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,19 +6,17 @@
|
|||||||
); /* Creates space between the wrapper and buttonContainer */
|
); /* Creates space between the wrapper and buttonContainer */
|
||||||
}
|
}
|
||||||
|
|
||||||
.imageContainer {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
gap: var(--Spacing-x2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.image {
|
.image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 240px;
|
height: 300px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: var(--Corner-radius-Medium);
|
border-radius: var(--Corner-radius-Medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.secondaryImage {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.buttonContainer {
|
.buttonContainer {
|
||||||
background-color: var(--Base-Background-Primary-Normal);
|
background-color: var(--Base-Background-Primary-Normal);
|
||||||
border-top: 1px solid var(--Base-Border-Subtle);
|
border-top: 1px solid var(--Base-Border-Subtle);
|
||||||
@@ -28,3 +26,19 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
.imageContainer {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: var(--Spacing-x2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.image {
|
||||||
|
height: 240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.secondaryImage {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user