fix: breakout header component to blocks header
This commit is contained in:
@@ -3,26 +3,6 @@
|
|||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
|
||||||
display: grid;
|
|
||||||
grid-template-areas: "title link";
|
|
||||||
grid-template-columns: 1fr max-content;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
grid-area: title;
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--some-black-color, #111);
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link {
|
|
||||||
grid-area: link;
|
|
||||||
}
|
|
||||||
.subtitle {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 2rem;
|
|
||||||
}
|
|
||||||
.value {
|
.value {
|
||||||
color: var(--Theme-Primary-Light-On-Surface-Text);
|
color: var(--Theme-Primary-Light-On-Surface-Text);
|
||||||
}
|
}
|
||||||
@@ -60,9 +40,3 @@
|
|||||||
color: var(--Theme-Primary-Light-On-Surface-Text);
|
color: var(--Theme-Primary-Light-On-Surface-Text);
|
||||||
aspect-ratio: 1/1;
|
aspect-ratio: 1/1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 950px) {
|
|
||||||
.card:nth-child(2) {
|
|
||||||
grid-area: card2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import Link from "next/link"
|
|||||||
import { Lang } from "@/constants/languages"
|
import { Lang } from "@/constants/languages"
|
||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
|
import Header from "@/components/MyPages/Blocks/Header"
|
||||||
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
||||||
import Title from "@/components/Title"
|
import Title from "@/components/Title"
|
||||||
|
|
||||||
@@ -34,28 +35,10 @@ export default async function CurrentBenefitsBlock({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<section className={styles.container}>
|
<section className={styles.container}>
|
||||||
<header className={styles.header}>
|
<Header title={title} link={link} subtitle={subtitle} />
|
||||||
{title && (
|
|
||||||
<Title
|
|
||||||
as="h3"
|
|
||||||
level="h2"
|
|
||||||
weight={"medium"}
|
|
||||||
className={styles.title}
|
|
||||||
uppercase
|
|
||||||
>
|
|
||||||
{title}
|
|
||||||
</Title>
|
|
||||||
)}
|
|
||||||
{link && (
|
|
||||||
<Link className={styles.link} href={link.href}>
|
|
||||||
{link.text}
|
|
||||||
</Link>
|
|
||||||
)}
|
|
||||||
</header>
|
|
||||||
{subtitle && <p className={styles.subtitle}>{subtitle}</p>}
|
|
||||||
|
|
||||||
<CardGrid>
|
<CardGrid>
|
||||||
{currentLevel.benefits.map((benefit, idx) => (
|
{currentLevel.benefits.map((benefit, idx) => (
|
||||||
<Link
|
<Link
|
||||||
href={benefit.href}
|
href={benefit.href}
|
||||||
key={`${currentLevel}-${idx}`}
|
key={`${currentLevel}-${idx}`}
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import { Lock } from "react-feather"
|
|||||||
|
|
||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
|
import Header from "@/components/MyPages/Blocks/Header"
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
||||||
import Title from "@/components/Title"
|
|
||||||
|
|
||||||
import styles from "./next.module.css"
|
import styles from "./next.module.css"
|
||||||
|
|
||||||
@@ -20,25 +20,7 @@ export default async function NextLevelBenefitsBlock({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<section className={styles.container}>
|
<section className={styles.container}>
|
||||||
<header className={styles.header}>
|
<Header title={title} subtitle={subtitle} link={link} />
|
||||||
{title && (
|
|
||||||
<Title
|
|
||||||
as="h3"
|
|
||||||
level="h2"
|
|
||||||
uppercase
|
|
||||||
weight="medium"
|
|
||||||
className={styles.title}
|
|
||||||
>
|
|
||||||
{title}
|
|
||||||
</Title>
|
|
||||||
)}
|
|
||||||
{link && (
|
|
||||||
<Link className={styles.link} href={link.href}>
|
|
||||||
{link.text}
|
|
||||||
</Link>
|
|
||||||
)}
|
|
||||||
</header>
|
|
||||||
{subtitle && <p className={styles.subtitle}>{subtitle}</p>}
|
|
||||||
<CardGrid variant="twoColumnGrid">
|
<CardGrid variant="twoColumnGrid">
|
||||||
{perks.map((perk) => (
|
{perks.map((perk) => (
|
||||||
<article key={perk.id} className={styles.card}>
|
<article key={perk.id} className={styles.card}>
|
||||||
|
|||||||
@@ -2,22 +2,6 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
|
||||||
display: grid;
|
|
||||||
grid-template-areas: "title link";
|
|
||||||
grid-template-columns: 1fr max-content;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
grid-area: title;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link {
|
|
||||||
grid-area: link;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cardContainer {
|
.cardContainer {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.4rem;
|
gap: 0.4rem;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { trpc } from "@/lib/trpc/client"
|
|||||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||||
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
||||||
|
|
||||||
|
import Header from "../../Header"
|
||||||
import Container from "../Container"
|
import Container from "../Container"
|
||||||
import Header from "../Header"
|
|
||||||
import ListContainer from "../ListContainer"
|
import ListContainer from "../ListContainer"
|
||||||
import ShowMoreButton from "../ShowMoreButton"
|
import ShowMoreButton from "../ShowMoreButton"
|
||||||
import StayCard from "../StayCard"
|
import StayCard from "../StayCard"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { serverClient } from "@/lib/trpc/server"
|
|||||||
import MaxWidth from "@/components/MaxWidth"
|
import MaxWidth from "@/components/MaxWidth"
|
||||||
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
||||||
|
|
||||||
import Header from "../Header"
|
import Header from "../../Header"
|
||||||
import StayCard from "../StayCard"
|
import StayCard from "../StayCard"
|
||||||
import EmptyUpcomingStaysBlock from "./EmptyUpcomingStays"
|
import EmptyUpcomingStaysBlock from "./EmptyUpcomingStays"
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { trpc } from "@/lib/trpc/client"
|
|||||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||||
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
||||||
|
|
||||||
|
import Header from "../../Header"
|
||||||
import Container from "../Container"
|
import Container from "../Container"
|
||||||
import Header from "../Header"
|
|
||||||
import ListContainer from "../ListContainer"
|
import ListContainer from "../ListContainer"
|
||||||
import ShowMoreButton from "../ShowMoreButton"
|
import ShowMoreButton from "../ShowMoreButton"
|
||||||
import StayCard from "../StayCard"
|
import StayCard from "../StayCard"
|
||||||
|
|||||||
Reference in New Issue
Block a user