Skip to content

Commit 3bc919a

Browse files
committed
Imrpoved instructions for website creator
1 parent b023073 commit 3bc919a

1 file changed

Lines changed: 150 additions & 48 deletions

File tree

‎config/instructions/generateSection.md‎

Lines changed: 150 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Generate COMPLETE, PRODUCTION-READY content for a SINGLE section. Respond with O
44

55
**CRITICAL REQUIREMENTS**:
66
1. Respond with ONLY valid JSON - no markdown, no explanation
7-
2. Create FULL, RICH CONTENT with complete text and professional layouts
8-
3. Follow the section outline's purpose and suggested elements
9-
4. Use the church's name and theme colors from context
10-
5. Generate complete content (no placeholders like "Lorem ipsum")
11-
6. **ROWS MUST HAVE CONTENT**: A row with columns:"4,4,4" MUST have exactly 3 child elements with full content
7+
2. Create FULL, RICH CONTENT - each section needs MULTIPLE elements (heading + content + optional CTA)
8+
3. Follow the section outline's suggestedElements list - create ALL suggested elements
9+
4. Transform keyPoints into actual content (cards, FAQs, list items, etc.)
10+
5. Use the church's name and theme colors from context
11+
6. **ROWS MUST HAVE CONTENT**: A row with columns:"4,4,4" MUST have exactly 3 child elements
1212

1313
## Section Outline
1414

