Skip to content

Commit 45895c8

Browse files
committed
update prompt
1 parent 5cda996 commit 45895c8

File tree

1 file changed

+6
-5
lines changed
  • backend/src/build-system/handlers/ux/sitemap-structure

1 file changed

+6
-5
lines changed

backend/src/build-system/handlers/ux/sitemap-structure/prompt.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ Each page **must** follow this format exactly, wrapped in \`<page_view>\` tags:
197197
- Keep each \`<page_view>\` labeled with a **unique** page ID and page number (P1, P2, etc.).
198198
199199
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.
200201
201202
${guidelines}
202203
@@ -311,7 +312,7 @@ Each <global_component> must follow this format exactly, wrapped in <global_comp
311312
HTML_Guidelines_Page_view_Prompt: (): string => {
312313
return `
313314
314-
Structure and Hierarchy
315+
Structure and Hierarchy:
315316
Use semantic HTML5 tags to represent the structure:
316317
<header> for the top navigation or page intro.
317318
<main> for the main content.
@@ -322,21 +323,21 @@ Each <global_component> must follow this format exactly, wrapped in <global_comp
322323
Scrollable sections: Secondary content, such as grids or detailed sections.
323324
Persistent elements: Sticky headers or fixed footers.
324325
325-
Styling Hints
326-
Provide inline styling hints using style={{}}:
326+
Styling Hints:
327+
Provide inline styling using style={{}}:
327328
Layout direction: Use display: flex or display: grid for alignment.
328329
Spacing: Define margin, padding, or gap for spacing between components.
329330
Dimensions: Include width and height constraints (e.g., minHeight: "100vh").
330331
Positioning: Specify fixed or sticky positioning for persistent elements.
331332
332-
Responsiveness
333+
Responsiveness:
333334
Use layout properties that adapt to various screen sizes.
334335
For example:
335336
gridTemplateColumns: "repeat(auto-fit, minmax(200px, 1fr))" for flexible grids.
336337
flexWrap: "wrap" for flexible flexbox layouts.
337338
Add responsive placeholders (e.g., "Desktop: 3-column grid, Mobile: Single column").
338339
339-
Accessibility
340+
Accessibility:
340341
Ensure components include accessibility attributes:
341342
Navigation bars: role="navigation", aria-label.
342343
Landmarks: aria-labelledby or aria-describedby for clear roles.

0 commit comments

Comments
 (0)