{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 3,
    "name": "awt/author-pro-hero",
    "version": "1.0.0",
    "title": "Hero [Author Pro]",
    "category": "awt-blocks",
    "description": "Author Pro hero section with badge, title, store buttons, and book image",
    "keywords": [
        "hero",
        "author-pro",
        "book",
        "landing"
    ],
    "textdomain": "author-website-templates",
    "editorScript": "file:./index.js",
    "render": "file:./render.php",
    "attributes": {
        "align": {
            "type": "string",
            "default": "full"
        },
        "anchor": {
            "type": "string",
            "default": ""
        },
        "blockId": {
            "type": "string",
            "default": ""
        },
        "badgeText": {
            "type": "string",
            "default": "#1 New York Times Bestseller"
        },
        "badgeIcon": {
            "type": "string",
            "default": "fas fa-star"
        },
        "title": {
            "type": "string",
            "default": "Atomic <br> <em>Habits</em>"
        },
        "subtitle": {
            "type": "string",
            "default": "An Easy & Proven Way to Build Good Habits & Break Bad Ones"
        },
        "description": {
            "type": "string",
            "default": "No matter your goals, Atomic Habits offers a proven framework for improving--every day. James Clear reveals practical strategies that will teach you exactly how to form good habits and break bad ones."
        },
        "bookImageId": {
            "type": "number",
            "default": 0
        },
        "bookImageUrl": {
            "type": "string",
            "default": ""
        },
        "storeButtons": {
            "type": "array",
            "default": [
                {
                    "id": "amazon",
                    "iconKey": "amazon",
                    "iconSvg": "M353.7 226.7C305 228.5 184.2 242.2 184.2 344.2C184.2 453.7 322.5 458.2 367.7 387.4C374.2 397.6 403.1 424.9 413 434.2L469.8 378.2C469.8 378.2 437.5 352.9 437.5 325.4L437.5 178.3C437.5 153 413 96 325.2 96C237.2 96 190.5 151 190.5 200.3L264 207.1C280.3 157.6 318.2 157.6 318.2 157.6C358.9 157.5 353.7 187.4 353.7 226.7zM353.7 313.5C353.7 393.5 269.5 381.5 269.5 330.7C269.5 283.5 320 274 353.7 272.9L353.7 313.5zM489.7 477C482 487 419.7 544 315.2 544C210.7 544 130.7 472.5 106.2 443C99.4 435.3 107.2 431.7 111.7 434.7C185 479.2 299.5 552.5 484.2 465C491.7 461.3 497.5 467 489.7 477zM529.5 479.2C523 495 513.5 506 508.3 510.2C502.8 514.7 498.8 512.9 501.8 506.4C504.8 499.9 521.1 459.9 514.5 451.4C508 443.1 477.5 447.1 466.5 448.2C455.7 449.2 453.5 450.2 452.5 447.9C450.2 442.2 474.2 432.4 490 430.4C505.7 428.6 531 429.6 536 436.1C539.7 441.2 536 463.2 529.5 479.2z",
                    "iconImageUrl": "",
                    "topLabel": "Buy On",
                    "mainLabel": "Amazon",
                    "url": "#"
                },
                {
                    "id": "apple",
                    "iconKey": "facebook",
                    "iconSvg": "M447.1 332.7C446.9 296 463.5 268.3 497.1 247.9C478.3 221 449.9 206.2 412.4 203.3C376.9 200.5 338.1 224 323.9 224C308.9 224 274.5 204.3 247.5 204.3C191.7 205.2 132.4 248.8 132.4 337.5C132.4 363.7 137.2 390.8 146.8 418.7C159.6 455.4 205.8 545.4 254 543.9C279.2 543.3 297 526 329.8 526C361.6 526 378.1 543.9 406.2 543.9C454.8 543.2 496.6 461.4 508.8 424.6C443.6 393.9 447.1 334.6 447.1 332.7zM390.5 168.5C417.8 136.1 415.3 106.6 414.5 96C390.4 97.4 362.5 112.4 346.6 130.9C329.1 150.7 318.8 175.2 321 202.8C347.1 204.8 370.9 191.4 390.5 168.5z",
                    "iconImageUrl": "",
                    "topLabel": "Get On",
                    "mainLabel": "Apple Books",
                    "url": "#"
                },
                {
                    "id": "barnes",
                    "iconKey": "twitter",
                    "iconSvg": "M320 205.3L320 514.6L320.5 514.4C375.1 491.7 433.7 480 492.8 480L512 480L512 160L492.8 160C450.6 160 408.7 168.4 369.7 184.6C352.9 191.6 336.3 198.5 320 205.3zM294.9 125.5L320 136L345.1 125.5C391.9 106 442.1 96 492.8 96L528 96C554.5 96 576 117.5 576 144L576 496C576 522.5 554.5 544 528 544L492.8 544C442.1 544 391.9 554 345.1 573.5L332.3 578.8C324.4 582.1 315.6 582.1 307.7 578.8L294.9 573.5C248.1 554 197.9 544 147.2 544L112 544C85.5 544 64 522.5 64 496L64 144C64 117.5 85.5 96 112 96L147.2 96C197.9 96 248.1 106 294.9 125.5z",
                    "iconImageUrl": "",
                    "topLabel": "Order At",
                    "mainLabel": "Barnes&Noble",
                    "url": "#"
                }
            ]
        },
        "showFloatingCard": {
            "type": "boolean",
            "default": true
        },
        "floatingCardTopLabel": {
            "type": "string",
            "default": "Free"
        },
        "floatingCardMainLabel": {
            "type": "string",
            "default": "Read Sample"
        },
        "floatingCardIcon": {
            "type": "string",
            "default": "fas fa-play"
        },
        "floatingCardUrl": {
            "type": "string",
            "default": "#"
        },
        "ratingStars": {
            "type": "number",
            "default": 5
        },
        "ratingValue": {
            "type": "string",
            "default": "4.9/5"
        },
        "ratingText": {
            "type": "string",
            "default": "Rating on Goodreads (10k+ Reviews)"
        },
        "bgColor": {
            "type": "string",
            "default": ""
        },
        "shapeColor": {
            "type": "string",
            "default": ""
        },
        "accentColor": {
            "type": "string",
            "default": ""
        },
        "borderColor": {
            "type": "string",
            "default": ""
        },
        "paddingTop": {
            "type": "number",
            "default": 80
        },
        "paddingBottom": {
            "type": "number",
            "default": 80
        }
    },
    "supports": {
        "html": false,
        "anchor": true,
        "align": [
            "full"
        ],
        "alignWide": true
    }
}