@zoyth/simple-site-framework 1.0.0

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.
Files changed (166) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +572 -0
  3. package/bin/create-simple-site.js +390 -0
  4. package/bin/simple-site.js +664 -0
  5. package/dist/client.js +135 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/client.mjs +107 -0
  8. package/dist/client.mjs.map +1 -0
  9. package/dist/components/index.d.mts +3936 -0
  10. package/dist/components/index.d.ts +3936 -0
  11. package/dist/components/index.js +38265 -0
  12. package/dist/components/index.js.map +1 -0
  13. package/dist/components/index.mjs +38173 -0
  14. package/dist/components/index.mjs.map +1 -0
  15. package/dist/config/index.d.mts +298 -0
  16. package/dist/config/index.d.ts +298 -0
  17. package/dist/config/index.js +19 -0
  18. package/dist/config/index.js.map +1 -0
  19. package/dist/config/index.mjs +1 -0
  20. package/dist/config/index.mjs.map +1 -0
  21. package/dist/index.d.mts +2184 -0
  22. package/dist/index.d.ts +2184 -0
  23. package/dist/index.js +1713 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/index.mjs +1605 -0
  26. package/dist/index.mjs.map +1 -0
  27. package/dist/lib/i18n/index.js +665 -0
  28. package/dist/lib/i18n/index.js.map +1 -0
  29. package/dist/lib/i18n/index.mjs +621 -0
  30. package/dist/lib/i18n/index.mjs.map +1 -0
  31. package/docs/DOCUMENTATION-STRUCTURE.md +1156 -0
  32. package/docs/EXPORTS.md +125 -0
  33. package/docs/PERFORMANCE.md +757 -0
  34. package/docs/POLICY-PAGES.md +867 -0
  35. package/docs/ROADMAP.md +334 -0
  36. package/docs/SEO.md +455 -0
  37. package/docs/SITEMAP.md +708 -0
  38. package/docs/STRUCTURED-DATA.md +671 -0
  39. package/docs/accessibility/common-patterns.md +529 -0
  40. package/docs/accessibility/keyboard-navigation.md +263 -0
  41. package/docs/accessibility/overview.md +122 -0
  42. package/docs/accessibility/screen-readers.md +311 -0
  43. package/docs/accessibility/wcag-compliance.md +159 -0
  44. package/docs/api/README.md +164 -0
  45. package/docs/api/components/Accessibility.md +356 -0
  46. package/docs/api/components/Button.md +240 -0
  47. package/docs/api/components/HeroSection.md +306 -0
  48. package/docs/architecture/decisions.md +449 -0
  49. package/docs/components/AnalyticsTracker.md +58 -0
  50. package/docs/components/AnimatedCounter.md +48 -0
  51. package/docs/components/AnimatedSection.md +56 -0
  52. package/docs/components/BlogCard.md +42 -0
  53. package/docs/components/Checkbox.md +56 -0
  54. package/docs/components/CodeBlock.md +52 -0
  55. package/docs/components/ComparisonTable.md +40 -0
  56. package/docs/components/ComponentDemo.md +38 -0
  57. package/docs/components/CountdownTimer.md +51 -0
  58. package/docs/components/ExitIntentModal.md +56 -0
  59. package/docs/components/FAQAccordion.md +66 -0
  60. package/docs/components/FeaturesGrid.md +55 -0
  61. package/docs/components/FileUpload.md +54 -0
  62. package/docs/components/I18nMetaTags.md +55 -0
  63. package/docs/components/Icon.md +53 -0
  64. package/docs/components/LazySection.md +46 -0
  65. package/docs/components/LiveProof.md +53 -0
  66. package/docs/components/LoadingSpinner.md +46 -0
  67. package/docs/components/MultiStepForm.md +48 -0
  68. package/docs/components/PolicyLayout.md +55 -0
  69. package/docs/components/PricingTable.md +49 -0
  70. package/docs/components/Radio.md +59 -0
  71. package/docs/components/SEOMetaTags.md +58 -0
  72. package/docs/components/ScriptInjector.md +50 -0
  73. package/docs/components/Select.md +72 -0
  74. package/docs/components/Skeleton.md +47 -0
  75. package/docs/components/StatsSection.md +48 -0
  76. package/docs/components/StickyBar.md +62 -0
  77. package/docs/components/StructuredData.md +99 -0
  78. package/docs/components/StyleGuide.md +46 -0
  79. package/docs/components/TableOfContents.md +47 -0
  80. package/docs/components/TestimonialCarousel.md +42 -0
  81. package/docs/components/Timeline.md +51 -0
  82. package/docs/components/Toast.md +59 -0
  83. package/docs/components/TrackedLink.md +62 -0
  84. package/docs/components/TrustBadges.md +44 -0
  85. package/docs/components/conversion/MobileCTA.md +363 -0
  86. package/docs/components/forms/ContactForm.md +75 -0
  87. package/docs/components/forms/FormField.md +74 -0
  88. package/docs/components/layout/Footer.md +601 -0
  89. package/docs/components/layout/Header.md +549 -0
  90. package/docs/components/layout/LanguageSelector.md +54 -0
  91. package/docs/components/layout/LanguageSwitcher.md +24 -0
  92. package/docs/components/overview.md +447 -0
  93. package/docs/components/sections/AboutSection.md +48 -0
  94. package/docs/components/sections/CTASection.md +596 -0
  95. package/docs/components/sections/CaseStudySection.md +47 -0
  96. package/docs/components/sections/ContactSection.md +599 -0
  97. package/docs/components/sections/FeatureSection.md +44 -0
  98. package/docs/components/sections/HeroSection.md +404 -0
  99. package/docs/components/sections/LogosSection.md +47 -0
  100. package/docs/components/sections/PersonalTaxesSection.md +23 -0
  101. package/docs/components/sections/RecruitingSection.md +23 -0
  102. package/docs/components/sections/SecurePortalSection.md +23 -0
  103. package/docs/components/sections/ServicePageLayout.md +52 -0
  104. package/docs/components/sections/ServicesSection.md +49 -0
  105. package/docs/components/sections/TestimonialSection.md +44 -0
  106. package/docs/components/sections/WhyChooseUsSection.md +54 -0
  107. package/docs/components/ui/Breadcrumb.md +70 -0
  108. package/docs/components/ui/Button.md +514 -0
  109. package/docs/components/ui/Card.md +501 -0
  110. package/docs/components/ui/Input.md +54 -0
  111. package/docs/components/ui/MobileLinks.md +43 -0
  112. package/docs/components/ui/Modal.md +60 -0
  113. package/docs/components/ui/Tabs.md +62 -0
  114. package/docs/components/ui/Textarea.md +52 -0
  115. package/docs/core-concepts/configuration-driven.md +552 -0
  116. package/docs/core-concepts/overview.md +351 -0
  117. package/docs/features/accessibility/README.md +73 -0
  118. package/docs/features/accessibility/aria-support.md +177 -0
  119. package/docs/features/accessibility/color-contrast.md +155 -0
  120. package/docs/features/accessibility/focus-management.md +187 -0
  121. package/docs/features/accessibility/testing.md +196 -0
  122. package/docs/features/analytics/README.md +51 -0
  123. package/docs/features/analytics/ab-testing.md +171 -0
  124. package/docs/features/analytics/conversion-tracking.md +207 -0
  125. package/docs/features/analytics/custom-events.md +219 -0
  126. package/docs/features/analytics/privacy.md +198 -0
  127. package/docs/features/analytics/setup.md +114 -0
  128. package/docs/features/analytics/tracking-events.md +224 -0
  129. package/docs/features/i18n/README.md +51 -0
  130. package/docs/features/i18n/best-practices.md +273 -0
  131. package/docs/features/i18n/configuration.md +84 -0
  132. package/docs/features/i18n/formatting.md +133 -0
  133. package/docs/features/i18n/locale-detection.md +122 -0
  134. package/docs/features/i18n/routing.md +99 -0
  135. package/docs/features/i18n/rtl-support.md +191 -0
  136. package/docs/features/i18n/translations.md +129 -0
  137. package/docs/features/internationalization.md +595 -0
  138. package/docs/features/performance/README.md +77 -0
  139. package/docs/features/performance/bundle-size.md +134 -0
  140. package/docs/features/performance/caching.md +131 -0
  141. package/docs/features/performance/code-splitting.md +121 -0
  142. package/docs/features/performance/image-optimization.md +110 -0
  143. package/docs/features/performance/lazy-loading.md +92 -0
  144. package/docs/features/performance/monitoring.md +148 -0
  145. package/docs/features/seo/README.md +51 -0
  146. package/docs/features/seo/best-practices.md +184 -0
  147. package/docs/features/seo/canonical-urls.md +182 -0
  148. package/docs/features/seo/meta-tags.md +126 -0
  149. package/docs/features/seo/open-graph.md +166 -0
  150. package/docs/features/seo/robots-txt.md +146 -0
  151. package/docs/features/seo/sitemaps.md +162 -0
  152. package/docs/features/seo/structured-data.md +166 -0
  153. package/docs/getting-started/installation.md +292 -0
  154. package/docs/getting-started/introduction.md +195 -0
  155. package/docs/getting-started/quick-start.md +460 -0
  156. package/docs/guides/analytics-setup.md +616 -0
  157. package/docs/i18n/CONFIGURATION.md +353 -0
  158. package/docs/i18n/EXAMPLES.md +402 -0
  159. package/docs/i18n/MIGRATION.md +260 -0
  160. package/docs/i18n/SEO.md +392 -0
  161. package/docs/i18n/STATIC-GENERATION-FIX.md +71 -0
  162. package/docs/migration/changelog.md +136 -0
  163. package/docs/migration/overview.md +233 -0
  164. package/docs/recipes/adding-animations.md +475 -0
  165. package/docs/recipes/forms-with-validation.md +393 -0
  166. package/package.json +152 -0
