Hero Banner sm breakpoint

This commit is contained in:
adilallo
2025-08-19 16:59:17 -06:00
parent a04a5a6eeb
commit 968d687bad
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -4,12 +4,12 @@ import Button from "./Button";
const ContentLockup = ({ title, subtitle, description, ctaText, ctaHref }) => {
return (
<div className="flex flex-col gap-[var(--spacing-scale-006)] relative z-10">
<div className="flex flex-col gap-[var(--spacing-scale-006)] sm:gap-[var(--spacing-scale-012)] relative z-10">
{/* Text content container */}
<div className="flex flex-col">
{/* Title container */}
<div className="flex gap-[var(--spacing-scale-008)] items-center">
<h1 className="font-bricolage-grotesque font-medium text-[32px] leading-[32px] text-[var(--color-content-inverse-primary)]">
<h1 className="font-bricolage-grotesque font-medium text-[32px] leading-[32px] sm:text-[52px] sm:leading-[52px] text-[var(--color-content-inverse-primary)]">
{title}
</h1>
<img
@@ -20,12 +20,12 @@ const ContentLockup = ({ title, subtitle, description, ctaText, ctaHref }) => {
</div>
{/* Subtitle */}
<h2 className="font-bricolage-grotesque font-medium text-[32px] leading-[32px] text-[var(--color-content-inverse-primary)]">
<h2 className="font-bricolage-grotesque font-medium text-[32px] leading-[32px] sm:text-[52px] sm:leading-[52px] text-[var(--color-content-inverse-primary)]">
{subtitle}
</h2>
{/* Description */}
<p className="font-inter font-normal text-[14px] leading-[20px] text-[var(--color-content-inverse-primary)]">
<p className="font-inter font-[400] text-[18px] leading-[130%] text-[var(--color-content-inverse-primary)] pr-[var(--spacing-scale-032)]">
{description}
</p>
</div>
+3 -3
View File
@@ -5,15 +5,15 @@ import HeroDecor from "./HeroDecor";
const HeroBanner = ({ title, subtitle, description, ctaText, ctaHref }) => {
return (
<section className="bg-transparent px-[var(--spacing-scale-008)]">
<section className="bg-transparent px-[var(--spacing-scale-008)] sm:px-[var(--spacing-scale-010)]">
<div className="flex flex-col gap-[var(--spacing-scale-010)]">
{/* Frame container for content */}
<div className="bg-[var(--color-surface-default-brand-primary)] p-[var(--spacing-scale-012)] rounded-tl-none rounded-tr-[16px] rounded-br-[16px] rounded-bl-[16px] flex flex-col gap-[var(--spacing-scale-024)] relative overflow-hidden">
<div className="bg-[var(--color-surface-default-brand-primary)] p-[var(--spacing-scale-012)] sm:p-[var(--spacing-scale-016)] rounded-tl-none rounded-tr-[16px] rounded-br-[16px] rounded-bl-[16px] flex flex-col gap-[var(--spacing-scale-024)] sm:gap-[var(--spacing-scale-024)] relative overflow-hidden">
{/* DECORATIONS (behind content) */}
<HeroDecor
className="pointer-events-none absolute z-0
left-0 top-0
translate-x-[-72px] translate-y-[26px]
translate-x-[-72px] translate-y-[26px] sm:translate-x-[-78px] sm:translate-y-[24px]
w-[1540px] h-[645px] scale-[1.04]"
/>