@@ -37,83 +37,107 @@ Generate COMPLETE, PRODUCTION-READY content for a SINGLE section. Respond with O
3737
"sort": 0,
3838
"answersJSON": "{}",
3939
"stylesJSON": "{\"all\":{\"padding-top\":\"80px\",\"padding-bottom\":\"80px\"}}",
40-
"elements": [...]
40+
"elements": [/* MULTIPLE elements here - not just one! */]
4141
}
4242
```
4343

4444
## Element Reference
4545

4646
**text** - Rich text content
4747
```json
48-
{"elementType":"text","answersJSON":"{\"text\":\"<h1>Welcome to Grace Church</h1><p>Join us for worship every Sunday at 9am and 11am.</p>\",\"textAlignment\":\"center\"}"}
48+
{"elementType":"text","sort":0,"answersJSON":"{\"text\":\"<h2>Section Heading</h2><p>Supporting paragraph with details.</p>\",\"textAlignment\":\"center\"}"}
4949
```
5050

5151
**textWithPhoto** - Text with image (photoPosition: "left" or "right")
5252
```json
53-
{"elementType":"textWithPhoto","answersJSON":"{\"text\":\"<h2>Our Mission</h2><p>We exist to connect people with God and each other through authentic community and biblical teaching.</p>\",\"photo\":\"https://picsum.photos/800/600?random=1\",\"photoAlt\":\"Church community\",\"photoPosition\":\"left\"}"}
53+
{"elementType":"textWithPhoto","sort":0,"answersJSON":"{\"text\":\"<h2>Our Mission</h2><p>We exist to connect people with God and each other through authentic community and biblical teaching.</p>\",\"photo\":\"https://picsum.photos/800/600?random=1\",\"photoAlt\":\"Church community\",\"photoPosition\":\"left\"}"}
5454
```
5555

56-
**row** - Multi-column layout. MUST have child elements matching column count.
56+
**row** - Multi-column layout. Child count MUST match column count.
5757
```json
58-
{"elementType":"row","answersJSON":"{\"columns\":\"4,4,4\"}","elements":[
59-
{"elementType":"card","sort":0,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=1\",\"photoAlt\":\"Youth ministry\",\"title\":\"Youth Ministry\",\"titleAlignment\":\"center\",\"text\":\"<p>Weekly activities and Bible study for teens grades 6-12.</p>\",\"textAlignment\":\"center\"}"},
60-
{"elementType":"card","sort":1,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=2\",\"photoAlt\":\"Worship team\",\"title\":\"Worship Team\",\"titleAlignment\":\"center\",\"text\":\"<p>Use your musical gifts to lead our congregation in praise.</p>\",\"textAlignment\":\"center\"}"},
61-
{"elementType":"card","sort":2,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=3\",\"photoAlt\":\"Community outreach\",\"title\":\"Outreach\",\"titleAlignment\":\"center\",\"text\":\"<p>Serve our neighbors through food drives and local partnerships.</p>\",\"textAlignment\":\"center\"}"}
58+
{"elementType":"row","sort":1,"answersJSON":"{\"columns\":\"4,4,4\"}","elements":[
59+
{"elementType":"card","sort":0,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=1\",\"photoAlt\":\"Youth\",\"title\":\"Youth Ministry\",\"titleAlignment\":\"center\",\"text\":\"<p>Weekly activities for teens.</p>\",\"textAlignment\":\"center\"}"},
60+
{"elementType":"card","sort":1,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=2\",\"photoAlt\":\"Worship\",\"title\":\"Worship Team\",\"titleAlignment\":\"center\",\"text\":\"<p>Lead our congregation in praise.</p>\",\"textAlignment\":\"center\"}"},
61+
{"elementType":"card","sort":2,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=3\",\"photoAlt\":\"Outreach\",\"title\":\"Outreach\",\"titleAlignment\":\"center\",\"text\":\"<p>Serve our neighbors.</p>\",\"textAlignment\":\"center\"}"}
6262
]}
6363
```
64-
Column options: "6,6" (2 cols), "4,4,4" (3 cols), "3,3,3,3" (4 cols)
6564

66-
**card** - Card with image, title, text
65+
**faq** - Expandable FAQ item (create ONE faq element per question)
6766
```json
68-
{"elementType":"card","answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=1\",\"photoAlt\":\"Alt text\",\"title\":\"Card Title\",\"titleAlignment\":\"center\",\"text\":\"<p>Descriptive content goes here.</p>\",\"textAlignment\":\"center\",\"url\":\"/learn-more\"}"}
69-
```
70-
71-
**faq** - Expandable FAQ item
72-
```json
73-
{"elementType":"faq","answersJSON":"{\"title\":\"What should I wear?\",\"description\":\"<p>Come as you are! We have no dress code. You'll see everything from jeans to suits.</p>\",\"headingType\":\"h6\"}"}
67+
{"elementType":"faq","sort":1,"answersJSON":"{\"title\":\"What should I wear?\",\"description\":\"<p>Come as you are! We have no dress code. You'll see everything from jeans to suits.</p>\",\"headingType\":\"h6\"}"}
7468
```
7569

7670
**buttonLink** - Styled button
7771
```json
78-
{"elementType":"buttonLink","answersJSON":"{\"buttonLinkText\":\"Plan Your Visit\",\"buttonLinkUrl\":\"/visit\",\"buttonLinkVariant\":\"contained\",\"buttonLinkColor\":\"primary\"}"}
72+
{"elementType":"buttonLink","sort":2,"answersJSON":"{\"buttonLinkText\":\"Plan Your Visit\",\"buttonLinkUrl\":\"/visit\",\"buttonLinkVariant\":\"contained\",\"buttonLinkColor\":\"primary\"}"}
7973
```
8074

81-
**table** - Data table
82-
```json
83-
{"elementType":"table","answersJSON":"{\"contents\":[[\"Day\",\"Time\",\"Service\"],[\"Sunday\",\"9:00 AM\",\"Traditional\"],[\"Sunday\",\"11:00 AM\",\"Contemporary\"]],\"head\":true}"}
84-
```
75+
**map**: `{"mapAddress":"123 Main St, City, State","mapLabel":"Church Location","mapZoom":15}`
8576

86-
**image**: `{"photo":"https://picsum.photos/1200/600?random=1","photoAlt":"Description","imageAlign":"center"}`
77+
**whiteSpace**: `{"height":"25"}`
8778

88-
**video**: `{"videoType":"youtube","videoId":"VIDEO_ID"}`
79+
**Simple elements**: sermons, donation, donateLink, calendar, groupList, stream, form, logo
8980

90-
**map**: `{"mapAddress":"123 Main St, City, State 12345","mapLabel":"Church Location","mapZoom":15}`
81+
## Styling by Section Index
9182

92-
**whiteSpace**: `{"height":"25"}`
83+
- Index 0 (hero): padding 120px
84+
- Index 1-3 (content): padding 80px
85+
- Last section (CTA): padding 60px
9386

94-
**Simple elements** (minimal config): sermons, donation, donateLink, calendar, groupList, stream, form, logo
87+
---
9588

96-
## Styling by Section Index
89+
## EXAMPLES - Follow These Patterns
9790

98-
- Index 0 (hero): padding 120px top/bottom
99-
- Index 1-3 (content): padding 80px top/bottom
100-
- Last section (CTA): padding 60px top/bottom
91+
### Example 1: FAQ Section
10192

102-
## Content Guidelines
93+
Input outline:
94+
```json
95+
{
96+
"id": "section-3",
97+
"purpose": "Address common visitor questions",
98+
"suggestedElements": ["text (heading)", "faq", "faq", "faq"],
99+
"contentHints": {
100+
"headline": "Frequently Asked Questions",
101+
"keyPoints": ["Where do I park?", "What about my kids?", "What should I wear?"]
102+
}
103+
}
104+
```
103105

104-
1. **Use church name** from context - never "Our Church"
105-
2. **Transform contentHints**: headline→h1/h2, keyPoints→cards or FAQs, ctaText→button text
106-
3. **Write engaging copy**: Complete sentences, specific details, welcoming tone
107-
4. **Unique images**: Increment picsum random number for each image
106+
Output (note: ONE faq element PER question):
107+
```json
108+
{
109+
"zone": "main",
110+
"background": "#f5f5f5",
111+
"textColor": "dark",
112+
"sort": 3,
113+
"answersJSON": "{}",
114+
"stylesJSON": "{\"all\":{\"padding-top\":\"80px\",\"padding-bottom\":\"80px\"}}",
115+
"elements": [
116+
{"elementType":"text","sort":0,"answersJSON":"{\"text\":\"<h2>Frequently Asked Questions</h2>\",\"textAlignment\":\"center\"}"},
117+
{"elementType":"whiteSpace","sort":1,"answersJSON":"{\"height\":\"20\"}"},
118+
{"elementType":"faq","sort":2,"answersJSON":"{\"title\":\"Where do I park?\",\"description\":\"<p>We have a large parking lot behind the building with plenty of free spaces. Greeters will help direct you to available spots.</p>\",\"headingType\":\"h6\"}"},
119+
{"elementType":"faq","sort":3,"answersJSON":"{\"title\":\"What about my kids?\",\"description\":\"<p>We offer age-appropriate programs for children from nursery through 5th grade. Check in at our Kids Welcome Center in the main lobby.</p>\",\"headingType\":\"h6\"}"},
120+
{"elementType":"faq","sort":4,"answersJSON":"{\"title\":\"What should I wear?\",\"description\":\"<p>Come as you are! You'll see everything from jeans and t-shirts to business casual. We care about you, not your clothes.</p>\",\"headingType\":\"h6\"}"}
121+
]
122+
}
123+
```
108124

109-
## Example: Transforming Content Hints
125+
### Example 2: Features Section with Cards
110126

111-
Input hints:
127+
Input outline:
112128
```json
113-
{"headline":"What to Expect","keyPoints":["Casual dress","75-minute service","Children's programs"]}
129+
{
130+
"id": "section-1",
131+
"purpose": "Highlight what to expect",
132+
"suggestedElements": ["text (heading)", "row with 3 cards"],
133+
"contentHints": {
134+
"headline": "What to Expect",
135+
"keyPoints": ["Casual dress", "75-minute service", "Children's programs"]
136+
}
137+
}
114138
```
115139

116-
Output (row with 3 cards):
140+
Output:
117141
```json
118142
{
119143
"zone": "main",
@@ -123,17 +147,95 @@ Output (row with 3 cards):
123147
"answersJSON": "{}",
124148
"stylesJSON": "{\"all\":{\"padding-top\":\"80px\",\"padding-bottom\":\"80px\"}}",
125149
"elements": [
126-
{"elementType":"text","sort":0,"answersJSON":"{\"text\":\"<h2>What to Expect</h2>\",\"textAlignment\":\"center\"}"},
127-
{"elementType":"whiteSpace","sort":1,"answersJSON":"{\"height\":\"20\"}"},
150+
{"elementType":"text","sort":0,"answersJSON":"{\"text\":\"<h2>What to Expect</h2><p>Your first visit will be comfortable and welcoming.</p>\",\"textAlignment\":\"center\"}"},
151+
{"elementType":"whiteSpace","sort":1,"answersJSON":"{\"height\":\"30\"}"},
128152
{"elementType":"row","sort":2,"answersJSON":"{\"columns\":\"4,4,4\"}","elements":[
129153
{"elementType":"card","sort":0,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=10\",\"photoAlt\":\"Casual atmosphere\",\"title\":\"Come As You Are\",\"titleAlignment\":\"center\",\"text\":\"<p>There's no dress code here. Whether you prefer jeans or a suit, you'll fit right in.</p>\",\"textAlignment\":\"center\"}"},
130-
{"elementType":"card","sort":1,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=11\",\"photoAlt\":\"Worship service\",\"title\":\"About 75 Minutes\",\"titleAlignment\":\"center\",\"text\":\"<p>Our services include worship music, a relevant message, and time for prayer.</p>\",\"textAlignment\":\"center\"}"},
131-
{"elementType":"card","sort":2,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=12\",\"photoAlt\":\"Children's ministry\",\"title\":\"Kids Are Welcome\",\"titleAlignment\":\"center\",\"text\":\"<p>We offer age-appropriate programs for infants through 5th grade.</p>\",\"textAlignment\":\"center\"}"}
154+
{"elementType":"card","sort":1,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=11\",\"photoAlt\":\"Worship service\",\"title\":\"About 75 Minutes\",\"titleAlignment\":\"center\",\"text\":\"<p>Our services include worship music, a relevant message from Scripture, and time for prayer.</p>\",\"textAlignment\":\"center\"}"},
155+
{"elementType":"card","sort":2,"answersJSON":"{\"photo\":\"https://picsum.photos/600/400?random=12\",\"photoAlt\":\"Children's ministry\",\"title\":\"Kids Are Welcome\",\"titleAlignment\":\"center\",\"text\":\"<p>We offer safe, fun programs for infants through 5th grade during all services.</p>\",\"textAlignment\":\"center\"}"}
132156
]}
133157
]
134158
}
135159
```
136160

161+
### Example 3: Hero Section
162+
163+
Input outline:
164+
```json
165+
{
166+
"id": "section-0",
167+
"purpose": "Welcome visitors with warm hero",
168+
"suggestedElements": ["text (h1)", "text (tagline)", "buttonLink"],
169+
"contentHints": {
170+
"headline": "Welcome to Grace Church",
171+
"subheadline": "A place where everyone belongs",
172+
"ctaText": "Plan Your Visit"
173+
}
174+
}
175+
```
176+
177+
Output:
178+
```json
179+
{
180+
"zone": "main",
181+
"background": "#2c5aa0",
182+
"textColor": "light",
183+
"headingColor": "#ffffff",
184+
"sort": 0,
185+
"answersJSON": "{}",
186+
"stylesJSON": "{\"all\":{\"padding-top\":\"120px\",\"padding-bottom\":\"120px\"}}",
187+
"elements": [
188+
{"elementType":"text","sort":0,"answersJSON":"{\"text\":\"<h1>Welcome to Grace Church</h1>\",\"textAlignment\":\"center\"}"},
189+
{"elementType":"text","sort":1,"answersJSON":"{\"text\":\"<p>A place where everyone belongs. Join us this Sunday as we worship together, grow in faith, and build meaningful relationships.</p>\",\"textAlignment\":\"center\"}"},
190+
{"elementType":"whiteSpace","sort":2,"answersJSON":"{\"height\":\"20\"}"},
191+
{"elementType":"buttonLink","sort":3,"answersJSON":"{\"buttonLinkText\":\"Plan Your Visit\",\"buttonLinkUrl\":\"/visit\",\"buttonLinkVariant\":\"contained\",\"buttonLinkColor\":\"secondary\"}"}
192+
]
193+
}
194+
```
195+
196+
### Example 4: CTA Section
197+
198+
Input outline:
199+
```json
200+
{
201+
"id": "section-4",
202+
"purpose": "Drive engagement",
203+
"suggestedElements": ["text (heading)", "buttonLink"],
204+
"contentHints": {
205+
"headline": "Ready to Join Us?",
206+
"subheadline": "We'd love to meet you this Sunday",
207+
"ctaText": "Get Directions"
208+
}
209+
}
210+
```
211+
212+
Output:
213+
```json
214+
{
215+
"zone": "main",
216+
"background": "#1a1a1a",
217+
"textColor": "light",
218+
"sort": 4,
219+
"answersJSON": "{}",
220+
"stylesJSON": "{\"all\":{\"padding-top\":\"60px\",\"padding-bottom\":\"60px\"}}",
221+
"elements": [
222+
{"elementType":"text","sort":0,"answersJSON":"{\"text\":\"<h2>Ready to Join Us?</h2><p>We'd love to meet you this Sunday. Services are at 9am and 11am.</p>\",\"textAlignment\":\"center\"}"},
223+
{"elementType":"whiteSpace","sort":1,"answersJSON":"{\"height\":\"20\"}"},
224+
{"elementType":"buttonLink","sort":2,"answersJSON":"{\"buttonLinkText\":\"Get Directions\",\"buttonLinkUrl\":\"/location\",\"buttonLinkVariant\":\"contained\",\"buttonLinkColor\":\"primary\"}"}
225+
]
226+
}
227+
```
228+
229+
---
230+
231+
## Key Rules
232+
233+
1. **Multiple elements per section** - Never just a heading alone. Always heading + content.
234+
2. **One faq element per question** - If keyPoints has 3 questions, create 3 faq elements.
235+
3. **Expand keyPoints** - Each keyPoint becomes a card, faq, or content block with full text.
236+
4. **Use church name** from context, never "Our Church".
237+
5. **Increment image numbers** - random=1, random=2, etc. for unique images.
238+
137239
## Output
138240

139241
Your response must be ONLY valid JSON. Start with { and end with }. No exceptions.

0 commit comments

Comments
 (0)