You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/src/build-system/handlers/ux/sitemap-structure/prompt.ts
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,7 @@ Each page **must** follow this format exactly, wrapped in \`<page_view>\` tags:
197
197
- Keep each \`<page_view>\` labeled with a **unique** page ID and page number (P1, P2, etc.).
198
198
199
199
2. Guidelines for Draft HTML Layout:
200
+
Your output must emphasize component placement, layout context, and styling directions to ensure developers can implement a responsive and accessible UI effectively.
200
201
201
202
${guidelines}
202
203
@@ -311,7 +312,7 @@ Each <global_component> must follow this format exactly, wrapped in <global_comp
311
312
HTML_Guidelines_Page_view_Prompt: (): string=>{
312
313
return`
313
314
314
-
Structure and Hierarchy
315
+
Structure and Hierarchy:
315
316
Use semantic HTML5 tags to represent the structure:
316
317
<header> for the top navigation or page intro.
317
318
<main> for the main content.
@@ -322,21 +323,21 @@ Each <global_component> must follow this format exactly, wrapped in <global_comp
322
323
Scrollable sections: Secondary content, such as grids or detailed sections.
323
324
Persistent elements: Sticky headers or fixed footers.
324
325
325
-
Styling Hints
326
-
Provide inline styling hints using style={{}}:
326
+
Styling Hints:
327
+
Provide inline styling using style={{}}:
327
328
Layout direction: Use display: flex or display: grid for alignment.
328
329
Spacing: Define margin, padding, or gap for spacing between components.
329
330
Dimensions: Include width and height constraints (e.g., minHeight: "100vh").
330
331
Positioning: Specify fixed or sticky positioning for persistent elements.
331
332
332
-
Responsiveness
333
+
Responsiveness:
333
334
Use layout properties that adapt to various screen sizes.
334
335
For example:
335
336
gridTemplateColumns: "repeat(auto-fit, minmax(200px, 1fr))" for flexible grids.
336
337
flexWrap: "wrap" for flexible flexbox layouts.
337
338
Add responsive placeholders (e.g., "Desktop: 3-column grid, Mobile: Single column").
338
339
339
-
Accessibility
340
+
Accessibility:
340
341
Ensure components include accessibility attributes:
341
342
Navigation bars: role="navigation", aria-label.
342
343
Landmarks: aria-labelledby or aria-describedby for clear roles.
0 commit comments