| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/sticky-header", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Sticky Header", |
| 7 |
"category": "bkbg-layout", |
| 8 |
"icon": "menu-alt", |
| 9 |
"description": "A fully-styled site header with logo (image or text), navigation links, and an optional CTA button. Sticks to the top on scroll with a shrink animation. Supports light, dark, glass, and gradient style variants.", |
| 10 |
"keywords": [ |
| 11 |
"header", |
| 12 |
"navigation", |
| 13 |
"sticky", |
| 14 |
"nav", |
| 15 |
"menu", |
| 16 |
"logo", |
| 17 |
"site header" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-sticky-header-editor", |
| 21 |
"style": "bkbg-sticky-header-style", |
| 22 |
"viewScript": "bkbg-sticky-header-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"align": [ |
| 26 |
"full" |
| 27 |
] |
| 28 |
}, |
| 29 |
"attributes": { |
| 30 |
"logoText": { |
| 31 |
"type": "string", |
| 32 |
"default": "MySite" |
| 33 |
}, |
| 34 |
"logoUrl": { |
| 35 |
"type": "string", |
| 36 |
"default": "" |
| 37 |
}, |
| 38 |
"logoId": { |
| 39 |
"type": "integer", |
| 40 |
"default": 0 |
| 41 |
}, |
| 42 |
"logoWidth": { |
| 43 |
"type": "integer", |
| 44 |
"default": 140 |
| 45 |
}, |
| 46 |
"showLogo": { |
| 47 |
"type": "boolean", |
| 48 |
"default": true |
| 49 |
}, |
| 50 |
"siteUrl": { |
| 51 |
"type": "string", |
| 52 |
"default": "#" |
| 53 |
}, |
| 54 |
"navLinks": { |
| 55 |
"type": "array", |
| 56 |
"default": [ |
| 57 |
{ |
| 58 |
"label": "Features", |
| 59 |
"url": "#", |
| 60 |
"openNew": false |
| 61 |
}, |
| 62 |
{ |
| 63 |
"label": "Pricing", |
| 64 |
"url": "#", |
| 65 |
"openNew": false |
| 66 |
}, |
| 67 |
{ |
| 68 |
"label": "Blog", |
| 69 |
"url": "#", |
| 70 |
"openNew": false |
| 71 |
}, |
| 72 |
{ |
| 73 |
"label": "About", |
| 74 |
"url": "#", |
| 75 |
"openNew": false |
| 76 |
} |
| 77 |
] |
| 78 |
}, |
| 79 |
"showCta": { |
| 80 |
"type": "boolean", |
| 81 |
"default": true |
| 82 |
}, |
| 83 |
"ctaText": { |
| 84 |
"type": "string", |
| 85 |
"default": "Get Started" |
| 86 |
}, |
| 87 |
"ctaUrl": { |
| 88 |
"type": "string", |
| 89 |
"default": "#" |
| 90 |
}, |
| 91 |
"ctaOpenNew": { |
| 92 |
"type": "boolean", |
| 93 |
"default": false |
| 94 |
}, |
| 95 |
"showMobileMenu": { |
| 96 |
"type": "boolean", |
| 97 |
"default": true |
| 98 |
}, |
| 99 |
"sticky": { |
| 100 |
"type": "boolean", |
| 101 |
"default": true |
| 102 |
}, |
| 103 |
"scrollShrink": { |
| 104 |
"type": "boolean", |
| 105 |
"default": true |
| 106 |
}, |
| 107 |
"style": { |
| 108 |
"type": "string", |
| 109 |
"default": "light" |
| 110 |
}, |
| 111 |
"height": { |
| 112 |
"type": "integer", |
| 113 |
"default": 70 |
| 114 |
}, |
| 115 |
"heightShrunk": { |
| 116 |
"type": "integer", |
| 117 |
"default": 56 |
| 118 |
}, |
| 119 |
"maxWidth": { |
| 120 |
"type": "integer", |
| 121 |
"default": 1200 |
| 122 |
}, |
| 123 |
"logoSize": { |
| 124 |
"type": "integer", |
| 125 |
"default": 22 |
| 126 |
}, |
| 127 |
"logoWeight": { |
| 128 |
"type": "integer", |
| 129 |
"default": 800 |
| 130 |
}, |
| 131 |
"linkSize": { |
| 132 |
"type": "integer", |
| 133 |
"default": 15 |
| 134 |
}, |
| 135 |
"linkGap": { |
| 136 |
"type": "integer", |
| 137 |
"default": 32 |
| 138 |
}, |
| 139 |
"ctaSize": { |
| 140 |
"type": "integer", |
| 141 |
"default": 14 |
| 142 |
}, |
| 143 |
"ctaRadius": { |
| 144 |
"type": "integer", |
| 145 |
"default": 8 |
| 146 |
}, |
| 147 |
"borderBottom": { |
| 148 |
"type": "boolean", |
| 149 |
"default": true |
| 150 |
}, |
| 151 |
"shadow": { |
| 152 |
"type": "boolean", |
| 153 |
"default": false |
| 154 |
}, |
| 155 |
"zIndex": { |
| 156 |
"type": "integer", |
| 157 |
"default": 1000 |
| 158 |
}, |
| 159 |
"bgColor": { |
| 160 |
"type": "string", |
| 161 |
"default": "#ffffff" |
| 162 |
}, |
| 163 |
"textColor": { |
| 164 |
"type": "string", |
| 165 |
"default": "#0f172a" |
| 166 |
}, |
| 167 |
"linkColor": { |
| 168 |
"type": "string", |
| 169 |
"default": "#374151" |
| 170 |
}, |
| 171 |
"linkHoverColor": { |
| 172 |
"type": "string", |
| 173 |
"default": "#6c3fb5" |
| 174 |
}, |
| 175 |
"accentColor": { |
| 176 |
"type": "string", |
| 177 |
"default": "#6c3fb5" |
| 178 |
}, |
| 179 |
"ctaBg": { |
| 180 |
"type": "string", |
| 181 |
"default": "#6c3fb5" |
| 182 |
}, |
| 183 |
"ctaTextColor": { |
| 184 |
"type": "string", |
| 185 |
"default": "#ffffff" |
| 186 |
}, |
| 187 |
"borderColor": { |
| 188 |
"type": "string", |
| 189 |
"default": "#e2e8f0" |
| 190 |
}, |
| 191 |
"linkWeight": { |
| 192 |
"type": "string", |
| 193 |
"default": "400" |
| 194 |
}, |
| 195 |
"ctaWeight": { |
| 196 |
"type": "string", |
| 197 |
"default": "600" |
| 198 |
}, |
| 199 |
"logoLineHeight": { |
| 200 |
"type": "number", |
| 201 |
"default": 1.0 |
| 202 |
}, |
| 203 |
"linkLineHeight": { |
| 204 |
"type": "number", |
| 205 |
"default": 1.0 |
| 206 |
}, |
| 207 |
"logoTypo": { |
| 208 |
"type": "object", |
| 209 |
"default": {} |
| 210 |
}, |
| 211 |
"linkTypo": { |
| 212 |
"type": "object", |
| 213 |
"default": {} |
| 214 |
}, |
| 215 |
"ctaTypo": { |
| 216 |
"type": "object", |
| 217 |
"default": {} |
| 218 |
} |
| 219 |
} |
| 220 |
} |