Initial commit
This commit is contained in:
89
registry/components/TeamCardOne.json
Normal file
89
registry/components/TeamCardOne.json
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"name": "TeamCardOne",
|
||||
"description": "Team member card with image background, overlay info card at bottom-left corner.",
|
||||
"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": true,
|
||||
"example": "/team/sophie.jpg",
|
||||
"note": "Image path for team member photo (displays as square with rounded-theme)"
|
||||
},
|
||||
"imageAlt": {
|
||||
"required": false,
|
||||
"example": "Portrait of Sophie P.",
|
||||
"note": "Alt text for image (defaults to member name if not provided)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"propsSchema": {
|
||||
"members": "Array<{ id: string, name: string, role: string, imageSrc: string, imageAlt?: 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' (required - controls GSAP scroll animations with stagger effect)",
|
||||
"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",
|
||||
"buttons?": "Array<{text: string, onClick?: () => void, href?: string}>",
|
||||
"textboxLayout": "'default' | 'split' | 'split-actions' | 'split-description' | 'inline-image' (required - 'inline-image' uses titleSegments for rich text with images)",
|
||||
"useInvertedBackground": "'noInvert' | 'invertDefault'",
|
||||
"ariaLabel?": "string (default: 'Team section')",
|
||||
"className?": "string"
|
||||
},
|
||||
"usageExample": "<TeamCardOne members={[{ id: '1', name: 'Sophie P.', role: 'Digital Nomad', imageSrc: '/team/sophie.jpg' }]} title=\"Meet Our Team\" description=\"Get to know the people behind our success\" textboxLayout=\"default\" animationType=\"slide-up\" useInvertedBackground={\"noInvert\"} />",
|
||||
"do": [
|
||||
"Use for team pages",
|
||||
"Use for staff directories",
|
||||
"Requires members[]",
|
||||
"Requires titleSegments?[]",
|
||||
"Requires buttons?[]"
|
||||
],
|
||||
"dont": [],
|
||||
"editRules": {
|
||||
"textOnly": true,
|
||||
"layoutLocked": true,
|
||||
"styleLocked": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user