| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/loan-affordability", |
| 5 |
"title": "Loan Affordability Calculator", |
| 6 |
"category": "bkbg-calculators", |
| 7 |
"icon": "building", |
| 8 |
"description": "Calculate how much home or loan you can afford based on annual income, existing debts, interest rate, and debt-to-income ratios. Ideal for real estate and finance sites.", |
| 9 |
"keywords": [ |
| 10 |
"affordability", |
| 11 |
"home", |
| 12 |
"loan", |
| 13 |
"mortgage", |
| 14 |
"income", |
| 15 |
"dti", |
| 16 |
"real estate", |
| 17 |
"calculator", |
| 18 |
"budget" |
| 19 |
], |
| 20 |
"textdomain": "blockenberg", |
| 21 |
"editorScript": "bkbg-loan-affordability-editor", |
| 22 |
"style": "bkbg-loan-affordability-style", |
| 23 |
"viewScript": "bkbg-loan-affordability-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"title": { |
| 35 |
"type": "string", |
| 36 |
"default": "Home Affordability Calculator" |
| 37 |
}, |
| 38 |
"subtitle": { |
| 39 |
"type": "string", |
| 40 |
"default": "Find out how much home you can afford based on your income and debts." |
| 41 |
}, |
| 42 |
"showTitle": { |
| 43 |
"type": "boolean", |
| 44 |
"default": true |
| 45 |
}, |
| 46 |
"showSubtitle": { |
| 47 |
"type": "boolean", |
| 48 |
"default": true |
| 49 |
}, |
| 50 |
"currency": { |
| 51 |
"type": "string", |
| 52 |
"default": "$" |
| 53 |
}, |
| 54 |
"currencyPos": { |
| 55 |
"type": "string", |
| 56 |
"default": "before" |
| 57 |
}, |
| 58 |
"defaultIncome": { |
| 59 |
"type": "number", |
| 60 |
"default": 75000 |
| 61 |
}, |
| 62 |
"defaultDebts": { |
| 63 |
"type": "number", |
| 64 |
"default": 500 |
| 65 |
}, |
| 66 |
"defaultRate": { |
| 67 |
"type": "number", |
| 68 |
"default": 6.5 |
| 69 |
}, |
| 70 |
"defaultTerm": { |
| 71 |
"type": "number", |
| 72 |
"default": 30 |
| 73 |
}, |
| 74 |
"defaultDown": { |
| 75 |
"type": "number", |
| 76 |
"default": 20 |
| 77 |
}, |
| 78 |
"frontEndRatio": { |
| 79 |
"type": "number", |
| 80 |
"default": 28 |
| 81 |
}, |
| 82 |
"backEndRatio": { |
| 83 |
"type": "number", |
| 84 |
"default": 43 |
| 85 |
}, |
| 86 |
"monthlyPaymentMode": { |
| 87 |
"type": "string", |
| 88 |
"default": "min" |
| 89 |
}, |
| 90 |
"incomeShareLimit": { |
| 91 |
"type": "number", |
| 92 |
"default": 30 |
| 93 |
}, |
| 94 |
"showMaxHome": { |
| 95 |
"type": "boolean", |
| 96 |
"default": true |
| 97 |
}, |
| 98 |
"showMaxLoan": { |
| 99 |
"type": "boolean", |
| 100 |
"default": true |
| 101 |
}, |
| 102 |
"showMonthly": { |
| 103 |
"type": "boolean", |
| 104 |
"default": true |
| 105 |
}, |
| 106 |
"showDTI": { |
| 107 |
"type": "boolean", |
| 108 |
"default": true |
| 109 |
}, |
| 110 |
"showDownPayment": { |
| 111 |
"type": "boolean", |
| 112 |
"default": true |
| 113 |
}, |
| 114 |
"accentColor": { |
| 115 |
"type": "string", |
| 116 |
"default": "#6c3fb5" |
| 117 |
}, |
| 118 |
"cardBg": { |
| 119 |
"type": "string", |
| 120 |
"default": "#ffffff" |
| 121 |
}, |
| 122 |
"resultBg": { |
| 123 |
"type": "string", |
| 124 |
"default": "#f5f3ff" |
| 125 |
}, |
| 126 |
"resultBorder": { |
| 127 |
"type": "string", |
| 128 |
"default": "#ede9fe" |
| 129 |
}, |
| 130 |
"maxHomeColor": { |
| 131 |
"type": "string", |
| 132 |
"default": "#6c3fb5" |
| 133 |
}, |
| 134 |
"maxLoanColor": { |
| 135 |
"type": "string", |
| 136 |
"default": "#3b82f6" |
| 137 |
}, |
| 138 |
"monthlyColor": { |
| 139 |
"type": "string", |
| 140 |
"default": "#10b981" |
| 141 |
}, |
| 142 |
"dtiColor": { |
| 143 |
"type": "string", |
| 144 |
"default": "#f59e0b" |
| 145 |
}, |
| 146 |
"titleColor": { |
| 147 |
"type": "string", |
| 148 |
"default": "#1e1b4b" |
| 149 |
}, |
| 150 |
"subtitleColor": { |
| 151 |
"type": "string", |
| 152 |
"default": "#6b7280" |
| 153 |
}, |
| 154 |
"labelColor": { |
| 155 |
"type": "string", |
| 156 |
"default": "#374151" |
| 157 |
}, |
| 158 |
"statCardBg": { |
| 159 |
"type": "string", |
| 160 |
"default": "#f9fafb" |
| 161 |
}, |
| 162 |
"sectionBg": { |
| 163 |
"type": "string", |
| 164 |
"default": "" |
| 165 |
}, |
| 166 |
"titleTypo": { |
| 167 |
"type": "object", |
| 168 |
"default": {} |
| 169 |
}, |
| 170 |
"resultTypo": { |
| 171 |
"type": "object", |
| 172 |
"default": {} |
| 173 |
}, |
| 174 |
"cardRadius": { |
| 175 |
"type": "number", |
| 176 |
"default": 16 |
| 177 |
}, |
| 178 |
"inputRadius": { |
| 179 |
"type": "number", |
| 180 |
"default": 8 |
| 181 |
}, |
| 182 |
"maxWidth": { |
| 183 |
"type": "number", |
| 184 |
"default": 680 |
| 185 |
}, |
| 186 |
"paddingTop": { |
| 187 |
"type": "number", |
| 188 |
"default": 60 |
| 189 |
}, |
| 190 |
"paddingBottom": { |
| 191 |
"type": "number", |
| 192 |
"default": 60 |
| 193 |
} |
| 194 |
} |
| 195 |
} |
| 196 |
|