@@ -0,0 +1,334 @@
1
+ # Simple Site Framework Roadmap
2
+
3
+ ## Overview
4
+
5
+ This roadmap tracks the development of the Simple Site Framework from initial release through production-ready polish.
6
+
7
+ **Goals:**
8
+ 1. **Rapid Development**: Reduce landing page development from days to hours
9
+ 2. **High Conversion**: Add proven conversion optimization patterns
10
+ 3. **Best Practices**: Implement SEO, accessibility, and performance optimizations
11
+ 4. **Micro-interactions**: Smooth animations that delight users
12
+ 5. **Developer Experience**: Tools and documentation that make development enjoyable
13
+
14
+ ---
15
+
16
+ ## Version 0.1.0 - Initial Release ✅
17
+
18
+ **Release Date**: January 31, 2024
19
+ **Status**: Complete
20
+
21
+ ### Phase 1: Foundation (Issues #1-6) ✅
22
+
23
+ **Focus**: Foundation for micro-interactions and forms
24
+
25
+ | Issue | Component | Status |
26
+ |-------|-----------|--------|
27
+ | #1 | Framer Motion + AnimatedSection | ✅ Complete |
28
+ | #2 | Toast Notifications | ✅ Complete |
29
+ | #3 | LoadingSpinner + Skeleton | ✅ Complete |
30
+ | #4 | Form Validation (RHF + Zod) | ✅ Complete |
31
+ | #5 | Modal/Dialog | ✅ Complete |
32
+ | #6 | FAQAccordion | ✅ Complete |
33
+
34
+ **Impact**: Enables all future micro-interactions, dramatically improves form UX
35
+
36
+ ### Phase 2: Conversion Optimization (Issues #7-12) ✅
37
+
38
+ **Focus**: Social proof, urgency, and persuasion elements
39
+
40
+ | Issue | Component | Status |
41
+ |-------|-----------|--------|
42
+ | #7 | AnimatedCounter | ✅ Complete |
43
+ | #8 | StatsSection | ✅ Complete |
44
+ | #9 | TrustBadges | ✅ Complete |
45
+ | #10 | PricingTable | ✅ Complete |
46
+ | #11 | TestimonialCarousel | ✅ Complete |
47
+ | #12 | StickyBar | ✅ Complete |
48
+
49
+ **Impact**: Proven conversion-boosting components, 20-30% conversion improvement potential
50
+
51
+ ### Phase 3: Forms & Engagement (Issues #13-18) ✅
52
+
53
+ **Focus**: Advanced form inputs and engagement patterns
54
+
55
+ | Issue | Component | Status |
56
+ |-------|-----------|--------|
57
+ | #13 | Select (search/multi-select) | ✅ Complete |
58
+ | #14 | Checkbox/Radio | ✅ Complete |
59
+ | #15 | FileUpload (drag & drop) | ✅ Complete |
60
+ | #16 | MultiStepForm | ✅ Complete |
61
+ | #17 | CountdownTimer | ✅ Complete |
62
+ | #18 | ExitIntentModal | ✅ Complete |
63
+
64
+ **Impact**: Complete form toolkit, engagement tools for lead capture
65
+
66
+ ### Phase 4: Content & SEO (Issues #19-24) ✅
67
+
68
+ **Focus**: Content organization and search optimization
69
+
70
+ | Issue | Component | Status |
71
+ |-------|-----------|--------|
72
+ | #19 | Tabs | ✅ Complete |
73
+ | #20 | Timeline | ✅ Complete |
74
+ | #21 | ComparisonTable | ✅ Complete |
75
+ | #22 | BlogCard | ✅ Complete |
76
+ | #23 | generateMetadata() | ✅ Complete |
77
+ | #24 | StructuredData | ✅ Complete |
78
+
79
+ **Impact**: Better content organization, improved SEO and search appearance
80
+
81
+ ### Phase 5: Polish & DX (Issues #25-29) ✅
82
+
83
+ **Focus**: Tooling, documentation, and quality of life
84
+
85
+ | Issue | Deliverable | Status |
86
+ |-------|-------------|--------|
87
+ | #25 | CLI Scaffolding | ✅ Complete |
88
+ | #26 | LazySection | ✅ Complete |
89
+ | #27 | Enhanced StyleGuide | ✅ Complete |
90
+ | #28 | Accessibility Docs | ✅ Complete |
91
+ | #29 | Migration Guides | ✅ Complete |
92
+
93
+ **Impact**: Major DX improvement, faster onboarding, production-ready polish
94
+
95
+ ### Component Enhancements (Issues #30-33) ✅
96
+
97
+ Improvements to existing components:
98
+
99
+ | Issue | Enhancement | Status |
100
+ |-------|-------------|--------|
101
+ | #30 | HeroSection micro-interactions | ✅ Complete |
102
+ | #31 | Button loading/success/icons | ✅ Complete |
103
+ | #32 | Icon library (Lucide React) | ✅ Complete |
104
+ | #33 | ContactSection working form | ✅ Complete |
105
+
106
+ ### Reference Documentation (Issues #34-35) ✅
107
+
108
+ | Issue | Document | Status |
109
+ |-------|----------|--------|
110
+ | #34 | Architecture Decisions | ✅ Documented |
111
+ | #35 | This Roadmap | ✅ Documented |
112
+
113
+ ---
114
+
115
+ ## Component Inventory
116
+
117
+ ### Layout Components
118
+ - ✅ Header (with navigation, logo, mobile menu)
119
+ - ✅ Footer (links, social media)
120
+ - ✅ HeroSection (dark, light, split variants)
121
+ - ✅ ContactSection (form, map, locations)
122
+
123
+ ### UI Components
124
+ - ✅ Button (6 variants, loading/success states, icons)
125
+ - ✅ Icon (Lucide React wrapper)
126
+ - ✅ Modal/Dialog
127
+ - ✅ Toast
128
+ - ✅ LoadingSpinner
129
+ - ✅ Skeleton
130
+ - ✅ StickyBar
131
+
132
+ ### Form Components
133
+ - ✅ FormField
134
+ - ✅ Select (with search, multi-select)
135
+ - ✅ Checkbox / CheckboxGroup
136
+ - ✅ Radio / RadioGroup
137
+ - ✅ FileUpload (drag & drop)
138
+ - ✅ MultiStepForm
139
+
140
+ ### Content Components
141
+ - ✅ Tabs
142
+ - ✅ Timeline
143
+ - ✅ FAQAccordion
144
+ - ✅ ComparisonTable
145
+ - ✅ BlogCard
146
+ - ✅ CodeBlock
147
+ - ✅ ComponentDemo
148
+ - ✅ StyleGuide
149
+
150
+ ### Conversion Components
151
+ - ✅ AnimatedCounter
152
+ - ✅ StatsSection
153
+ - ✅ TrustBadges
154
+ - ✅ PricingTable
155
+ - ✅ TestimonialCarousel
156
+ - ✅ CountdownTimer
157
+ - ✅ ExitIntentModal
158
+ - ✅ FeaturesGrid
159
+
160
+ ### Utilities
161
+ - ✅ AnimatedSection
162
+ - ✅ LazySection
163
+ - ✅ ScriptInjector
164
+ - ✅ generateMetadata() (SEO)
165
+ - ✅ StructuredData (JSON-LD)
166
+
167
+ **Total Components**: 35+
168
+
169
+ ---
170
+
171
+ ## Technology Stack
172
+
173
+ ### Core Dependencies
174
+ - ✅ React 18/19
175
+ - ✅ Next.js 14/15/16
176
+ - ✅ TypeScript 5.3+
177
+ - ✅ Tailwind CSS 3/4
178
+
179
+ ### Animation & Interaction
180
+ - ✅ Framer Motion 11+
181
+
182
+ ### UI Primitives
183
+ - ✅ Radix UI (Accordion, Dialog, Select, Tabs, Tooltip)
184
+
185
+ ### Forms & Validation
186
+ - ✅ React Hook Form 7+ (peer dep)
187
+ - ✅ Zod 3+ (peer dep)
188
+ - ✅ @hookform/resolvers (peer dep)
189
+
190
+ ### Icons
191
+ - ✅ Lucide React (peer dep)
192
+
193
+ ### Development Tools
194
+ - ✅ tsup (bundler)
195
+ - ✅ Commander.js (CLI)
196
+ - ✅ Inquirer.js (CLI prompts)
197
+ - ✅ Chalk (CLI colors)
198
+ - ✅ Ora (CLI spinners)
199
+
200
+ ### Optional
201
+ - react-syntax-highlighter (StyleGuide)
202
+ - clsx + tailwind-merge (utilities)
203
+
204
+ ---
205
+
206
+ ## Success Metrics
207
+
208
+ ### Developer Velocity ✅
209
+ - ✅ Time to build landing page: **<2 hours** (vs ~8 hours)
210
+ - ✅ Time to add new section: **<15 minutes** (vs ~1 hour)
211
+ - ✅ Setup new project: **<5 minutes** (with CLI)
212
+
213
+ ### Conversion Impact 🎯
214
+ - Form submissions: **+30%** (with validation + micro-interactions)
215
+ - Time on page: **+25%** (with engagement components)
216
+ - Bounce rate: **-20%** (with better UX)
217
+
218
+ ### Performance ✅
219
+ - Lighthouse score: **>90** (all categories)
220
+ - First Contentful Paint: **<1.5s**
221
+ - Time to Interactive: **<3s**
222
+ - Bundle size: **~100-150kb** (framework code)
223
+
224
+ ### Accessibility ✅
225
+ - WCAG 2.1 AA compliance: **100%**
226
+ - Keyboard navigation: **All interactive elements**
227
+ - Screen reader support: **Complete**
228
+
229
+ ---
230
+
231
+ ## Future Roadmap (v0.2+)
232
+
233
+ ### Potential v0.2 Features
234
+ - 🔮 Additional components based on user feedback
235
+ - 🔮 More template variations
236
+ - 🔮 Advanced analytics integrations
237
+ - 🔮 A11y testing utilities (A11yChecker component)
238
+ - 🔮 Visual regression testing
239
+ - 🔮 Storybook integration
240
+ - 🔮 More CLI commands
241
+ - 🔮 Codemod migration tools
242
+
243
+ ### Potential v1.0 Features
244
+ - 🔮 Stable API (semver commitment)
245
+ - 🔮 LTS support timeline
246
+ - 🔮 Comprehensive test suite
247
+ - 🔮 E2E testing framework
248
+ - 🔮 Performance monitoring
249
+ - 🔮 Package splitting (if needed)
250
+ - 🔮 Additional language support
251
+ - 🔮 Theme marketplace
252
+ - 🔮 Component library browser
253
+
254
+ ---
255
+
256
+ ## Package Info
257
+
258
+ ### Published Package
259
+ ```bash
260
+ npm install @zoyth/simple-site-framework
261
+ ```
262
+
263
+ ### Repository
264
+ - **GitHub**: https://github.com/zoyth/simple-site-framework
265
+ - **NPM**: https://www.npmjs.com/package/@zoyth/simple-site-framework (when published)
266
+ - **Registry**: GitHub Packages
267
+
268
+ ### Documentation
269
+ - `/docs/accessibility/` - WCAG compliance and testing
270
+ - `/docs/migration/` - Version upgrade guides
271
+ - `/docs/architecture/` - Architectural decisions
272
+
273
+ ### CLI Tools
274
+ ```bash
275
+ # Create new project
276
+ npx create-simple-site my-site
277
+
278
+ # Add components
279
+ npx simple-site add button
280
+ npx simple-site add contact-section
281
+
282
+ # Generate pages
283
+ npx simple-site generate page about
284
+
285
+ # Validate config
286
+ npx simple-site validate-config
287
+ ```
288
+
289
+ ---
290
+
291
+ ## Contributing
292
+
293
+ We welcome contributions! See areas for contribution:
294
+
295
+ 1. **New Components**: Suggest conversion-focused components
296
+ 2. **Templates**: Create industry-specific templates
297
+ 3. **Documentation**: Improve guides and examples
298
+ 4. **Testing**: Add test coverage
299
+ 5. **Performance**: Optimize bundle size
300
+ 6. **Accessibility**: Enhance a11y features
301
+ 7. **i18n**: Add language support
302
+
303
+ ---
304
+
305
+ ## Maintenance
306
+
307
+ ### Update Cadence
308
+ - **Patch releases** (0.1.x): As needed for bugs
309
+ - **Minor releases** (0.x.0): Monthly with new features
310
+ - **Major releases** (x.0.0): Yearly with breaking changes
311
+
312
+ ### Support
313
+ - **Current version** (0.1.x): Active development
314
+ - **Future LTS**: 18-month support window (starting v1.0)
315
+
316
+ ---
317
+
318
+ ## Changelog
319
+
320
+ See [CHANGELOG.md](./migration/changelog.md) for detailed version history.
321
+
322
+ ---
323
+
324
+ ## Questions or Feedback?
325
+
326
+ - **Issues**: https://github.com/zoyth/simple-site-framework/issues
327
+ - **Discussions**: https://github.com/zoyth/simple-site-framework/discussions
328
+ - **Architecture**: See [Architecture Decisions](./architecture/decisions.md)
329
+
330
+ ---
331
+
332
+ **Last Updated**: January 31, 2024
333
+ **Current Version**: 0.1.0
334
+ **Status**: v0.1.0 Complete ✅