| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/book-shelf", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Book Shelf", |
| 7 |
"category": "bkbg-blog", |
| 8 |
"icon": "book-alt", |
| 9 |
"description": "A visual reading list with a realistic bookshelf view, cards layout, or list — complete with ratings, reading status, and genre tags.", |
| 10 |
"keywords": [ |
| 11 |
"book", |
| 12 |
"reading", |
| 13 |
"shelf", |
| 14 |
"library", |
| 15 |
"review", |
| 16 |
"list", |
| 17 |
"reading list", |
| 18 |
"goodreads" |
| 19 |
], |
| 20 |
"textdomain": "blockenberg", |
| 21 |
"editorScript": "bkbg-book-shelf-editor", |
| 22 |
"editorStyle": "bkbg-book-shelf-style", |
| 23 |
"style": "bkbg-book-shelf-style", |
| 24 |
"viewScript": "bkbg-book-shelf-frontend", |
| 25 |
"supports": { |
| 26 |
"html": false, |
| 27 |
"anchor": true, |
| 28 |
"className": true, |
| 29 |
"align": [ |
| 30 |
"wide", |
| 31 |
"full" |
| 32 |
] |
| 33 |
}, |
| 34 |
"attributes": { |
| 35 |
"shelfTitle": { |
| 36 |
"type": "string", |
| 37 |
"default": "My Reading List" |
| 38 |
}, |
| 39 |
"showTitle": { |
| 40 |
"type": "boolean", |
| 41 |
"default": true |
| 42 |
}, |
| 43 |
"layout": { |
| 44 |
"type": "string", |
| 45 |
"default": "shelf" |
| 46 |
}, |
| 47 |
"showRating": { |
| 48 |
"type": "boolean", |
| 49 |
"default": true |
| 50 |
}, |
| 51 |
"showStatus": { |
| 52 |
"type": "boolean", |
| 53 |
"default": true |
| 54 |
}, |
| 55 |
"showYear": { |
| 56 |
"type": "boolean", |
| 57 |
"default": true |
| 58 |
}, |
| 59 |
"showGenre": { |
| 60 |
"type": "boolean", |
| 61 |
"default": true |
| 62 |
}, |
| 63 |
"showAuthor": { |
| 64 |
"type": "boolean", |
| 65 |
"default": true |
| 66 |
}, |
| 67 |
"spineWidth": { |
| 68 |
"type": "number", |
| 69 |
"default": 46 |
| 70 |
}, |
| 71 |
"spineHeight": { |
| 72 |
"type": "number", |
| 73 |
"default": 190 |
| 74 |
}, |
| 75 |
"books": { |
| 76 |
"type": "array", |
| 77 |
"default": [ |
| 78 |
{ |
| 79 |
"title": "The Pragmatic Programmer", |
| 80 |
"author": "Hunt & Thomas", |
| 81 |
"coverColor": "#1d4ed8", |
| 82 |
"genre": "Engineering", |
| 83 |
"status": "read", |
| 84 |
"rating": 5, |
| 85 |
"year": 1999 |
| 86 |
}, |
| 87 |
{ |
| 88 |
"title": "Thinking, Fast and Slow", |
| 89 |
"author": "Daniel Kahneman", |
| 90 |
"coverColor": "#b45309", |
| 91 |
"genre": "Psychology", |
| 92 |
"status": "read", |
| 93 |
"rating": 5, |
| 94 |
"year": 2011 |
| 95 |
}, |
| 96 |
{ |
| 97 |
"title": "The Design of Everyday Things", |
| 98 |
"author": "Don Norman", |
| 99 |
"coverColor": "#7c3aed", |
| 100 |
"genre": "Design", |
| 101 |
"status": "read", |
| 102 |
"rating": 4, |
| 103 |
"year": 1988 |
| 104 |
}, |
| 105 |
{ |
| 106 |
"title": "Zero to One", |
| 107 |
"author": "Peter Thiel", |
| 108 |
"coverColor": "#0f766e", |
| 109 |
"genre": "Business", |
| 110 |
"status": "read", |
| 111 |
"rating": 4, |
| 112 |
"year": 2014 |
| 113 |
}, |
| 114 |
{ |
| 115 |
"title": "Deep Work", |
| 116 |
"author": "Cal Newport", |
| 117 |
"coverColor": "#b91c1c", |
| 118 |
"genre": "Productivity", |
| 119 |
"status": "reading", |
| 120 |
"rating": 4, |
| 121 |
"year": 2016 |
| 122 |
}, |
| 123 |
{ |
| 124 |
"title": "The Mom Test", |
| 125 |
"author": "Rob Fitzpatrick", |
| 126 |
"coverColor": "#d97706", |
| 127 |
"genre": "Startups", |
| 128 |
"status": "reading", |
| 129 |
"rating": 5, |
| 130 |
"year": 2013 |
| 131 |
}, |
| 132 |
{ |
| 133 |
"title": "Atomic Habits", |
| 134 |
"author": "James Clear", |
| 135 |
"coverColor": "#065f46", |
| 136 |
"genre": "Self-Help", |
| 137 |
"status": "want", |
| 138 |
"rating": 0, |
| 139 |
"year": 2018 |
| 140 |
}, |
| 141 |
{ |
| 142 |
"title": "Shape Up", |
| 143 |
"author": "Ryan Singer", |
| 144 |
"coverColor": "#831843", |
| 145 |
"genre": "Product", |
| 146 |
"status": "want", |
| 147 |
"rating": 0, |
| 148 |
"year": 2019 |
| 149 |
} |
| 150 |
] |
| 151 |
}, |
| 152 |
"fontSize": { |
| 153 |
"type": "number", |
| 154 |
"default": 13 |
| 155 |
}, |
| 156 |
"titleFontSize": { |
| 157 |
"type": "number", |
| 158 |
"default": 22 |
| 159 |
}, |
| 160 |
"spineFontSize": { |
| 161 |
"type": "number", |
| 162 |
"default": 11 |
| 163 |
}, |
| 164 |
"borderRadius": { |
| 165 |
"type": "number", |
| 166 |
"default": 14 |
| 167 |
}, |
| 168 |
"bgColor": { |
| 169 |
"type": "string", |
| 170 |
"default": "#1c1410" |
| 171 |
}, |
| 172 |
"shelfColor": { |
| 173 |
"type": "string", |
| 174 |
"default": "#8B5E3C" |
| 175 |
}, |
| 176 |
"shelfShadow": { |
| 177 |
"type": "string", |
| 178 |
"default": "#5c3d1e" |
| 179 |
}, |
| 180 |
"headerBg": { |
| 181 |
"type": "string", |
| 182 |
"default": "#2d1f14" |
| 183 |
}, |
| 184 |
"titleColor": { |
| 185 |
"type": "string", |
| 186 |
"default": "#f5deb3" |
| 187 |
}, |
| 188 |
"spineTextColor": { |
| 189 |
"type": "string", |
| 190 |
"default": "#ffffff" |
| 191 |
}, |
| 192 |
"statusReadBg": { |
| 193 |
"type": "string", |
| 194 |
"default": "#166534" |
| 195 |
}, |
| 196 |
"statusReadingBg": { |
| 197 |
"type": "string", |
| 198 |
"default": "#1e40af" |
| 199 |
}, |
| 200 |
"statusWantBg": { |
| 201 |
"type": "string", |
| 202 |
"default": "#78350f" |
| 203 |
}, |
| 204 |
"genreBg": { |
| 205 |
"type": "string", |
| 206 |
"default": "#1e293b" |
| 207 |
}, |
| 208 |
"genreColor": { |
| 209 |
"type": "string", |
| 210 |
"default": "#94a3b8" |
| 211 |
}, |
| 212 |
"cardBg": { |
| 213 |
"type": "string", |
| 214 |
"default": "#1e293b" |
| 215 |
}, |
| 216 |
"cardBorderColor": { |
| 217 |
"type": "string", |
| 218 |
"default": "#334155" |
| 219 |
}, |
| 220 |
"authorColor": { |
| 221 |
"type": "string", |
| 222 |
"default": "#94a3b8" |
| 223 |
}, |
| 224 |
"ratingColor": { |
| 225 |
"type": "string", |
| 226 |
"default": "#f59e0b" |
| 227 |
}, |
| 228 |
"typoTitle": { |
| 229 |
"type": "object", |
| 230 |
"default": {} |
| 231 |
}, |
| 232 |
"typoBody": { |
| 233 |
"type": "object", |
| 234 |
"default": {} |
| 235 |
} |
| 236 |
} |
| 237 |
} |
| 238 |
|