| 1 |
const codeBlocks = [ |
| 2 |
{ |
| 3 |
id: "code-01", |
| 4 |
jsonBlocks: { |
| 5 |
blockName: "core/group", |
| 6 |
attrs: { |
| 7 |
align: "center", |
| 8 |
className: "code-container", |
| 9 |
style: { |
| 10 |
color: { |
| 11 |
background: "#ffffff", |
| 12 |
}, |
| 13 |
}, |
| 14 |
}, |
| 15 |
innerBlocks: [ |
| 16 |
{ |
| 17 |
blockName: "core/heading", |
| 18 |
attrs: { |
| 19 |
content: "Code Example", |
| 20 |
level: 2, |
| 21 |
className: "code-title", |
| 22 |
textAlign: "center", |
| 23 |
}, |
| 24 |
}, |
| 25 |
{ |
| 26 |
blockName: "core/paragraph", |
| 27 |
attrs: { |
| 28 |
content: "Here's a sample of our code implementation", |
| 29 |
className: "code-description ai-text-block", |
| 30 |
align: "center", |
| 31 |
}, |
| 32 |
}, |
| 33 |
{ |
| 34 |
blockName: "core/code", |
| 35 |
attrs: { |
| 36 |
className: "code-block", |
| 37 |
content: `function example() { |
| 38 |
const greeting = "Hello World"; |
| 39 |
console.log(greeting); |
| 40 |
return greeting; |
| 41 |
}`, |
| 42 |
}, |
| 43 |
}, |
| 44 |
], |
| 45 |
}, |
| 46 |
}, |
| 47 |
]; |
| 48 |
|
| 49 |
export default codeBlocks; |
| 50 |
|