| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/flip-card", |
| 5 |
"title": "Flip Card", |
| 6 |
"category": "bkbg-effects", |
| 7 |
"icon": "image-rotate", |
| 8 |
"description": "Card with front (icon + title) and back (text + button) that flips on hover or click. Mostly CSS, minimal JS.", |
| 9 |
"keywords": [ |
| 10 |
"flip", |
| 11 |
"card", |
| 12 |
"hover", |
| 13 |
"interactive", |
| 14 |
"feature", |
| 15 |
"front", |
| 16 |
"back" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-flip-card-editor", |
| 20 |
"editorStyle": "bkbg-flip-card-style", |
| 21 |
"style": "bkbg-flip-card-style", |
| 22 |
"viewScript": "bkbg-flip-card-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"anchor": true, |
| 26 |
"className": true, |
| 27 |
"align": [ |
| 28 |
"wide", |
| 29 |
"full" |
| 30 |
] |
| 31 |
}, |
| 32 |
"attributes": { |
| 33 |
"blockId": { |
| 34 |
"type": "string", |
| 35 |
"default": "" |
| 36 |
}, |
| 37 |
"flipDirection": { |
| 38 |
"type": "string", |
| 39 |
"default": "horizontal" |
| 40 |
}, |
| 41 |
"flipTrigger": { |
| 42 |
"type": "string", |
| 43 |
"default": "hover" |
| 44 |
}, |
| 45 |
"flipSpeed": { |
| 46 |
"type": "number", |
| 47 |
"default": 500 |
| 48 |
}, |
| 49 |
"cardWidth": { |
| 50 |
"type": "number", |
| 51 |
"default": 280 |
| 52 |
}, |
| 53 |
"cardHeight": { |
| 54 |
"type": "number", |
| 55 |
"default": 320 |
| 56 |
}, |
| 57 |
"cardRadius": { |
| 58 |
"type": "number", |
| 59 |
"default": 16 |
| 60 |
}, |
| 61 |
"cardShadow": { |
| 62 |
"type": "string", |
| 63 |
"default": "md" |
| 64 |
}, |
| 65 |
"cardAlign": { |
| 66 |
"type": "string", |
| 67 |
"default": "center" |
| 68 |
}, |
| 69 |
"frontBgColor": { |
| 70 |
"type": "string", |
| 71 |
"default": "#ffffff" |
| 72 |
}, |
| 73 |
"frontBgGradient": { |
| 74 |
"type": "string", |
| 75 |
"default": "" |
| 76 |
}, |
| 77 |
"frontPadTop": { |
| 78 |
"type": "number", |
| 79 |
"default": 32 |
| 80 |
}, |
| 81 |
"frontPadRight": { |
| 82 |
"type": "number", |
| 83 |
"default": 24 |
| 84 |
}, |
| 85 |
"frontPadBottom": { |
| 86 |
"type": "number", |
| 87 |
"default": 32 |
| 88 |
}, |
| 89 |
"frontPadLeft": { |
| 90 |
"type": "number", |
| 91 |
"default": 24 |
| 92 |
}, |
| 93 |
"frontAlign": { |
| 94 |
"type": "string", |
| 95 |
"default": "center" |
| 96 |
}, |
| 97 |
"frontBorderColor": { |
| 98 |
"type": "string", |
| 99 |
"default": "" |
| 100 |
}, |
| 101 |
"frontBorderWidth": { |
| 102 |
"type": "number", |
| 103 |
"default": 0 |
| 104 |
}, |
| 105 |
"iconType": { |
| 106 |
"type": "string", |
| 107 |
"default": "star" |
| 108 |
}, |
| 109 |
"iconChar": { |
| 110 |
"type": "string", |
| 111 |
"default": "� |
| 112 |
" |
| 113 |
}, |
| 114 |
"iconDashicon": { |
| 115 |
"type": "string", |
| 116 |
"default": "star-filled" |
| 117 |
}, |
| 118 |
"iconImageUrl": { |
| 119 |
"type": "string", |
| 120 |
"default": "" |
| 121 |
}, |
| 122 |
"iconSize": { |
| 123 |
"type": "number", |
| 124 |
"default": 56 |
| 125 |
}, |
| 126 |
"iconColor": { |
| 127 |
"type": "string", |
| 128 |
"default": "#3b82f6" |
| 129 |
}, |
| 130 |
"iconBgShape": { |
| 131 |
"type": "string", |
| 132 |
"default": "circle-filled" |
| 133 |
}, |
| 134 |
"iconBgColor": { |
| 135 |
"type": "string", |
| 136 |
"default": "#dbeafe" |
| 137 |
}, |
| 138 |
"iconBgSize": { |
| 139 |
"type": "number", |
| 140 |
"default": 100 |
| 141 |
}, |
| 142 |
"iconBgRadius": { |
| 143 |
"type": "number", |
| 144 |
"default": 50 |
| 145 |
}, |
| 146 |
"iconGapBottom": { |
| 147 |
"type": "number", |
| 148 |
"default": 20 |
| 149 |
}, |
| 150 |
"frontTitle": { |
| 151 |
"type": "string", |
| 152 |
"default": "Card Title" |
| 153 |
}, |
| 154 |
"frontTitleTag": { |
| 155 |
"type": "string", |
| 156 |
"default": "h3" |
| 157 |
}, |
| 158 |
"frontTitleSize": { |
| 159 |
"type": "number", |
| 160 |
"default": 20 |
| 161 |
}, |
| 162 |
"frontTitleWeight": { |
| 163 |
"type": "number", |
| 164 |
"default": 700 |
| 165 |
}, |
| 166 |
"frontTitleColor": { |
| 167 |
"type": "string", |
| 168 |
"default": "#1e293b" |
| 169 |
}, |
| 170 |
"frontTitleLH": { |
| 171 |
"type": "number", |
| 172 |
"default": 1.3 |
| 173 |
}, |
| 174 |
"showFrontSub": { |
| 175 |
"type": "boolean", |
| 176 |
"default": true |
| 177 |
}, |
| 178 |
"frontSub": { |
| 179 |
"type": "string", |
| 180 |
"default": "Short tagline or category" |
| 181 |
}, |
| 182 |
"frontSubSize": { |
| 183 |
"type": "number", |
| 184 |
"default": 13 |
| 185 |
}, |
| 186 |
"frontSubWeight": { |
| 187 |
"type": "number", |
| 188 |
"default": 400 |
| 189 |
}, |
| 190 |
"frontSubColor": { |
| 191 |
"type": "string", |
| 192 |
"default": "#6b7280" |
| 193 |
}, |
| 194 |
"frontSubSpacing": { |
| 195 |
"type": "number", |
| 196 |
"default": 8 |
| 197 |
}, |
| 198 |
"frontSubPosition": { |
| 199 |
"type": "string", |
| 200 |
"default": "below-title" |
| 201 |
}, |
| 202 |
"showFlipHint": { |
| 203 |
"type": "boolean", |
| 204 |
"default": true |
| 205 |
}, |
| 206 |
"flipHintColor": { |
| 207 |
"type": "string", |
| 208 |
"default": "#94a3b8" |
| 209 |
}, |
| 210 |
"flipHintSize": { |
| 211 |
"type": "number", |
| 212 |
"default": 11 |
| 213 |
}, |
| 214 |
"flipHintText": { |
| 215 |
"type": "string", |
| 216 |
"default": "" |
| 217 |
}, |
| 218 |
"backBgColor": { |
| 219 |
"type": "string", |
| 220 |
"default": "#3b82f6" |
| 221 |
}, |
| 222 |
"backBgGradient": { |
| 223 |
"type": "string", |
| 224 |
"default": "" |
| 225 |
}, |
| 226 |
"backPadTop": { |
| 227 |
"type": "number", |
| 228 |
"default": 32 |
| 229 |
}, |
| 230 |
"backPadRight": { |
| 231 |
"type": "number", |
| 232 |
"default": 24 |
| 233 |
}, |
| 234 |
"backPadBottom": { |
| 235 |
"type": "number", |
| 236 |
"default": 32 |
| 237 |
}, |
| 238 |
"backPadLeft": { |
| 239 |
"type": "number", |
| 240 |
"default": 24 |
| 241 |
}, |
| 242 |
"backAlign": { |
| 243 |
"type": "string", |
| 244 |
"default": "center" |
| 245 |
}, |
| 246 |
"backBorderColor": { |
| 247 |
"type": "string", |
| 248 |
"default": "" |
| 249 |
}, |
| 250 |
"backBorderWidth": { |
| 251 |
"type": "number", |
| 252 |
"default": 0 |
| 253 |
}, |
| 254 |
"showBackTitle": { |
| 255 |
"type": "boolean", |
| 256 |
"default": true |
| 257 |
}, |
| 258 |
"backTitle": { |
| 259 |
"type": "string", |
| 260 |
"default": "More Detail" |
| 261 |
}, |
| 262 |
"backTitleTag": { |
| 263 |
"type": "string", |
| 264 |
"default": "h3" |
| 265 |
}, |
| 266 |
"backTitleSize": { |
| 267 |
"type": "number", |
| 268 |
"default": 20 |
| 269 |
}, |
| 270 |
"backTitleWeight": { |
| 271 |
"type": "number", |
| 272 |
"default": 700 |
| 273 |
}, |
| 274 |
"backTitleColor": { |
| 275 |
"type": "string", |
| 276 |
"default": "#ffffff" |
| 277 |
}, |
| 278 |
"backTitleLH": { |
| 279 |
"type": "number", |
| 280 |
"default": 1.3 |
| 281 |
}, |
| 282 |
"backTitleSpacing": { |
| 283 |
"type": "number", |
| 284 |
"default": 12 |
| 285 |
}, |
| 286 |
"backText": { |
| 287 |
"type": "string", |
| 288 |
"default": "Here is the detailed description of this card. Add any text you'd like to appear on the reverse." |
| 289 |
}, |
| 290 |
"backTextSize": { |
| 291 |
"type": "number", |
| 292 |
"default": 14 |
| 293 |
}, |
| 294 |
"backTextWeight": { |
| 295 |
"type": "number", |
| 296 |
"default": 400 |
| 297 |
}, |
| 298 |
"backTextColor": { |
| 299 |
"type": "string", |
| 300 |
"default": "#e0f2fe" |
| 301 |
}, |
| 302 |
"backTextLH": { |
| 303 |
"type": "number", |
| 304 |
"default": 1.65 |
| 305 |
}, |
| 306 |
"backTextSpacing": { |
| 307 |
"type": "number", |
| 308 |
"default": 20 |
| 309 |
}, |
| 310 |
"showButton": { |
| 311 |
"type": "boolean", |
| 312 |
"default": true |
| 313 |
}, |
| 314 |
"btnLabel": { |
| 315 |
"type": "string", |
| 316 |
"default": "Learn More" |
| 317 |
}, |
| 318 |
"btnUrl": { |
| 319 |
"type": "string", |
| 320 |
"default": "#" |
| 321 |
}, |
| 322 |
"btnTarget": { |
| 323 |
"type": "string", |
| 324 |
"default": "_self" |
| 325 |
}, |
| 326 |
"btnSize": { |
| 327 |
"type": "string", |
| 328 |
"default": "md" |
| 329 |
}, |
| 330 |
"btnStyle": { |
| 331 |
"type": "string", |
| 332 |
"default": "solid" |
| 333 |
}, |
| 334 |
"btnBgColor": { |
| 335 |
"type": "string", |
| 336 |
"default": "#ffffff" |
| 337 |
}, |
| 338 |
"btnTextColor": { |
| 339 |
"type": "string", |
| 340 |
"default": "#3b82f6" |
| 341 |
}, |
| 342 |
"btnBorderColor": { |
| 343 |
"type": "string", |
| 344 |
"default": "#ffffff" |
| 345 |
}, |
| 346 |
"btnRadius": { |
| 347 |
"type": "number", |
| 348 |
"default": 8 |
| 349 |
}, |
| 350 |
"btnFontSize": { |
| 351 |
"type": "number", |
| 352 |
"default": 14 |
| 353 |
}, |
| 354 |
"btnFontWeight": { |
| 355 |
"type": "number", |
| 356 |
"default": 600 |
| 357 |
}, |
| 358 |
"typoFrontTitle": { "type": "object", "default": {} }, |
| 359 |
"typoFrontSub": { "type": "object", "default": {} }, |
| 360 |
"typoBackTitle": { "type": "object", "default": {} }, |
| 361 |
"typoBackText": { "type": "object", "default": {} }, |
| 362 |
"typoBtn": { "type": "object", "default": {} } |
| 363 |
} |
| 364 |
} |
| 365 |
|