外部AI向けガイドに戻る

LiteWord テーマ情報

保存・アップロード・公開の前には、必ず秘密情報・非公開の個人情報を出さない手順を確認してください。

{
    "name": "wdl/paid-block-lw-button-5",
    "title": "リンクボタン 05",
    "category": "lw-button",
    "description": "電話番号のボタンを横に並べる。受話器アイコン+大きな番号+小さな副文(店名や受付時間)。支店・教室・営業所・サロンが複数あるときの一覧に",
    "aiHint": {
        "description": "電話番号のボタンを横に並べる。受話器アイコン+大きな番号+小さな副文(店名や受付時間)。支店・教室・営業所・サロンが複数あるときの一覧に",
        "excludeFromAutoSelect": false,
        "contentAttributes": [
            "buttons"
        ],
        "imageAttributes": [],
        "notes": "🚨 **ボタンの文字は CSS で `color:#fff` 固定なのに、背景 `bgColor` の既定が `var(--color-main)`。**明るいサイト色(黄 #f5b301 で 1.85:1)だと電話番号が読めない。`color-mix(in srgb, var(--color-main) 50%, #000)` のように暗くして渡す。🚨 **色は `buttons` の1件ずつに入っている。全部に入れること**(1つ忘れると1枚だけ明るくなる)。🚨 **`btnUrl` は `tel:` のあとを数字だけにする**(ハイフンを入れると発信できない端末がある)。🚨 **`selectedIcon` を省くとアイコンが消えて左に寄る。** 既定の受話器を使うなら触らない。`blockId` は書かない(編集画面が `clientId` から採番する)。⚠️ そのため手元のプレビューでは `id=\"undefined-1\"` になるが、実機では正しい値が入る。自前で `margin: 32px 0` を持つので前後にスペーサーを足さない。500px 以下は1枚あたり max-width:300px で縦に積まれるので副文は短くする。`buttons` は `[{enabled, btnText, subText, bgColor, textColor, btnUrl, openNewTab, selectedIcon}]`。"
    },
    "attributes": {
        "blockId": {
            "type": "string",
            "default": null,
            "aiHint": {
                "skip": true
            }
        },
        "fontWeight": {
            "type": "string",
            "default": "400",
            "aiHint": {
                "skip": true
            }
        },
        "FontSet": {
            "type": "string",
            "default": "",
            "aiHint": {
                "skip": true
            }
        },
        "position": {
            "type": "string",
            "default": "center",
            "aiHint": {
                "skip": true
            }
        },
        "gapX": {
            "type": "number",
            "default": 12,
            "aiHint": {
                "skip": true
            }
        },
        "gapY": {
            "type": "number",
            "default": 12,
            "aiHint": {
                "skip": true
            }
        },
        "borderRadius": {
            "type": "number",
            "default": 12,
            "aiHint": {
                "skip": true
            }
        },
        "buttons": {
            "type": "array",
            "default": [
                {
                    "enabled": true,
                    "btnText": "03-0000-0000",
                    "subText": "受付時間 10:00~17:00",
                    "bgColor": "var(--color-main)",
                    "textColor": "#ffffff",
                    "btnUrl": "",
                    "openNewTab": false,
                    "selectedIcon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M280 0C408.1 0 512 103.9 512 232c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-101.6-82.4-184-184-184c-13.3 0-24-10.7-24-24s10.7-24 24-24zm8 192a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm-32-72c0-13.3 10.7-24 24-24c75.1 0 136 60.9 136 136c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-48.6-39.4-88-88-88c-13.3 0-24-10.7-24-24zM117.5 1.4c19.4-5.3 39.7 4.6 47.4 23.2l40 96c6.8 16.3 2.1 35.2-11.6 46.3L144 207.3c33.3 70.4 90.3 127.4 160.7 160.7L345 318.7c11.2-13.7 30-18.4 46.3-11.6l96 40c18.6 7.7 28.5 28 23.2 47.4l-24 88C481.8 499.9 466 512 448 512C200.6 512 0 311.4 0 64C0 46 12.1 30.2 29.5 25.4l88-24z\"/></svg>",
                    "iconVisible": true,
                    "iconWidth": 34,
                    "iconColor": "#ffffff",
                    "outerBorderWidth": 0,
                    "outerBorderColor": "var(--color-main)",
                    "borderWidth": 1,
                    "borderColor": "#ffffff"
                },
                {
                    "enabled": true,
                    "btnText": "03-0000-0000",
                    "subText": "受付時間 10:00~17:00",
                    "bgColor": "var(--color-main)",
                    "textColor": "#ffffff",
                    "btnUrl": "",
                    "openNewTab": false,
                    "selectedIcon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M280 0C408.1 0 512 103.9 512 232c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-101.6-82.4-184-184-184c-13.3 0-24-10.7-24-24s10.7-24 24-24zm8 192a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm-32-72c0-13.3 10.7-24 24-24c75.1 0 136 60.9 136 136c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-48.6-39.4-88-88-88c-13.3 0-24-10.7-24-24zM117.5 1.4c19.4-5.3 39.7 4.6 47.4 23.2l40 96c6.8 16.3 2.1 35.2-11.6 46.3L144 207.3c33.3 70.4 90.3 127.4 160.7 160.7L345 318.7c11.2-13.7 30-18.4 46.3-11.6l96 40c18.6 7.7 28.5 28 23.2 47.4l-24 88C481.8 499.9 466 512 448 512C200.6 512 0 311.4 0 64C0 46 12.1 30.2 29.5 25.4l88-24z\"/></svg>",
                    "iconVisible": true,
                    "iconWidth": 34,
                    "iconColor": "#ffffff",
                    "outerBorderWidth": 0,
                    "outerBorderColor": "var(--color-main)",
                    "borderWidth": 1,
                    "borderColor": "#ffffff"
                },
                {
                    "enabled": true,
                    "btnText": "03-0000-0000",
                    "subText": "受付時間 10:00~17:00",
                    "bgColor": "var(--color-main)",
                    "textColor": "#ffffff",
                    "btnUrl": "",
                    "openNewTab": false,
                    "selectedIcon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M280 0C408.1 0 512 103.9 512 232c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-101.6-82.4-184-184-184c-13.3 0-24-10.7-24-24s10.7-24 24-24zm8 192a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm-32-72c0-13.3 10.7-24 24-24c75.1 0 136 60.9 136 136c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-48.6-39.4-88-88-88c-13.3 0-24-10.7-24-24zM117.5 1.4c19.4-5.3 39.7 4.6 47.4 23.2l40 96c6.8 16.3 2.1 35.2-11.6 46.3L144 207.3c33.3 70.4 90.3 127.4 160.7 160.7L345 318.7c11.2-13.7 30-18.4 46.3-11.6l96 40c18.6 7.7 28.5 28 23.2 47.4l-24 88C481.8 499.9 466 512 448 512C200.6 512 0 311.4 0 64C0 46 12.1 30.2 29.5 25.4l88-24z\"/></svg>",
                    "iconVisible": true,
                    "iconWidth": 34,
                    "iconColor": "#ffffff",
                    "outerBorderWidth": 0,
                    "outerBorderColor": "var(--color-main)",
                    "borderWidth": 1,
                    "borderColor": "#ffffff"
                }
            ],
            "aiHint": null
        }
    }
}