| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/author-box", |
| 5 |
"title": "Author Box", |
| 6 |
"description": "Display a blog author profile card with avatar, name, bio, role and social media links.", |
| 7 |
"category": "bkbg-business", |
| 8 |
"icon": "admin-users", |
| 9 |
"keywords": [ |
| 10 |
"author", |
| 11 |
"bio", |
| 12 |
"profile", |
| 13 |
"card", |
| 14 |
"writer", |
| 15 |
"about" |
| 16 |
], |
| 17 |
"textdomain": "blockenberg", |
| 18 |
"editorScript": "bkbg-author-box-editor", |
| 19 |
"editorStyle": "bkbg-author-box-style", |
| 20 |
"style": "bkbg-author-box-style", |
| 21 |
"viewScript": "bkbg-author-box-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"name": { |
| 33 |
"type": "string", |
| 34 |
"default": "Jane Smith" |
| 35 |
}, |
| 36 |
"role": { |
| 37 |
"type": "string", |
| 38 |
"default": "Content Writer" |
| 39 |
}, |
| 40 |
"bio": { |
| 41 |
"type": "string", |
| 42 |
"default": "Jane writes about technology, design, and the future of the web. She has 10+ years of experience crafting compelling stories for top-tier publications." |
| 43 |
}, |
| 44 |
"avatarUrl": { |
| 45 |
"type": "string", |
| 46 |
"default": "" |
| 47 |
}, |
| 48 |
"avatarId": { |
| 49 |
"type": "number", |
| 50 |
"default": 0 |
| 51 |
}, |
| 52 |
"avatarSize": { |
| 53 |
"type": "number", |
| 54 |
"default": 88 |
| 55 |
}, |
| 56 |
"avatarShape": { |
| 57 |
"type": "string", |
| 58 |
"default": "circle" |
| 59 |
}, |
| 60 |
"layout": { |
| 61 |
"type": "string", |
| 62 |
"default": "horizontal" |
| 63 |
}, |
| 64 |
"showRole": { |
| 65 |
"type": "boolean", |
| 66 |
"default": true |
| 67 |
}, |
| 68 |
"links": { |
| 69 |
"type": "array", |
| 70 |
"default": [ |
| 71 |
{ |
| 72 |
"id": "l1", |
| 73 |
"platform": "twitter", |
| 74 |
"url": "", |
| 75 |
"label": "Twitter" |
| 76 |
}, |
| 77 |
{ |
| 78 |
"id": "l2", |
| 79 |
"platform": "linkedin", |
| 80 |
"url": "", |
| 81 |
"label": "LinkedIn" |
| 82 |
}, |
| 83 |
{ |
| 84 |
"id": "l3", |
| 85 |
"platform": "website", |
| 86 |
"url": "", |
| 87 |
"label": "Website" |
| 88 |
} |
| 89 |
] |
| 90 |
}, |
| 91 |
"showLinks": { |
| 92 |
"type": "boolean", |
| 93 |
"default": true |
| 94 |
}, |
| 95 |
"padding": { |
| 96 |
"type": "number", |
| 97 |
"default": 28 |
| 98 |
}, |
| 99 |
"gap": { |
| 100 |
"type": "number", |
| 101 |
"default": 24 |
| 102 |
}, |
| 103 |
"bgColor": { |
| 104 |
"type": "string", |
| 105 |
"default": "#f9fafb" |
| 106 |
}, |
| 107 |
"borderColor": { |
| 108 |
"type": "string", |
| 109 |
"default": "#e5e7eb" |
| 110 |
}, |
| 111 |
"borderRadius": { |
| 112 |
"type": "number", |
| 113 |
"default": 14 |
| 114 |
}, |
| 115 |
"showBorder": { |
| 116 |
"type": "boolean", |
| 117 |
"default": true |
| 118 |
}, |
| 119 |
"nameSize": { |
| 120 |
"type": "number", |
| 121 |
"default": 20 |
| 122 |
}, |
| 123 |
"nameWeight": { |
| 124 |
"type": "number", |
| 125 |
"default": 700 |
| 126 |
}, |
| 127 |
"nameColor": { |
| 128 |
"type": "string", |
| 129 |
"default": "#111827" |
| 130 |
}, |
| 131 |
"roleSize": { |
| 132 |
"type": "number", |
| 133 |
"default": 14 |
| 134 |
}, |
| 135 |
"roleColor": { |
| 136 |
"type": "string", |
| 137 |
"default": "#6b7280" |
| 138 |
}, |
| 139 |
"bioSize": { |
| 140 |
"type": "number", |
| 141 |
"default": 15 |
| 142 |
}, |
| 143 |
"bioColor": { |
| 144 |
"type": "string", |
| 145 |
"default": "#374151" |
| 146 |
}, |
| 147 |
"bioLineHeight": { |
| 148 |
"type": "string", |
| 149 |
"default": "1.7" |
| 150 |
}, |
| 151 |
"nameTypo": { |
| 152 |
"type": "object", |
| 153 |
"default": {} |
| 154 |
}, |
| 155 |
"roleTypo": { |
| 156 |
"type": "object", |
| 157 |
"default": {} |
| 158 |
}, |
| 159 |
"bioTypo": { |
| 160 |
"type": "object", |
| 161 |
"default": {} |
| 162 |
}, |
| 163 |
"linkColor": { |
| 164 |
"type": "string", |
| 165 |
"default": "#2563eb" |
| 166 |
}, |
| 167 |
"linkHoverColor": { |
| 168 |
"type": "string", |
| 169 |
"default": "#1d4ed8" |
| 170 |
} |
| 171 |
} |
| 172 |
} |
| 173 |
|