block.json
112 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "awt/child-author-featured-book", |
| 5 | "version": "1.0.0", |
| 6 | "title": "Featured Book (Child Author)", |
| 7 | "category": "theme", |
| 8 | "icon": "book", |
| 9 | "description": "Showcase a featured book with Pro Locking for styling controls.", |
| 10 | "keywords": [ |
| 11 | "featured", |
| 12 | "book", |
| 13 | "showcase", |
| 14 | "author" |
| 15 | ], |
| 16 | "textdomain": "author-website-templates", |
| 17 | "editorScript": "file:./index.js", |
| 18 | "attributes": { |
| 19 | "featuredStyle": { |
| 20 | "type": "string", |
| 21 | "default": "fun" |
| 22 | }, |
| 23 | "bookCoverId": { |
| 24 | "type": "number", |
| 25 | "default": 0 |
| 26 | }, |
| 27 | "bookCoverUrl": { |
| 28 | "type": "string", |
| 29 | "default": "https://via.placeholder.com/400x600?text=Book+Cover" |
| 30 | }, |
| 31 | "badgeText": { |
| 32 | "type": "string", |
| 33 | "default": "It's Finally Here!" |
| 34 | }, |
| 35 | "bookTitle": { |
| 36 | "type": "string", |
| 37 | "default": "[Title of the Featured Book]" |
| 38 | }, |
| 39 | "bookDesc": { |
| 40 | "type": "string", |
| 41 | "default": "Join [Main Character] on their most exciting adventure yet! This story is all about friendship, courage, and the magic of being yourself." |
| 42 | }, |
| 43 | "quoteText": { |
| 44 | "type": "string", |
| 45 | "default": "\"My kids ask to read this *every single night*. A new family favorite!\"" |
| 46 | }, |
| 47 | "quoteAuthor": { |
| 48 | "type": "string", |
| 49 | "default": "— Sarah, Parent" |
| 50 | }, |
| 51 | "btnText": { |
| 52 | "type": "string", |
| 53 | "default": "Order Your Copy!" |
| 54 | }, |
| 55 | "btnUrl": { |
| 56 | "type": "string", |
| 57 | "default": "#" |
| 58 | }, |
| 59 | "sectionBgColor": { |
| 60 | "type": "string", |
| 61 | "default": "" |
| 62 | }, |
| 63 | "sectionPadding": { |
| 64 | "type": "number", |
| 65 | "default": null |
| 66 | }, |
| 67 | "badgeColor": { |
| 68 | "type": "string", |
| 69 | "default": "" |
| 70 | }, |
| 71 | "titleColor": { |
| 72 | "type": "string", |
| 73 | "default": "" |
| 74 | }, |
| 75 | "btnBgColor": { |
| 76 | "type": "string", |
| 77 | "default": "" |
| 78 | }, |
| 79 | "btnTextColor": { |
| 80 | "type": "string", |
| 81 | "default": "" |
| 82 | }, |
| 83 | "btnHoverBgColor": { |
| 84 | "type": "string", |
| 85 | "default": "" |
| 86 | }, |
| 87 | "btnHoverTextColor": { |
| 88 | "type": "string", |
| 89 | "default": "" |
| 90 | }, |
| 91 | "blockId": { |
| 92 | "type": "string", |
| 93 | "default": "" |
| 94 | }, |
| 95 | "align": { |
| 96 | "type": "string", |
| 97 | "default": "full" |
| 98 | } |
| 99 | }, |
| 100 | "supports": { |
| 101 | "html": false, |
| 102 | "color": false, |
| 103 | "typography": false, |
| 104 | "spacing": false, |
| 105 | "align": [ |
| 106 | "full", |
| 107 | "wide" |
| 108 | ], |
| 109 | "alignWide": true |
| 110 | }, |
| 111 | "style": "file:./index.css" |
| 112 | } |