Skip to content

Commit b19b01f

Browse files
committed
fix incorrect cover
1 parent af00784 commit b19b01f

1 file changed

Lines changed: 132 additions & 124 deletions

File tree

Lines changed: 132 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
cloudinary_convert: false
3-
cover: htts://media.codingcat.dev/image/upload/v1649933071/main-codingcatdev-photo/lb.jpg
3+
cover: 'https://media.codingcat.dev/image/upload/v1649933071/main-codingcatdev-photo/lb.jpg'
44
devto: https://dev.to/codingcatdev/learning-builderio-from-a-developers-perspective-c69
55
excerpt: I sat down with Tim Benniks who is a developer advocate, for his first time ever checking out Builder.io.
66
hashnode: https://hashnode.codingcat.dev/post-learning-builder-io-from-a-developers-perspective
@@ -10,6 +10,7 @@ slug: learning-builder-io-from-a-developers-perspective
1010
start: April 13, 2022
1111
title: Learning Builder.io from a Developers Perspective
1212
---
13+
1314
I sat down with Tim Benniks, who is a professional developer advocate, to introduce him to Builder.io. It was great to hear what questions a developer might have when being first introduced to the tool. I know Tim is well versed in all things Jamstack, so he wasn't coming into the conversation completely blind.
1415

