@tomako/tools-runtime 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.
- package/README.md +12 -0
- package/package.json +629 -0
- package/src/assets/icons/brands/social/bluesky-icon.tsx +9 -0
- package/src/assets/icons/brands/social/facebook-icon.tsx +9 -0
- package/src/assets/icons/brands/social/index.ts +8 -0
- package/src/assets/icons/brands/social/instagram-icon.tsx +9 -0
- package/src/assets/icons/brands/social/linkedin-icon.tsx +9 -0
- package/src/assets/icons/brands/social/threads-icon.tsx +9 -0
- package/src/assets/icons/brands/social/tiktok-icon.tsx +10 -0
- package/src/assets/icons/brands/social/x-icon.tsx +9 -0
- package/src/assets/icons/brands/social/youtube-icon.tsx +9 -0
- package/src/assets/icons/social-profile/facebook-icon.tsx +12 -0
- package/src/assets/icons/social-profile/index.ts +29 -0
- package/src/assets/icons/social-profile/instagram-icon.tsx +18 -0
- package/src/assets/icons/social-profile/linkedin-icon.tsx +12 -0
- package/src/assets/icons/social-profile/tiktok-icon.tsx +12 -0
- package/src/assets/icons/social-profile/x-icon.tsx +13 -0
- package/src/assets/icons/social-profile/youtube-icon.tsx +12 -0
- package/src/components/tools/engine/form-builder.tsx +219 -0
- package/src/components/tools/engine/package-widget-loader.tsx +38 -0
- package/src/components/tools/engine/package-widget-runtime.tsx +409 -0
- package/src/components/tools/engine/package-widget.tsx +77 -0
- package/src/components/tools/engine/result-view.tsx +596 -0
- package/src/components/tools/engine/use-legacy-llm-task.ts +64 -0
- package/src/components/tools/engine/use-tool-task.ts +195 -0
- package/src/components/tools/market-forecast-report.tsx +1150 -0
- package/src/components/tools/registry.ts +13 -0
- package/src/components/tools/workspace/index.ts +39 -0
- package/src/components/tools/workspace/tool-action-bar.tsx +99 -0
- package/src/components/tools/workspace/tool-empty-panel.tsx +32 -0
- package/src/components/tools/workspace/tool-error-panel.tsx +40 -0
- package/src/components/tools/workspace/tool-field.tsx +124 -0
- package/src/components/tools/workspace/tool-file-upload.tsx +112 -0
- package/src/components/tools/workspace/tool-form-section.tsx +21 -0
- package/src/components/tools/workspace/tool-form-shell.tsx +36 -0
- package/src/components/tools/workspace/tool-loading-panel.tsx +269 -0
- package/src/components/tools/workspace/tool-option-row.tsx +97 -0
- package/src/components/tools/workspace/tool-preview-panel.tsx +31 -0
- package/src/components/tools/workspace/tool-result-actions.tsx +67 -0
- package/src/components/tools/workspace/tool-result-file-actions.ts +31 -0
- package/src/components/tools/workspace/tool-result-header.tsx +39 -0
- package/src/components/tools/workspace/tool-status.tsx +13 -0
- package/src/components/tools/workspace/tool-workspace-layout.tsx +226 -0
- package/src/constants/LKS.ts +29 -0
- package/src/constants/related-tools.ts +18 -0
- package/src/constants/social-profile-kit.ts +284 -0
- package/src/constants/tool-assets.ts +7 -0
- package/src/env.d.ts +3 -0
- package/src/features/tools/_templates/standard-tool.container.tsx +90 -0
- package/src/features/tools/app-icon-resizer/app-icon-resizer.container.tsx +11 -0
- package/src/features/tools/app-icon-resizer/app-icon-resizer.spec.ts +15 -0
- package/src/features/tools/app-icon-resizer/widget/app-icon-resizer.tsx +444 -0
- package/src/features/tools/app-icon-resizer/widget/constants.ts +19 -0
- package/src/features/tools/app-icon-resizer/widget/helpers.ts +314 -0
- package/src/features/tools/app-icon-resizer/widget/index.ts +7 -0
- package/src/features/tools/app-icon-resizer/widget/platform-icons.tsx +59 -0
- package/src/features/tools/app-icon-resizer/widget/preview-dialogs.tsx +139 -0
- package/src/features/tools/app-icon-resizer/widget/result-shell.tsx +165 -0
- package/src/features/tools/app-icon-resizer/widget/types.ts +36 -0
- package/src/features/tools/app-store-screenshot-generator/app-store-screenshot-generator.container.tsx +108 -0
- package/src/features/tools/app-store-screenshot-generator/app-store-screenshot-generator.spec.ts +14 -0
- package/src/features/tools/app-store-screenshot-generator/config.ts +3 -0
- package/src/features/tools/app-store-screenshot-generator/widget/app-store-screenshot-generator.tsx +1250 -0
- package/src/features/tools/app-store-screenshot-generator/widget/asset-slots.ts +76 -0
- package/src/features/tools/app-store-screenshot-generator/widget/constants.ts +43 -0
- package/src/features/tools/app-store-screenshot-generator/widget/form-controls.tsx +214 -0
- package/src/features/tools/app-store-screenshot-generator/widget/generation.ts +528 -0
- package/src/features/tools/app-store-screenshot-generator/widget/index.ts +7 -0
- package/src/features/tools/app-store-screenshot-generator/widget/input-media.ts +175 -0
- package/src/features/tools/app-store-screenshot-generator/widget/types.ts +60 -0
- package/src/features/tools/app-store-screenshot-generator/widget/zip.ts +119 -0
- package/src/features/tools/build-in-public-story-generator/build-in-public-story-generator.container.tsx +135 -0
- package/src/features/tools/build-in-public-story-generator/build-in-public-story-generator.spec.ts +15 -0
- package/src/features/tools/build-in-public-story-generator/widget/build-in-public-story-generator.tsx +314 -0
- package/src/features/tools/build-in-public-story-generator/widget/constants.ts +3 -0
- package/src/features/tools/build-in-public-story-generator/widget/helpers.ts +25 -0
- package/src/features/tools/build-in-public-story-generator/widget/index.ts +7 -0
- package/src/features/tools/build-in-public-story-generator/widget/preview-panels.tsx +58 -0
- package/src/features/tools/build-in-public-story-generator/widget/result-shell.tsx +164 -0
- package/src/features/tools/build-in-public-story-generator/widget/types.ts +6 -0
- package/src/features/tools/cold-start-channel-selector/cold-start-channel-selector.container.tsx +30 -0
- package/src/features/tools/cold-start-channel-selector/cold-start-channel-selector.spec.ts +15 -0
- package/src/features/tools/cold-start-channel-selector/widget/cold-start-channel-selector.tsx +417 -0
- package/src/features/tools/cold-start-channel-selector/widget/constants.ts +46 -0
- package/src/features/tools/cold-start-channel-selector/widget/form-controls.tsx +41 -0
- package/src/features/tools/cold-start-channel-selector/widget/helpers.ts +75 -0
- package/src/features/tools/cold-start-channel-selector/widget/index.ts +7 -0
- package/src/features/tools/cold-start-channel-selector/widget/preview-panels.tsx +250 -0
- package/src/features/tools/cold-start-channel-selector/widget/result-shell.tsx +199 -0
- package/src/features/tools/cold-start-channel-selector/widget/types.ts +21 -0
- package/src/features/tools/commercial-bp-generator/commercial-bp-generator.container.tsx +102 -0
- package/src/features/tools/commercial-bp-generator/commercial-bp-generator.spec.ts +14 -0
- package/src/features/tools/commercial-bp-generator/widget/commercial-bp-generator.tsx +676 -0
- package/src/features/tools/commercial-bp-generator/widget/constants.ts +32 -0
- package/src/features/tools/commercial-bp-generator/widget/helpers.ts +147 -0
- package/src/features/tools/commercial-bp-generator/widget/index.ts +7 -0
- package/src/features/tools/commercial-bp-generator/widget/result-shell.tsx +271 -0
- package/src/features/tools/commercial-bp-generator/widget/style-option.tsx +54 -0
- package/src/features/tools/commercial-bp-generator/widget/types.ts +33 -0
- package/src/features/tools/community-feedback-inbox/community-feedback-inbox.container.tsx +126 -0
- package/src/features/tools/community-feedback-inbox/community-feedback-inbox.spec.ts +15 -0
- package/src/features/tools/community-feedback-inbox/widget/community-feedback-inbox.tsx +271 -0
- package/src/features/tools/community-feedback-inbox/widget/constants.ts +3 -0
- package/src/features/tools/community-feedback-inbox/widget/helpers.ts +28 -0
- package/src/features/tools/community-feedback-inbox/widget/index.ts +7 -0
- package/src/features/tools/community-feedback-inbox/widget/preview-panels.tsx +92 -0
- package/src/features/tools/community-feedback-inbox/widget/result-shell.tsx +266 -0
- package/src/features/tools/community-feedback-inbox/widget/types.ts +6 -0
- package/src/features/tools/community-pain-point-extractor/community-pain-point-extractor.container.tsx +124 -0
- package/src/features/tools/community-pain-point-extractor/community-pain-point-extractor.spec.ts +15 -0
- package/src/features/tools/community-pain-point-extractor/widget/community-pain-point-extractor.tsx +404 -0
- package/src/features/tools/community-pain-point-extractor/widget/constants.ts +41 -0
- package/src/features/tools/community-pain-point-extractor/widget/helpers.ts +76 -0
- package/src/features/tools/community-pain-point-extractor/widget/index.ts +8 -0
- package/src/features/tools/community-pain-point-extractor/widget/progress-panels.tsx +251 -0
- package/src/features/tools/community-pain-point-extractor/widget/result-shell.tsx +478 -0
- package/src/features/tools/community-pain-point-extractor/widget/types.ts +33 -0
- package/src/features/tools/community-post-risk-checker/community-post-risk-checker.package.ts +792 -0
- package/src/features/tools/competitor-analysis/competitor-analysis.container.tsx +136 -0
- package/src/features/tools/competitor-analysis/competitor-analysis.spec.ts +15 -0
- package/src/features/tools/competitor-analysis/widget/competitor-analysis.tsx +241 -0
- package/src/features/tools/competitor-analysis/widget/constants.ts +9 -0
- package/src/features/tools/competitor-analysis/widget/index.ts +7 -0
- package/src/features/tools/competitor-analysis/widget/preview-panels.tsx +60 -0
- package/src/features/tools/competitor-analysis/widget/result-shell.tsx +418 -0
- package/src/features/tools/competitor-analysis/widget/types.ts +13 -0
- package/src/features/tools/disclaimer-generator/disclaimer-generator.package.ts +339 -0
- package/src/features/tools/email-template-generator/email-template-generator.container.tsx +224 -0
- package/src/features/tools/email-template-generator/email-template-generator.spec.ts +14 -0
- package/src/features/tools/email-template-generator/widget/email-template-generator.tsx +358 -0
- package/src/features/tools/email-template-generator/widget/helpers.ts +39 -0
- package/src/features/tools/email-template-generator/widget/index.ts +7 -0
- package/src/features/tools/email-template-generator/widget/preview-panel.tsx +311 -0
- package/src/features/tools/email-template-generator/widget/result-text-block.tsx +7 -0
- package/src/features/tools/email-template-generator/widget/types.ts +24 -0
- package/src/features/tools/gtm-readiness-checklist/gtm-readiness-checklist.container.tsx +75 -0
- package/src/features/tools/gtm-readiness-checklist/gtm-readiness-checklist.spec.ts +15 -0
- package/src/features/tools/gtm-readiness-checklist/widget/gtm-readiness-checklist.tsx +122 -0
- package/src/features/tools/gtm-readiness-checklist/widget/index.ts +7 -0
- package/src/features/tools/investor-matching-planner/investor-matching-planner.package.ts +869 -0
- package/src/features/tools/koko-codex-assistant/koko-codex-assistant.container.tsx +151 -0
- package/src/features/tools/koko-codex-assistant/koko-codex-assistant.spec.ts +14 -0
- package/src/features/tools/koko-codex-assistant/widget/index.ts +7 -0
- package/src/features/tools/koko-codex-assistant/widget/koko-codex-assistant-download.tsx +192 -0
- package/src/features/tools/logo-generator/logo-generator.container.tsx +112 -0
- package/src/features/tools/logo-generator/logo-generator.spec.ts +15 -0
- package/src/features/tools/logo-generator/widget/index.ts +7 -0
- package/src/features/tools/logo-generator/widget/logo-generator.tsx +1244 -0
- package/src/features/tools/market-forecast-report/market-forecast-report.container.tsx +73 -0
- package/src/features/tools/market-forecast-report/market-forecast-report.spec.ts +15 -0
- package/src/features/tools/million-user-growth-test/million-user-growth-test.container.tsx +123 -0
- package/src/features/tools/million-user-growth-test/million-user-growth-test.spec.ts +14 -0
- package/src/features/tools/million-user-growth-test/widget/index.ts +7 -0
- package/src/features/tools/million-user-growth-test/widget/million-user-growth-test.tsx +433 -0
- package/src/features/tools/module-loader.ts +107 -0
- package/src/features/tools/og-image-generator/og-image-generator.container.tsx +86 -0
- package/src/features/tools/og-image-generator/og-image-generator.spec.ts +14 -0
- package/src/features/tools/og-image-generator/widget/constants.ts +38 -0
- package/src/features/tools/og-image-generator/widget/form-fields.tsx +240 -0
- package/src/features/tools/og-image-generator/widget/index.ts +7 -0
- package/src/features/tools/og-image-generator/widget/og-image-generator.tsx +742 -0
- package/src/features/tools/og-image-generator/widget/preview-panel.tsx +305 -0
- package/src/features/tools/og-image-generator/widget/types.ts +1 -0
- package/src/features/tools/package/direct-models.ts +20 -0
- package/src/features/tools/package/form.ts +38 -0
- package/src/features/tools/package/l10n.ts +22 -0
- package/src/features/tools/package/package-container.tsx +285 -0
- package/src/features/tools/package/package-loaders.ts +22 -0
- package/src/features/tools/package/package-registry.ts +36 -0
- package/src/features/tools/package/result-markdown.ts +142 -0
- package/src/features/tools/package/schema.ts +379 -0
- package/src/features/tools/package/to-tool-module.ts +20 -0
- package/src/features/tools/package/to-tool-spec.ts +52 -0
- package/src/features/tools/package/types.ts +381 -0
- package/src/features/tools/pitch-deck-generator/pitch-deck-generator.container.tsx +175 -0
- package/src/features/tools/pitch-deck-generator/pitch-deck-generator.spec.ts +14 -0
- package/src/features/tools/pitch-deck-generator/pitch-deck-library-data.ts +476 -0
- package/src/features/tools/pitch-deck-generator/pitch-deck-library.tsx +159 -0
- package/src/features/tools/pitch-deck-generator/widget/ceremony-line.tsx +27 -0
- package/src/features/tools/pitch-deck-generator/widget/constants.ts +27 -0
- package/src/features/tools/pitch-deck-generator/widget/index.ts +7 -0
- package/src/features/tools/pitch-deck-generator/widget/pitch-deck-generator.tsx +763 -0
- package/src/features/tools/pitch-deck-generator/widget/result-helpers.ts +102 -0
- package/src/features/tools/pitch-deck-generator/widget/result-shell.tsx +263 -0
- package/src/features/tools/pitch-deck-generator/widget/slide-frame.tsx +106 -0
- package/src/features/tools/pitch-deck-generator/widget/slide-lightbox.tsx +149 -0
- package/src/features/tools/pitch-deck-generator/widget/style-option.tsx +54 -0
- package/src/features/tools/pitch-deck-generator/widget/types.ts +44 -0
- package/src/features/tools/product-agreement-generator/product-agreement-generator.container.tsx +137 -0
- package/src/features/tools/product-agreement-generator/product-agreement-generator.spec.ts +14 -0
- package/src/features/tools/product-agreement-generator/widget/constants.ts +27 -0
- package/src/features/tools/product-agreement-generator/widget/form-controls.tsx +218 -0
- package/src/features/tools/product-agreement-generator/widget/helpers.ts +68 -0
- package/src/features/tools/product-agreement-generator/widget/index.ts +7 -0
- package/src/features/tools/product-agreement-generator/widget/product-agreement-generator.tsx +671 -0
- package/src/features/tools/product-agreement-generator/widget/result-shell.tsx +473 -0
- package/src/features/tools/product-agreement-generator/widget/types.ts +89 -0
- package/src/features/tools/product-hunt-launch-planner/product-hunt-launch-planner.container.tsx +122 -0
- package/src/features/tools/product-hunt-launch-planner/product-hunt-launch-planner.spec.ts +15 -0
- package/src/features/tools/product-hunt-launch-planner/widget/constants.ts +5 -0
- package/src/features/tools/product-hunt-launch-planner/widget/helpers.ts +44 -0
- package/src/features/tools/product-hunt-launch-planner/widget/index.ts +7 -0
- package/src/features/tools/product-hunt-launch-planner/widget/preview-panel.tsx +143 -0
- package/src/features/tools/product-hunt-launch-planner/widget/product-hunt-launch-planner.tsx +504 -0
- package/src/features/tools/product-hunt-launch-planner/widget/result-shell.tsx +176 -0
- package/src/features/tools/product-hunt-launch-planner/widget/types.ts +20 -0
- package/src/features/tools/product-name-generator/product-name-generator.container.tsx +14 -0
- package/src/features/tools/product-name-generator/product-name-generator.spec.ts +15 -0
- package/src/features/tools/product-name-generator/widget/candidate-card.tsx +273 -0
- package/src/features/tools/product-name-generator/widget/constants.ts +21 -0
- package/src/features/tools/product-name-generator/widget/form-controls.tsx +136 -0
- package/src/features/tools/product-name-generator/widget/helpers.ts +41 -0
- package/src/features/tools/product-name-generator/widget/index.ts +7 -0
- package/src/features/tools/product-name-generator/widget/product-name-generator.tsx +776 -0
- package/src/features/tools/product-name-generator/widget/types.ts +36 -0
- package/src/features/tools/product-positioning-analyzer/product-positioning-analyzer.package.ts +801 -0
- package/src/features/tools/product-poster-generator/product-poster-generator.container.tsx +14 -0
- package/src/features/tools/product-poster-generator/product-poster-generator.spec.ts +15 -0
- package/src/features/tools/product-poster-generator/widget/constants.ts +125 -0
- package/src/features/tools/product-poster-generator/widget/form-controls.tsx +204 -0
- package/src/features/tools/product-poster-generator/widget/helpers.ts +155 -0
- package/src/features/tools/product-poster-generator/widget/index.ts +7 -0
- package/src/features/tools/product-poster-generator/widget/product-poster-generator.tsx +663 -0
- package/src/features/tools/product-poster-generator/widget/result-shell.tsx +12 -0
- package/src/features/tools/product-poster-generator/widget/types.ts +83 -0
- package/src/features/tools/product-ui-generator/product-ui-generator.container.tsx +116 -0
- package/src/features/tools/product-ui-generator/product-ui-generator.spec.ts +14 -0
- package/src/features/tools/product-ui-generator/widget/constants.ts +18 -0
- package/src/features/tools/product-ui-generator/widget/helpers.ts +11 -0
- package/src/features/tools/product-ui-generator/widget/index.ts +7 -0
- package/src/features/tools/product-ui-generator/widget/preview-panels.tsx +73 -0
- package/src/features/tools/product-ui-generator/widget/product-ui-generator.tsx +304 -0
- package/src/features/tools/product-ui-generator/widget/result-shell.tsx +118 -0
- package/src/features/tools/product-ui-generator/widget/types.ts +9 -0
- package/src/features/tools/reddit-pain-point-finder/reddit-pain-point-finder.container.tsx +113 -0
- package/src/features/tools/reddit-pain-point-finder/reddit-pain-point-finder.spec.ts +15 -0
- package/src/features/tools/reddit-pain-point-finder/widget/constants.ts +5 -0
- package/src/features/tools/reddit-pain-point-finder/widget/index.ts +7 -0
- package/src/features/tools/reddit-pain-point-finder/widget/preview-panels.tsx +73 -0
- package/src/features/tools/reddit-pain-point-finder/widget/reddit-pain-point-finder.tsx +281 -0
- package/src/features/tools/reddit-pain-point-finder/widget/result-shell.tsx +203 -0
- package/src/features/tools/reddit-pain-point-finder/widget/types.ts +15 -0
- package/src/features/tools/registry.ts +288 -0
- package/src/features/tools/runtime-registry.ts +186 -0
- package/src/features/tools/shared/create-guide-stack-container.tsx +176 -0
- package/src/features/tools/shared/create-standard-landing-container.tsx +163 -0
- package/src/features/tools/shared/tool-content-sections.tsx +659 -0
- package/src/features/tools/shared/tool-cta.tsx +66 -0
- package/src/features/tools/shared/tool-draft-view.tsx +53 -0
- package/src/features/tools/shared/tool-guide-section.tsx +191 -0
- package/src/features/tools/shared/tool-handoff.tsx +38 -0
- package/src/features/tools/shared/tool-mcp-badge.tsx +23 -0
- package/src/features/tools/shared/tool-message-translator.ts +37 -0
- package/src/features/tools/shared/tool-page-shell.tsx +348 -0
- package/src/features/tools/shared/tool-standard-generation-steps.tsx +52 -0
- package/src/features/tools/shared/tool-standard-landing-sections.tsx +447 -0
- package/src/features/tools/shared/tool-ui-registry.ts +237 -0
- package/src/features/tools/shared/tool-widget-slot.tsx +29 -0
- package/src/features/tools/slogan-generator/slogan-generator.package.ts +641 -0
- package/src/features/tools/social-listening-research-report/social-listening-research-report.container.tsx +124 -0
- package/src/features/tools/social-listening-research-report/social-listening-research-report.spec.ts +15 -0
- package/src/features/tools/social-listening-research-report/widget/constants.ts +4 -0
- package/src/features/tools/social-listening-research-report/widget/index.ts +7 -0
- package/src/features/tools/social-listening-research-report/widget/preview-panels.tsx +73 -0
- package/src/features/tools/social-listening-research-report/widget/result-shell.tsx +216 -0
- package/src/features/tools/social-listening-research-report/widget/social-listening-research-report.tsx +303 -0
- package/src/features/tools/social-listening-research-report/widget/types.ts +15 -0
- package/src/features/tools/social-platform-asset-adapter/social-platform-asset-adapter.container.tsx +123 -0
- package/src/features/tools/social-platform-asset-adapter/social-platform-asset-adapter.spec.ts +15 -0
- package/src/features/tools/social-platform-asset-adapter/widget/constants.ts +43 -0
- package/src/features/tools/social-platform-asset-adapter/widget/helpers.ts +249 -0
- package/src/features/tools/social-platform-asset-adapter/widget/index.ts +7 -0
- package/src/features/tools/social-platform-asset-adapter/widget/result-shell.tsx +350 -0
- package/src/features/tools/social-platform-asset-adapter/widget/section-heading.tsx +18 -0
- package/src/features/tools/social-platform-asset-adapter/widget/social-platform-asset-adapter.tsx +641 -0
- package/src/features/tools/social-platform-asset-adapter/widget/types.ts +40 -0
- package/src/features/tools/social-profile-kit/social-profile-kit.container.tsx +177 -0
- package/src/features/tools/social-profile-kit/social-profile-kit.spec.ts +15 -0
- package/src/features/tools/social-profile-kit/widget/context-editor.tsx +171 -0
- package/src/features/tools/social-profile-kit/widget/generation-runtime.ts +281 -0
- package/src/features/tools/social-profile-kit/widget/index.ts +7 -0
- package/src/features/tools/social-profile-kit/widget/input-panel.tsx +294 -0
- package/src/features/tools/social-profile-kit/widget/platform-dock.tsx +115 -0
- package/src/features/tools/social-profile-kit/widget/profile-canvas.tsx +318 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/bluesky-preview.tsx +188 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/facebook-preview.tsx +168 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/index.ts +1 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/instagram-preview.tsx +278 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/linkedin-preview.tsx +358 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/profile-preview.tsx +348 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/shared.tsx +391 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/threads-preview.tsx +148 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/tiktok-preview.tsx +319 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/x-preview.tsx +341 -0
- package/src/features/tools/social-profile-kit/widget/profile-preview/youtube-preview.tsx +297 -0
- package/src/features/tools/social-profile-kit/widget/social-profile-kit-generator.tsx +1059 -0
- package/src/features/tools/social-profile-kit/widget/types.ts +104 -0
- package/src/features/tools/spec-registry.ts +158 -0
- package/src/features/tools/startup-idea-research/startup-idea-research.container.tsx +111 -0
- package/src/features/tools/startup-idea-research/startup-idea-research.spec.ts +15 -0
- package/src/features/tools/startup-idea-research/widget/constants.ts +11 -0
- package/src/features/tools/startup-idea-research/widget/index.ts +7 -0
- package/src/features/tools/startup-idea-research/widget/preview-panels.tsx +67 -0
- package/src/features/tools/startup-idea-research/widget/result-shell.tsx +323 -0
- package/src/features/tools/startup-idea-research/widget/startup-idea-research.tsx +272 -0
- package/src/features/tools/startup-idea-research/widget/types.ts +21 -0
- package/src/features/tools/tarot-reading/tarot-reading.container.tsx +412 -0
- package/src/features/tools/tarot-reading/tarot-reading.spec.ts +15 -0
- package/src/features/tools/tarot-reading/widget/cards.tsx +152 -0
- package/src/features/tools/tarot-reading/widget/constants.ts +69 -0
- package/src/features/tools/tarot-reading/widget/deck-view.tsx +86 -0
- package/src/features/tools/tarot-reading/widget/deck.ts +86 -0
- package/src/features/tools/tarot-reading/widget/index.ts +7 -0
- package/src/features/tools/tarot-reading/widget/landing-view.tsx +209 -0
- package/src/features/tools/tarot-reading/widget/reading-copy.tsx +138 -0
- package/src/features/tools/tarot-reading/widget/reading-view.tsx +189 -0
- package/src/features/tools/tarot-reading/widget/reveal-view.tsx +50 -0
- package/src/features/tools/tarot-reading/widget/ritual-view.tsx +276 -0
- package/src/features/tools/tarot-reading/widget/tarot-reading.tsx +262 -0
- package/src/features/tools/tarot-reading/widget/types.ts +22 -0
- package/src/features/tools/twitter-gif-downloader/twitter-gif-downloader.container.tsx +114 -0
- package/src/features/tools/twitter-gif-downloader/twitter-gif-downloader.spec.ts +14 -0
- package/src/features/tools/twitter-gif-downloader/widget/index.ts +7 -0
- package/src/features/tools/twitter-gif-downloader/widget/twitter-gif-downloader.tsx +351 -0
- package/src/features/tools/types.ts +68 -0
- package/src/features/tools/user-interview-guide-generator/user-interview-guide-generator.package.ts +774 -0
- package/src/features/tools/user-interview-insight-report-generator/user-interview-insight-report-generator.container.tsx +23 -0
- package/src/features/tools/user-interview-insight-report-generator/user-interview-insight-report-generator.spec.ts +14 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/constants.ts +8 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/helpers.ts +4 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/index.ts +7 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/preview-panels.tsx +55 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/result-shell.tsx +122 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/types.ts +16 -0
- package/src/features/tools/user-interview-insight-report-generator/widget/user-interview-insight-report-generator.tsx +293 -0
- package/src/features/tools/user-interview-record-generator/user-interview-record-generator.container.tsx +18 -0
- package/src/features/tools/user-interview-record-generator/user-interview-record-generator.spec.ts +14 -0
- package/src/features/tools/user-interview-record-generator/widget/constants.ts +9 -0
- package/src/features/tools/user-interview-record-generator/widget/helpers.ts +4 -0
- package/src/features/tools/user-interview-record-generator/widget/index.ts +7 -0
- package/src/features/tools/user-interview-record-generator/widget/preview-panels.tsx +48 -0
- package/src/features/tools/user-interview-record-generator/widget/result-shell.tsx +128 -0
- package/src/features/tools/user-interview-record-generator/widget/types.ts +16 -0
- package/src/features/tools/user-interview-record-generator/widget/user-interview-record-generator.tsx +305 -0
- package/src/features/tools/utm-builder/utm-builder.package.ts +846 -0
- package/src/features/tools/widget-registry.ts +73 -0
- package/src/generated/mcp-tools-registry.json +17 -0
- package/src/host/client-proxy.test.ts +33 -0
- package/src/host/client.ts +678 -0
- package/src/host/server.ts +119 -0
- package/src/i18n/client.ts +11 -0
- package/src/i18n/locale-fallback.ts +38 -0
- package/src/i18n/locale.ts +18 -0
- package/src/i18n/messages/en/page/tools.ts +124 -0
- package/src/i18n/messages/en/tools/app-icon-resizer.ts +244 -0
- package/src/i18n/messages/en/tools/app-store-screenshot-generator.ts +145 -0
- package/src/i18n/messages/en/tools/build-in-public-story-generator.ts +229 -0
- package/src/i18n/messages/en/tools/cold-start-channel-selector.ts +423 -0
- package/src/i18n/messages/en/tools/commercial-bp-generator.ts +304 -0
- package/src/i18n/messages/en/tools/community-feedback-inbox.ts +218 -0
- package/src/i18n/messages/en/tools/community-pain-point-extractor.ts +230 -0
- package/src/i18n/messages/en/tools/community-post-risk-checker.ts +209 -0
- package/src/i18n/messages/en/tools/competitor-analysis.ts +197 -0
- package/src/i18n/messages/en/tools/email-template-generator.ts +302 -0
- package/src/i18n/messages/en/tools/engine.ts +69 -0
- package/src/i18n/messages/en/tools/gtm-readiness-checklist.ts +166 -0
- package/src/i18n/messages/en/tools/index.ts +73 -0
- package/src/i18n/messages/en/tools/koko-codex-assistant.ts +171 -0
- package/src/i18n/messages/en/tools/logo-generator.ts +173 -0
- package/src/i18n/messages/en/tools/market-forecast-report.ts +228 -0
- package/src/i18n/messages/en/tools/million-user-growth-test.ts +386 -0
- package/src/i18n/messages/en/tools/og-image-generator.ts +172 -0
- package/src/i18n/messages/en/tools/pitch-deck-generator.ts +358 -0
- package/src/i18n/messages/en/tools/product-agreement-generator.ts +411 -0
- package/src/i18n/messages/en/tools/product-hunt-launch-planner.ts +272 -0
- package/src/i18n/messages/en/tools/product-name-generator.ts +383 -0
- package/src/i18n/messages/en/tools/product-poster-generator.ts +294 -0
- package/src/i18n/messages/en/tools/product-ui-generator.ts +234 -0
- package/src/i18n/messages/en/tools/reddit-pain-point-finder.ts +163 -0
- package/src/i18n/messages/en/tools/shared.ts +24 -0
- package/src/i18n/messages/en/tools/social-listening-research-report.ts +185 -0
- package/src/i18n/messages/en/tools/social-media-profile-generator.ts +22 -0
- package/src/i18n/messages/en/tools/social-platform-asset-adapter.ts +287 -0
- package/src/i18n/messages/en/tools/social-profile-kit.ts +150 -0
- package/src/i18n/messages/en/tools/startup-idea-research.ts +170 -0
- package/src/i18n/messages/en/tools/tarot-reading.ts +230 -0
- package/src/i18n/messages/en/tools/twitter-gif-downloader.ts +145 -0
- package/src/i18n/messages/en/tools/user-interview-insight-report-generator.ts +242 -0
- package/src/i18n/messages/en/tools/user-interview-record-generator.ts +244 -0
- package/src/i18n/messages/en/tools-ui.ts +704 -0
- package/src/i18n/messages/zh/page/tools.ts +124 -0
- package/src/i18n/messages/zh/tools/app-icon-resizer.ts +242 -0
- package/src/i18n/messages/zh/tools/app-store-screenshot-generator.ts +145 -0
- package/src/i18n/messages/zh/tools/build-in-public-story-generator.ts +230 -0
- package/src/i18n/messages/zh/tools/cold-start-channel-selector.ts +422 -0
- package/src/i18n/messages/zh/tools/commercial-bp-generator.ts +302 -0
- package/src/i18n/messages/zh/tools/community-feedback-inbox.ts +217 -0
- package/src/i18n/messages/zh/tools/community-pain-point-extractor.ts +230 -0
- package/src/i18n/messages/zh/tools/community-post-risk-checker.ts +200 -0
- package/src/i18n/messages/zh/tools/competitor-analysis.ts +192 -0
- package/src/i18n/messages/zh/tools/email-template-generator.ts +302 -0
- package/src/i18n/messages/zh/tools/engine.ts +68 -0
- package/src/i18n/messages/zh/tools/gtm-readiness-checklist.ts +166 -0
- package/src/i18n/messages/zh/tools/index.ts +73 -0
- package/src/i18n/messages/zh/tools/koko-codex-assistant.ts +170 -0
- package/src/i18n/messages/zh/tools/logo-generator.ts +172 -0
- package/src/i18n/messages/zh/tools/market-forecast-report.ts +228 -0
- package/src/i18n/messages/zh/tools/million-user-growth-test.ts +385 -0
- package/src/i18n/messages/zh/tools/og-image-generator.ts +173 -0
- package/src/i18n/messages/zh/tools/pitch-deck-generator.ts +358 -0
- package/src/i18n/messages/zh/tools/product-agreement-generator.ts +401 -0
- package/src/i18n/messages/zh/tools/product-hunt-launch-planner.ts +267 -0
- package/src/i18n/messages/zh/tools/product-name-generator.ts +383 -0
- package/src/i18n/messages/zh/tools/product-poster-generator.ts +282 -0
- package/src/i18n/messages/zh/tools/product-ui-generator.ts +234 -0
- package/src/i18n/messages/zh/tools/reddit-pain-point-finder.ts +162 -0
- package/src/i18n/messages/zh/tools/shared.ts +24 -0
- package/src/i18n/messages/zh/tools/social-listening-research-report.ts +181 -0
- package/src/i18n/messages/zh/tools/social-media-profile-generator.ts +22 -0
- package/src/i18n/messages/zh/tools/social-platform-asset-adapter.ts +284 -0
- package/src/i18n/messages/zh/tools/social-profile-kit.ts +150 -0
- package/src/i18n/messages/zh/tools/startup-idea-research.ts +165 -0
- package/src/i18n/messages/zh/tools/tarot-reading.ts +228 -0
- package/src/i18n/messages/zh/tools/twitter-gif-downloader.ts +138 -0
- package/src/i18n/messages/zh/tools/user-interview-insight-report-generator.ts +224 -0
- package/src/i18n/messages/zh/tools/user-interview-record-generator.ts +226 -0
- package/src/i18n/messages/zh/tools-ui.ts +684 -0
- package/src/i18n/messages/zh-tw/page/tools.ts +115 -0
- package/src/i18n/messages/zh-tw/tools/app-icon-resizer.ts +242 -0
- package/src/i18n/messages/zh-tw/tools/app-store-screenshot-generator.ts +145 -0
- package/src/i18n/messages/zh-tw/tools/build-in-public-story-generator.ts +230 -0
- package/src/i18n/messages/zh-tw/tools/cold-start-channel-selector.ts +440 -0
- package/src/i18n/messages/zh-tw/tools/commercial-bp-generator.ts +302 -0
- package/src/i18n/messages/zh-tw/tools/community-feedback-inbox.ts +217 -0
- package/src/i18n/messages/zh-tw/tools/community-pain-point-extractor.ts +230 -0
- package/src/i18n/messages/zh-tw/tools/community-post-risk-checker.ts +200 -0
- package/src/i18n/messages/zh-tw/tools/competitor-analysis.ts +192 -0
- package/src/i18n/messages/zh-tw/tools/email-template-generator.ts +302 -0
- package/src/i18n/messages/zh-tw/tools/engine.ts +68 -0
- package/src/i18n/messages/zh-tw/tools/gtm-readiness-checklist.ts +166 -0
- package/src/i18n/messages/zh-tw/tools/index.ts +73 -0
- package/src/i18n/messages/zh-tw/tools/koko-codex-assistant.ts +170 -0
- package/src/i18n/messages/zh-tw/tools/logo-generator.ts +71 -0
- package/src/i18n/messages/zh-tw/tools/market-forecast-report.ts +228 -0
- package/src/i18n/messages/zh-tw/tools/million-user-growth-test.ts +385 -0
- package/src/i18n/messages/zh-tw/tools/og-image-generator.ts +173 -0
- package/src/i18n/messages/zh-tw/tools/pitch-deck-generator.ts +358 -0
- package/src/i18n/messages/zh-tw/tools/product-agreement-generator.ts +401 -0
- package/src/i18n/messages/zh-tw/tools/product-hunt-launch-planner.ts +267 -0
- package/src/i18n/messages/zh-tw/tools/product-name-generator.ts +383 -0
- package/src/i18n/messages/zh-tw/tools/product-poster-generator.ts +282 -0
- package/src/i18n/messages/zh-tw/tools/product-ui-generator.ts +234 -0
- package/src/i18n/messages/zh-tw/tools/reddit-pain-point-finder.ts +162 -0
- package/src/i18n/messages/zh-tw/tools/shared.ts +24 -0
- package/src/i18n/messages/zh-tw/tools/social-listening-research-report.ts +181 -0
- package/src/i18n/messages/zh-tw/tools/social-media-profile-generator.ts +22 -0
- package/src/i18n/messages/zh-tw/tools/social-platform-asset-adapter.ts +284 -0
- package/src/i18n/messages/zh-tw/tools/social-profile-kit.ts +150 -0
- package/src/i18n/messages/zh-tw/tools/startup-idea-research.ts +165 -0
- package/src/i18n/messages/zh-tw/tools/tarot-reading.ts +228 -0
- package/src/i18n/messages/zh-tw/tools/twitter-gif-downloader.ts +138 -0
- package/src/i18n/messages/zh-tw/tools/user-interview-insight-report-generator.ts +224 -0
- package/src/i18n/messages/zh-tw/tools/user-interview-record-generator.ts +226 -0
- package/src/i18n/messages/zh-tw/tools-ui.ts +525 -0
- package/src/index.ts +15 -0
- package/src/lib/activity-task-handoff.ts +404 -0
- package/src/lib/api/errors.ts +39 -0
- package/src/lib/app-origin.ts +30 -0
- package/src/lib/fact-claim-contract.ts +68 -0
- package/src/lib/fake-delay.ts +3 -0
- package/src/lib/file/download.ts +10 -0
- package/src/lib/routing/locale-paths.ts +27 -0
- package/src/lib/seo-meta.ts +3 -0
- package/src/lib/tools/app-icon-resizer-schema.ts +191 -0
- package/src/lib/tools/app-store-screenshot-generator-schema.ts +185 -0
- package/src/lib/tools/build-in-public-story-generator-schema.ts +67 -0
- package/src/lib/tools/build-in-public-story-generator.format.ts +507 -0
- package/src/lib/tools/cold-start-channel-selector-schema.ts +147 -0
- package/src/lib/tools/commercial-bp-generator-schema.ts +222 -0
- package/src/lib/tools/community-feedback-inbox-schema.ts +125 -0
- package/src/lib/tools/community-feedback-inbox.format.ts +764 -0
- package/src/lib/tools/community-pain-point-extractor-schema.ts +166 -0
- package/src/lib/tools/community-post-risk-checker-schema.ts +99 -0
- package/src/lib/tools/community-post-risk-checker.format.ts +557 -0
- package/src/lib/tools/competitor-analysis-schema.ts +144 -0
- package/src/lib/tools/draft-preview-access.ts +3 -0
- package/src/lib/tools/draft-store.ts +69 -0
- package/src/lib/tools/email-template-generator-schema.ts +124 -0
- package/src/lib/tools/gtm-checklist-copy.ts +57 -0
- package/src/lib/tools/gtm-checklist-structure.ts +37 -0
- package/src/lib/tools/image-download.ts +68 -0
- package/src/lib/tools/input-quality.ts +97 -0
- package/src/lib/tools/logo-generator-schema.ts +224 -0
- package/src/lib/tools/market-forecast-report-schema.ts +299 -0
- package/src/lib/tools/mcp-registry.ts +16 -0
- package/src/lib/tools/mcp-types.ts +18 -0
- package/src/lib/tools/million-user-growth-test-schema.ts +49 -0
- package/src/lib/tools/million-user-growth-test.ts +181 -0
- package/src/lib/tools/og-image-generator-render.ts +448 -0
- package/src/lib/tools/og-image-generator-schema.ts +140 -0
- package/src/lib/tools/ops-catalog.ts +102 -0
- package/src/lib/tools/pitch-deck-generator-schema.ts +182 -0
- package/src/lib/tools/pitch-deck-package.ts +0 -0
- package/src/lib/tools/product-agreement-generator-schema.ts +168 -0
- package/src/lib/tools/product-hunt-launch-planner-schema.ts +136 -0
- package/src/lib/tools/product-hunt-launch-planner.format.ts +72 -0
- package/src/lib/tools/product-name-generator-schema.ts +563 -0
- package/src/lib/tools/product-poster-generator-schema.ts +215 -0
- package/src/lib/tools/product-ui-generator-schema.ts +157 -0
- package/src/lib/tools/reddit-pain-point-finder-schema.ts +88 -0
- package/src/lib/tools/resolve-tool-locale-copy.ts +75 -0
- package/src/lib/tools/slug.ts +60 -0
- package/src/lib/tools/social-listening-research-report-schema.ts +105 -0
- package/src/lib/tools/social-platform-asset-adapter-schema.ts +152 -0
- package/src/lib/tools/social-profile-kit.constants.ts +12 -0
- package/src/lib/tools/social-profile-kit.generation.ts +257 -0
- package/src/lib/tools/social-profile-kit.input.ts +290 -0
- package/src/lib/tools/social-profile-kit.manual.ts +481 -0
- package/src/lib/tools/social-profile-kit.package.ts +220 -0
- package/src/lib/tools/social-profile-kit.schema.ts +328 -0
- package/src/lib/tools/startup-idea-research-schema.ts +107 -0
- package/src/lib/tools/tarot-imagery.ts +89 -0
- package/src/lib/tools/tarot-reading.ts +1044 -0
- package/src/lib/tools/tool-message-keys.ts +18 -0
- package/src/lib/tools/types.ts +32 -0
- package/src/lib/tools/user-interview.format.ts +147 -0
- package/src/lib/tools/user-interview.generation.ts +670 -0
- package/src/lib/tools/user-interview.schema.ts +192 -0
- package/src/lib/zip.ts +106 -0
- package/src/services/tools/handlers/gtm-readiness-checklist.ts +71 -0
- package/src/services/tools/handlers/types.ts +7 -0
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
export type PitchDeckLibraryLocaleCopy = {
|
|
2
|
+
round: string;
|
|
3
|
+
investor?: string;
|
|
4
|
+
sourceLabel: string;
|
|
5
|
+
takeaway: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type PitchDeckLibraryEntry = {
|
|
9
|
+
/** stable slug, also used for cover/page asset paths */
|
|
10
|
+
slug: string;
|
|
11
|
+
company: string;
|
|
12
|
+
/** name at the time of the raise, when different */
|
|
13
|
+
formerName?: string;
|
|
14
|
+
year: string;
|
|
15
|
+
/** verified public amount; omit when not reliably documented */
|
|
16
|
+
amount?: string;
|
|
17
|
+
/** how the original deck became public — attribution matters for trust */
|
|
18
|
+
sourceUrl: string;
|
|
19
|
+
/** confirmed page count of the original deck; omit when unverified */
|
|
20
|
+
slideCount?: number;
|
|
21
|
+
/** local page image paths, filled when assets are collected */
|
|
22
|
+
pages: string[];
|
|
23
|
+
/** local downloadable file (pdf/zip), filled when assets are collected */
|
|
24
|
+
downloadUrl?: string;
|
|
25
|
+
locales: {
|
|
26
|
+
zh: PitchDeckLibraryLocaleCopy;
|
|
27
|
+
en: PitchDeckLibraryLocaleCopy;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const PITCH_DECK_LIBRARY_COVER_BASE = "/tools/pitch-deck-library";
|
|
32
|
+
|
|
33
|
+
const CB_INSIGHTS_ARCHIVE =
|
|
34
|
+
"https://www.cbinsights.com/research/billion-dollar-startup-pitch-decks/";
|
|
35
|
+
|
|
36
|
+
function deckPages(slug: string, count: number): string[] {
|
|
37
|
+
return Array.from(
|
|
38
|
+
{ length: count },
|
|
39
|
+
(_, index) =>
|
|
40
|
+
`${PITCH_DECK_LIBRARY_COVER_BASE}/${slug}/page-${String(index + 1).padStart(2, "0")}.jpg`,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function deckPdf(slug: string): string {
|
|
45
|
+
return `${PITCH_DECK_LIBRARY_COVER_BASE}/${slug}-pitch-deck.pdf`;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Only decks whose ORIGINAL files are verifiably public are listed:
|
|
50
|
+
* published by founders/investors themselves, archived by CB Insights,
|
|
51
|
+
* or disclosed through legal proceedings. Do not add recreations, and do
|
|
52
|
+
* not invent amounts/page counts that are not documented.
|
|
53
|
+
*/
|
|
54
|
+
export const pitchDeckLibrary: PitchDeckLibraryEntry[] = [
|
|
55
|
+
{
|
|
56
|
+
slug: "copy-ai",
|
|
57
|
+
company: "Copy.ai",
|
|
58
|
+
year: "2021",
|
|
59
|
+
amount: "$11M",
|
|
60
|
+
sourceUrl: "https://www.failory.com/pitch-deck/copy-ai",
|
|
61
|
+
slideCount: 8,
|
|
62
|
+
pages: deckPages("copy-ai", 8),
|
|
63
|
+
downloadUrl: deckPdf("copy-ai"),
|
|
64
|
+
locales: {
|
|
65
|
+
zh: {
|
|
66
|
+
round: "A 轮",
|
|
67
|
+
investor: "Wing 领投,Sequoia、Tiger Global 参投",
|
|
68
|
+
sourceLabel: "Failory 收录的公开原件",
|
|
69
|
+
takeaway: "AI 时代的极简范本:全套只有 8 页,几乎全靠真实增长曲线说话——产品会说话时,deck 可以很薄。",
|
|
70
|
+
},
|
|
71
|
+
en: {
|
|
72
|
+
round: "Series A",
|
|
73
|
+
investor: "Led by Wing; Sequoia and Tiger Global participated",
|
|
74
|
+
sourceLabel: "Public original archived by Failory",
|
|
75
|
+
takeaway: "The AI-era minimal benchmark: just 8 slides, carried almost entirely by real growth curves — when the product speaks, the deck can be thin.",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
slug: "front",
|
|
81
|
+
company: "Front",
|
|
82
|
+
year: "2018",
|
|
83
|
+
amount: "$66M",
|
|
84
|
+
sourceUrl: "https://collinmathilde.medium.com/front-series-b-deck-6dc686267a24",
|
|
85
|
+
slideCount: 24,
|
|
86
|
+
pages: deckPages("front", 24),
|
|
87
|
+
downloadUrl: deckPdf("front"),
|
|
88
|
+
locales: {
|
|
89
|
+
zh: {
|
|
90
|
+
round: "B 轮",
|
|
91
|
+
investor: "Sequoia Capital 领投",
|
|
92
|
+
sourceLabel: "创始人 Mathilde Collin 本人公开",
|
|
93
|
+
takeaway: "现代 SaaS deck 的设计标杆:品牌色贯穿、每页一句判断、指标图表克制而清晰。",
|
|
94
|
+
},
|
|
95
|
+
en: {
|
|
96
|
+
round: "Series B",
|
|
97
|
+
investor: "Led by Sequoia Capital",
|
|
98
|
+
sourceLabel: "Published by founder Mathilde Collin",
|
|
99
|
+
takeaway: "A design benchmark for modern SaaS decks: consistent brand color, one claim per page, restrained but clear metric charts.",
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
slug: "brex",
|
|
105
|
+
company: "Brex",
|
|
106
|
+
year: "2018",
|
|
107
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
108
|
+
slideCount: 19,
|
|
109
|
+
pages: deckPages("brex", 19),
|
|
110
|
+
downloadUrl: deckPdf("brex"),
|
|
111
|
+
locales: {
|
|
112
|
+
zh: {
|
|
113
|
+
round: "C 轮",
|
|
114
|
+
sourceLabel: "CB Insights 原件档案",
|
|
115
|
+
takeaway: "暗色高级感金融品牌视觉:用设计传达「可信」,19 页讲清一个重构企业信用卡的故事。",
|
|
116
|
+
},
|
|
117
|
+
en: {
|
|
118
|
+
round: "Series C",
|
|
119
|
+
sourceLabel: "CB Insights original archive",
|
|
120
|
+
takeaway: "Dark, premium fintech visual language — design that signals trust, telling a corporate-card rebuild story in 19 slides.",
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
slug: "front-series-a",
|
|
126
|
+
company: "Front",
|
|
127
|
+
year: "2016",
|
|
128
|
+
amount: "$10M",
|
|
129
|
+
sourceUrl: "https://collinmathilde.medium.com/front-series-a-deck-f2e2775a419b",
|
|
130
|
+
slideCount: 21,
|
|
131
|
+
pages: deckPages("front-series-a", 21),
|
|
132
|
+
downloadUrl: deckPdf("front-series-a"),
|
|
133
|
+
locales: {
|
|
134
|
+
zh: {
|
|
135
|
+
round: "A 轮",
|
|
136
|
+
sourceLabel: "创始人 Mathilde Collin 本人公开",
|
|
137
|
+
takeaway: "同一家公司 A 轮 vs B 轮的对照样本:叙事随阶段从愿景转向指标增长。",
|
|
138
|
+
},
|
|
139
|
+
en: {
|
|
140
|
+
round: "Series A",
|
|
141
|
+
sourceLabel: "Published by founder Mathilde Collin",
|
|
142
|
+
takeaway: "A same-company A-vs-B comparison sample: the narrative shifts from vision to metrics as the stage matures.",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
slug: "airbnb",
|
|
148
|
+
company: "Airbnb",
|
|
149
|
+
formerName: "AirBed&Breakfast",
|
|
150
|
+
year: "2008",
|
|
151
|
+
amount: "$600K",
|
|
152
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
153
|
+
pages: [],
|
|
154
|
+
locales: {
|
|
155
|
+
zh: {
|
|
156
|
+
round: "种子轮",
|
|
157
|
+
investor: "Sequoia Capital 等",
|
|
158
|
+
sourceLabel: "CB Insights 原件档案",
|
|
159
|
+
takeaway: "三句话定义问题:价格、体验、信任,被称为问题页的教科书。",
|
|
160
|
+
},
|
|
161
|
+
en: {
|
|
162
|
+
round: "Seed",
|
|
163
|
+
investor: "Sequoia Capital and others",
|
|
164
|
+
sourceLabel: "CB Insights original archive",
|
|
165
|
+
takeaway: "Defines the problem in three lines — price, experience, trust. The textbook problem slide.",
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
slug: "uber",
|
|
171
|
+
company: "Uber",
|
|
172
|
+
formerName: "UberCab",
|
|
173
|
+
year: "2008",
|
|
174
|
+
sourceUrl: "https://medium.com/@gc/the-beginning-of-ubercab-27ec19c95353",
|
|
175
|
+
slideCount: 25,
|
|
176
|
+
pages: deckPages("uber", 25),
|
|
177
|
+
downloadUrl: deckPdf("uber"),
|
|
178
|
+
locales: {
|
|
179
|
+
zh: {
|
|
180
|
+
round: "首份 BP",
|
|
181
|
+
sourceLabel: "联合创始人 Garrett Camp 本人公开",
|
|
182
|
+
takeaway: "当年把出租车市场估成 $4.2B——好叙事不需要吹大 TAM。",
|
|
183
|
+
},
|
|
184
|
+
en: {
|
|
185
|
+
round: "First deck",
|
|
186
|
+
sourceLabel: "Shared by co-founder Garrett Camp",
|
|
187
|
+
takeaway: "Estimated the cab market at just $4.2B — a great story does not need an inflated TAM.",
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
slug: "linkedin",
|
|
193
|
+
company: "LinkedIn",
|
|
194
|
+
year: "2004",
|
|
195
|
+
amount: "$10M",
|
|
196
|
+
sourceUrl: "https://www.reidhoffman.org/linkedin-pitch-to-greylock/",
|
|
197
|
+
slideCount: 39,
|
|
198
|
+
pages: deckPages("linkedin", 39),
|
|
199
|
+
downloadUrl: deckPdf("linkedin"),
|
|
200
|
+
locales: {
|
|
201
|
+
zh: {
|
|
202
|
+
round: "B 轮",
|
|
203
|
+
investor: "Greylock Partners",
|
|
204
|
+
sourceLabel: "Reid Hoffman 官网逐页公开并附解读",
|
|
205
|
+
takeaway: "用「网络价值」回答为什么赢,每页都在回应投资人上一个疑问。",
|
|
206
|
+
},
|
|
207
|
+
en: {
|
|
208
|
+
round: "Series B",
|
|
209
|
+
investor: "Greylock Partners",
|
|
210
|
+
sourceLabel: "Published page-by-page by Reid Hoffman with commentary",
|
|
211
|
+
takeaway: "Answers 'why we win' with network value; every slide anticipates the investor's next question.",
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
slug: "youtube",
|
|
217
|
+
company: "YouTube",
|
|
218
|
+
year: "2005",
|
|
219
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
220
|
+
slideCount: 10,
|
|
221
|
+
pages: deckPages("youtube", 10),
|
|
222
|
+
downloadUrl: deckPdf("youtube"),
|
|
223
|
+
locales: {
|
|
224
|
+
zh: {
|
|
225
|
+
round: "A 轮",
|
|
226
|
+
investor: "Sequoia Capital",
|
|
227
|
+
sourceLabel: "经法律程序披露,附红杉内部投资备忘录",
|
|
228
|
+
takeaway: "连同红杉的投资备忘录一起流出——能同时看到 BP 和投资人怎么想。",
|
|
229
|
+
},
|
|
230
|
+
en: {
|
|
231
|
+
round: "Series A",
|
|
232
|
+
investor: "Sequoia Capital",
|
|
233
|
+
sourceLabel: "Disclosed via legal proceedings, with Sequoia's investment memo",
|
|
234
|
+
takeaway: "Surfaced with Sequoia's own memo — see the deck and the investor's reasoning side by side.",
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
slug: "buffer",
|
|
240
|
+
company: "Buffer",
|
|
241
|
+
year: "2011",
|
|
242
|
+
amount: "$500K",
|
|
243
|
+
sourceUrl: "https://buffer.com/resources/500000-seed-round-pitch-deck/",
|
|
244
|
+
slideCount: 13,
|
|
245
|
+
pages: deckPages("buffer", 13),
|
|
246
|
+
downloadUrl: deckPdf("buffer"),
|
|
247
|
+
locales: {
|
|
248
|
+
zh: {
|
|
249
|
+
round: "种子轮",
|
|
250
|
+
sourceLabel: "创始团队主动公开",
|
|
251
|
+
takeaway: "最早主动公开自己 BP 的公司之一,用真实增长数据代替愿景形容词。",
|
|
252
|
+
},
|
|
253
|
+
en: {
|
|
254
|
+
round: "Seed",
|
|
255
|
+
sourceLabel: "Openly shared by the founding team",
|
|
256
|
+
takeaway: "One of the first startups to publish its own deck — real traction numbers instead of vision adjectives.",
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
slug: "coinbase",
|
|
262
|
+
company: "Coinbase",
|
|
263
|
+
year: "2012",
|
|
264
|
+
amount: "$600K",
|
|
265
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
266
|
+
slideCount: 12,
|
|
267
|
+
pages: deckPages("coinbase", 12),
|
|
268
|
+
downloadUrl: deckPdf("coinbase"),
|
|
269
|
+
locales: {
|
|
270
|
+
zh: {
|
|
271
|
+
round: "种子轮",
|
|
272
|
+
sourceLabel: "CB Insights 原件档案",
|
|
273
|
+
takeaway: "12 页讲清一个高风险行业:把「为什么信任我们」放在叙事核心。",
|
|
274
|
+
},
|
|
275
|
+
en: {
|
|
276
|
+
round: "Seed",
|
|
277
|
+
sourceLabel: "CB Insights original archive",
|
|
278
|
+
takeaway: "Explains a high-risk industry in 12 slides, with 'why trust us' at the center of the story.",
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
slug: "dropbox",
|
|
284
|
+
company: "Dropbox",
|
|
285
|
+
year: "2007",
|
|
286
|
+
amount: "$1.2M",
|
|
287
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
288
|
+
slideCount: 17,
|
|
289
|
+
pages: deckPages("dropbox", 17),
|
|
290
|
+
downloadUrl: deckPdf("dropbox"),
|
|
291
|
+
locales: {
|
|
292
|
+
zh: {
|
|
293
|
+
round: "种子轮",
|
|
294
|
+
investor: "Sequoia Capital",
|
|
295
|
+
sourceLabel: "CB Insights 原件档案",
|
|
296
|
+
takeaway: "用一个 demo 场景讲产品,而不是功能列表。",
|
|
297
|
+
},
|
|
298
|
+
en: {
|
|
299
|
+
round: "Seed",
|
|
300
|
+
investor: "Sequoia Capital",
|
|
301
|
+
sourceLabel: "CB Insights original archive",
|
|
302
|
+
takeaway: "Sells the product with one demo scenario instead of a feature list.",
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
slug: "intercom",
|
|
308
|
+
company: "Intercom",
|
|
309
|
+
year: "2011",
|
|
310
|
+
amount: "$600K",
|
|
311
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
312
|
+
slideCount: 8,
|
|
313
|
+
pages: deckPages("intercom", 8),
|
|
314
|
+
downloadUrl: deckPdf("intercom"),
|
|
315
|
+
locales: {
|
|
316
|
+
zh: {
|
|
317
|
+
round: "种子轮",
|
|
318
|
+
sourceLabel: "CB Insights 原件档案",
|
|
319
|
+
takeaway: "只有 8 页——页数不是价值,判断密度才是。",
|
|
320
|
+
},
|
|
321
|
+
en: {
|
|
322
|
+
round: "Seed",
|
|
323
|
+
sourceLabel: "CB Insights original archive",
|
|
324
|
+
takeaway: "Just 8 slides — page count is not value, judgment density is.",
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
slug: "facebook",
|
|
330
|
+
company: "Facebook",
|
|
331
|
+
year: "2004",
|
|
332
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
333
|
+
slideCount: 7,
|
|
334
|
+
pages: deckPages("facebook", 7),
|
|
335
|
+
downloadUrl: deckPdf("facebook"),
|
|
336
|
+
locales: {
|
|
337
|
+
zh: {
|
|
338
|
+
round: "早期 Media Kit",
|
|
339
|
+
sourceLabel: "CB Insights 原件档案",
|
|
340
|
+
takeaway: "严格说是媒体资料册:用校园渗透率数据讲增长势能。",
|
|
341
|
+
},
|
|
342
|
+
en: {
|
|
343
|
+
round: "Early media kit",
|
|
344
|
+
sourceLabel: "CB Insights original archive",
|
|
345
|
+
takeaway: "Technically a media kit — campus penetration data doing the growth story.",
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
slug: "tinder",
|
|
351
|
+
company: "Tinder",
|
|
352
|
+
formerName: "Match Box",
|
|
353
|
+
year: "2012",
|
|
354
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
355
|
+
slideCount: 10,
|
|
356
|
+
pages: deckPages("tinder", 10),
|
|
357
|
+
downloadUrl: deckPdf("tinder"),
|
|
358
|
+
locales: {
|
|
359
|
+
zh: {
|
|
360
|
+
round: "早期 BP",
|
|
361
|
+
sourceLabel: "CB Insights 原件档案",
|
|
362
|
+
takeaway: "用使用场景漫画代替市场分析——消费产品可以先让人「秒懂」。",
|
|
363
|
+
},
|
|
364
|
+
en: {
|
|
365
|
+
round: "Early deck",
|
|
366
|
+
sourceLabel: "CB Insights original archive",
|
|
367
|
+
takeaway: "Usage-scenario storyboards instead of market analysis — consumer products can lead with instant understanding.",
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
slug: "wework",
|
|
373
|
+
company: "WeWork",
|
|
374
|
+
year: "2014",
|
|
375
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
376
|
+
slideCount: 10,
|
|
377
|
+
pages: deckPages("wework", 10),
|
|
378
|
+
downloadUrl: deckPdf("wework"),
|
|
379
|
+
locales: {
|
|
380
|
+
zh: {
|
|
381
|
+
round: "早期 BP",
|
|
382
|
+
sourceLabel: "CB Insights 原件档案",
|
|
383
|
+
takeaway: "把租赁生意讲成社区平台的经典样本——也是估值叙事风险的反面教材。",
|
|
384
|
+
},
|
|
385
|
+
en: {
|
|
386
|
+
round: "Early deck",
|
|
387
|
+
sourceLabel: "CB Insights original archive",
|
|
388
|
+
takeaway: "A leasing business narrated as a community platform — also a cautionary tale on valuation narratives.",
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
slug: "wise",
|
|
394
|
+
company: "Wise",
|
|
395
|
+
formerName: "TransferWise",
|
|
396
|
+
year: "2011",
|
|
397
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
398
|
+
slideCount: 9,
|
|
399
|
+
pages: deckPages("wise", 9),
|
|
400
|
+
downloadUrl: deckPdf("wise"),
|
|
401
|
+
locales: {
|
|
402
|
+
zh: {
|
|
403
|
+
round: "早期 BP",
|
|
404
|
+
sourceLabel: "CB Insights 原件档案",
|
|
405
|
+
takeaway: "用「银行隐藏汇率费」一个洞察撑起整个叙事。",
|
|
406
|
+
},
|
|
407
|
+
en: {
|
|
408
|
+
round: "Early deck",
|
|
409
|
+
sourceLabel: "CB Insights original archive",
|
|
410
|
+
takeaway: "One insight — hidden bank FX fees — carries the entire narrative.",
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
slug: "revolut",
|
|
416
|
+
company: "Revolut",
|
|
417
|
+
year: "2015",
|
|
418
|
+
amount: "£1.5M",
|
|
419
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
420
|
+
slideCount: 11,
|
|
421
|
+
pages: deckPages("revolut", 11),
|
|
422
|
+
downloadUrl: deckPdf("revolut"),
|
|
423
|
+
locales: {
|
|
424
|
+
zh: {
|
|
425
|
+
round: "早期 BP",
|
|
426
|
+
sourceLabel: "CB Insights 原件档案",
|
|
427
|
+
takeaway: "金融产品用「省了多少钱」做价值主张,而不是功能罗列。",
|
|
428
|
+
},
|
|
429
|
+
en: {
|
|
430
|
+
round: "Early deck",
|
|
431
|
+
sourceLabel: "CB Insights original archive",
|
|
432
|
+
takeaway: "A fintech value prop framed as 'how much you save', not a feature list.",
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
slug: "monzo",
|
|
438
|
+
company: "Monzo",
|
|
439
|
+
year: "2017",
|
|
440
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
441
|
+
slideCount: 16,
|
|
442
|
+
pages: deckPages("monzo", 16),
|
|
443
|
+
downloadUrl: deckPdf("monzo"),
|
|
444
|
+
locales: {
|
|
445
|
+
zh: {
|
|
446
|
+
round: "早期 BP",
|
|
447
|
+
sourceLabel: "CB Insights 原件档案",
|
|
448
|
+
takeaway: "用等候名单和社区热度证明需求,先于收入数据。",
|
|
449
|
+
},
|
|
450
|
+
en: {
|
|
451
|
+
round: "Early deck",
|
|
452
|
+
sourceLabel: "CB Insights original archive",
|
|
453
|
+
takeaway: "Waitlist and community heat as demand proof, ahead of revenue.",
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
slug: "canva",
|
|
459
|
+
company: "Canva",
|
|
460
|
+
year: "2012",
|
|
461
|
+
sourceUrl: CB_INSIGHTS_ARCHIVE,
|
|
462
|
+
pages: [],
|
|
463
|
+
locales: {
|
|
464
|
+
zh: {
|
|
465
|
+
round: "早期 BP(Fusion Books 时期)",
|
|
466
|
+
sourceLabel: "CB Insights 原件档案",
|
|
467
|
+
takeaway: "从校园年册工具推导设计民主化愿景——小切口讲大市场。",
|
|
468
|
+
},
|
|
469
|
+
en: {
|
|
470
|
+
round: "Early deck (Fusion Books era)",
|
|
471
|
+
sourceLabel: "CB Insights original archive",
|
|
472
|
+
takeaway: "From a school yearbook tool to democratizing design — small wedge, big market.",
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
},
|
|
476
|
+
];
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Download, ExternalLink, FileText } from "lucide-react";
|
|
4
|
+
import Image from "next/image";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
|
|
7
|
+
import { Button } from "@tomako/ui/button";
|
|
8
|
+
import {
|
|
9
|
+
Dialog,
|
|
10
|
+
DialogBody,
|
|
11
|
+
DialogContent,
|
|
12
|
+
DialogFooter,
|
|
13
|
+
DialogHeader,
|
|
14
|
+
} from "@tomako/ui/dialog";
|
|
15
|
+
import {
|
|
16
|
+
PITCH_DECK_LIBRARY_COVER_BASE,
|
|
17
|
+
pitchDeckLibrary,
|
|
18
|
+
type PitchDeckLibraryEntry,
|
|
19
|
+
} from "../../../features/tools/pitch-deck-generator/pitch-deck-library-data";
|
|
20
|
+
import { useLocale, useTranslations } from "../../../i18n/client";
|
|
21
|
+
import { isZhRouteLocale } from "../../../i18n/locale-fallback";
|
|
22
|
+
import type { AppLocale } from "../../../i18n/locale";
|
|
23
|
+
|
|
24
|
+
function deckTitle(entry: PitchDeckLibraryEntry, roundLabel: string): string {
|
|
25
|
+
return `${entry.company} ${roundLabel} Pitch Deck (${entry.year})`;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function DeckCover({ entry, alt }: { entry: PitchDeckLibraryEntry; alt: string }) {
|
|
29
|
+
return (
|
|
30
|
+
<div className="relative aspect-video w-full overflow-hidden bg-[#EEEAE0]">
|
|
31
|
+
<Image
|
|
32
|
+
src={`${PITCH_DECK_LIBRARY_COVER_BASE}/${entry.slug}-cover.webp`}
|
|
33
|
+
alt={alt}
|
|
34
|
+
fill
|
|
35
|
+
sizes="(min-width: 1280px) 25vw, (min-width: 768px) 33vw, 100vw"
|
|
36
|
+
className="object-cover"
|
|
37
|
+
/>
|
|
38
|
+
<span className="absolute left-3 top-3 rounded-md bg-[#111111] px-2 py-1 text-[11px] font-semibold tracking-wide text-white">
|
|
39
|
+
BP
|
|
40
|
+
</span>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PitchDeckLibrary() {
|
|
46
|
+
const t = useTranslations("toolsPages.pitchDeckGenerator.library");
|
|
47
|
+
const locale = useLocale() as AppLocale;
|
|
48
|
+
const libraryLocale = isZhRouteLocale(locale) ? "zh" : "en";
|
|
49
|
+
const [active, setActive] = useState<PitchDeckLibraryEntry | null>(null);
|
|
50
|
+
const activeCopy = active?.locales[libraryLocale];
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<>
|
|
54
|
+
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
|
55
|
+
{pitchDeckLibrary.map((entry) => {
|
|
56
|
+
const copy = entry.locales[libraryLocale];
|
|
57
|
+
return (
|
|
58
|
+
<article
|
|
59
|
+
key={entry.slug}
|
|
60
|
+
className="group overflow-hidden rounded-[1.25rem] border border-[#D8D4CA] bg-white shadow-[0_12px_28px_rgba(17,17,17,0.05)] transition hover:border-[#999999]"
|
|
61
|
+
>
|
|
62
|
+
<button
|
|
63
|
+
type="button"
|
|
64
|
+
className="block w-full text-left"
|
|
65
|
+
onClick={() => setActive(entry)}
|
|
66
|
+
aria-label={t("openDeck", { company: entry.company })}
|
|
67
|
+
>
|
|
68
|
+
<DeckCover entry={entry} alt={deckTitle(entry, copy.round)} />
|
|
69
|
+
<div className="p-4">
|
|
70
|
+
<h3 className="text-base font-semibold leading-tight text-[#111111]">
|
|
71
|
+
{deckTitle(entry, copy.round)}
|
|
72
|
+
</h3>
|
|
73
|
+
<p className="mt-1 text-xs font-medium text-[#888888]">
|
|
74
|
+
{[
|
|
75
|
+
entry.formerName ? t("formerName", { name: entry.formerName }) : null,
|
|
76
|
+
entry.amount,
|
|
77
|
+
copy.investor,
|
|
78
|
+
]
|
|
79
|
+
.filter(Boolean)
|
|
80
|
+
.join(" · ")}
|
|
81
|
+
</p>
|
|
82
|
+
<p className="mt-2 line-clamp-3 text-sm leading-6 text-[#555555]">
|
|
83
|
+
{copy.takeaway}
|
|
84
|
+
</p>
|
|
85
|
+
<p className="mt-3 text-[11px] text-[#999999]">{copy.sourceLabel}</p>
|
|
86
|
+
</div>
|
|
87
|
+
</button>
|
|
88
|
+
</article>
|
|
89
|
+
);
|
|
90
|
+
})}
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<Dialog open={!!active} onOpenChange={(open) => !open && setActive(null)}>
|
|
94
|
+
{active && activeCopy ? (
|
|
95
|
+
<DialogContent size="xl">
|
|
96
|
+
<DialogHeader title={deckTitle(active, activeCopy.round)} />
|
|
97
|
+
<DialogBody className="max-h-[62vh] overflow-y-auto">
|
|
98
|
+
<p className="text-sm leading-6 text-[#555555]">{activeCopy.takeaway}</p>
|
|
99
|
+
{active.pages.length ? (
|
|
100
|
+
<div className="mt-4 grid gap-4">
|
|
101
|
+
{active.pages.map((page, index) => (
|
|
102
|
+
<div
|
|
103
|
+
key={page}
|
|
104
|
+
className="overflow-hidden rounded-[0.75rem] border border-[#E1DDD3] bg-[#EEEAE0]"
|
|
105
|
+
>
|
|
106
|
+
<Image
|
|
107
|
+
src={page}
|
|
108
|
+
alt={t("pageAlt", { company: active.company, page: index + 1 })}
|
|
109
|
+
width={1440}
|
|
110
|
+
height={1080}
|
|
111
|
+
sizes="(min-width: 1024px) 960px, 100vw"
|
|
112
|
+
className="h-auto w-full"
|
|
113
|
+
/>
|
|
114
|
+
</div>
|
|
115
|
+
))}
|
|
116
|
+
</div>
|
|
117
|
+
) : (
|
|
118
|
+
<div className="mt-4 grid gap-4">
|
|
119
|
+
{Array.from({ length: 4 }, (_, index) => (
|
|
120
|
+
<div
|
|
121
|
+
key={index}
|
|
122
|
+
className="flex aspect-video items-center justify-center rounded-[0.75rem] border border-dashed border-[#D8D4CA] bg-[#F7F6F2]"
|
|
123
|
+
>
|
|
124
|
+
<span className="flex items-center gap-2 text-xs font-medium text-[#999999]">
|
|
125
|
+
<FileText className="size-4" aria-hidden />
|
|
126
|
+
{t("pagesComingSoon")}
|
|
127
|
+
</span>
|
|
128
|
+
</div>
|
|
129
|
+
))}
|
|
130
|
+
</div>
|
|
131
|
+
)}
|
|
132
|
+
<p className="mt-4 text-xs leading-5 text-[#999999]">{t("attributionNote")}</p>
|
|
133
|
+
</DialogBody>
|
|
134
|
+
<DialogFooter>
|
|
135
|
+
<Button asChild type="button" variant="outline" className="min-h-9">
|
|
136
|
+
<a href={active.sourceUrl} target="_blank" rel="noopener noreferrer">
|
|
137
|
+
<ExternalLink className="size-4" aria-hidden />
|
|
138
|
+
{t("viewSource")}
|
|
139
|
+
</a>
|
|
140
|
+
</Button>
|
|
141
|
+
{active.downloadUrl ? (
|
|
142
|
+
<Button
|
|
143
|
+
asChild
|
|
144
|
+
type="button"
|
|
145
|
+
className="min-h-9 bg-[#111111] text-white hover:bg-[#2A2A2A]"
|
|
146
|
+
>
|
|
147
|
+
<a href={active.downloadUrl} download>
|
|
148
|
+
<Download className="size-4" aria-hidden />
|
|
149
|
+
{t("download")}
|
|
150
|
+
</a>
|
|
151
|
+
</Button>
|
|
152
|
+
) : null}
|
|
153
|
+
</DialogFooter>
|
|
154
|
+
</DialogContent>
|
|
155
|
+
) : null}
|
|
156
|
+
</Dialog>
|
|
157
|
+
</>
|
|
158
|
+
);
|
|
159
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Sparkles } from "lucide-react";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
|
+
|
|
6
|
+
import { CEREMONY_INTERVAL_MS } from "./constants";
|
|
7
|
+
|
|
8
|
+
export function CeremonyLine({ messages, active }: { messages: readonly string[]; active: boolean }) {
|
|
9
|
+
const [index, setIndex] = useState(0);
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (!active || messages.length <= 1) return;
|
|
13
|
+
const timer = window.setInterval(() => {
|
|
14
|
+
setIndex((current) => (current + 1) % messages.length);
|
|
15
|
+
}, CEREMONY_INTERVAL_MS);
|
|
16
|
+
return () => window.clearInterval(timer);
|
|
17
|
+
}, [active, messages.length]);
|
|
18
|
+
|
|
19
|
+
if (!active || !messages.length) return null;
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<p key={index} className="animate-fade-in-up mt-3 flex items-center gap-2 text-xs text-[#777777]">
|
|
23
|
+
<Sparkles className="size-3.5 shrink-0 text-[#8A5819]" aria-hidden />
|
|
24
|
+
<span>{messages[index]}</span>
|
|
25
|
+
</p>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { PitchDeckStylePreset } from "../../../../lib/tools/pitch-deck-generator-schema";
|
|
2
|
+
|
|
3
|
+
import type { FormState } from "./types";
|
|
4
|
+
|
|
5
|
+
export const POLL_INTERVAL_MS = 3000;
|
|
6
|
+
export const GRACE_WINDOW_MS = 900_000;
|
|
7
|
+
export const IMAGE_STATUS_POLL_MS = 5000;
|
|
8
|
+
export const CEREMONY_INTERVAL_MS = 4200;
|
|
9
|
+
export const SLIDE_ETA_SECONDS = 90;
|
|
10
|
+
|
|
11
|
+
export const styleImages: Partial<Record<PitchDeckStylePreset, string>> = {
|
|
12
|
+
boldNarrative: "/tools/pitch-deck-generator-style-bold-narrative.webp",
|
|
13
|
+
metricGrid: "/tools/pitch-deck-generator-style-metric-grid.webp",
|
|
14
|
+
visionField: "/tools/pitch-deck-generator-style-vision-field.webp",
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const defaultForm: FormState = {
|
|
18
|
+
contextMode: "url",
|
|
19
|
+
productUrl: "",
|
|
20
|
+
productName: "",
|
|
21
|
+
productContext: "",
|
|
22
|
+
fundingStage: "notSure",
|
|
23
|
+
stylePreset: "none",
|
|
24
|
+
language: "zh",
|
|
25
|
+
brandNotes: "",
|
|
26
|
+
mustAvoid: "",
|
|
27
|
+
};
|