PluginProbe
AI Builder – Generate pages, blocks, images & translate with AI / 2.1.10
AI Builder – Generate pages, blocks, images & translate with AI v2.1.10
2.7.10 2.7.9 2.7.8 2.0.8 2.0.9 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.10 All 122 releases
ai-builder / assets / JSON-Blocks / code.js

code.js in AI Builder – Generate pages, blocks, images & translate with AI 2.1.10, at assets/JSON-Blocks/code.js

50 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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