heraspec 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -22
- package/README.md +188 -103
- package/bin/heraspec.js +4805 -1122
- package/bin/heraspec.js.map +4 -4
- package/dist/core/templates/skills/CHANGELOG.md +117 -117
- package/dist/core/templates/skills/README-template.md +58 -58
- package/dist/core/templates/skills/README.md +38 -38
- package/dist/core/templates/skills/content-optimization-skill.md +104 -104
- package/dist/core/templates/skills/data/design-systems.csv +54 -0
- package/dist/core/templates/skills/data/pages-proposed.csv +21 -21
- package/dist/core/templates/skills/data/pages.csv +9 -9
- package/dist/core/templates/skills/data/typography.csv +57 -57
- package/dist/core/templates/skills/deploy-documentation-skill.md +408 -0
- package/dist/core/templates/skills/design-system-skill.md +176 -0
- package/dist/core/templates/skills/documents/templates/documentation-landing-page.html +63 -63
- package/dist/core/templates/skills/documents/templates/documentation.html +49 -49
- package/dist/core/templates/skills/documents/templates/landing-script.js +38 -38
- package/dist/core/templates/skills/documents/templates/landing-style.css +158 -158
- package/dist/core/templates/skills/documents/templates/script.js +56 -56
- package/dist/core/templates/skills/documents/templates/style.css +155 -155
- package/dist/core/templates/skills/documents/templates/technical-doc-template.md +16 -16
- package/dist/core/templates/skills/documents/templates/user-guide-template.md +16 -16
- package/dist/core/templates/skills/documents-skill.md +104 -104
- package/dist/core/templates/skills/e2e-test-skill.md +119 -119
- package/dist/core/templates/skills/git-embed-skill.md +57 -0
- package/dist/core/templates/skills/integration-test-skill.md +118 -118
- package/dist/core/templates/skills/knowledge/README.md +63 -0
- package/dist/core/templates/skills/knowledge/design-systems/airbnb/DESIGN.md +246 -0
- package/dist/core/templates/skills/knowledge/design-systems/airtable/DESIGN.md +89 -0
- package/dist/core/templates/skills/knowledge/design-systems/apple/DESIGN.md +313 -0
- package/dist/core/templates/skills/knowledge/design-systems/bmw/DESIGN.md +180 -0
- package/dist/core/templates/skills/knowledge/design-systems/cal/DESIGN.md +259 -0
- package/dist/core/templates/skills/knowledge/design-systems/claude/DESIGN.md +312 -0
- package/dist/core/templates/skills/knowledge/design-systems/clay/DESIGN.md +304 -0
- package/dist/core/templates/skills/knowledge/design-systems/clickhouse/DESIGN.md +281 -0
- package/dist/core/templates/skills/knowledge/design-systems/cohere/DESIGN.md +266 -0
- package/dist/core/templates/skills/knowledge/design-systems/coinbase/DESIGN.md +129 -0
- package/dist/core/templates/skills/knowledge/design-systems/composio/DESIGN.md +307 -0
- package/dist/core/templates/skills/knowledge/design-systems/cursor/DESIGN.md +309 -0
- package/dist/core/templates/skills/knowledge/design-systems/elevenlabs/DESIGN.md +265 -0
- package/dist/core/templates/skills/knowledge/design-systems/expo/DESIGN.md +281 -0
- package/dist/core/templates/skills/knowledge/design-systems/figma/DESIGN.md +220 -0
- package/dist/core/templates/skills/knowledge/design-systems/framer/DESIGN.md +246 -0
- package/dist/core/templates/skills/knowledge/design-systems/hashicorp/DESIGN.md +278 -0
- package/dist/core/templates/skills/knowledge/design-systems/ibm/DESIGN.md +332 -0
- package/dist/core/templates/skills/knowledge/design-systems/index.json +72 -0
- package/dist/core/templates/skills/knowledge/design-systems/intercom/DESIGN.md +146 -0
- package/dist/core/templates/skills/knowledge/design-systems/kraken/DESIGN.md +125 -0
- package/dist/core/templates/skills/knowledge/design-systems/linear.app/DESIGN.md +367 -0
- package/dist/core/templates/skills/knowledge/design-systems/lovable/DESIGN.md +298 -0
- package/dist/core/templates/skills/knowledge/design-systems/minimax/DESIGN.md +257 -0
- package/dist/core/templates/skills/knowledge/design-systems/mintlify/DESIGN.md +326 -0
- package/dist/core/templates/skills/knowledge/design-systems/miro/DESIGN.md +108 -0
- package/dist/core/templates/skills/knowledge/design-systems/mistral.ai/DESIGN.md +261 -0
- package/dist/core/templates/skills/knowledge/design-systems/mongodb/DESIGN.md +266 -0
- package/dist/core/templates/skills/knowledge/design-systems/notion/DESIGN.md +309 -0
- package/dist/core/templates/skills/knowledge/design-systems/nvidia/DESIGN.md +293 -0
- package/dist/core/templates/skills/knowledge/design-systems/ollama/DESIGN.md +267 -0
- package/dist/core/templates/skills/knowledge/design-systems/opencode.ai/DESIGN.md +281 -0
- package/dist/core/templates/skills/knowledge/design-systems/pinterest/DESIGN.md +230 -0
- package/dist/core/templates/skills/knowledge/design-systems/posthog/DESIGN.md +256 -0
- package/dist/core/templates/skills/knowledge/design-systems/raycast/DESIGN.md +268 -0
- package/dist/core/templates/skills/knowledge/design-systems/replicate/DESIGN.md +261 -0
- package/dist/core/templates/skills/knowledge/design-systems/resend/DESIGN.md +303 -0
- package/dist/core/templates/skills/knowledge/design-systems/revolut/DESIGN.md +185 -0
- package/dist/core/templates/skills/knowledge/design-systems/runwayml/DESIGN.md +244 -0
- package/dist/core/templates/skills/knowledge/design-systems/sanity/DESIGN.md +357 -0
- package/dist/core/templates/skills/knowledge/design-systems/sentry/DESIGN.md +262 -0
- package/dist/core/templates/skills/knowledge/design-systems/spacex/DESIGN.md +194 -0
- package/dist/core/templates/skills/knowledge/design-systems/spotify/DESIGN.md +246 -0
- package/dist/core/templates/skills/knowledge/design-systems/stripe/DESIGN.md +322 -0
- package/dist/core/templates/skills/knowledge/design-systems/supabase/DESIGN.md +255 -0
- package/dist/core/templates/skills/knowledge/design-systems/superhuman/DESIGN.md +252 -0
- package/dist/core/templates/skills/knowledge/design-systems/together.ai/DESIGN.md +263 -0
- package/dist/core/templates/skills/knowledge/design-systems/uber/DESIGN.md +295 -0
- package/dist/core/templates/skills/knowledge/design-systems/vercel/DESIGN.md +310 -0
- package/dist/core/templates/skills/knowledge/design-systems/voltagent/DESIGN.md +323 -0
- package/dist/core/templates/skills/knowledge/design-systems/warp/DESIGN.md +253 -0
- package/dist/core/templates/skills/knowledge/design-systems/webflow/DESIGN.md +92 -0
- package/dist/core/templates/skills/knowledge/design-systems/wise/DESIGN.md +173 -0
- package/dist/core/templates/skills/knowledge/design-systems/x.ai/DESIGN.md +257 -0
- package/dist/core/templates/skills/knowledge/design-systems/zapier/DESIGN.md +328 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/codeigniter/rise-cms/profile.json +27 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/codeigniter/rise-cms/structure.md +137 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/laravel/botble/profile.json +39 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/laravel/botble/structure.md +208 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/wordpress/core/profile.json +51 -0
- package/dist/core/templates/skills/knowledge/frameworks/php/wordpress/core/structure.md +369 -0
- package/dist/core/templates/skills/knowledge/index.json +65 -0
- package/dist/core/templates/skills/module-codebase-skill.md +110 -110
- package/dist/core/templates/skills/plugin-directory-skill.md +396 -396
- package/dist/core/templates/skills/project-memory-skill.md +222 -0
- package/dist/core/templates/skills/project-memory-skill.vi.md +223 -0
- package/dist/core/templates/skills/scripts/CODE_EXPLANATION.md +394 -394
- package/dist/core/templates/skills/scripts/SEARCH_ALGORITHMS_COMPARISON.md +421 -421
- package/dist/core/templates/skills/scripts/SEARCH_MODES_GUIDE.md +238 -238
- package/dist/core/templates/skills/scripts/__pycache__/core.cpython-311.pyc +0 -0
- package/dist/core/templates/skills/scripts/core.py +391 -385
- package/dist/core/templates/skills/scripts/search.py +1 -1
- package/dist/core/templates/skills/smart-explore-skill.md +141 -0
- package/dist/core/templates/skills/sourcecode-analyzer-skill.md +210 -0
- package/dist/core/templates/skills/sourcecode-analyzer-skill.vi.md +210 -0
- package/dist/core/templates/skills/suggestion-skill.md +118 -118
- package/dist/core/templates/skills/templates/accessibility-checklist.md +40 -40
- package/dist/core/templates/skills/templates/example-prompt-full-theme.md +333 -333
- package/dist/core/templates/skills/templates/page-types-guide.md +338 -338
- package/dist/core/templates/skills/templates/pages-proposed-summary.md +273 -273
- package/dist/core/templates/skills/templates/pre-delivery-checklist.md +42 -42
- package/dist/core/templates/skills/templates/prompt-template-full-theme.md +313 -313
- package/dist/core/templates/skills/templates/responsive-design.md +40 -40
- package/dist/core/templates/skills/ui-ux-skill.md +595 -584
- package/dist/core/templates/skills/unit-test-skill.md +111 -111
- package/dist/core/templates/skills/ux-element/templates/Controller.php +50 -50
- package/dist/core/templates/skills/ux-element/templates/Shortcode.php +23 -23
- package/dist/core/templates/skills/ux-element/templates/Template.html +20 -20
- package/dist/core/templates/skills/ux-element/templates/Thumbnail.svg +8 -8
- package/dist/core/templates/skills/ux-element/templates/View.php +21 -21
- package/dist/core/templates/skills/ux-element-skill.md +83 -83
- package/dist/core/templates/skills/wordpress-plugin-check-skill.md +151 -76
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/admin-dashboard.php +47 -47
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/admin-settings.php +60 -60
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/assets/admin-css.css +22 -22
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/assets/admin-js.js +15 -15
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/plugin-main.php +169 -169
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/readme.txt +41 -41
- package/dist/core/templates/skills/wordpress-plugin-standard/templates/uninstall.php +21 -21
- package/dist/core/templates/skills/wordpress-plugin-standard-skill.md +100 -100
- package/dist/index.js +4068 -278
- package/package.json +75 -72
|
@@ -1,338 +1,338 @@
|
|
|
1
|
-
# Page Types Guide - Multi-Page Website Package
|
|
2
|
-
|
|
3
|
-
This guide provides templates and best practices for creating complete website packages with multiple page types.
|
|
4
|
-
|
|
5
|
-
## Default Page Set
|
|
6
|
-
|
|
7
|
-
When creating a complete website package (not just a landing page), the default set includes:
|
|
8
|
-
|
|
9
|
-
1. **Home** - Main homepage
|
|
10
|
-
2. **About** - Company/story page
|
|
11
|
-
3. **Post Details** - Blog/article detail page
|
|
12
|
-
4. **Category** - Blog/category listing page
|
|
13
|
-
5. **Pricing** - Pricing/plans page
|
|
14
|
-
6. **FAQ** - Frequently asked questions
|
|
15
|
-
7. **Contact** - Contact form and information
|
|
16
|
-
8. **Product Category** - E-commerce category listing
|
|
17
|
-
9. **Product Details** - E-commerce product detail page
|
|
18
|
-
|
|
19
|
-
## Page Type Templates
|
|
20
|
-
|
|
21
|
-
### 1. Home Page
|
|
22
|
-
|
|
23
|
-
**Purpose**: Main entry point, first impression, conversion focus
|
|
24
|
-
|
|
25
|
-
**Key Sections**:
|
|
26
|
-
- Hero with headline and primary CTA
|
|
27
|
-
- Value proposition (what makes you different)
|
|
28
|
-
- Key features (3-5 features with icons)
|
|
29
|
-
- Social proof (testimonials, logos, stats)
|
|
30
|
-
- Secondary CTA section
|
|
31
|
-
- Footer with navigation
|
|
32
|
-
|
|
33
|
-
**Layout Pattern**: Hero-Centric or Feature-Rich Showcase
|
|
34
|
-
|
|
35
|
-
**Search Query**: `python3 scripts/search.py "home homepage" --domain pages`
|
|
36
|
-
|
|
37
|
-
### 2. About Page
|
|
38
|
-
|
|
39
|
-
**Purpose**: Build trust, humanize brand, show expertise
|
|
40
|
-
|
|
41
|
-
**Key Sections**:
|
|
42
|
-
- Page header with title
|
|
43
|
-
- Mission/Vision statement
|
|
44
|
-
- Story/Timeline (how you started)
|
|
45
|
-
- Team grid (photos + roles)
|
|
46
|
-
- Values/Principles
|
|
47
|
-
- Optional: Stats/metrics
|
|
48
|
-
- Optional: CTA
|
|
49
|
-
|
|
50
|
-
**Layout Pattern**: Storytelling-Driven or Trust & Authority
|
|
51
|
-
|
|
52
|
-
**Search Query**: `python3 scripts/search.py "about company story" --domain pages`
|
|
53
|
-
|
|
54
|
-
### 3. Post Details (Blog Article)
|
|
55
|
-
|
|
56
|
-
**Purpose**: Content consumption, readability, SEO
|
|
57
|
-
|
|
58
|
-
**Key Sections**:
|
|
59
|
-
- Breadcrumbs navigation
|
|
60
|
-
- Article title + meta (date, author, category)
|
|
61
|
-
- Featured image
|
|
62
|
-
- Content body (readable typography)
|
|
63
|
-
- Author bio card
|
|
64
|
-
- Related posts grid
|
|
65
|
-
- Optional: Comments section
|
|
66
|
-
- Social share buttons
|
|
67
|
-
|
|
68
|
-
**Layout Pattern**: Minimal & Direct or Content-First
|
|
69
|
-
|
|
70
|
-
**Search Query**: `python3 scripts/search.py "post article blog" --domain pages`
|
|
71
|
-
|
|
72
|
-
### 4. Category Page (Blog/Content)
|
|
73
|
-
|
|
74
|
-
**Purpose**: Content discovery, filtering, browsing
|
|
75
|
-
|
|
76
|
-
**Key Sections**:
|
|
77
|
-
- Category header with title
|
|
78
|
-
- Category description
|
|
79
|
-
- Filter/search bar (optional)
|
|
80
|
-
- Post grid (cards or list view)
|
|
81
|
-
- Pagination
|
|
82
|
-
- Optional: Sidebar with widgets
|
|
83
|
-
|
|
84
|
-
**Layout Pattern**: Minimal & Direct or Bento Box Grid
|
|
85
|
-
|
|
86
|
-
**Search Query**: `python3 scripts/search.py "category archive listing" --domain pages`
|
|
87
|
-
|
|
88
|
-
### 5. Pricing Page
|
|
89
|
-
|
|
90
|
-
**Purpose**: Conversion, clear pricing, address objections
|
|
91
|
-
|
|
92
|
-
**Key Sections**:
|
|
93
|
-
- Hero headline
|
|
94
|
-
- Price comparison cards (3-4 tiers)
|
|
95
|
-
- Feature comparison table
|
|
96
|
-
- FAQ section (address common objections)
|
|
97
|
-
- Optional: Testimonials
|
|
98
|
-
- Final CTA
|
|
99
|
-
|
|
100
|
-
**Layout Pattern**: Pricing-Focused Landing
|
|
101
|
-
|
|
102
|
-
**Search Query**: `python3 scripts/search.py "pricing plans tiers" --domain pages`
|
|
103
|
-
|
|
104
|
-
### 6. FAQ Page
|
|
105
|
-
|
|
106
|
-
**Purpose**: Reduce support tickets, self-service
|
|
107
|
-
|
|
108
|
-
**Key Sections**:
|
|
109
|
-
- Hero with search bar
|
|
110
|
-
- Popular categories/tabs
|
|
111
|
-
- FAQ accordion (expandable Q&A)
|
|
112
|
-
- Contact/support CTA (for unresolved questions)
|
|
113
|
-
- Related articles
|
|
114
|
-
|
|
115
|
-
**Layout Pattern**: FAQ/Documentation Landing
|
|
116
|
-
|
|
117
|
-
**Search Query**: `python3 scripts/search.py "faq questions help" --domain pages`
|
|
118
|
-
|
|
119
|
-
### 7. Contact Page
|
|
120
|
-
|
|
121
|
-
**Purpose**: Lead capture, customer support
|
|
122
|
-
|
|
123
|
-
**Key Sections**:
|
|
124
|
-
- Hero/Header
|
|
125
|
-
- Contact form (name, email, message - max 3-4 fields)
|
|
126
|
-
- Contact information cards (address, phone, email)
|
|
127
|
-
- Optional: Map embed
|
|
128
|
-
- Social media links
|
|
129
|
-
- Success message feedback
|
|
130
|
-
|
|
131
|
-
**Layout Pattern**: Minimal & Direct or Trust & Authority
|
|
132
|
-
|
|
133
|
-
**Search Query**: `python3 scripts/search.py "contact get-in-touch" --domain pages`
|
|
134
|
-
|
|
135
|
-
### 8. Product Category (E-commerce)
|
|
136
|
-
|
|
137
|
-
**Purpose**: Product discovery, filtering, browsing
|
|
138
|
-
|
|
139
|
-
**Key Sections**:
|
|
140
|
-
- Category header
|
|
141
|
-
- Filter/sort bar
|
|
142
|
-
- Product grid (cards with images, titles, prices)
|
|
143
|
-
- Pagination or infinite scroll
|
|
144
|
-
- Optional: Sidebar filters
|
|
145
|
-
- Quick view modal (optional)
|
|
146
|
-
|
|
147
|
-
**Layout Pattern**: E-commerce Clean or Bento Box Grid
|
|
148
|
-
|
|
149
|
-
**Search Query**: `python3 scripts/search.py "product-category shop catalog" --domain pages`
|
|
150
|
-
|
|
151
|
-
### 9. Product Details (E-commerce)
|
|
152
|
-
|
|
153
|
-
**Purpose**: Conversion, product information, purchase decision
|
|
154
|
-
|
|
155
|
-
**Key Sections**:
|
|
156
|
-
- Breadcrumbs
|
|
157
|
-
- Product image gallery (with zoom)
|
|
158
|
-
- Product title + price
|
|
159
|
-
- Product description
|
|
160
|
-
- Add to cart form + options (size, color, quantity)
|
|
161
|
-
- Specifications table
|
|
162
|
-
- Reviews/ratings section
|
|
163
|
-
- Related products grid
|
|
164
|
-
|
|
165
|
-
**Layout Pattern**: Conversion-Optimized or Feature-Rich Showcase
|
|
166
|
-
|
|
167
|
-
**Search Query**: `python3 scripts/search.py "product-detail single-product" --domain pages`
|
|
168
|
-
|
|
169
|
-
## Implementation Workflow
|
|
170
|
-
|
|
171
|
-
### Step 1: Search Page Type Template
|
|
172
|
-
|
|
173
|
-
For each page type, search the pages database:
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
python3 scripts/search.py "<page-type-keywords>" --domain pages
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
### Step 2: Search Design System
|
|
180
|
-
|
|
181
|
-
For consistent design across all pages:
|
|
182
|
-
|
|
183
|
-
```bash
|
|
184
|
-
# Product type
|
|
185
|
-
python3 scripts/search.py "<product-type>" --domain product
|
|
186
|
-
|
|
187
|
-
# Style
|
|
188
|
-
python3 scripts/search.py "<style-keywords>" --domain style
|
|
189
|
-
|
|
190
|
-
# Color palette
|
|
191
|
-
python3 scripts/search.py "<product-type>" --domain color
|
|
192
|
-
|
|
193
|
-
# Typography
|
|
194
|
-
python3 scripts/search.py "<typography-keywords>" --domain typography
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Step 3: Create Shared Components
|
|
198
|
-
|
|
199
|
-
Before creating individual pages, create shared components:
|
|
200
|
-
|
|
201
|
-
- **Header/Navigation** - Consistent across all pages
|
|
202
|
-
- **Footer** - Consistent across all pages
|
|
203
|
-
- **Button styles** - Primary, secondary, CTA
|
|
204
|
-
- **Card components** - For features, products, posts
|
|
205
|
-
- **Form components** - For contact, search
|
|
206
|
-
- **Layout wrapper** - Consistent spacing and max-width
|
|
207
|
-
|
|
208
|
-
### Step 4: Implement Pages in Order
|
|
209
|
-
|
|
210
|
-
Recommended order:
|
|
211
|
-
|
|
212
|
-
1. **Home** - Establishes design system
|
|
213
|
-
2. **About** - Uses same header/footer
|
|
214
|
-
3. **Category** - Reuses card components
|
|
215
|
-
4. **Post Details** - Uses category navigation
|
|
216
|
-
5. **Pricing** - Standalone but consistent
|
|
217
|
-
6. **FAQ** - Standalone but consistent
|
|
218
|
-
7. **Contact** - Standalone but consistent
|
|
219
|
-
8. **Product Category** (if e-commerce)
|
|
220
|
-
9. **Product Details** (if e-commerce)
|
|
221
|
-
|
|
222
|
-
### Step 5: Ensure Consistency
|
|
223
|
-
|
|
224
|
-
- Same color palette across all pages
|
|
225
|
-
- Same typography (heading + body fonts)
|
|
226
|
-
- Same spacing system (Tailwind spacing scale)
|
|
227
|
-
- Same navigation structure
|
|
228
|
-
- Same footer content
|
|
229
|
-
- Consistent button styles
|
|
230
|
-
- Consistent card styles
|
|
231
|
-
|
|
232
|
-
## Code Organization
|
|
233
|
-
|
|
234
|
-
### File Structure
|
|
235
|
-
|
|
236
|
-
```
|
|
237
|
-
src/
|
|
238
|
-
├── components/
|
|
239
|
-
│ ├── shared/
|
|
240
|
-
│ │ ├── Header.tsx (or Header.html)
|
|
241
|
-
│ │ ├── Footer.tsx (or Footer.html)
|
|
242
|
-
│ │ ├── Button.tsx
|
|
243
|
-
│ │ └── Card.tsx
|
|
244
|
-
│ ├── home/
|
|
245
|
-
│ │ ├── Hero.tsx
|
|
246
|
-
│ │ └── Features.tsx
|
|
247
|
-
│ ├── about/
|
|
248
|
-
│ │ ├── Team.tsx
|
|
249
|
-
│ │ └── Timeline.tsx
|
|
250
|
-
│ └── ...
|
|
251
|
-
├── pages/
|
|
252
|
-
│ ├── index.html (or Home.tsx)
|
|
253
|
-
│ ├── about.html (or About.tsx)
|
|
254
|
-
│ ├── blog/
|
|
255
|
-
│ │ ├── [slug].html (or PostDetails.tsx)
|
|
256
|
-
│ │ └── category/[category].html
|
|
257
|
-
│ ├── pricing.html
|
|
258
|
-
│ ├── faq.html
|
|
259
|
-
│ ├── contact.html
|
|
260
|
-
│ └── products/
|
|
261
|
-
│ ├── category/[category].html
|
|
262
|
-
│ └── [slug].html
|
|
263
|
-
└── styles/
|
|
264
|
-
├── globals.css (or tailwind.config.js)
|
|
265
|
-
└── components.css
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
### Component Reusability
|
|
269
|
-
|
|
270
|
-
- Extract common patterns into components
|
|
271
|
-
- Use props/variables for customization
|
|
272
|
-
- Keep components under 200-300 lines
|
|
273
|
-
- One component per file
|
|
274
|
-
|
|
275
|
-
## Best Practices
|
|
276
|
-
|
|
277
|
-
### Navigation
|
|
278
|
-
|
|
279
|
-
- Consistent navigation across all pages
|
|
280
|
-
- Active state indication (current page highlighted)
|
|
281
|
-
- Mobile-responsive hamburger menu
|
|
282
|
-
- Breadcrumbs for deep pages (3+ levels)
|
|
283
|
-
|
|
284
|
-
### Responsive Design
|
|
285
|
-
|
|
286
|
-
- Mobile-first approach
|
|
287
|
-
- Test at: 320px, 768px, 1024px, 1440px
|
|
288
|
-
- No horizontal scroll on mobile
|
|
289
|
-
- Touch-friendly targets (44x44px minimum)
|
|
290
|
-
|
|
291
|
-
### Performance
|
|
292
|
-
|
|
293
|
-
- Lazy load images below fold
|
|
294
|
-
- Optimize images (WebP format, appropriate sizes)
|
|
295
|
-
- Minimize JavaScript
|
|
296
|
-
- Use CSS for animations when possible
|
|
297
|
-
|
|
298
|
-
### Accessibility
|
|
299
|
-
|
|
300
|
-
- Semantic HTML
|
|
301
|
-
- ARIA labels where needed
|
|
302
|
-
- Keyboard navigation
|
|
303
|
-
- Focus indicators
|
|
304
|
-
- Alt text for images
|
|
305
|
-
- Form labels
|
|
306
|
-
- Color contrast (4.5:1 minimum)
|
|
307
|
-
|
|
308
|
-
## Example: Complete Website Package
|
|
309
|
-
|
|
310
|
-
**User Request**: "Tạo gói website đầy đủ cho dịch vụ chăm sóc da"
|
|
311
|
-
|
|
312
|
-
**Agent Workflow**:
|
|
313
|
-
|
|
314
|
-
1. Search product type: `python3 scripts/search.py "beauty spa wellness service" --domain product`
|
|
315
|
-
2. Search style: `python3 scripts/search.py "elegant minimal soft" --domain style`
|
|
316
|
-
3. Search color: `python3 scripts/search.py "beauty spa wellness" --domain color`
|
|
317
|
-
4. Search typography: `python3 scripts/search.py "elegant luxury" --domain typography`
|
|
318
|
-
|
|
319
|
-
5. For each page type:
|
|
320
|
-
- `python3 scripts/search.py "home homepage" --domain pages`
|
|
321
|
-
- `python3 scripts/search.py "about company" --domain pages`
|
|
322
|
-
- `python3 scripts/search.py "post article" --domain pages`
|
|
323
|
-
- `python3 scripts/search.py "category archive" --domain pages`
|
|
324
|
-
- `python3 scripts/search.py "pricing plans" --domain pages`
|
|
325
|
-
- `python3 scripts/search.py "faq questions" --domain pages`
|
|
326
|
-
- `python3 scripts/search.py "contact" --domain pages`
|
|
327
|
-
|
|
328
|
-
6. Create shared components (Header, Footer, Button, Card)
|
|
329
|
-
7. Implement pages in recommended order
|
|
330
|
-
8. Ensure consistency across all pages
|
|
331
|
-
9. Verify with pre-delivery checklist
|
|
332
|
-
|
|
333
|
-
## Notes
|
|
334
|
-
|
|
335
|
-
- **Default pages**: If user doesn't specify, create all 9 default pages
|
|
336
|
-
- **Custom pages**: User can specify which pages to create
|
|
337
|
-
- **E-commerce pages**: Only create Product Category and Product Details if product type is e-commerce
|
|
338
|
-
- **Consistency**: Most important - all pages should feel like one cohesive website
|
|
1
|
+
# Page Types Guide - Multi-Page Website Package
|
|
2
|
+
|
|
3
|
+
This guide provides templates and best practices for creating complete website packages with multiple page types.
|
|
4
|
+
|
|
5
|
+
## Default Page Set
|
|
6
|
+
|
|
7
|
+
When creating a complete website package (not just a landing page), the default set includes:
|
|
8
|
+
|
|
9
|
+
1. **Home** - Main homepage
|
|
10
|
+
2. **About** - Company/story page
|
|
11
|
+
3. **Post Details** - Blog/article detail page
|
|
12
|
+
4. **Category** - Blog/category listing page
|
|
13
|
+
5. **Pricing** - Pricing/plans page
|
|
14
|
+
6. **FAQ** - Frequently asked questions
|
|
15
|
+
7. **Contact** - Contact form and information
|
|
16
|
+
8. **Product Category** - E-commerce category listing
|
|
17
|
+
9. **Product Details** - E-commerce product detail page
|
|
18
|
+
|
|
19
|
+
## Page Type Templates
|
|
20
|
+
|
|
21
|
+
### 1. Home Page
|
|
22
|
+
|
|
23
|
+
**Purpose**: Main entry point, first impression, conversion focus
|
|
24
|
+
|
|
25
|
+
**Key Sections**:
|
|
26
|
+
- Hero with headline and primary CTA
|
|
27
|
+
- Value proposition (what makes you different)
|
|
28
|
+
- Key features (3-5 features with icons)
|
|
29
|
+
- Social proof (testimonials, logos, stats)
|
|
30
|
+
- Secondary CTA section
|
|
31
|
+
- Footer with navigation
|
|
32
|
+
|
|
33
|
+
**Layout Pattern**: Hero-Centric or Feature-Rich Showcase
|
|
34
|
+
|
|
35
|
+
**Search Query**: `python3 scripts/search.py "home homepage" --domain pages`
|
|
36
|
+
|
|
37
|
+
### 2. About Page
|
|
38
|
+
|
|
39
|
+
**Purpose**: Build trust, humanize brand, show expertise
|
|
40
|
+
|
|
41
|
+
**Key Sections**:
|
|
42
|
+
- Page header with title
|
|
43
|
+
- Mission/Vision statement
|
|
44
|
+
- Story/Timeline (how you started)
|
|
45
|
+
- Team grid (photos + roles)
|
|
46
|
+
- Values/Principles
|
|
47
|
+
- Optional: Stats/metrics
|
|
48
|
+
- Optional: CTA
|
|
49
|
+
|
|
50
|
+
**Layout Pattern**: Storytelling-Driven or Trust & Authority
|
|
51
|
+
|
|
52
|
+
**Search Query**: `python3 scripts/search.py "about company story" --domain pages`
|
|
53
|
+
|
|
54
|
+
### 3. Post Details (Blog Article)
|
|
55
|
+
|
|
56
|
+
**Purpose**: Content consumption, readability, SEO
|
|
57
|
+
|
|
58
|
+
**Key Sections**:
|
|
59
|
+
- Breadcrumbs navigation
|
|
60
|
+
- Article title + meta (date, author, category)
|
|
61
|
+
- Featured image
|
|
62
|
+
- Content body (readable typography)
|
|
63
|
+
- Author bio card
|
|
64
|
+
- Related posts grid
|
|
65
|
+
- Optional: Comments section
|
|
66
|
+
- Social share buttons
|
|
67
|
+
|
|
68
|
+
**Layout Pattern**: Minimal & Direct or Content-First
|
|
69
|
+
|
|
70
|
+
**Search Query**: `python3 scripts/search.py "post article blog" --domain pages`
|
|
71
|
+
|
|
72
|
+
### 4. Category Page (Blog/Content)
|
|
73
|
+
|
|
74
|
+
**Purpose**: Content discovery, filtering, browsing
|
|
75
|
+
|
|
76
|
+
**Key Sections**:
|
|
77
|
+
- Category header with title
|
|
78
|
+
- Category description
|
|
79
|
+
- Filter/search bar (optional)
|
|
80
|
+
- Post grid (cards or list view)
|
|
81
|
+
- Pagination
|
|
82
|
+
- Optional: Sidebar with widgets
|
|
83
|
+
|
|
84
|
+
**Layout Pattern**: Minimal & Direct or Bento Box Grid
|
|
85
|
+
|
|
86
|
+
**Search Query**: `python3 scripts/search.py "category archive listing" --domain pages`
|
|
87
|
+
|
|
88
|
+
### 5. Pricing Page
|
|
89
|
+
|
|
90
|
+
**Purpose**: Conversion, clear pricing, address objections
|
|
91
|
+
|
|
92
|
+
**Key Sections**:
|
|
93
|
+
- Hero headline
|
|
94
|
+
- Price comparison cards (3-4 tiers)
|
|
95
|
+
- Feature comparison table
|
|
96
|
+
- FAQ section (address common objections)
|
|
97
|
+
- Optional: Testimonials
|
|
98
|
+
- Final CTA
|
|
99
|
+
|
|
100
|
+
**Layout Pattern**: Pricing-Focused Landing
|
|
101
|
+
|
|
102
|
+
**Search Query**: `python3 scripts/search.py "pricing plans tiers" --domain pages`
|
|
103
|
+
|
|
104
|
+
### 6. FAQ Page
|
|
105
|
+
|
|
106
|
+
**Purpose**: Reduce support tickets, self-service
|
|
107
|
+
|
|
108
|
+
**Key Sections**:
|
|
109
|
+
- Hero with search bar
|
|
110
|
+
- Popular categories/tabs
|
|
111
|
+
- FAQ accordion (expandable Q&A)
|
|
112
|
+
- Contact/support CTA (for unresolved questions)
|
|
113
|
+
- Related articles
|
|
114
|
+
|
|
115
|
+
**Layout Pattern**: FAQ/Documentation Landing
|
|
116
|
+
|
|
117
|
+
**Search Query**: `python3 scripts/search.py "faq questions help" --domain pages`
|
|
118
|
+
|
|
119
|
+
### 7. Contact Page
|
|
120
|
+
|
|
121
|
+
**Purpose**: Lead capture, customer support
|
|
122
|
+
|
|
123
|
+
**Key Sections**:
|
|
124
|
+
- Hero/Header
|
|
125
|
+
- Contact form (name, email, message - max 3-4 fields)
|
|
126
|
+
- Contact information cards (address, phone, email)
|
|
127
|
+
- Optional: Map embed
|
|
128
|
+
- Social media links
|
|
129
|
+
- Success message feedback
|
|
130
|
+
|
|
131
|
+
**Layout Pattern**: Minimal & Direct or Trust & Authority
|
|
132
|
+
|
|
133
|
+
**Search Query**: `python3 scripts/search.py "contact get-in-touch" --domain pages`
|
|
134
|
+
|
|
135
|
+
### 8. Product Category (E-commerce)
|
|
136
|
+
|
|
137
|
+
**Purpose**: Product discovery, filtering, browsing
|
|
138
|
+
|
|
139
|
+
**Key Sections**:
|
|
140
|
+
- Category header
|
|
141
|
+
- Filter/sort bar
|
|
142
|
+
- Product grid (cards with images, titles, prices)
|
|
143
|
+
- Pagination or infinite scroll
|
|
144
|
+
- Optional: Sidebar filters
|
|
145
|
+
- Quick view modal (optional)
|
|
146
|
+
|
|
147
|
+
**Layout Pattern**: E-commerce Clean or Bento Box Grid
|
|
148
|
+
|
|
149
|
+
**Search Query**: `python3 scripts/search.py "product-category shop catalog" --domain pages`
|
|
150
|
+
|
|
151
|
+
### 9. Product Details (E-commerce)
|
|
152
|
+
|
|
153
|
+
**Purpose**: Conversion, product information, purchase decision
|
|
154
|
+
|
|
155
|
+
**Key Sections**:
|
|
156
|
+
- Breadcrumbs
|
|
157
|
+
- Product image gallery (with zoom)
|
|
158
|
+
- Product title + price
|
|
159
|
+
- Product description
|
|
160
|
+
- Add to cart form + options (size, color, quantity)
|
|
161
|
+
- Specifications table
|
|
162
|
+
- Reviews/ratings section
|
|
163
|
+
- Related products grid
|
|
164
|
+
|
|
165
|
+
**Layout Pattern**: Conversion-Optimized or Feature-Rich Showcase
|
|
166
|
+
|
|
167
|
+
**Search Query**: `python3 scripts/search.py "product-detail single-product" --domain pages`
|
|
168
|
+
|
|
169
|
+
## Implementation Workflow
|
|
170
|
+
|
|
171
|
+
### Step 1: Search Page Type Template
|
|
172
|
+
|
|
173
|
+
For each page type, search the pages database:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
python3 scripts/search.py "<page-type-keywords>" --domain pages
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Step 2: Search Design System
|
|
180
|
+
|
|
181
|
+
For consistent design across all pages:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
# Product type
|
|
185
|
+
python3 scripts/search.py "<product-type>" --domain product
|
|
186
|
+
|
|
187
|
+
# Style
|
|
188
|
+
python3 scripts/search.py "<style-keywords>" --domain style
|
|
189
|
+
|
|
190
|
+
# Color palette
|
|
191
|
+
python3 scripts/search.py "<product-type>" --domain color
|
|
192
|
+
|
|
193
|
+
# Typography
|
|
194
|
+
python3 scripts/search.py "<typography-keywords>" --domain typography
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Step 3: Create Shared Components
|
|
198
|
+
|
|
199
|
+
Before creating individual pages, create shared components:
|
|
200
|
+
|
|
201
|
+
- **Header/Navigation** - Consistent across all pages
|
|
202
|
+
- **Footer** - Consistent across all pages
|
|
203
|
+
- **Button styles** - Primary, secondary, CTA
|
|
204
|
+
- **Card components** - For features, products, posts
|
|
205
|
+
- **Form components** - For contact, search
|
|
206
|
+
- **Layout wrapper** - Consistent spacing and max-width
|
|
207
|
+
|
|
208
|
+
### Step 4: Implement Pages in Order
|
|
209
|
+
|
|
210
|
+
Recommended order:
|
|
211
|
+
|
|
212
|
+
1. **Home** - Establishes design system
|
|
213
|
+
2. **About** - Uses same header/footer
|
|
214
|
+
3. **Category** - Reuses card components
|
|
215
|
+
4. **Post Details** - Uses category navigation
|
|
216
|
+
5. **Pricing** - Standalone but consistent
|
|
217
|
+
6. **FAQ** - Standalone but consistent
|
|
218
|
+
7. **Contact** - Standalone but consistent
|
|
219
|
+
8. **Product Category** (if e-commerce)
|
|
220
|
+
9. **Product Details** (if e-commerce)
|
|
221
|
+
|
|
222
|
+
### Step 5: Ensure Consistency
|
|
223
|
+
|
|
224
|
+
- Same color palette across all pages
|
|
225
|
+
- Same typography (heading + body fonts)
|
|
226
|
+
- Same spacing system (Tailwind spacing scale)
|
|
227
|
+
- Same navigation structure
|
|
228
|
+
- Same footer content
|
|
229
|
+
- Consistent button styles
|
|
230
|
+
- Consistent card styles
|
|
231
|
+
|
|
232
|
+
## Code Organization
|
|
233
|
+
|
|
234
|
+
### File Structure
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
src/
|
|
238
|
+
├── components/
|
|
239
|
+
│ ├── shared/
|
|
240
|
+
│ │ ├── Header.tsx (or Header.html)
|
|
241
|
+
│ │ ├── Footer.tsx (or Footer.html)
|
|
242
|
+
│ │ ├── Button.tsx
|
|
243
|
+
│ │ └── Card.tsx
|
|
244
|
+
│ ├── home/
|
|
245
|
+
│ │ ├── Hero.tsx
|
|
246
|
+
│ │ └── Features.tsx
|
|
247
|
+
│ ├── about/
|
|
248
|
+
│ │ ├── Team.tsx
|
|
249
|
+
│ │ └── Timeline.tsx
|
|
250
|
+
│ └── ...
|
|
251
|
+
├── pages/
|
|
252
|
+
│ ├── index.html (or Home.tsx)
|
|
253
|
+
│ ├── about.html (or About.tsx)
|
|
254
|
+
│ ├── blog/
|
|
255
|
+
│ │ ├── [slug].html (or PostDetails.tsx)
|
|
256
|
+
│ │ └── category/[category].html
|
|
257
|
+
│ ├── pricing.html
|
|
258
|
+
│ ├── faq.html
|
|
259
|
+
│ ├── contact.html
|
|
260
|
+
│ └── products/
|
|
261
|
+
│ ├── category/[category].html
|
|
262
|
+
│ └── [slug].html
|
|
263
|
+
└── styles/
|
|
264
|
+
├── globals.css (or tailwind.config.js)
|
|
265
|
+
└── components.css
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Component Reusability
|
|
269
|
+
|
|
270
|
+
- Extract common patterns into components
|
|
271
|
+
- Use props/variables for customization
|
|
272
|
+
- Keep components under 200-300 lines
|
|
273
|
+
- One component per file
|
|
274
|
+
|
|
275
|
+
## Best Practices
|
|
276
|
+
|
|
277
|
+
### Navigation
|
|
278
|
+
|
|
279
|
+
- Consistent navigation across all pages
|
|
280
|
+
- Active state indication (current page highlighted)
|
|
281
|
+
- Mobile-responsive hamburger menu
|
|
282
|
+
- Breadcrumbs for deep pages (3+ levels)
|
|
283
|
+
|
|
284
|
+
### Responsive Design
|
|
285
|
+
|
|
286
|
+
- Mobile-first approach
|
|
287
|
+
- Test at: 320px, 768px, 1024px, 1440px
|
|
288
|
+
- No horizontal scroll on mobile
|
|
289
|
+
- Touch-friendly targets (44x44px minimum)
|
|
290
|
+
|
|
291
|
+
### Performance
|
|
292
|
+
|
|
293
|
+
- Lazy load images below fold
|
|
294
|
+
- Optimize images (WebP format, appropriate sizes)
|
|
295
|
+
- Minimize JavaScript
|
|
296
|
+
- Use CSS for animations when possible
|
|
297
|
+
|
|
298
|
+
### Accessibility
|
|
299
|
+
|
|
300
|
+
- Semantic HTML
|
|
301
|
+
- ARIA labels where needed
|
|
302
|
+
- Keyboard navigation
|
|
303
|
+
- Focus indicators
|
|
304
|
+
- Alt text for images
|
|
305
|
+
- Form labels
|
|
306
|
+
- Color contrast (4.5:1 minimum)
|
|
307
|
+
|
|
308
|
+
## Example: Complete Website Package
|
|
309
|
+
|
|
310
|
+
**User Request**: "Tạo gói website đầy đủ cho dịch vụ chăm sóc da"
|
|
311
|
+
|
|
312
|
+
**Agent Workflow**:
|
|
313
|
+
|
|
314
|
+
1. Search product type: `python3 scripts/search.py "beauty spa wellness service" --domain product`
|
|
315
|
+
2. Search style: `python3 scripts/search.py "elegant minimal soft" --domain style`
|
|
316
|
+
3. Search color: `python3 scripts/search.py "beauty spa wellness" --domain color`
|
|
317
|
+
4. Search typography: `python3 scripts/search.py "elegant luxury" --domain typography`
|
|
318
|
+
|
|
319
|
+
5. For each page type:
|
|
320
|
+
- `python3 scripts/search.py "home homepage" --domain pages`
|
|
321
|
+
- `python3 scripts/search.py "about company" --domain pages`
|
|
322
|
+
- `python3 scripts/search.py "post article" --domain pages`
|
|
323
|
+
- `python3 scripts/search.py "category archive" --domain pages`
|
|
324
|
+
- `python3 scripts/search.py "pricing plans" --domain pages`
|
|
325
|
+
- `python3 scripts/search.py "faq questions" --domain pages`
|
|
326
|
+
- `python3 scripts/search.py "contact" --domain pages`
|
|
327
|
+
|
|
328
|
+
6. Create shared components (Header, Footer, Button, Card)
|
|
329
|
+
7. Implement pages in recommended order
|
|
330
|
+
8. Ensure consistency across all pages
|
|
331
|
+
9. Verify with pre-delivery checklist
|
|
332
|
+
|
|
333
|
+
## Notes
|
|
334
|
+
|
|
335
|
+
- **Default pages**: If user doesn't specify, create all 9 default pages
|
|
336
|
+
- **Custom pages**: User can specify which pages to create
|
|
337
|
+
- **E-commerce pages**: Only create Product Category and Product Details if product type is e-commerce
|
|
338
|
+
- **Consistency**: Most important - all pages should feel like one cohesive website
|