rothzerg 0.1.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 (341) hide show
  1. package/dist/cli.js +949 -0
  2. package/package.json +27 -0
  3. package/readme.md +0 -0
  4. package/templates/_base-website/App.tsx +59 -0
  5. package/templates/_base-website/InitialDataContext.tsx +21 -0
  6. package/templates/_base-website/_gitignore +5 -0
  7. package/templates/_base-website/client.tsx +26 -0
  8. package/templates/_base-website/components/DeepLinkLayout.css +41 -0
  9. package/templates/_base-website/components/DeepLinkLayout.tsx +39 -0
  10. package/templates/_base-website/components/DownloadSection.css +60 -0
  11. package/templates/_base-website/components/DownloadSection.tsx +61 -0
  12. package/templates/_base-website/components/SiteFeaturesSection.tsx +68 -0
  13. package/templates/_base-website/components/SiteFooter.tsx +29 -0
  14. package/templates/_base-website/components/SiteHeroSection.tsx +30 -0
  15. package/templates/_base-website/components/SiteHighlightsSection.tsx +38 -0
  16. package/templates/_base-website/components/SiteLanguageSwitcher.tsx +9 -0
  17. package/templates/_base-website/components/SiteNavigation.tsx +24 -0
  18. package/templates/_base-website/config.ts +78 -0
  19. package/templates/_base-website/data/blog/authors.json +18 -0
  20. package/templates/_base-website/data/blog/categories.json +53 -0
  21. package/templates/_base-website/data/blog/posts.json +29 -0
  22. package/templates/_base-website/data/blog/tags.json +86 -0
  23. package/templates/_base-website/i18n/config.ts +60 -0
  24. package/templates/_base-website/i18n/sections/blog/_index.ts +41 -0
  25. package/templates/_base-website/i18n/sections/blog/ar.ts +24 -0
  26. package/templates/_base-website/i18n/sections/blog/de.ts +24 -0
  27. package/templates/_base-website/i18n/sections/blog/en.ts +24 -0
  28. package/templates/_base-website/i18n/sections/blog/es.ts +24 -0
  29. package/templates/_base-website/i18n/sections/blog/fr.ts +24 -0
  30. package/templates/_base-website/i18n/sections/blog/hi.ts +24 -0
  31. package/templates/_base-website/i18n/sections/blog/id.ts +24 -0
  32. package/templates/_base-website/i18n/sections/blog/it.ts +24 -0
  33. package/templates/_base-website/i18n/sections/blog/ja.ts +24 -0
  34. package/templates/_base-website/i18n/sections/blog/ko.ts +24 -0
  35. package/templates/_base-website/i18n/sections/blog/nl.ts +24 -0
  36. package/templates/_base-website/i18n/sections/blog/pl.ts +24 -0
  37. package/templates/_base-website/i18n/sections/blog/pt.ts +24 -0
  38. package/templates/_base-website/i18n/sections/blog/ru.ts +24 -0
  39. package/templates/_base-website/i18n/sections/blog/sv.ts +24 -0
  40. package/templates/_base-website/i18n/sections/blog/th.ts +24 -0
  41. package/templates/_base-website/i18n/sections/blog/tr.ts +24 -0
  42. package/templates/_base-website/i18n/sections/blog/vi.ts +24 -0
  43. package/templates/_base-website/i18n/sections/blog/zh.ts +24 -0
  44. package/templates/_base-website/i18n/sections/common/_index.ts +41 -0
  45. package/templates/_base-website/i18n/sections/common/ar.ts +29 -0
  46. package/templates/_base-website/i18n/sections/common/de.ts +29 -0
  47. package/templates/_base-website/i18n/sections/common/en.ts +29 -0
  48. package/templates/_base-website/i18n/sections/common/es.ts +29 -0
  49. package/templates/_base-website/i18n/sections/common/fr.ts +29 -0
  50. package/templates/_base-website/i18n/sections/common/hi.ts +29 -0
  51. package/templates/_base-website/i18n/sections/common/id.ts +29 -0
  52. package/templates/_base-website/i18n/sections/common/it.ts +29 -0
  53. package/templates/_base-website/i18n/sections/common/ja.ts +29 -0
  54. package/templates/_base-website/i18n/sections/common/ko.ts +29 -0
  55. package/templates/_base-website/i18n/sections/common/nl.ts +29 -0
  56. package/templates/_base-website/i18n/sections/common/pl.ts +29 -0
  57. package/templates/_base-website/i18n/sections/common/pt.ts +29 -0
  58. package/templates/_base-website/i18n/sections/common/ru.ts +29 -0
  59. package/templates/_base-website/i18n/sections/common/sv.ts +29 -0
  60. package/templates/_base-website/i18n/sections/common/th.ts +29 -0
  61. package/templates/_base-website/i18n/sections/common/tr.ts +29 -0
  62. package/templates/_base-website/i18n/sections/common/vi.ts +29 -0
  63. package/templates/_base-website/i18n/sections/common/zh.ts +29 -0
  64. package/templates/_base-website/i18n/sections/deepLink/_index.ts +41 -0
  65. package/templates/_base-website/i18n/sections/deepLink/ar.ts +14 -0
  66. package/templates/_base-website/i18n/sections/deepLink/de.ts +14 -0
  67. package/templates/_base-website/i18n/sections/deepLink/en.ts +14 -0
  68. package/templates/_base-website/i18n/sections/deepLink/es.ts +14 -0
  69. package/templates/_base-website/i18n/sections/deepLink/fr.ts +14 -0
  70. package/templates/_base-website/i18n/sections/deepLink/hi.ts +14 -0
  71. package/templates/_base-website/i18n/sections/deepLink/id.ts +14 -0
  72. package/templates/_base-website/i18n/sections/deepLink/it.ts +14 -0
  73. package/templates/_base-website/i18n/sections/deepLink/ja.ts +14 -0
  74. package/templates/_base-website/i18n/sections/deepLink/ko.ts +14 -0
  75. package/templates/_base-website/i18n/sections/deepLink/nl.ts +14 -0
  76. package/templates/_base-website/i18n/sections/deepLink/pl.ts +14 -0
  77. package/templates/_base-website/i18n/sections/deepLink/pt.ts +14 -0
  78. package/templates/_base-website/i18n/sections/deepLink/ru.ts +14 -0
  79. package/templates/_base-website/i18n/sections/deepLink/sv.ts +14 -0
  80. package/templates/_base-website/i18n/sections/deepLink/th.ts +14 -0
  81. package/templates/_base-website/i18n/sections/deepLink/tr.ts +14 -0
  82. package/templates/_base-website/i18n/sections/deepLink/vi.ts +14 -0
  83. package/templates/_base-website/i18n/sections/deepLink/zh.ts +14 -0
  84. package/templates/_base-website/i18n/sections/home/_index.ts +41 -0
  85. package/templates/_base-website/i18n/sections/home/ar.ts +85 -0
  86. package/templates/_base-website/i18n/sections/home/de.ts +85 -0
  87. package/templates/_base-website/i18n/sections/home/en.ts +85 -0
  88. package/templates/_base-website/i18n/sections/home/es.ts +85 -0
  89. package/templates/_base-website/i18n/sections/home/fr.ts +85 -0
  90. package/templates/_base-website/i18n/sections/home/hi.ts +85 -0
  91. package/templates/_base-website/i18n/sections/home/id.ts +85 -0
  92. package/templates/_base-website/i18n/sections/home/it.ts +85 -0
  93. package/templates/_base-website/i18n/sections/home/ja.ts +85 -0
  94. package/templates/_base-website/i18n/sections/home/ko.ts +85 -0
  95. package/templates/_base-website/i18n/sections/home/nl.ts +85 -0
  96. package/templates/_base-website/i18n/sections/home/pl.ts +85 -0
  97. package/templates/_base-website/i18n/sections/home/pt.ts +85 -0
  98. package/templates/_base-website/i18n/sections/home/ru.ts +85 -0
  99. package/templates/_base-website/i18n/sections/home/sv.ts +85 -0
  100. package/templates/_base-website/i18n/sections/home/th.ts +85 -0
  101. package/templates/_base-website/i18n/sections/home/tr.ts +85 -0
  102. package/templates/_base-website/i18n/sections/home/vi.ts +85 -0
  103. package/templates/_base-website/i18n/sections/home/zh.ts +85 -0
  104. package/templates/_base-website/i18n/sections/support/_index.ts +41 -0
  105. package/templates/_base-website/i18n/sections/support/ar.ts +37 -0
  106. package/templates/_base-website/i18n/sections/support/de.ts +37 -0
  107. package/templates/_base-website/i18n/sections/support/en.ts +37 -0
  108. package/templates/_base-website/i18n/sections/support/es.ts +37 -0
  109. package/templates/_base-website/i18n/sections/support/fr.ts +37 -0
  110. package/templates/_base-website/i18n/sections/support/hi.ts +37 -0
  111. package/templates/_base-website/i18n/sections/support/id.ts +37 -0
  112. package/templates/_base-website/i18n/sections/support/it.ts +37 -0
  113. package/templates/_base-website/i18n/sections/support/ja.ts +37 -0
  114. package/templates/_base-website/i18n/sections/support/ko.ts +37 -0
  115. package/templates/_base-website/i18n/sections/support/nl.ts +37 -0
  116. package/templates/_base-website/i18n/sections/support/pl.ts +37 -0
  117. package/templates/_base-website/i18n/sections/support/pt.ts +37 -0
  118. package/templates/_base-website/i18n/sections/support/ru.ts +37 -0
  119. package/templates/_base-website/i18n/sections/support/sv.ts +37 -0
  120. package/templates/_base-website/i18n/sections/support/th.ts +37 -0
  121. package/templates/_base-website/i18n/sections/support/tr.ts +37 -0
  122. package/templates/_base-website/i18n/sections/support/vi.ts +37 -0
  123. package/templates/_base-website/i18n/sections/support/zh.ts +37 -0
  124. package/templates/_base-website/i18n/translations.ts +25 -0
  125. package/templates/_base-website/index.ts +460 -0
  126. package/templates/_base-website/pages/404.tsx +35 -0
  127. package/templates/_base-website/pages/blog/author.tsx +97 -0
  128. package/templates/_base-website/pages/blog/category.tsx +89 -0
  129. package/templates/_base-website/pages/blog/index.tsx +81 -0
  130. package/templates/_base-website/pages/blog/post.tsx +110 -0
  131. package/templates/_base-website/pages/blog/tag.tsx +86 -0
  132. package/templates/_base-website/pages/custom-pages/example.tsx +54 -0
  133. package/templates/_base-website/pages/index.tsx +29 -0
  134. package/templates/_base-website/pages/privacy.tsx +45 -0
  135. package/templates/_base-website/pages/support.tsx +154 -0
  136. package/templates/_base-website/pages/terms.tsx +68 -0
  137. package/templates/_base-website/public/images/16.png +0 -0
  138. package/templates/_base-website/public/images/apple-touch-icon.png +0 -0
  139. package/templates/_base-website/public/images/favicon-32x32.png +0 -0
  140. package/templates/_base-website/public/images/favicon.png +0 -0
  141. package/templates/_base-website/public/images/logo_dark.svg +6 -0
  142. package/templates/_base-website/public/images/logo_light.svg +6 -0
  143. package/templates/_base-website/public/images/og-image.png +0 -0
  144. package/templates/_base-website/public/images/screenshots/ar_dashboard.jpg +0 -0
  145. package/templates/_base-website/public/images/screenshots/de_dashboard.jpg +0 -0
  146. package/templates/_base-website/public/images/screenshots/en_dashboard.jpg +0 -0
  147. package/templates/_base-website/public/images/screenshots/es_dashboard.jpg +0 -0
  148. package/templates/_base-website/public/images/screenshots/fr_dashboard.jpg +0 -0
  149. package/templates/_base-website/public/images/screenshots/hi_dashboard.jpg +0 -0
  150. package/templates/_base-website/public/images/screenshots/id_dashboard.jpg +0 -0
  151. package/templates/_base-website/public/images/screenshots/it_dashboard.jpg +0 -0
  152. package/templates/_base-website/public/images/screenshots/ja_dashboard.jpg +0 -0
  153. package/templates/_base-website/public/images/screenshots/ko_dashboard.jpg +0 -0
  154. package/templates/_base-website/public/images/screenshots/nl_dashboard.jpg +0 -0
  155. package/templates/_base-website/public/images/screenshots/pl_dashboard.jpg +0 -0
  156. package/templates/_base-website/public/images/screenshots/pt_dashboard.jpg +0 -0
  157. package/templates/_base-website/public/images/screenshots/ru_dashboard.jpg +0 -0
  158. package/templates/_base-website/public/images/screenshots/sv_dashboard.jpg +0 -0
  159. package/templates/_base-website/public/images/screenshots/th_dashboard.jpg +0 -0
  160. package/templates/_base-website/public/images/screenshots/tr_dashboard.jpg +0 -0
  161. package/templates/_base-website/public/images/screenshots/vi_dashboard.jpg +0 -0
  162. package/templates/_base-website/public/images/screenshots/zh_dashboard.jpg +0 -0
  163. package/templates/_base-website/rothzerg.template.json +63 -0
  164. package/templates/_base-website/styles/404.css +32 -0
  165. package/templates/_base-website/styles/_app.css +131 -0
  166. package/templates/_base-website/styles/_shared.css +194 -0
  167. package/templates/_base-website/styles/index.css +1 -0
  168. package/templates/_base-website/styles/privacy.css +1 -0
  169. package/templates/_base-website/styles/support.css +148 -0
  170. package/templates/_base-website/styles/terms.css +22 -0
  171. package/templates/mobile-app/_gitignore +46 -0
  172. package/templates/mobile-app/analysis_options.yaml +28 -0
  173. package/templates/mobile-app/android/app/build.gradle.kts +56 -0
  174. package/templates/mobile-app/android/app/google-services.json +29 -0
  175. package/templates/mobile-app/android/app/src/debug/AndroidManifest.xml +7 -0
  176. package/templates/mobile-app/android/app/src/main/AndroidManifest.xml +54 -0
  177. package/templates/mobile-app/android/app/src/main/kotlin/com/example/{{projectNameSnake}}/MainActivity.kt +5 -0
  178. package/templates/mobile-app/android/app/src/main/res/drawable/launch_background.xml +12 -0
  179. package/templates/mobile-app/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
  180. package/templates/mobile-app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  181. package/templates/mobile-app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  182. package/templates/mobile-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  183. package/templates/mobile-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  184. package/templates/mobile-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  185. package/templates/mobile-app/android/app/src/main/res/values/styles.xml +18 -0
  186. package/templates/mobile-app/android/app/src/main/res/values-night/styles.xml +18 -0
  187. package/templates/mobile-app/android/app/src/profile/AndroidManifest.xml +7 -0
  188. package/templates/mobile-app/android/build.gradle.kts +24 -0
  189. package/templates/mobile-app/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  190. package/templates/mobile-app/android/gradle.properties +2 -0
  191. package/templates/mobile-app/android/settings.gradle.kts +31 -0
  192. package/templates/mobile-app/assets/icons/logo.png +0 -0
  193. package/templates/mobile-app/assets/icons/logo_dark.svg +5 -0
  194. package/templates/mobile-app/assets/icons/logo_light.svg +5 -0
  195. package/templates/mobile-app/assets/lottie/tick.json +1 -0
  196. package/templates/mobile-app/devtools_options.yaml +3 -0
  197. package/templates/mobile-app/ios/Flutter/AppFrameworkInfo.plist +26 -0
  198. package/templates/mobile-app/ios/Flutter/Debug.xcconfig +2 -0
  199. package/templates/mobile-app/ios/Flutter/Release.xcconfig +2 -0
  200. package/templates/mobile-app/ios/Podfile +46 -0
  201. package/templates/mobile-app/ios/Podfile.lock +1807 -0
  202. package/templates/mobile-app/ios/Runner/AppDelegate.swift +16 -0
  203. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +122 -0
  204. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png +0 -0
  205. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
  206. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
  207. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
  208. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
  209. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
  210. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
  211. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
  212. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
  213. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
  214. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
  215. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
  216. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
  217. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
  218. package/templates/mobile-app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
  219. package/templates/mobile-app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +23 -0
  220. package/templates/mobile-app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
  221. package/templates/mobile-app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
  222. package/templates/mobile-app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
  223. package/templates/mobile-app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +5 -0
  224. package/templates/mobile-app/ios/Runner/Base.lproj/LaunchScreen.storyboard +37 -0
  225. package/templates/mobile-app/ios/Runner/Base.lproj/Main.storyboard +26 -0
  226. package/templates/mobile-app/ios/Runner/GoogleService-Info.plist +30 -0
  227. package/templates/mobile-app/ios/Runner/Info.plist +70 -0
  228. package/templates/mobile-app/ios/Runner/Runner-Bridging-Header.h +1 -0
  229. package/templates/mobile-app/ios/Runner.xcodeproj/project.pbxproj +772 -0
  230. package/templates/mobile-app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  231. package/templates/mobile-app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  232. package/templates/mobile-app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  233. package/templates/mobile-app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +101 -0
  234. package/templates/mobile-app/ios/Runner.xcworkspace/contents.xcworkspacedata +10 -0
  235. package/templates/mobile-app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  236. package/templates/mobile-app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  237. package/templates/mobile-app/ios/RunnerTests/RunnerTests.swift +12 -0
  238. package/templates/mobile-app/l10n.yaml +5 -0
  239. package/templates/mobile-app/lib/core/config/app_config.dart +76 -0
  240. package/templates/mobile-app/lib/core/constants/app_colors.dart +13 -0
  241. package/templates/mobile-app/lib/core/constants/app_constants.dart +123 -0
  242. package/templates/mobile-app/lib/core/constants/countries.dart +199 -0
  243. package/templates/mobile-app/lib/core/constants/keys.dart +46 -0
  244. package/templates/mobile-app/lib/core/constants/languages.dart +51 -0
  245. package/templates/mobile-app/lib/core/services/admin_service.dart +271 -0
  246. package/templates/mobile-app/lib/core/services/analytics_service.dart +296 -0
  247. package/templates/mobile-app/lib/core/services/auth_service.dart +185 -0
  248. package/templates/mobile-app/lib/core/services/device_service.dart +228 -0
  249. package/templates/mobile-app/lib/core/services/firebase_service.dart +490 -0
  250. package/templates/mobile-app/lib/core/services/in_app_messaging_service.dart +166 -0
  251. package/templates/mobile-app/lib/core/services/logging_service.dart +451 -0
  252. package/templates/mobile-app/lib/core/services/messaging_service.dart +460 -0
  253. package/templates/mobile-app/lib/core/services/remote_config_service.dart +167 -0
  254. package/templates/mobile-app/lib/core/services/revenue_cat_service.dart +364 -0
  255. package/templates/mobile-app/lib/core/services/storage_service.dart +313 -0
  256. package/templates/mobile-app/lib/core/theme/dark_theme.dart +295 -0
  257. package/templates/mobile-app/lib/core/theme/light_theme.dart +296 -0
  258. package/templates/mobile-app/lib/core/utils/formatters.dart +236 -0
  259. package/templates/mobile-app/lib/core/utils/image_picker_helper.dart +78 -0
  260. package/templates/mobile-app/lib/core/utils/validators.dart +292 -0
  261. package/templates/mobile-app/lib/firebase_options.dart +19 -0
  262. package/templates/mobile-app/lib/l10n/app_en.arb +1371 -0
  263. package/templates/mobile-app/lib/l10n/app_localizations.dart +2042 -0
  264. package/templates/mobile-app/lib/l10n/app_localizations_en.dart +1033 -0
  265. package/templates/mobile-app/lib/main.dart +152 -0
  266. package/templates/mobile-app/lib/models/device_model.dart +90 -0
  267. package/templates/mobile-app/lib/models/news_banner.dart +53 -0
  268. package/templates/mobile-app/lib/models/user_model.dart +120 -0
  269. package/templates/mobile-app/lib/providers/admin_provider.dart +67 -0
  270. package/templates/mobile-app/lib/providers/auth_provider.dart +328 -0
  271. package/templates/mobile-app/lib/providers/remote_config_provider.dart +81 -0
  272. package/templates/mobile-app/lib/providers/subscription_provider.dart +67 -0
  273. package/templates/mobile-app/lib/providers/theme_provider.dart +51 -0
  274. package/templates/mobile-app/lib/screens/admin/admin_panel_screen.dart +436 -0
  275. package/templates/mobile-app/lib/screens/admin/admin_panel_user_details_screen.dart +942 -0
  276. package/templates/mobile-app/lib/screens/admin/admin_panel_users_screen.dart +344 -0
  277. package/templates/mobile-app/lib/screens/auth/auth_home_screen.dart +266 -0
  278. package/templates/mobile-app/lib/screens/auth/forgot_password_screen.dart +214 -0
  279. package/templates/mobile-app/lib/screens/auth/login_screen.dart +312 -0
  280. package/templates/mobile-app/lib/screens/auth/profile_setup_screen.dart +157 -0
  281. package/templates/mobile-app/lib/screens/auth/register_screen.dart +288 -0
  282. package/templates/mobile-app/lib/screens/developer/developer_panel_screen.dart +436 -0
  283. package/templates/mobile-app/lib/screens/developer/remote_config_screen.dart +315 -0
  284. package/templates/mobile-app/lib/screens/developer/remote_config_test_screen.dart +461 -0
  285. package/templates/mobile-app/lib/screens/home/home_screen.dart +270 -0
  286. package/templates/mobile-app/lib/screens/legal/privacy_policy_screen.dart +63 -0
  287. package/templates/mobile-app/lib/screens/legal/terms_screen.dart +82 -0
  288. package/templates/mobile-app/lib/screens/main_navigation_screen.dart +85 -0
  289. package/templates/mobile-app/lib/screens/premium/subscription_screen.dart +516 -0
  290. package/templates/mobile-app/lib/screens/profile/edit_profile_screen.dart +246 -0
  291. package/templates/mobile-app/lib/screens/settings/about_app_screen.dart +200 -0
  292. package/templates/mobile-app/lib/screens/settings/cache_manager_screen.dart +400 -0
  293. package/templates/mobile-app/lib/screens/settings/change_password_screen.dart +269 -0
  294. package/templates/mobile-app/lib/screens/settings/delete_account_screen.dart +261 -0
  295. package/templates/mobile-app/lib/screens/settings/settings_screen.dart +400 -0
  296. package/templates/mobile-app/lib/screens/splash/splash_screen.dart +125 -0
  297. package/templates/mobile-app/lib/widgets/app_button.dart +255 -0
  298. package/templates/mobile-app/lib/widgets/app_drawer.dart +207 -0
  299. package/templates/mobile-app/lib/widgets/bottom_sheet_selector.dart +79 -0
  300. package/templates/mobile-app/lib/widgets/button_banner.dart +177 -0
  301. package/templates/mobile-app/lib/widgets/country_picker.dart +169 -0
  302. package/templates/mobile-app/lib/widgets/custom_app_bar.dart +30 -0
  303. package/templates/mobile-app/lib/widgets/email_verification_banner.dart +163 -0
  304. package/templates/mobile-app/lib/widgets/empty_screen.dart +42 -0
  305. package/templates/mobile-app/lib/widgets/language_picker.dart +145 -0
  306. package/templates/mobile-app/lib/widgets/news_banner_widget.dart +264 -0
  307. package/templates/mobile-app/lib/widgets/remote_config/remote_config_widgets.dart +294 -0
  308. package/templates/mobile-app/lib/widgets/section_header.dart +23 -0
  309. package/templates/mobile-app/lib/widgets/success_overlay.dart +117 -0
  310. package/templates/mobile-app/lib/widgets/top_notification.dart +263 -0
  311. package/templates/mobile-app/lib/widgets/user_avatar_picker.dart +58 -0
  312. package/templates/mobile-app/pubspec.yaml +97 -0
  313. package/templates/mobile-app/rothzerg.template.json +43 -0
  314. package/templates/web-app/_gitignore +4 -0
  315. package/templates/web-app/index.html +12 -0
  316. package/templates/web-app/package.json +23 -0
  317. package/templates/web-app/rothzerg.template.json +41 -0
  318. package/templates/web-app/src/App.css +6 -0
  319. package/templates/web-app/src/App.tsx +12 -0
  320. package/templates/web-app/src/index.css +14 -0
  321. package/templates/web-app/src/main.tsx +10 -0
  322. package/templates/web-app/tsconfig.app.json +20 -0
  323. package/templates/web-app/tsconfig.json +7 -0
  324. package/templates/web-app/tsconfig.node.json +18 -0
  325. package/templates/web-app/vite.config.ts +6 -0
  326. package/templates/website-blog/overrides/config.ts +76 -0
  327. package/templates/website-blog/overrides/pages/index.tsx +63 -0
  328. package/templates/website-blog/rothzerg.template.json +29 -0
  329. package/templates/website-business/overrides/App.tsx +49 -0
  330. package/templates/website-business/overrides/components/SiteHeroSection.tsx +33 -0
  331. package/templates/website-business/overrides/config.ts +76 -0
  332. package/templates/website-business/overrides/pages/about.tsx +50 -0
  333. package/templates/website-business/overrides/pages/contact.tsx +61 -0
  334. package/templates/website-business/overrides/pages/index.tsx +37 -0
  335. package/templates/website-business/overrides/pages/services.tsx +70 -0
  336. package/templates/website-business/rothzerg.template.json +18 -0
  337. package/templates/website-mobile/overrides/App.tsx +62 -0
  338. package/templates/website-mobile/overrides/components/SiteHeroSection.tsx +18 -0
  339. package/templates/website-mobile/overrides/config.ts +76 -0
  340. package/templates/website-mobile/overrides/pages/index.tsx +34 -0
  341. package/templates/website-mobile/rothzerg.template.json +64 -0
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "rothzerg",
3
+ "version": "0.1.0",
4
+ "description": "Plugin-style CLI engine for scaffolding and upgrading projects from config-driven, inheritable templates",
5
+ "type": "module",
6
+ "bin": {
7
+ "rothzerg": "./dist/cli.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "templates"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsup",
15
+ "dev": "bun run src/cli.ts",
16
+ "typecheck": "tsc --noEmit"
17
+ },
18
+ "dependencies": {
19
+ "@clack/prompts": "^0.9.1",
20
+ "picocolors": "^1.1.1"
21
+ },
22
+ "devDependencies": {
23
+ "@types/node": "^22.0.0",
24
+ "tsup": "^8.0.0",
25
+ "typescript": "^5.7.0"
26
+ }
27
+ }
package/readme.md ADDED
File without changes
@@ -0,0 +1,59 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { Routes, Route, useParams, Navigate } from "react-router-dom";
3
+ import { GoogleAnalytics, trackEvent } from "../../utils/GoogleAnalytics";
4
+ import { I18nextProvider } from "react-i18next";
5
+ import { IndexPage } from "./pages/index";
6
+ import { TermsPage } from "./pages/terms";
7
+ import { PrivacyPage } from "./pages/privacy";
8
+ import { SupportPage } from "./pages/support";
9
+ import { NotFoundPage } from "./pages/404";
10
+ import { BlogIndexPage } from "./pages/blog/index";
11
+ import { BlogPostPage } from "./pages/blog/post";
12
+ import { BlogTagPage } from "./pages/blog/tag";
13
+ import { BlogCategoryPage } from "./pages/blog/category";
14
+ import { BlogAuthorPage } from "./pages/blog/author";
15
+ import { getI18nInstance, isValidLanguage } from "./i18n/config";
16
+ import { DEFAULT_LANGUAGE, SITE_CONFIG } from "./config";
17
+
18
+ function LanguageWrapper({ children }: { children: React.ReactNode }) {
19
+ const { lang } = useParams<{ lang: string }>();
20
+ const validLang = lang && isValidLanguage(lang) ? lang : DEFAULT_LANGUAGE;
21
+
22
+ const [i18nInstance] = useState(() => getI18nInstance(validLang));
23
+
24
+ useEffect(() => {
25
+ if (i18nInstance.language !== validLang) {
26
+ i18nInstance.changeLanguage(validLang);
27
+ trackEvent("language_change", { language: validLang });
28
+ }
29
+ }, [validLang, i18nInstance]);
30
+
31
+ return <I18nextProvider i18n={i18nInstance}>{children}</I18nextProvider>;
32
+ }
33
+
34
+ export function App() {
35
+ return (
36
+ <>
37
+ <GoogleAnalytics measurementId={SITE_CONFIG.googleAnalyticsId} />
38
+ <Routes>
39
+ <Route path="/" element={<Navigate to="/en/" replace />} />
40
+ <Route path="/:lang" element={<LanguageWrapper><IndexPage /></LanguageWrapper>} />
41
+ <Route path="/:lang/" element={<LanguageWrapper><IndexPage /></LanguageWrapper>} />
42
+ <Route path="/:lang/terms" element={<LanguageWrapper><TermsPage /></LanguageWrapper>} />
43
+ <Route path="/:lang/privacy" element={<LanguageWrapper><PrivacyPage /></LanguageWrapper>} />
44
+ <Route path="/:lang/support" element={<LanguageWrapper><SupportPage /></LanguageWrapper>} />
45
+ {/* Blog pages */}
46
+ <Route path="/:lang/blog" element={<LanguageWrapper><BlogIndexPage /></LanguageWrapper>} />
47
+ <Route path="/:lang/blog/page/:page" element={<LanguageWrapper><BlogIndexPage /></LanguageWrapper>} />
48
+ <Route path="/:lang/blog/tag/:slug" element={<LanguageWrapper><BlogTagPage /></LanguageWrapper>} />
49
+ <Route path="/:lang/blog/tag/:slug/page/:page" element={<LanguageWrapper><BlogTagPage /></LanguageWrapper>} />
50
+ <Route path="/:lang/blog/category/:slug" element={<LanguageWrapper><BlogCategoryPage /></LanguageWrapper>} />
51
+ <Route path="/:lang/blog/category/:slug/page/:page" element={<LanguageWrapper><BlogCategoryPage /></LanguageWrapper>} />
52
+ <Route path="/:lang/blog/author/:slug" element={<LanguageWrapper><BlogAuthorPage /></LanguageWrapper>} />
53
+ <Route path="/:lang/blog/author/:slug/page/:page" element={<LanguageWrapper><BlogAuthorPage /></LanguageWrapper>} />
54
+ <Route path="/:lang/blog/:slug" element={<LanguageWrapper><BlogPostPage /></LanguageWrapper>} />
55
+ <Route path="*" element={<LanguageWrapper><NotFoundPage /></LanguageWrapper>} />
56
+ </Routes>
57
+ </>
58
+ );
59
+ }
@@ -0,0 +1,21 @@
1
+ import React, { createContext, useContext } from "react";
2
+
3
+ const InitialDataContext = createContext<any>(null);
4
+
5
+ export function useInitialData() {
6
+ return useContext(InitialDataContext);
7
+ }
8
+
9
+ export function InitialDataProvider({
10
+ data,
11
+ children,
12
+ }: {
13
+ data: any;
14
+ children?: React.ReactNode;
15
+ }) {
16
+ return (
17
+ <InitialDataContext.Provider value={data}>
18
+ {children}
19
+ </InitialDataContext.Provider>
20
+ );
21
+ }
@@ -0,0 +1,5 @@
1
+ node_modules/
2
+ dist/
3
+ .env
4
+ .env.local
5
+ .DS_Store
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { hydrateRoot } from "react-dom/client";
3
+ import { BrowserRouter } from "react-router-dom";
4
+ import { App } from "./App.tsx";
5
+ import { InitialDataProvider } from "./InitialDataContext.tsx";
6
+
7
+ // Hydrate the app on the client side
8
+ // @ts-ignore
9
+ const rootElement = document.getElementById("root");
10
+ if (rootElement) {
11
+ // @ts-ignore
12
+ const initialData = window.__INITIAL_DATA__ ?? null;
13
+
14
+ hydrateRoot(
15
+ rootElement,
16
+ React.createElement(
17
+ BrowserRouter,
18
+ null,
19
+ React.createElement(
20
+ InitialDataProvider,
21
+ { data: initialData },
22
+ React.createElement(App)
23
+ )
24
+ )
25
+ );
26
+ }
@@ -0,0 +1,41 @@
1
+ /* DeepLinkLayout
2
+ ========================================================================== */
3
+
4
+ .deep-link-layout {
5
+ @apply min-h-screen flex flex-col;
6
+ background-color: var(--color-bg);
7
+ color: var(--color-text);
8
+ }
9
+
10
+ .deep-link-layout__header {
11
+ @apply border-b px-4 py-4;
12
+ border-color: var(--color-border);
13
+ }
14
+
15
+ .deep-link-layout__header-inner {
16
+ @apply max-w-2xl mx-auto flex justify-center;
17
+ }
18
+
19
+ .deep-link-layout__logo-link {
20
+ @apply flex items-center gap-2 font-bold text-xl no-underline hover:opacity-80 transition-opacity;
21
+ color: var(--color-text);
22
+ }
23
+
24
+ .deep-link-layout__logo-img {
25
+ width: 36px;
26
+ height: auto;
27
+ }
28
+
29
+ .deep-link-layout__main {
30
+ @apply flex-1 px-4 py-10;
31
+ }
32
+
33
+ .deep-link-layout__content {
34
+ @apply max-w-2xl mx-auto;
35
+ }
36
+
37
+ .deep-link-layout__footer {
38
+ @apply border-t px-4 py-6 text-center text-sm;
39
+ border-color: var(--color-border);
40
+ color: var(--color-text-faint);
41
+ }
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import { SITE_CONFIG } from "../config";
3
+
4
+ export function DeepLinkLayout({ children }: { children: React.ReactNode }) {
5
+ return (
6
+ <div className="deep-link-layout">
7
+ <header className="deep-link-layout__header">
8
+ <div className="deep-link-layout__header-inner">
9
+ <a
10
+ href="/en/"
11
+ className="deep-link-layout__logo-link"
12
+ aria-label="Emrius Home"
13
+ >
14
+ <img
15
+ src="/static/images/logo_dark.svg"
16
+ alt="Emrius"
17
+ className="deep-link-layout__logo-img"
18
+ onError={(e) => {
19
+ (e.target as any).style.display = "none";
20
+ }}
21
+ />
22
+ <span className="gradient-text">
23
+ {SITE_CONFIG.name}
24
+ </span>
25
+ </a>
26
+ </div>
27
+ </header>
28
+ <main className="deep-link-layout__main">
29
+ <div className="deep-link-layout__content">{children}</div>
30
+ </main>
31
+ <footer className="deep-link-layout__footer">
32
+ <p>
33
+ &copy; {new Date().getFullYear()} {SITE_CONFIG.name}. All rights
34
+ reserved.
35
+ </p>
36
+ </footer>
37
+ </div>
38
+ );
39
+ }
@@ -0,0 +1,60 @@
1
+ /* DownloadSection
2
+ ========================================================================== */
3
+
4
+ .download-section {
5
+ @apply py-24 px-4;
6
+ background-color: var(--color-surface);
7
+ }
8
+
9
+ .download-section__container {
10
+ @apply max-w-3xl mx-auto text-center;
11
+ }
12
+
13
+ .download-section__badge {
14
+ @apply inline-block text-xs font-semibold px-3 py-1 rounded-full mb-4;
15
+ background-color: color-mix(in srgb, var(--color-primary), transparent 85%);
16
+ color: var(--color-primary);
17
+ }
18
+
19
+ .download-section__title {
20
+ @apply text-3xl sm:text-4xl font-bold mb-4;
21
+ color: var(--color-text);
22
+ }
23
+
24
+ .download-section__subtitle {
25
+ @apply text-lg mb-10;
26
+ color: var(--color-text-muted);
27
+ }
28
+
29
+ .download-section__buttons {
30
+ @apply flex flex-wrap justify-center gap-4;
31
+ }
32
+
33
+ /* Download buttons
34
+ ========================================================================== */
35
+
36
+ .download-btn {
37
+ @apply inline-flex items-center gap-3 px-6 py-3 rounded-xl font-medium no-underline transition-opacity;
38
+ background-color: var(--color-text);
39
+ color: var(--color-bg);
40
+ }
41
+
42
+ .download-btn:hover {
43
+ opacity: 0.85;
44
+ }
45
+
46
+ .download-btn__icon {
47
+ @apply w-7 h-7 shrink-0;
48
+ }
49
+
50
+ .download-btn__text {
51
+ @apply flex flex-col text-left;
52
+ }
53
+
54
+ .download-btn__sub {
55
+ @apply text-xs opacity-70;
56
+ }
57
+
58
+ .download-btn__main {
59
+ @apply text-base font-semibold leading-tight;
60
+ }
@@ -0,0 +1,61 @@
1
+ import React from "react";
2
+ import { useTranslation } from "react-i18next";
3
+
4
+ interface DownloadSectionProps {
5
+ appStoreUrl?: string;
6
+ playStoreUrl?: string;
7
+ }
8
+
9
+ export function DownloadSection({ appStoreUrl, playStoreUrl }: DownloadSectionProps) {
10
+ const { t } = useTranslation();
11
+
12
+ if (!appStoreUrl && !playStoreUrl) return null;
13
+
14
+ return (
15
+ <section id="download" className="download-section" aria-labelledby="download-title">
16
+ <div className="download-section__container">
17
+ <div className="download-section__badge">{t("download.badge")}</div>
18
+ <h2 id="download-title" className="download-section__title">{t("download.title")}</h2>
19
+ <p className="download-section__subtitle">{t("download.subtitle")}</p>
20
+
21
+ <div className="download-section__buttons">
22
+ {appStoreUrl && (
23
+ <a
24
+ href={appStoreUrl}
25
+ className="download-btn download-btn--apple"
26
+ target="_blank"
27
+ rel="noopener noreferrer"
28
+ aria-label="Download on the App Store"
29
+ >
30
+ <svg className="download-btn__icon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
31
+ <path d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z" />
32
+ </svg>
33
+ <div className="download-btn__text">
34
+ <span className="download-btn__sub">{t("download.downloadOn")}</span>
35
+ <span className="download-btn__main">{t("download.appStore")}</span>
36
+ </div>
37
+ </a>
38
+ )}
39
+
40
+ {playStoreUrl && (
41
+ <a
42
+ href={playStoreUrl}
43
+ className="download-btn download-btn--google"
44
+ target="_blank"
45
+ rel="noopener noreferrer"
46
+ aria-label="Get it on Google Play"
47
+ >
48
+ <svg className="download-btn__icon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
49
+ <path d="M3.18 23.76c.3.17.64.24.99.18l12.83-7.41-2.79-2.79-11.03 10.02zM.5 1.19C.19 1.5 0 2.01 0 2.69v18.62c0 .68.19 1.19.51 1.5l.08.08 10.43-10.43v-.25L.58 1.11.5 1.19zm19.64 9.13l-2.55-1.47-3.12 3.12 3.12 3.12 2.57-1.48c.73-.42.73-1.11-.02-1.29zM4.17.24L17 7.66l-2.79 2.79L4.17.24z" />
50
+ </svg>
51
+ <div className="download-btn__text">
52
+ <span className="download-btn__sub">{t("download.getItOn")}</span>
53
+ <span className="download-btn__main">{t("download.googlePlay")}</span>
54
+ </div>
55
+ </a>
56
+ )}
57
+ </div>
58
+ </div>
59
+ </section>
60
+ );
61
+ }
@@ -0,0 +1,68 @@
1
+ import { FeaturesSection } from "../../../components/FeaturesSection"
2
+
3
+ export const SiteFeaturesSection = () => {
4
+
5
+ return (
6
+ <FeaturesSection
7
+ features={[
8
+ {
9
+ key: "workouts",
10
+ icon: (
11
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
12
+ <path d="M6.5 6.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 1 0-7 0" />
13
+ <path d="M2 21v-2a4 4 0 0 1 4-4h4" />
14
+ <path d="M17.5 17.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 1 0 0 7Z" />
15
+ <path d="M22 22l-1.5-1.5" />
16
+ </svg>
17
+ ),
18
+ colorModifier: "blue",
19
+ },
20
+ {
21
+ key: "challenges",
22
+ icon: (
23
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
24
+ <path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6" />
25
+ <path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18" />
26
+ <path d="M4 22h16" />
27
+ <path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22" />
28
+ <path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22" />
29
+ <path d="M18 2H6v7a6 6 0 0 0 12 0V2Z" />
30
+ </svg>
31
+ ),
32
+ colorModifier: "yellow",
33
+ },
34
+ {
35
+ key: "community",
36
+ icon: (
37
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
38
+ <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
39
+ <circle cx="9" cy="7" r="4" />
40
+ <path d="M22 21v-2a4 4 0 0 0-3-3.87" />
41
+ <path d="M16 3.13a4 4 0 0 1 0 7.75" />
42
+ </svg>
43
+ ),
44
+ colorModifier: "green",
45
+ },
46
+ {
47
+ key: "progress",
48
+ icon: (
49
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
50
+ <line x1="12" y1="20" x2="12" y2="10" />
51
+ <line x1="18" y1="20" x2="18" y2="4" />
52
+ <line x1="6" y1="20" x2="6" y2="16" />
53
+ </svg>
54
+ ),
55
+ colorModifier: "purple",
56
+ },
57
+ {
58
+ key: "badges",
59
+ icon: (
60
+ <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
61
+ <circle cx="12" cy="8" r="6" />
62
+ <path d="M15.477 12.89 17 22l-5-3-5 3 1.523-9.11" />
63
+ </svg>
64
+ ),
65
+ colorModifier: "rose",
66
+ },
67
+ ]} />)
68
+ }
@@ -0,0 +1,29 @@
1
+ import { useTranslation } from "react-i18next";
2
+ import { Footer } from "../../../components/Footer"
3
+ import { useParams } from "react-router-dom";
4
+ import { SITE_CONFIG } from "../config";
5
+
6
+ export const SiteFooter = () => {
7
+ const { t } = useTranslation();
8
+ const { lang } = useParams<{ lang: string }>();
9
+ const currentLang = lang || "en";
10
+
11
+ return (<Footer
12
+ siteName={SITE_CONFIG.name}
13
+ productLinks={[
14
+ { label: t("nav.features"), href: `/${currentLang}/#features` },
15
+ { label: "Blog", href: `/${currentLang}/blog` },
16
+ { label: t("nav.download"), href: `/${currentLang}/#download` },
17
+ ]}
18
+ supportLinks={[
19
+ { label: t("footer.helpCenter"), href: `/${currentLang}/support` },
20
+ { label: t("footer.contactUs"), href: `/${currentLang}/support#contact` },
21
+ ]}
22
+ legalLinks={[
23
+ { label: t("footer.privacyPolicy"), href: `/${currentLang}/privacy` },
24
+ { label: t("footer.termsOfService"), href: `/${currentLang}/terms` },
25
+ ]}
26
+ appStoreUrl={SITE_CONFIG.appStoreUrl}
27
+ playStoreUrl={SITE_CONFIG.playStoreUrl} />)
28
+
29
+ }
@@ -0,0 +1,30 @@
1
+ import { useTranslation } from "react-i18next";
2
+ import { HeroSection } from "../../../components/HeroSection";
3
+ import { SITE_CONFIG } from "../config";
4
+
5
+ export const SiteHeroSection = () => {
6
+
7
+ const { t } = useTranslation();
8
+
9
+ const AppStats = () => {
10
+ return (<div className="hero__stats" role="list" aria-label={`${SITE_CONFIG.name} App statistics`}>
11
+ <div className="hero__stat" role="listitem">
12
+ <p className="hero__stat-value">200+</p>
13
+ <p className="hero__stat-label">{t("hero.workoutPlans")}</p>
14
+ </div>
15
+ <div className="hero__stat-divider" aria-hidden="true" />
16
+ <div className="hero__stat" role="listitem">
17
+ <p className="hero__stat-value">1600+</p>
18
+ <p className="hero__stat-label">{t("hero.exercises")}</p>
19
+ </div>
20
+ </div>)
21
+ }
22
+
23
+
24
+ return <HeroSection
25
+ appStats={<AppStats />}
26
+ siteName={SITE_CONFIG.name}
27
+ defaultScreenshot="dashboard"
28
+ screenshotKeys={SITE_CONFIG.screenshotKeys}
29
+ />;
30
+ }
@@ -0,0 +1,38 @@
1
+ import { HighlightsSection } from "../../../components/HighlightsSection"
2
+
3
+ export const SiteHighlightsSection = () => {
4
+ const highlights = [
5
+ {
6
+ key: "premium",
7
+ icon: (
8
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
9
+ <circle cx="12" cy="12" r="10" />
10
+ <path d="m16 12-4-4-4 4" />
11
+ <path d="M12 16V8" />
12
+ </svg>
13
+ ),
14
+ colorModifier: "blue",
15
+ },
16
+ {
17
+ key: "multiLanguage",
18
+ icon: (
19
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
20
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10" />
21
+ <path d="m9 12 2 2 4-4" />
22
+ </svg>
23
+ ),
24
+ colorModifier: "green",
25
+ },
26
+ {
27
+ key: "darkMode",
28
+ icon: (
29
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
30
+ <path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" />
31
+ </svg>
32
+ ),
33
+ colorModifier: "purple",
34
+ },
35
+ ];
36
+
37
+ return (<HighlightsSection highlights={highlights} />)
38
+ }
@@ -0,0 +1,9 @@
1
+ import { LanguageSwitcher } from "../../../components/LanguageSwitcher"
2
+ import { SUPPORTED_LANGUAGES, LANGUAGE_NAMES } from "../config"
3
+
4
+ export const SiteLanguageSwitcher = () => {
5
+ return (<LanguageSwitcher
6
+ supportedLanguages={SUPPORTED_LANGUAGES as any}
7
+ LANGUAGE_NAMES={LANGUAGE_NAMES}
8
+ />)
9
+ }
@@ -0,0 +1,24 @@
1
+ import { useParams } from "react-router-dom";
2
+ import { Navigation } from "../../../components/Navigation";
3
+ import { SITE_CONFIG } from "../config";
4
+ import { useTranslation } from "react-i18next";
5
+ import { SiteLanguageSwitcher } from "./SiteLanguageSwitcher";
6
+ import { ThemeToggle } from "../../../components/ThemeToggle";
7
+
8
+ export const SiteNavigation = () => {
9
+ const { t } = useTranslation();
10
+ const { lang } = useParams<{ lang: string }>();
11
+ const currentLang = lang || "en";
12
+
13
+ return <Navigation
14
+ siteName={SITE_CONFIG.name}
15
+ langSwitcher={<SiteLanguageSwitcher />}
16
+ themeToggle={<ThemeToggle />}
17
+ navLinks={[
18
+ { key: "features", label: t("nav.features"), href: `/${currentLang}/#features` },
19
+ { key: "blog", label: "Blog", href: `/${currentLang}/blog` },
20
+ { key: "support", label: t("nav.support"), href: `/${currentLang}/support` },
21
+ { key: "download", label: t("nav.download"), href: `/${currentLang}/#download`, highlight: true },
22
+ ]}
23
+ />;
24
+ }
@@ -0,0 +1,78 @@
1
+ import { fetchAPI } from "../../utils";
2
+
3
+ export const API_BASE_URL = "https://api.{{domain}}";
4
+
5
+ export const SUPPORTED_LANGUAGES = [
6
+ "en", "de", "fr", "it", "ja", "ko", "tr", "zh", "es", "pt",
7
+ "hi", "ar", "ru", "pl", "nl", "id", "vi", "th", "sv",
8
+ ] as const;
9
+
10
+ export type Language = typeof SUPPORTED_LANGUAGES[number];
11
+ export const DEFAULT_LANGUAGE: Language = "en";
12
+ export const APP_ADS_TXT = '';
13
+
14
+ export const LANGUAGE_LOCALES: Record<Language, string> = {
15
+ en: "en_US", de: "de_DE", fr: "fr_FR", it: "it_IT", ja: "ja_JP",
16
+ ko: "ko_KR", tr: "tr_TR", zh: "zh_CN", es: "es_ES", pt: "pt_BR",
17
+ hi: "hi_IN", ar: "ar_SA", ru: "ru_RU", pl: "pl_PL", nl: "nl_NL",
18
+ id: "id_ID", vi: "vi_VN", th: "th_TH", sv: "sv_SE",
19
+ };
20
+
21
+ export const LANGUAGE_NAMES: Record<Language, string> = {
22
+ en: "English", de: "Deutsch", fr: "Français", it: "Italiano",
23
+ ja: "日本語", ko: "한국어", tr: "Türkçe", zh: "中文", es: "Español",
24
+ pt: "Português", hi: "हिन्दी", ar: "العربية", ru: "Русский",
25
+ pl: "Polski", nl: "Nederlands", id: "Indonesia", vi: "Tiếng Việt",
26
+ th: "ไทย", sv: "Svenska",
27
+ };
28
+
29
+ export const SITE_CONFIG = {
30
+ name: "{{siteName}}",
31
+ domain: "{{domain}}",
32
+ googleAnalyticsId: "", // Set to your GA4 Measurement ID (e.g. "G-XXXXXXXXXX") to enable
33
+ tagline: "Start Your Project",
34
+ url: "{{siteUrl}}",
35
+ description: "This is a boilerplate website used to create new websites easily.",
36
+ keywords: "{{domainBase}}, template, starter",
37
+ author: "{{siteName}}",
38
+ themeColor: "#000000",
39
+ twitterHandle: "@{{domainBase}}",
40
+ appStoreUrl: "",
41
+ playStoreUrl: "",
42
+ appScheme: "{{domainBase}}://",
43
+ androidPackage: "com.{{domainBase}}.app",
44
+ iosAppId: "",
45
+ theme: {
46
+ primary: "{{primaryColor}}",
47
+ secondary: "#9333ea", // purple-600
48
+ background: "#0a0a0f", // gray-950
49
+ surface: "#111827", // gray-900
50
+ text: "#ffffff",
51
+ textMuted: "rgba(255, 255, 255, 0.6)",
52
+ },
53
+ features: {
54
+ enableBlog: false,
55
+ enableStore: false,
56
+ blogPostsPerPage: 12,
57
+ },
58
+ emails: {
59
+ support: "support@{{domain}}",
60
+ legal: "legal@{{domain}}",
61
+ privacy: "privacy@{{domain}}",
62
+ },
63
+ screenshotKeys: [
64
+ "dashboard"
65
+ ],
66
+ };
67
+
68
+ export function getLangPrefix(lang: Language): string {
69
+ return lang === DEFAULT_LANGUAGE ? "" : `/${lang}`;
70
+ }
71
+
72
+ export function isValidLanguage(lang: string): lang is Language {
73
+ return SUPPORTED_LANGUAGES.includes(lang as Language);
74
+ }
75
+
76
+ export async function fetchFromAPI(type: string, params: Record<string, string>): Promise<any> {
77
+ return fetchAPI(API_BASE_URL, type, params);
78
+ }
@@ -0,0 +1,18 @@
1
+ [
2
+ {
3
+ "slug": "emma-rodriguez",
4
+ "name": "Emma Rodriguez",
5
+ "avatar": "",
6
+ "bio": {
7
+ "en": "Full-stack developer and open-source contributor with a passion for performance engineering and developer experience. Writes about modern web technologies, server-side rendering, and building at scale."
8
+ },
9
+ "seo": {
10
+ "pageTitle": {
11
+ "en": "Emma Rodriguez - Full-Stack Developer & Performance Engineer"
12
+ },
13
+ "metaDescription": {
14
+ "en": "Learn more about Emma Rodriguez, a full-stack developer passionate about performance engineering, SSR, and modern web technologies."
15
+ }
16
+ }
17
+ }
18
+ ]