8.2 KiB
8.2 KiB
Card Pattern Consistency Update
This document outlines the card padding, gap, and font-weight consistency changes made across all section components.
Changes Summary
1. Container Gap Changes
OLD: gap-3 xl:gap-4 2xl:gap-5
NEW: gap-4 xl:gap-5 2xl:gap-6
2. Container Padding Changes
OLD: p-3 xl:p-4 2xl:p-5
NEW: p-6 xl:p-7 2xl:p-8
OLD: p-4 xl:p-5 2xl:p-6
NEW: p-6 xl:p-7 2xl:p-8
3. Font Weight Changes
OLD: font-medium
NEW: font-semibold
4. Margin Changes
OLD: mb-3 xl:mb-4 2xl:mb-5
NEW: mb-4 xl:mb-5 2xl:mb-6
5. Horizontal Padding Changes
OLD: px-3 xl:px-4 2xl:px-5
NEW: px-6 xl:px-7 2xl:px-8
Reference Pattern
The canonical reference is AboutFeaturesSplit.tsx:
<div className="flex flex-col md:flex-row md:items-stretch gap-5">
<div className="flex flex-col justify-center gap-4 xl:gap-5 2xl:gap-6 p-6 xl:p-7 2xl:p-8 w-full md:w-4/10 2xl:w-35/100 card rounded">
{items.map((item, index) => {
const ItemIcon = resolveIcon(item.icon);
return (
<div key={item.title}>
<div className="flex flex-col gap-2">
<div className="flex items-center justify-center shrink-0 mb-1 size-10 primary-button rounded">
<ItemIcon className="h-2/5 w-2/5 text-primary-cta-text" strokeWidth={1.5} />
</div>
<h3 className="text-2xl font-semibold">{item.title}</h3>
<p className="text-base leading-snug">{item.description}</p>
</div>
{index < items.length - 1 && (
<div className="mt-4 xl:mt-5 2xl:mt-6 border-b border-accent/40" />
)}
</div>
);
})}
</div>
<div className="p-px w-full md:w-6/10 2xl:w-7/10 h-80 md:h-auto card rounded overflow-hidden">
<div className="relative size-full">
<ImageOrVideo imageSrc={imageSrc} videoSrc={videoSrc} className="absolute inset-0 object-cover rounded" />
</div>
</div>
</div>
Files Updated
Gap Pattern (32 files)
src/components/sections/metrics/MetricsMediaCards.tsxsrc/components/sections/product/ProductVariantCards.tsxsrc/components/sections/product/ProductRatingCards.tsxsrc/components/sections/product/ProductQuantityCards.tsxsrc/components/sections/product/ProductMediaCards.tsxsrc/components/sections/team/TeamOverlayCards.tsxsrc/components/sections/testimonial/TestimonialQuoteCards.tsxsrc/components/sections/testimonial/TestimonialRatingCards.tsxsrc/components/sections/testimonial/TestimonialColumnMarqueeCards.tsxsrc/components/sections/features/FeaturesTimelineCards.tsxsrc/components/sections/features/FeaturesTaggedCards.tsxsrc/components/sections/features/FeaturesMediaGrid.tsxsrc/components/sections/features/FeaturesMediaCards.tsxsrc/components/sections/features/FeaturesGridSplit.tsxsrc/components/sections/features/FeaturesFlipCards.tsxsrc/components/sections/features/FeaturesComparison.tsxsrc/components/sections/features/FeaturesBorderGlow.tsxsrc/components/sections/features/FeaturesBentoGrid.tsxsrc/components/sections/features/FeaturesBento.tsxsrc/components/sections/features/FeaturesArrowCards.tsxsrc/components/sections/features/FeaturesIconCards.tsxsrc/components/sections/blog/BlogTagCards.tsxsrc/components/sections/blog/BlogSimpleCards.tsxsrc/components/sections/metrics/MetricsFeatureCards.tsxsrc/components/sections/metrics/MetricsSimpleCards.tsxsrc/components/sections/pricing/PricingHighlightedCards.tsxsrc/components/sections/pricing/PricingSimpleCards.tsxsrc/components/sections/pricing/PricingCenteredCards.tsxsrc/components/sections/hero/HeroWorkScrollStack.tsxsrc/components/sections/hero/HeroBillboardTestimonial.tsxsrc/components/sections/hero/HeroOverlayTestimonial.tsxsrc/components/sections/hero/HeroSplitTestimonial.tsx
Padding Pattern (44 files)
src/components/sections/about/AboutTestimonialParallax.tsxsrc/components/sections/about/AboutFeaturesSplit.tsxsrc/components/sections/metrics/MetricsMediaCards.tsxsrc/components/sections/metrics/MetricsIconCards.tsxsrc/components/sections/metrics/MetricsFeatureCards.tsxsrc/components/sections/metrics/MetricsGradientCards.tsxsrc/components/sections/metrics/MetricsSimpleCards.tsxsrc/components/sections/product/ProductVariantCards.tsxsrc/components/sections/product/ProductRatingCards.tsxsrc/components/sections/product/ProductQuantityCards.tsxsrc/components/sections/product/ProductMediaCards.tsxsrc/components/sections/faq/FaqTwoColumn.tsxsrc/components/sections/team/TeamOverlayCards.tsxsrc/components/sections/team/TeamListCards.tsxsrc/components/sections/team/TeamDetailedCards.tsxsrc/components/sections/testimonial/TestimonialQuoteCards.tsxsrc/components/sections/testimonial/TestimonialOverlayCards.tsxsrc/components/sections/testimonial/TestimonialRatingCards.tsxsrc/components/sections/testimonial/TestimonialColumnMarqueeCards.tsxsrc/components/sections/features/FeaturesTimelineCards.tsxsrc/components/sections/features/FeaturesTaggedCards.tsxsrc/components/sections/features/FeaturesRevealCardsBento.tsxsrc/components/sections/features/FeaturesResultsComparison.tsxsrc/components/sections/features/FeaturesMediaCards.tsxsrc/components/sections/features/FeaturesFlipCards.tsxsrc/components/sections/features/FeaturesComparison.tsxsrc/components/sections/features/FeaturesBorderGlow.tsxsrc/components/sections/features/FeaturesBentoGrid.tsxsrc/components/sections/features/FeaturesBento.tsxsrc/components/sections/features/FeaturesArrowCards.tsxsrc/components/sections/features/FeaturesIconCards.tsxsrc/components/sections/features/FeaturesGridSplit.tsxsrc/components/sections/blog/BlogTagCards.tsxsrc/components/sections/blog/BlogSimpleCards.tsxsrc/components/sections/blog/BlogArticle.tsxsrc/components/sections/pricing/PricingMediaCards.tsxsrc/components/sections/pricing/PricingHighlightedCards.tsxsrc/components/sections/pricing/PricingSimpleCards.tsxsrc/components/sections/pricing/PricingCenteredCards.tsxsrc/components/sections/hero/HeroBillboardTestimonial.tsxsrc/components/sections/hero/HeroOverlayTestimonial.tsxsrc/components/sections/hero/HeroSplitTestimonial.tsxsrc/components/sections/hero/HeroSplitKpi.tsxsrc/components/sections/contact/ContactSplitFormParallax.tsx
Font Weight (106+ files)
All section components with font-medium class were updated to font-semibold.
UI Components Updated (Phase 2)
src/components/ui/Card.tsx- paddingsrc/components/ui/Modal.tsx- padding, gap, margin, font-weightsrc/components/ui/Sheet.tsx- padding, gap, margin, font-weightsrc/components/ui/NavbarFloating.tsx- padding, gap, horizontal padding, font-weightsrc/components/ui/NavbarFloatingLogo.tsx- padding, gap, horizontal padding, font-weightsrc/components/ui/Accordion.tsx- font-weightsrc/components/ui/ActiveBadge.tsx- font-weightsrc/components/ui/AvatarGroup.tsx- font-weightsrc/components/ui/Calendar.tsx- font-weightsrc/components/ui/DropdownMenu.tsx- font-weightsrc/components/ui/Label.tsx- font-weightsrc/components/ui/LoaderReveal.tsx- font-weightsrc/components/ui/NavbarCentered.tsx- font-weightsrc/components/ui/NavbarDropdown.tsx- font-weightsrc/components/ui/NavbarFullscreen.tsx- font-weightsrc/components/ui/NavbarInline.tsx- font-weightsrc/components/ui/SectionErrorBoundary.tsx- font-weightsrc/components/ui/SelectorButton.tsx- font-weight
E-commerce Components Updated (Phase 2)
src/components/ecommerce/ProductCart.tsx- font-weightsrc/components/ecommerce/ProductCatalog.tsx- font-weightsrc/components/ecommerce/ProductDetailCard.tsx- font-weight
Pages Updated (Phase 2)
All 72 preview/demo pages in src/pages/ were updated with font-semibold.
Visual Impact
These changes result in:
- Larger card padding - More breathing room inside cards
- Larger gaps - More space between card elements
- Bolder titles - Semibold instead of medium weight for better hierarchy
Verification
Run npm run build to verify all changes compile correctly.