Feature Grid #13

Merged
an.di merged 17 commits from adilallo/component/FeatureGrid into main 2025-08-28 20:30:26 +00:00
Owner

Add FeatureGrid Component with MiniCard and ContentLockup Variants

Overview

This PR introduces a new FeatureGrid component that displays feature tools and services in a responsive grid layout, along with supporting subcomponents and enhancements to existing components.

Components Added/Modified

New Components

  • FeatureGrid - Main component with responsive layout (2x2 mobile, 1x4 tablet/desktop)
  • MiniCard - Feature card component with colored backgrounds and two-line labels

Enhanced Components

  • ContentLockup - Added feature variant with white text and link support

Key Features

FeatureGrid

  • Responsive layout: 2x2 grid on mobile, 1x4 on tablet/desktop
  • Horizontal layout at lg breakpoint with ContentLockup on left, MiniCard grid on right
  • Dark background (#171717) with rounded corners
  • Proper accessibility with ARIA labels and keyboard navigation
  • Container queries for flexible sizing

MiniCard

  • Fixed height (186px) with colored background panels
  • Two-line white labels with consistent spacing
  • Icon support with maintained aspect ratios
  • Interactive states (hover, focus) with keyboard navigation
  • Multiple rendering modes: link, button, or static div

ContentLockup Feature Variant

  • White text (Bricolage 500 32px title, Space Grotesk 400 20px subtitle)
  • 12px gap between elements
  • Optional underlined link (Inter 500 16px)
  • No decorative shape (removed for feature variant)

Screenshots

Screenshot 2025-08-27 at 10.33.03 AM.png Screenshot 2025-08-27 at 10.33.33 AM.png Screenshot 2025-08-27 at 10.37.04 AM.png

Technical Implementation

Responsive Design

  • Uses CSS Grid with grid-cols-2 md:grid-cols-4
  • Container queries with [container-type:inline-size]
  • Flexible sizing with clamp() and calc() for optimal layout
  • MiniCards maintain minimum width (106px) while expanding with available space

Accessibility

  • Proper ARIA labels and roles
  • Focus indicators with brand color rings
  • Keyboard navigation support (Enter/Space keys)
  • Semantic HTML structure with <section> element

Styling

  • Consistent use of design tokens for spacing and colors
  • Multi-colored noise textures on SVG icons
  • Hover states with scale transforms
  • Focus states with ring indicators

Testing

  • Component tested across all breakpoints
  • Accessibility verified with keyboard navigation
  • Storybook stories created for documentation
  • Visual consistency checked with design system
# Add FeatureGrid Component with MiniCard and ContentLockup Variants ## Overview This PR introduces a new `FeatureGrid` component that displays feature tools and services in a responsive grid layout, along with supporting subcomponents and enhancements to existing components. ## Components Added/Modified ### New Components - **`FeatureGrid`** - Main component with responsive layout (2x2 mobile, 1x4 tablet/desktop) - **`MiniCard`** - Feature card component with colored backgrounds and two-line labels ### Enhanced Components - **`ContentLockup`** - Added `feature` variant with white text and link support ## Key Features ### FeatureGrid - Responsive layout: 2x2 grid on mobile, 1x4 on tablet/desktop - Horizontal layout at `lg` breakpoint with ContentLockup on left, MiniCard grid on right - Dark background (`#171717`) with rounded corners - Proper accessibility with ARIA labels and keyboard navigation - Container queries for flexible sizing ### MiniCard - Fixed height (186px) with colored background panels - Two-line white labels with consistent spacing - Icon support with maintained aspect ratios - Interactive states (hover, focus) with keyboard navigation - Multiple rendering modes: link, button, or static div ### ContentLockup Feature Variant - White text (Bricolage 500 32px title, Space Grotesk 400 20px subtitle) - 12px gap between elements - Optional underlined link (Inter 500 16px) - No decorative shape (removed for feature variant) ### Screenshots <img width="426" alt="Screenshot 2025-08-27 at 10.33.03 AM.png" src="attachments/e232935f-96f7-4154-a083-a79954b9fbfc"> <img width="620" alt="Screenshot 2025-08-27 at 10.33.33 AM.png" src="attachments/4ea5d99b-1de8-44c3-8708-b05c9e08c9c8"> <img width="948" alt="Screenshot 2025-08-27 at 10.37.04 AM.png" src="attachments/8de47c9c-c456-4fb1-9841-1ce71a1ec2b8"> ## Technical Implementation ### Responsive Design - Uses CSS Grid with `grid-cols-2 md:grid-cols-4` - Container queries with `[container-type:inline-size]` - Flexible sizing with `clamp()` and `calc()` for optimal layout - MiniCards maintain minimum width (106px) while expanding with available space ### Accessibility - Proper ARIA labels and roles - Focus indicators with brand color rings - Keyboard navigation support (Enter/Space keys) - Semantic HTML structure with `<section>` element ### Styling - Consistent use of design tokens for spacing and colors - Multi-colored noise textures on SVG icons - Hover states with scale transforms - Focus states with ring indicators ## Testing - Component tested across all breakpoints - Accessibility verified with keyboard navigation - Storybook stories created for documentation - Visual consistency checked with design system
an.di added 11 commits 2025-08-27 16:37:16 +00:00
an.di added 6 commits 2025-08-28 20:29:45 +00:00
an.di merged commit f9ff2d0c08 into main 2025-08-28 20:30:26 +00:00
an.di self-assigned this 2025-08-28 20:30:33 +00:00
an.di deleted branch adilallo/component/FeatureGrid 2025-08-28 20:30:54 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CommunityRule/community-rule#13