Numbered Cards small breakpoint
This commit is contained in:
@@ -4,15 +4,15 @@ import SectionNumber from "./SectionNumber";
|
||||
|
||||
const NumberedCard = ({ number, text, iconShape, iconColor }) => {
|
||||
return (
|
||||
<div className="bg-[var(--color-surface-inverse-primary)] rounded-[12px] p-5 shadow-lg flex flex-col gap-4">
|
||||
{/* Section Number - Top part */}
|
||||
<div className="flex justify-end">
|
||||
<div className="bg-[var(--color-surface-inverse-primary)] rounded-[12px] p-5 shadow-lg flex flex-col gap-4 sm:p-8 sm:gap-8 sm:flex-row sm:items-center">
|
||||
{/* Section Number - Left part (sm breakpoint) */}
|
||||
<div className="flex justify-end sm:justify-start sm:flex-shrink-0">
|
||||
<SectionNumber number={number} />
|
||||
</div>
|
||||
|
||||
{/* Card Content - Bottom part */}
|
||||
<div>
|
||||
<p className="font-bricolage-grotesque font-medium text-[24px] leading-[32px] text-[#141414]">
|
||||
{/* Card Content - Right part (sm breakpoint) */}
|
||||
<div className="sm:flex-1">
|
||||
<p className="font-bricolage-grotesque font-medium text-[24px] leading-[32px] sm:font-normal sm:leading-[24px] text-[#141414]">
|
||||
{text}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -6,15 +6,15 @@ import Button from "./Button";
|
||||
|
||||
const NumberedCards = ({ title, subtitle, cards }) => {
|
||||
return (
|
||||
<section className="bg-transparent py-8 px-5">
|
||||
<section className="bg-transparent py-8 px-5 sm:py-12 sm:px-8">
|
||||
<div className="max-w-[var(--spacing-measures-max-width-lg)] mx-auto">
|
||||
{/* Section Header */}
|
||||
<div className="mb-8">
|
||||
<div className="mb-8 sm:mb-8">
|
||||
<SectionHeader title={title} subtitle={subtitle} />
|
||||
</div>
|
||||
|
||||
{/* Cards Container */}
|
||||
<div className="space-y-8">
|
||||
<div className="space-y-8 sm:space-y-8">
|
||||
{cards.map((card, index) => (
|
||||
<NumberedCard
|
||||
key={index}
|
||||
@@ -27,7 +27,7 @@ const NumberedCards = ({ title, subtitle, cards }) => {
|
||||
</div>
|
||||
|
||||
{/* Call to Action Button */}
|
||||
<div className="text-center mt-8">
|
||||
<div className="text-center mt-8 sm:text-left sm:mt-8">
|
||||
<Button variant="default" size="large">
|
||||
Create CommunityRule
|
||||
</Button>
|
||||
|
||||
@@ -4,12 +4,12 @@ const SectionHeader = ({ title, subtitle }) => {
|
||||
return (
|
||||
<div className="flex flex-col gap-1 w-full">
|
||||
{/* Title - Bricolage Grotesque */}
|
||||
<h2 className="font-bricolage-grotesque font-bold text-[28px] leading-[36px] text-[var(--color-content-default-primary)]">
|
||||
<h2 className="font-bricolage-grotesque font-bold text-[28px] leading-[36px] sm:text-[32px] sm:leading-[40px] text-[var(--color-content-default-primary)]">
|
||||
{title}
|
||||
</h2>
|
||||
|
||||
{/* Subtitle - Inter */}
|
||||
<p className="font-inter font-normal text-[18px] leading-[130%] text-[#484848]">
|
||||
<p className="font-inter font-normal text-[18px] leading-[130%] sm:text-[18px] sm:leading-[32px] text-[#484848] sm:text-[var(--color-content-default-tertiary)] tracking-[0px]">
|
||||
{subtitle}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user