1516
## Key Takeaways
@@ -90,16 +91,15 @@ Then when this data passes into the system it is in two different areas of Build
9091
9192
```jsx
9293
<BuilderComponent
93-
options={{ includeRefs: true }}
94-
model={model}
95-
content={modelData}
96-
data={{
97-
recentPosts,
98-
modelData,
99-
courseData,
100-
}}
101-
/>
102-
94+
options={{ includeRefs: true }}
95+
model={model}
96+
content={modelData}
97+
data={{
98+
recentPosts,
99+
modelData,
100+
courseData
101+
}}
102+
/>
103103
```
104104
105105
Below is a breakdown that I made so that you can understand what all the props for the `BuilderComponent` actually do. As you can see data is meant to include dynamically changing state data, and content will be your pages data as Described by the Builder.io JSON.
@@ -114,125 +114,133 @@ Below is an example of what that JSON looks like (again available directly withi
114114
115115
```json
116116
{
117-
"ownerId": "303fa35cceca49e6ab548071602c8ebd",
118-
"lastUpdateBy": null,
119-
"createdDate": 1649885165355,
120-
"id": "df677f1d384f4c708cf2e64d41038d33",
121-
"@version": 3,
122-
"name": "Learning Builder.io from a Developers Perspective",
123-
"modelId": "3346f48bd7cf4337aa99627827b24b4a",
124-
"published": "draft",
125-
"meta": {
126-
"kind": "page",
127-
"hasLinks": false },
128-
"priority": -1853.5,
129-
"query": [
130-
{
131-
"@type": "@builder.io/core:Query",
132-
"property": "urlPath",
133-
"operator": "is",
134-
"value": "/post/learning-builder-io-from-a-developers-perspective" }
135-
],
136-
"data": {
137-
"page": {
138-
"title": "Learning Builder.io from a Developers Perspective",
139-
"authors": [
140-
{
141-
"author": {
142-
"@type": "@builder.io/core:Reference",
143-
"id": "d4652e9fa73543dc8a422e20608fc7d2",
144-
"model": "author" }
145-
}
146-
],
147-
"frameworks": [],
148-
"excerpt": "I sat down with Tim Benniks who is a developer advocate, for his first time ever checking out Builder.io. It was great to hear what questions a developer might have about creating pages with a Visual Editor.",
149-
"coverPhoto": {
150-
"created_by": {
151-
"id": "dbfd615dfc7e1b5d5a6d1427802862",
152-
"type": "user" },
153-
"url": "htts://media.codingcat.dev/image/upload/v1649885350/main-codingcatdev-photo/Learning_Builder.io_from_a_Developers_Perspective.jpg",
154-
"uploaded_by": {
155-
"id": "dbfd615dfc7e1b5d5a6d1427802862",
156-
"type": "user" },
157-
"resource_type": "image",
158-
"access_mode": "public",
159-
"bytes": 699229,
160-
"format": "jpg",
161-
"metadata": {},
162-
"type": "upload",
163-
"version": 1649885350,
164-
"height": 1080,
165-
"tags": [],
166-
"width": 1920,
167-
"duration": null,
168-
"secure_url": "https://media.codingcat.dev/image/upload/v1649885350/main-codingcatdev-photo/Learning_Builder.io_from_a_Developers_Perspective.jpg",
169-
"created_at": "2022-04-13T21:29:10Z",
170-
"public_id": "main-codingcatdev-photo/Learning_Builder.io_from_a_Developers_Perspective" }
171-
},
172-
"title": "Learning Builder.io from a Developers Perspective",
173-
"inputs": [],
174-
"blocks": [
175-
"/* @ref:block:builder-ad4ccd18b8fb48869d2af8910c217787 */" ]
176-
},
177-
"metrics": {
178-
"clicks": 0,
179-
"impressions": 0 },
180-
"variations": {},
181-
"lastUpdated": 1649897478865,
182-
"testRatio": 1,
183-
"screenshot": "https://cdn.builder.io/api/v1/image/assets%2F303fa35cceca49e6ab548071602c8ebd%2F78aab7136e5d44ba878113dc279fa6a5",
184-
"createdBy": "HYxMkZFRmMTuS5LD6DoM9GlsuXV2",
185-
"lastUpdatedBy": "HYxMkZFRmMTuS5LD6DoM9GlsuXV2"}
186-
117+
"ownerId": "303fa35cceca49e6ab548071602c8ebd",
118+
"lastUpdateBy": null,
119+
"createdDate": 1649885165355,
120+
"id": "df677f1d384f4c708cf2e64d41038d33",
121+
"@version": 3,
122+
"name": "Learning Builder.io from a Developers Perspective",
123+
"modelId": "3346f48bd7cf4337aa99627827b24b4a",
124+
"published": "draft",
125+
"meta": {
126+
"kind": "page",
127+
"hasLinks": false
128+
},
129+
"priority": -1853.5,
130+
"query": [
131+
{
132+
"@type": "@builder.io/core:Query",
133+
"property": "urlPath",
134+
"operator": "is",
135+
"value": "/post/learning-builder-io-from-a-developers-perspective"
136+
}
137+
],
138+
"data": {
139+
"page": {
140+
"title": "Learning Builder.io from a Developers Perspective",
141+
"authors": [
142+
{
143+
"author": {
144+
"@type": "@builder.io/core:Reference",
145+
"id": "d4652e9fa73543dc8a422e20608fc7d2",
146+
"model": "author"
147+
}
148+
}
149+
],
150+
"frameworks": [],
151+
"excerpt": "I sat down with Tim Benniks who is a developer advocate, for his first time ever checking out Builder.io. It was great to hear what questions a developer might have about creating pages with a Visual Editor.",
152+
"coverPhoto": {
153+
"created_by": {
154+
"id": "dbfd615dfc7e1b5d5a6d1427802862",
155+
"type": "user"
156+
},
157+
"url": "htts://media.codingcat.dev/image/upload/v1649885350/main-codingcatdev-photo/Learning_Builder.io_from_a_Developers_Perspective.jpg",
158+
"uploaded_by": {
159+
"id": "dbfd615dfc7e1b5d5a6d1427802862",
160+
"type": "user"
161+
},
162+
"resource_type": "image",
163+
"access_mode": "public",
164+
"bytes": 699229,
165+
"format": "jpg",
166+
"metadata": {},
167+
"type": "upload",
168+
"version": 1649885350,
169+
"height": 1080,
170+
"tags": [],
171+
"width": 1920,
172+
"duration": null,
173+
"secure_url": "https://media.codingcat.dev/image/upload/v1649885350/main-codingcatdev-photo/Learning_Builder.io_from_a_Developers_Perspective.jpg",
174+
"created_at": "2022-04-13T21:29:10Z",
175+
"public_id": "main-codingcatdev-photo/Learning_Builder.io_from_a_Developers_Perspective"
176+
}
177+
},
178+
"title": "Learning Builder.io from a Developers Perspective",
179+
"inputs": [],
180+
"blocks": ["/* @ref:block:builder-ad4ccd18b8fb48869d2af8910c217787 */"]
181+
},
182+
"metrics": {
183+
"clicks": 0,
184+
"impressions": 0
185+
},
186+
"variations": {},
187+
"lastUpdated": 1649897478865,
188+
"testRatio": 1,
189+
"screenshot": "https://cdn.builder.io/api/v1/image/assets%2F303fa35cceca49e6ab548071602c8ebd%2F78aab7136e5d44ba878113dc279fa6a5",
190+
"createdBy": "HYxMkZFRmMTuS5LD6DoM9GlsuXV2",
191+
"lastUpdatedBy": "HYxMkZFRmMTuS5LD6DoM9GlsuXV2"
192+
}
187193
```
188194
189195
The "blocks" item is where ever single item that is in our layers panel will be described as a unique block component. It is far too large to show everything. Below is an example of one of those blocks. In this case it is our custom Next.js component called NextImage.
190196
191197
```json
192198
{
193-
"@type": "@builder.io/sdk:Element",
194-
"@version": 2,
195-
"id": "builder-a882c6d717364475be6dc0cef0f178a0",
196-
"component": {
197-
"name": "NextImage",
198-
"options": {
199-
"layout": "responsive",
200-
"width": 1920,
201-
"height": 1080,
202-
"alt": "An image description",
203-
"className": "rounded-xl",
204-
"cloudinaryImage": {
205-
"public_id": "main-codingcatdev-photo/BuilderComponent",
206-
"resource_type": "image",
207-
"type": "upload",
208-
"format": "png",
209-
"version": 1649896683,
210-
"url": "htts://media.codingcat.dev/image/upload/v1649896683/main-codingcatdev-photo/BuilderComponent.png",
211-
"secure_url": "https://media.codingcat.dev/image/upload/v1649896683/main-codingcatdev-photo/BuilderComponent.png",
212-
"width": 1920,
213-
"height": 1080,
214-
"bytes": 317529,
215-
"duration": null,
216-
"tags": [],
217-
"metadata": {},
218-
"created_at": "2022-04-14T00:38:03Z",
219-
"access_mode": "public",
220-
"created_by": {
221-
"type": "user",
222-
"id": "dbfd615dfc7e1b5d5a6d1427802862" },
223-
"uploaded_by": {
224-
"type": "user",
225-
"id": "dbfd615dfc7e1b5d5a6d1427802862" }
226-
}
227-
}
228-
},
229-
"responsiveStyles": {
230-
"large": {
231-
"borderRadius": "20px",
232-
"boxShadow": "-webkit-box-shadow: 5px 5px 15px 5px #000000; box-shadow: 5px 5px 15px 5px #000000;" }
233-
}
199+
"@type": "@builder.io/sdk:Element",
200+
"@version": 2,
201+
"id": "builder-a882c6d717364475be6dc0cef0f178a0",
202+
"component": {
203+
"name": "NextImage",
204+
"options": {
205+
"layout": "responsive",
206+
"width": 1920,
207+
"height": 1080,
208+
"alt": "An image description",
209+
"className": "rounded-xl",
210+
"cloudinaryImage": {
211+
"public_id": "main-codingcatdev-photo/BuilderComponent",
212+
"resource_type": "image",
213+
"type": "upload",
214+
"format": "png",
215+
"version": 1649896683,
216+
"url": "htts://media.codingcat.dev/image/upload/v1649896683/main-codingcatdev-photo/BuilderComponent.png",
217+
"secure_url": "https://media.codingcat.dev/image/upload/v1649896683/main-codingcatdev-photo/BuilderComponent.png",
218+
"width": 1920,
219+
"height": 1080,
220+
"bytes": 317529,
221+
"duration": null,
222+
"tags": [],
223+
"metadata": {},
224+
"created_at": "2022-04-14T00:38:03Z",
225+
"access_mode": "public",
226+
"created_by": {
227+
"type": "user",
228+
"id": "dbfd615dfc7e1b5d5a6d1427802862"
229+
},
230+
"uploaded_by": {
231+
"type": "user",
232+
"id": "dbfd615dfc7e1b5d5a6d1427802862"
233+
}
234+
}
235+
}
236+
},
237+
"responsiveStyles": {
238+
"large": {
239+
"borderRadius": "20px",
240+
"boxShadow": "-webkit-box-shadow: 5px 5px 15px 5px #000000; box-shadow: 5px 5px 15px 5px #000000;"
241+
}
242+
}
234243
}
235-
236244
```
237245
238-
I can't come close to teaching you everything about Builder.io in a single post, but my team is building out documentation, courses, and videos to help developers be successful!
246+
I can't come close to teaching you everything about Builder.io in a single post, but my team is building out documentation, courses, and videos to help developers be successful!

0 commit comments

Comments
 (0)