From 716e47f77ceed813389c0220f4592d362b8c5d23 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 17 Apr 2026 21:18:51 +0000 Subject: [PATCH] Switch to version 2: added registry/components/TeamCardOne.json --- registry/components/TeamCardOne.json | 120 +++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 registry/components/TeamCardOne.json diff --git a/registry/components/TeamCardOne.json b/registry/components/TeamCardOne.json new file mode 100644 index 0000000..09ba198 --- /dev/null +++ b/registry/components/TeamCardOne.json @@ -0,0 +1,120 @@ +{ + "name": "TeamCardOne", + "description": "Team member card with image background, overlay info card at bottom-left corner.", + "details": "Use for team member profiles with compact overlay display. Layout: Outer Card (p-4) → Full Square Image → Bottom-Left Overlay Card (Name + Role Badge in row). Image has aspect-square with rounded-theme. Overlay positioned at bottom-4 left-4 with card styling. Name and role badge displayed horizontally with gap-3. Role uses primary-button styling. All core fields required for visual consistency. Best for team grids with clean, modern aesthetic. Automatically switches between grid (1-4 items) and carousel (5+ items). Optional header with title, description, tag, and buttons.", + "constraints": { + "textRules": { + "title": { + "required": true, + "example": "Meet Our Team", + "minChars": 2, + "maxChars": 35 + }, + "description": { + "required": true, + "example": "The people behind our success", + "minChars": 5, + "maxChars": 250 + }, + "tag": { + "required": false, + "example": "Team", + "minChars": 2, + "maxChars": 30 + } + }, + "teamMemberRules": { + "id": { + "required": true, + "example": "1", + "minChars": 1, + "maxChars": 20 + }, + "name": { + "required": true, + "example": "Sophie P.", + "minChars": 2, + "maxChars": 50, + "note": "Team member name displayed in overlay card" + }, + "role": { + "required": true, + "example": "Digital Nomad", + "minChars": 2, + "maxChars": 40, + "note": "Role/title displayed in primary-button badge" + }, + "imageSrc": { + "required": false, + "example": "/team/sophie.jpg", + "note": "Image path for team member photo (displays as square with rounded-theme) Either imageSrc or videoSrc should be provided. Image is recommended if no videoSrc." + }, + "videoSrc": { + "required": false, + "example": "/team/sophie.mp4", + "note": "Video path for team member (alternative to imageSrc)" + }, + "imageAlt": { + "required": false, + "example": "Portrait of Sophie P.", + "note": "Alt text for image (defaults to member name if not provided)" + }, + "videoAriaLabel": { + "required": false, + "example": "Video of Sophie P.", + "note": "Aria label for video (defaults to member name if not provided)" + } + } + }, + "propsSchema": { + "members": "Array<{ id: string, name: string, role: string, imageSrc?: string, videoSrc?: string, imageAlt?: string, videoAriaLabel?: string }>", + "carouselMode?": "'auto' | 'buttons' (default: 'buttons')", + "gridVariant": "'uniform-all-items-equal' | 'bento-grid' | 'bento-grid-inverted' | 'two-columns-alternating-heights' | 'asymmetric-60-wide-40-narrow' | 'three-columns-all-equal-width' | 'four-items-2x2-equal-grid' | 'one-large-right-three-stacked-left' | 'items-top-row-full-width-bottom' | 'full-width-top-items-bottom-row' | 'one-large-left-three-stacked-right' (required)", + "animationType": "'none' | 'opacity' | 'slide-up' | 'scale-rotate' | 'blur-reveal' | 'depth-3d'", + "uniformGridCustomHeightClasses?": "string (default: 'min-h-95 2xl:min-h-105')", + "title": "string", + "titleSegments?": "Array<{ type: 'text', content: string } | { type: 'image', src: string, alt?: string }> - For inline images in title", + "description": "string", + "tag?": "string", + "tagIcon?": "LucideIcon", + "tagAnimation?": "'none' | 'opacity' | 'slide-up' | 'blur-reveal'", + "buttons?": "Array<{text: string, onClick?: () => void, href?: string}>", + "buttonAnimation?": "'none' | 'opacity' | 'slide-up' | 'blur-reveal'", + "textboxLayout": "'default' | 'split' | 'split-actions' | 'split-description' | 'inline-image' (required - 'inline-image' uses titleSegments for rich text with images)", + "useInvertedBackground": "boolean", + "ariaLabel?": "string (default: 'Team section')", + "className?": "string", + "containerClassName?": "string", + "cardClassName?": "string", + "textBoxTitleClassName?": "string", + "textBoxTitleImageWrapperClassName?": "string - For styling image wrapper in inline-image layout", + "textBoxTitleImageClassName?": "string - For styling images in inline-image layout", + "textBoxDescriptionClassName?": "string", + "imageClassName?": "string", + "overlayClassName?": "string", + "nameClassName?": "string", + "roleClassName?": "string", + "gridClassName?": "string", + "carouselClassName?": "string", + "controlsClassName?": "string", + "textBoxClassName?": "string", + "textBoxTagClassName?": "string", + "textBoxButtonContainerClassName?": "string", + "textBoxButtonClassName?": "string", + "textBoxButtonTextClassName?": "string" + }, + "usageExample": "", + "do": [ + "Use for team pages", + "Use for staff directories", + "Requires members[]", + "Requires titleSegments?[]", + "Requires buttons?[]" + ], + "dont": [], + "editRules": { + "textOnly": true, + "layoutLocked": true, + "styleLocked": true + } +}