feat: use grid on no upcoming component
This commit is contained in:
@@ -1,27 +1,32 @@
|
|||||||
.container {
|
.container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 1fr min(50px);
|
||||||
|
background-color: var(--Base-Surface-Primary-Normal);
|
||||||
|
border-radius: var(--Corner-radius-Medium);
|
||||||
|
min-height: 250px;
|
||||||
|
margin-bottom: var(--Spacing-x-half);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titleContainer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: var(--Scandic-Brand-Pale-Peach);
|
background-color: var(--Scandic-Brand-Pale-Peach);
|
||||||
border-radius: var(--Corner-radius-Medium);
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--Spacing-x9);
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-bottom: var(--Spacing-x-half);
|
align-items: center;
|
||||||
min-height: 250px;
|
|
||||||
justify-content: end;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.burgundyTitle {
|
.burgundyTitle {
|
||||||
color: var(--Scandic-Brand-Burgundy);
|
color: var(--Scandic-Brand-Burgundy);
|
||||||
display: block;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
|
||||||
background-color: var(--Base-Surface-Primary-Normal);
|
|
||||||
padding: var(--Spacing-x-one-and-half) var(--Spacing-x0);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,13 +14,14 @@ export default async function EmptyUpcomingStaysBlock({ lang }: LangParams) {
|
|||||||
const { formatMessage } = await getIntl()
|
const { formatMessage } = await getIntl()
|
||||||
return (
|
return (
|
||||||
<section className={styles.container}>
|
<section className={styles.container}>
|
||||||
<Title as="h5" level="h3" color="red">
|
<div className={styles.titleContainer}>
|
||||||
{formatMessage({ id: "You have no upcoming stays." })}
|
<Title as="h5" level="h3" color="red" className={styles.title}>
|
||||||
<span className={styles.burgundyTitle}>
|
{formatMessage({ id: "You have no upcoming stays." })}
|
||||||
{" "}
|
<span className={styles.burgundyTitle}>
|
||||||
{formatMessage({ id: "Where should you go next?" })}
|
{formatMessage({ id: "Where should you go next?" })}
|
||||||
</span>
|
</span>
|
||||||
</Title>
|
</Title>
|
||||||
|
</div>
|
||||||
<Link
|
<Link
|
||||||
href={homeHrefs[env.NODE_ENV][lang]}
|
href={homeHrefs[env.NODE_ENV][lang]}
|
||||||
className={styles.link}
|
className={styles.link}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export default function StayCard({ stay, lang }: StayCardProps) {
|
|||||||
{hotelInformation.hotelName}
|
{hotelInformation.hotelName}
|
||||||
</Title>
|
</Title>
|
||||||
<div className={styles.date}>
|
<div className={styles.date}>
|
||||||
<CalendarIcon color="burgundy" className={styles.icon} />
|
<CalendarIcon color="burgundy" height={24} width={24} />
|
||||||
<Caption asChild>
|
<Caption asChild>
|
||||||
<time dateTime={arrivalDateTime}>{arrivalDate}</time>
|
<time dateTime={arrivalDateTime}>{arrivalDate}</time>
|
||||||
</Caption>
|
</Caption>
|
||||||
|
|||||||
@@ -37,8 +37,3 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--Spacing-x-half);
|
gap: var(--Spacing-x-half);
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
|
||||||
height: 1.5rem;
|
|
||||||
width: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,27 +1,32 @@
|
|||||||
.container {
|
.container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 1fr min(50px);
|
||||||
|
background-color: var(--Base-Surface-Primary-Normal);
|
||||||
|
border-radius: var(--Corner-radius-Medium);
|
||||||
|
min-height: 250px;
|
||||||
|
margin-bottom: var(--Spacing-x-half);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titleContainer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: var(--Scandic-Brand-Pale-Peach);
|
background-color: var(--Scandic-Brand-Pale-Peach);
|
||||||
border-radius: var(--Corner-radius-Medium);
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--Spacing-x9);
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-bottom: var(--Spacing-x-half);
|
align-items: center;
|
||||||
min-height: 250px;
|
|
||||||
justify-content: end;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.burgundyTitle {
|
.burgundyTitle {
|
||||||
color: var(--Scandic-Brand-Burgundy);
|
color: var(--Scandic-Brand-Burgundy);
|
||||||
display: block;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
|
||||||
background-color: var(--Base-Surface-Primary-Normal);
|
|
||||||
padding: var(--Spacing-x-one-and-half) var(--Spacing-x0);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,13 +14,14 @@ export default async function EmptyUpcomingStaysBlock({ lang }: LangParams) {
|
|||||||
const { formatMessage } = await getIntl()
|
const { formatMessage } = await getIntl()
|
||||||
return (
|
return (
|
||||||
<section className={styles.container}>
|
<section className={styles.container}>
|
||||||
<Title as="h5" level="h3" color="red">
|
<div className={styles.titleContainer}>
|
||||||
{formatMessage({ id: "You have no upcoming stays." })}
|
<Title as="h5" level="h3" color="red" className={styles.title}>
|
||||||
<span className={styles.burgundyTitle}>
|
{formatMessage({ id: "You have no upcoming stays." })}
|
||||||
{" "}
|
<span className={styles.burgundyTitle}>
|
||||||
{formatMessage({ id: "Where will you go next?" })}
|
{formatMessage({ id: "Where will you go next?" })}
|
||||||
</span>
|
</span>
|
||||||
</Title>
|
</Title>
|
||||||
|
</div>
|
||||||
<Link
|
<Link
|
||||||
href={homeHrefs[env.NODE_ENV][lang]}
|
href={homeHrefs[env.NODE_ENV][lang]}
|
||||||
className={styles.link}
|
className={styles.link}
|
||||||
|
|||||||
@@ -56,7 +56,9 @@ a.default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
align-items: baseline;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--Spacing-x-half);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SIZES */
|
/* SIZES */
|
||||||
|
|||||||
Reference in New Issue
Block a user