Feature Grid #13
@@ -59,11 +59,13 @@ const ContentLockup = ({
|
|||||||
{/* Title container */}
|
{/* Title container */}
|
||||||
<div className={styles.titleContainer}>
|
<div className={styles.titleContainer}>
|
||||||
<h1 className={styles.title}>{title}</h1>
|
<h1 className={styles.title}>{title}</h1>
|
||||||
<img
|
{variant === "hero" && (
|
||||||
src="assets/Shapes_1.svg"
|
<img
|
||||||
alt="Decorative shapes"
|
src="assets/Shapes_1.svg"
|
||||||
className={styles.shape}
|
alt="Decorative shapes"
|
||||||
/>
|
className={styles.shape}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Subtitle */}
|
{/* Subtitle */}
|
||||||
|
|||||||
@@ -6,50 +6,54 @@ import MiniCard from "./MiniCard";
|
|||||||
|
|
||||||
const FeatureGrid = ({ title, subtitle, className = "" }) => {
|
const FeatureGrid = ({ title, subtitle, className = "" }) => {
|
||||||
return (
|
return (
|
||||||
<section
|
<div className="p-0 lg:p-[var(--spacing-scale-064)]">
|
||||||
className={`py-[var(--spacing-scale-032)] px-[var(--spacing-scale-020)] md:pt-[var(--spacing-scale-076)] md:pb-[var(--spacing-scale-048)] md:px-[var(--spacing-scale-048)] bg-transparent ${className}`}
|
<section
|
||||||
aria-labelledby="feature-grid-headline"
|
className={`py-[var(--spacing-scale-032)] px-[var(--spacing-scale-020)] md:pt-[var(--spacing-scale-076)] md:pb-[var(--spacing-scale-048)] lg:pb-[var(--spacing-scale-076)] md:px-[var(--spacing-scale-048)] bg-[#171717] rounded-[var(--radius-measures-radius-xlarge)] ${className}`}
|
||||||
role="region"
|
aria-labelledby="feature-grid-headline"
|
||||||
>
|
role="region"
|
||||||
<div className="max-w-[1200px] mx-auto gap-[var(--spacing-scale-048)]">
|
>
|
||||||
{/* Feature Content Lockup */}
|
<div className="w-full mx-auto gap-[var(--spacing-scale-048)] lg:flex lg:items-start lg:gap-[var(--spacing-scale-048)] [container-type:inline-size]">
|
||||||
<ContentLockup
|
{/* Feature Content Lockup */}
|
||||||
title={title}
|
<div className="lg:shrink lg:min-w-0">
|
||||||
subtitle={subtitle}
|
<ContentLockup
|
||||||
variant="feature"
|
title={title}
|
||||||
linkText="Learn more"
|
subtitle={subtitle}
|
||||||
linkHref="#"
|
variant="feature"
|
||||||
/>
|
linkText="Learn more"
|
||||||
|
linkHref="#"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* MiniCard Grid */}
|
{/* MiniCard Grid */}
|
||||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-[var(--spacing-scale-012)] mt-[var(--spacing-scale-048)]">
|
<div className="grid grid-cols-2 md:grid-cols-4 gap-[var(--spacing-scale-012)] mt-[var(--spacing-scale-048)] lg:mt-0 lg:flex-grow lg:shrink-0">
|
||||||
<MiniCard
|
<MiniCard
|
||||||
backgroundColor="bg-[var(--color-surface-default-brand-royal)]"
|
backgroundColor="bg-[var(--color-surface-default-brand-royal)]"
|
||||||
labelLine1="Decision-making"
|
labelLine1="Decision-making"
|
||||||
labelLine2="support"
|
labelLine2="support"
|
||||||
panelContent="assets/Feature_Support.png"
|
panelContent="assets/Feature_Support.png"
|
||||||
/>
|
/>
|
||||||
<MiniCard
|
<MiniCard
|
||||||
backgroundColor="bg-[#D1FFE2]"
|
backgroundColor="bg-[#D1FFE2]"
|
||||||
labelLine1="Values alignment"
|
labelLine1="Values alignment"
|
||||||
labelLine2="exercises"
|
labelLine2="exercises"
|
||||||
panelContent="assets/Feature_Exercises.png"
|
panelContent="assets/Feature_Exercises.png"
|
||||||
/>
|
/>
|
||||||
<MiniCard
|
<MiniCard
|
||||||
backgroundColor="bg-[#F4CAFF]"
|
backgroundColor="bg-[#F4CAFF]"
|
||||||
labelLine1="Membership"
|
labelLine1="Membership"
|
||||||
labelLine2="guidance"
|
labelLine2="guidance"
|
||||||
panelContent="assets/Feature_Guidance.png"
|
panelContent="assets/Feature_Guidance.png"
|
||||||
/>
|
/>
|
||||||
<MiniCard
|
<MiniCard
|
||||||
backgroundColor="bg-[#CBDDFF]"
|
backgroundColor="bg-[#CBDDFF]"
|
||||||
labelLine1="Conflict resolution"
|
labelLine1="Conflict resolution"
|
||||||
labelLine2="tools"
|
labelLine2="tools"
|
||||||
panelContent="assets/Feature_Tools.png"
|
panelContent="assets/Feature_Tools.png"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</section>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user