@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,659 @@
|
|
|
1
|
+
import { Download, FileText, Minus, Plus, ShieldCheck, Sparkles } from "lucide-react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
export type ToolTextCard = {
|
|
5
|
+
title: string;
|
|
6
|
+
body: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type ToolFaqItem = {
|
|
10
|
+
question: string;
|
|
11
|
+
answer: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type ToolBoundaryGroup = {
|
|
15
|
+
title: string;
|
|
16
|
+
items: readonly string[];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type ToolComparisonItem = {
|
|
20
|
+
before: string;
|
|
21
|
+
after: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type ToolTripleComparisonItem = {
|
|
25
|
+
standard: string;
|
|
26
|
+
manual: string;
|
|
27
|
+
tomako: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const sectionBorderClass = "border-t border-[#E8EBF0]";
|
|
31
|
+
const sectionHeadingClass =
|
|
32
|
+
"text-[2rem] font-semibold leading-[1.18] text-[#0D1216] md:text-[40px]";
|
|
33
|
+
const sectionIntroClass = "mt-4 max-w-3xl text-base leading-7 text-[#555E66]";
|
|
34
|
+
const sectionCardClass =
|
|
35
|
+
"rounded-2xl border border-[#E5E9F0] bg-[#F6F7F8] p-6 shadow-none";
|
|
36
|
+
const cardIcons = [FileText, Sparkles, Download, ShieldCheck] as const;
|
|
37
|
+
|
|
38
|
+
export function ToolSection({
|
|
39
|
+
heading,
|
|
40
|
+
intro,
|
|
41
|
+
children,
|
|
42
|
+
visual,
|
|
43
|
+
reverse = false,
|
|
44
|
+
/** `wide`:标题仍窄栏,子内容拉满容器(Use cases / 对比表等避免塞进 max-w-3xl 跑版) */
|
|
45
|
+
contentWidth = "narrow",
|
|
46
|
+
}: {
|
|
47
|
+
heading: string;
|
|
48
|
+
intro?: string;
|
|
49
|
+
children?: ReactNode;
|
|
50
|
+
visual?: ReactNode;
|
|
51
|
+
reverse?: boolean;
|
|
52
|
+
contentWidth?: "narrow" | "wide";
|
|
53
|
+
}) {
|
|
54
|
+
const headingBlock = (
|
|
55
|
+
<div className="max-w-3xl">
|
|
56
|
+
<h2 className={sectionHeadingClass}>{heading}</h2>
|
|
57
|
+
{intro ? <p className={sectionIntroClass}>{intro}</p> : null}
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const childrenBlock = children ? (
|
|
62
|
+
<div className={contentWidth === "wide" ? "mt-7 w-full min-w-0" : "mt-7 max-w-3xl"}>
|
|
63
|
+
{children}
|
|
64
|
+
</div>
|
|
65
|
+
) : null;
|
|
66
|
+
|
|
67
|
+
if (!visual) {
|
|
68
|
+
return (
|
|
69
|
+
<section className={`${sectionBorderClass} py-16 md:py-20`}>
|
|
70
|
+
{headingBlock}
|
|
71
|
+
{childrenBlock}
|
|
72
|
+
</section>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<section className={`grid gap-8 ${sectionBorderClass} py-16 lg:grid-cols-2 lg:items-center lg:gap-12 lg:py-20`}>
|
|
78
|
+
<div className={reverse ? "lg:order-2 lg:pl-6" : "lg:pr-6"}>
|
|
79
|
+
{headingBlock}
|
|
80
|
+
{childrenBlock}
|
|
81
|
+
</div>
|
|
82
|
+
<div className={reverse ? "lg:order-1" : ""}>{visual}</div>
|
|
83
|
+
</section>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ToolTextRows({ items }: { items: readonly string[] }) {
|
|
88
|
+
return (
|
|
89
|
+
<div className="space-y-4">
|
|
90
|
+
{items.map((item) => (
|
|
91
|
+
<p key={item} className="text-base leading-7 text-[#3D3D3D]">
|
|
92
|
+
{item}
|
|
93
|
+
</p>
|
|
94
|
+
))}
|
|
95
|
+
</div>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Numbered list with circular step badges — used for how-to steps. */
|
|
100
|
+
export function ToolNumberedRows({ items }: { items: readonly string[] }) {
|
|
101
|
+
return (
|
|
102
|
+
<ol className="divide-y divide-[#E1DDD3] border-y border-[#E1DDD3] text-base leading-relaxed text-[#3D3D3D]">
|
|
103
|
+
{items.map((item, index) => (
|
|
104
|
+
<li key={item} className="flex gap-3 py-4">
|
|
105
|
+
<span className="flex size-8 shrink-0 items-center justify-center rounded-full bg-[#111111] text-xs font-semibold text-white">
|
|
106
|
+
{index + 1}
|
|
107
|
+
</span>
|
|
108
|
+
<span>{item}</span>
|
|
109
|
+
</li>
|
|
110
|
+
))}
|
|
111
|
+
</ol>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Divided list with top/bottom borders — used inside ToolGuideSection children. */
|
|
116
|
+
export function ToolDividedRows({ items }: { items: readonly string[] }) {
|
|
117
|
+
return (
|
|
118
|
+
<div className="divide-y divide-[#E1DDD3] border-y border-[#E1DDD3]">
|
|
119
|
+
{items.map((item) => (
|
|
120
|
+
<p key={item} className="py-4 text-base leading-7 text-[#3D3D3D]">
|
|
121
|
+
{item}
|
|
122
|
+
</p>
|
|
123
|
+
))}
|
|
124
|
+
</div>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function ToolCardGrid({
|
|
129
|
+
items,
|
|
130
|
+
columns = "three",
|
|
131
|
+
size = "regular",
|
|
132
|
+
}: {
|
|
133
|
+
items: readonly ToolTextCard[];
|
|
134
|
+
columns?: "one" | "two" | "three" | "four";
|
|
135
|
+
/** `prominent` renders larger title/body, matching the older per-tool ValueGrid look. */
|
|
136
|
+
size?: "regular" | "prominent";
|
|
137
|
+
}) {
|
|
138
|
+
const prominent = size === "prominent";
|
|
139
|
+
const colClass =
|
|
140
|
+
columns === "one"
|
|
141
|
+
? ""
|
|
142
|
+
: columns === "four"
|
|
143
|
+
? "md:grid-cols-2 xl:grid-cols-4"
|
|
144
|
+
: columns === "three"
|
|
145
|
+
? "md:grid-cols-2 xl:grid-cols-3"
|
|
146
|
+
: "md:grid-cols-2";
|
|
147
|
+
|
|
148
|
+
return (
|
|
149
|
+
<div className={`grid gap-5 ${colClass}`}>
|
|
150
|
+
{items.map((item, index) => {
|
|
151
|
+
const CardIcon = cardIcons[index % cardIcons.length];
|
|
152
|
+
|
|
153
|
+
return (
|
|
154
|
+
<article key={item.title} className={sectionCardClass}>
|
|
155
|
+
<span className="mb-5 flex size-12 items-center justify-center rounded-lg bg-[#E4E9F3] text-[#0D1216]">
|
|
156
|
+
<CardIcon aria-hidden className="size-5" />
|
|
157
|
+
</span>
|
|
158
|
+
<h3
|
|
159
|
+
className={
|
|
160
|
+
prominent
|
|
161
|
+
? "text-xl font-semibold leading-snug text-[#0D1216]"
|
|
162
|
+
: "text-lg font-semibold leading-tight text-[#0D1216]"
|
|
163
|
+
}
|
|
164
|
+
>
|
|
165
|
+
{item.title}
|
|
166
|
+
</h3>
|
|
167
|
+
<p className="mt-3 text-base leading-7 text-[#555E66]">
|
|
168
|
+
{item.body}
|
|
169
|
+
</p>
|
|
170
|
+
</article>
|
|
171
|
+
);
|
|
172
|
+
})}
|
|
173
|
+
</div>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function ToolValueSection({
|
|
178
|
+
heading,
|
|
179
|
+
intro,
|
|
180
|
+
items,
|
|
181
|
+
visual,
|
|
182
|
+
reverse,
|
|
183
|
+
}: {
|
|
184
|
+
heading: string;
|
|
185
|
+
intro?: string;
|
|
186
|
+
items: readonly ToolTextCard[];
|
|
187
|
+
visual?: ReactNode;
|
|
188
|
+
reverse?: boolean;
|
|
189
|
+
}) {
|
|
190
|
+
if (!visual) {
|
|
191
|
+
return (
|
|
192
|
+
<section className={`${sectionBorderClass} py-16 md:py-20`}>
|
|
193
|
+
<div className="mx-auto max-w-3xl text-center">
|
|
194
|
+
<h2 className={sectionHeadingClass}>{heading}</h2>
|
|
195
|
+
{intro ? <p className="mt-4 text-base leading-7 text-[#555E66]">{intro}</p> : null}
|
|
196
|
+
</div>
|
|
197
|
+
<div className="mt-10">
|
|
198
|
+
<ToolCardGrid items={items} />
|
|
199
|
+
</div>
|
|
200
|
+
</section>
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return (
|
|
205
|
+
<ToolSection heading={heading} intro={intro} visual={visual} reverse={reverse}>
|
|
206
|
+
<ToolCardGrid items={items} />
|
|
207
|
+
</ToolSection>
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function ToolStandardsSection({
|
|
212
|
+
heading,
|
|
213
|
+
intro,
|
|
214
|
+
items,
|
|
215
|
+
}: {
|
|
216
|
+
heading: string;
|
|
217
|
+
intro?: string;
|
|
218
|
+
items: readonly ToolTextCard[];
|
|
219
|
+
}) {
|
|
220
|
+
return (
|
|
221
|
+
<ToolSection heading={heading} intro={intro}>
|
|
222
|
+
<ToolCardGrid items={items} />
|
|
223
|
+
</ToolSection>
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export function ToolUseCasesSection({
|
|
228
|
+
heading,
|
|
229
|
+
intro,
|
|
230
|
+
items,
|
|
231
|
+
visual,
|
|
232
|
+
reverse,
|
|
233
|
+
}: {
|
|
234
|
+
heading: string;
|
|
235
|
+
intro?: string;
|
|
236
|
+
items: readonly ToolTextCard[];
|
|
237
|
+
visual?: ReactNode;
|
|
238
|
+
reverse?: boolean;
|
|
239
|
+
}) {
|
|
240
|
+
return (
|
|
241
|
+
<ToolSection heading={heading} intro={intro} visual={visual} reverse={reverse}>
|
|
242
|
+
<ToolCardGrid items={items} columns={visual ? "one" : "two"} />
|
|
243
|
+
</ToolSection>
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export function ToolBoundarySection({
|
|
248
|
+
heading,
|
|
249
|
+
intro,
|
|
250
|
+
groups,
|
|
251
|
+
visual,
|
|
252
|
+
reverse,
|
|
253
|
+
}: {
|
|
254
|
+
heading: string;
|
|
255
|
+
intro?: string;
|
|
256
|
+
groups: readonly ToolBoundaryGroup[];
|
|
257
|
+
visual?: ReactNode;
|
|
258
|
+
reverse?: boolean;
|
|
259
|
+
}) {
|
|
260
|
+
return (
|
|
261
|
+
<ToolSection heading={heading} intro={intro} visual={visual} reverse={reverse}>
|
|
262
|
+
<div className="grid gap-4">
|
|
263
|
+
{groups.map((group) => (
|
|
264
|
+
<article
|
|
265
|
+
key={group.title}
|
|
266
|
+
className={sectionCardClass}
|
|
267
|
+
>
|
|
268
|
+
<h3 className="text-lg font-semibold leading-tight text-[#0D1216]">
|
|
269
|
+
{group.title}
|
|
270
|
+
</h3>
|
|
271
|
+
<ul className="mt-4 grid gap-3 text-base leading-7 text-[#555E66]">
|
|
272
|
+
{group.items.map((item) => (
|
|
273
|
+
<li key={item} className="flex gap-3">
|
|
274
|
+
<span className="mt-3 size-1.5 shrink-0 rounded-full bg-[#0D1216]" />
|
|
275
|
+
<span>{item}</span>
|
|
276
|
+
</li>
|
|
277
|
+
))}
|
|
278
|
+
</ul>
|
|
279
|
+
</article>
|
|
280
|
+
))}
|
|
281
|
+
</div>
|
|
282
|
+
</ToolSection>
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export function ToolComparisonSection({
|
|
287
|
+
heading,
|
|
288
|
+
intro,
|
|
289
|
+
beforeLabel,
|
|
290
|
+
afterLabel,
|
|
291
|
+
items,
|
|
292
|
+
}: {
|
|
293
|
+
heading: string;
|
|
294
|
+
intro?: string;
|
|
295
|
+
beforeLabel: string;
|
|
296
|
+
afterLabel: string;
|
|
297
|
+
items: readonly ToolComparisonItem[];
|
|
298
|
+
}) {
|
|
299
|
+
return (
|
|
300
|
+
<ToolSection heading={heading} intro={intro}>
|
|
301
|
+
<div className="overflow-hidden rounded-3xl border border-[#E5E9F0] bg-white shadow-[0_24px_64px_rgba(13,18,22,0.08)]">
|
|
302
|
+
<div className="grid grid-cols-2 border-b border-[#E5E9F0] bg-[#F6F7F8] text-xs font-semibold uppercase text-[#6A737D]">
|
|
303
|
+
<p className="border-r border-[#E5E9F0] px-6 py-5">{beforeLabel}</p>
|
|
304
|
+
<p className="px-6 py-5">{afterLabel}</p>
|
|
305
|
+
</div>
|
|
306
|
+
<div className="divide-y divide-[#E5E9F0]">
|
|
307
|
+
{items.map((item) => (
|
|
308
|
+
<div key={`${item.before}-${item.after}`} className="grid sm:grid-cols-2">
|
|
309
|
+
<p className="border-b border-[#E5E9F0] px-6 py-5 text-base leading-7 text-[#555E66] sm:border-b-0 sm:border-r">
|
|
310
|
+
{item.before}
|
|
311
|
+
</p>
|
|
312
|
+
<p className="bg-[#F3FBEA] px-6 py-5 text-base font-semibold leading-7 text-[#0D1216]">
|
|
313
|
+
{item.after}
|
|
314
|
+
</p>
|
|
315
|
+
</div>
|
|
316
|
+
))}
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
</ToolSection>
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export function ToolFaqSection({
|
|
324
|
+
heading,
|
|
325
|
+
intro,
|
|
326
|
+
items,
|
|
327
|
+
}: {
|
|
328
|
+
heading: string;
|
|
329
|
+
intro?: string;
|
|
330
|
+
items: readonly ToolFaqItem[];
|
|
331
|
+
}) {
|
|
332
|
+
return (
|
|
333
|
+
<section className={`${sectionBorderClass} py-16 md:py-20`}>
|
|
334
|
+
<div className="grid gap-10 lg:grid-cols-[0.42fr_0.58fr] lg:gap-16">
|
|
335
|
+
<div>
|
|
336
|
+
<h2 className={sectionHeadingClass}>{heading}</h2>
|
|
337
|
+
{intro ? <p className={sectionIntroClass}>{intro}</p> : null}
|
|
338
|
+
</div>
|
|
339
|
+
<div>
|
|
340
|
+
{items.map((item, index) => (
|
|
341
|
+
<details
|
|
342
|
+
key={item.question}
|
|
343
|
+
className="group border-b border-[#0D1216] first:border-t"
|
|
344
|
+
open={index === 0}
|
|
345
|
+
>
|
|
346
|
+
<summary className="flex cursor-pointer list-none items-start justify-between gap-6 py-6 [&::-webkit-details-marker]:hidden">
|
|
347
|
+
<h3 className="text-xl font-semibold leading-snug text-[#0D1216] md:text-2xl">
|
|
348
|
+
{item.question}
|
|
349
|
+
</h3>
|
|
350
|
+
<span className="mt-1 flex size-8 shrink-0 items-center justify-center rounded-full text-[#0D1216]">
|
|
351
|
+
<Plus aria-hidden className="size-5 group-open:hidden" />
|
|
352
|
+
<Minus aria-hidden className="hidden size-5 group-open:block" />
|
|
353
|
+
</span>
|
|
354
|
+
</summary>
|
|
355
|
+
<p className="max-w-3xl pb-6 text-base leading-7 text-[#555E66]">
|
|
356
|
+
{item.answer}
|
|
357
|
+
</p>
|
|
358
|
+
</details>
|
|
359
|
+
))}
|
|
360
|
+
</div>
|
|
361
|
+
</div>
|
|
362
|
+
</section>
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/** Grid of plain-text use-case cards (no title/body split). */
|
|
367
|
+
export function ToolUseCaseBand({ items }: { items: readonly string[] }) {
|
|
368
|
+
return (
|
|
369
|
+
<div className="grid gap-4 sm:grid-cols-2 xl:grid-cols-3">
|
|
370
|
+
{items.map((item) => (
|
|
371
|
+
<p
|
|
372
|
+
key={item}
|
|
373
|
+
className="min-w-0 break-words rounded-[1.25rem] border border-[#D8D4CA] bg-[#FAFAFA] p-5 text-base leading-7 text-[#3D3D3D] text-pretty"
|
|
374
|
+
>
|
|
375
|
+
{item}
|
|
376
|
+
</p>
|
|
377
|
+
))}
|
|
378
|
+
</div>
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export function ToolUseCasesBandSection({
|
|
383
|
+
heading,
|
|
384
|
+
intro,
|
|
385
|
+
items,
|
|
386
|
+
}: {
|
|
387
|
+
heading: string;
|
|
388
|
+
intro?: string;
|
|
389
|
+
items: readonly string[];
|
|
390
|
+
}) {
|
|
391
|
+
return (
|
|
392
|
+
<ToolSection heading={heading} intro={intro} contentWidth="wide">
|
|
393
|
+
<ToolUseCaseBand items={items} />
|
|
394
|
+
</ToolSection>
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/** Three-column comparison: standard / manual / tomako. */
|
|
399
|
+
export function ToolTripleComparisonSection({
|
|
400
|
+
heading,
|
|
401
|
+
intro,
|
|
402
|
+
items,
|
|
403
|
+
}: {
|
|
404
|
+
heading: string;
|
|
405
|
+
intro?: string;
|
|
406
|
+
items: readonly ToolTripleComparisonItem[];
|
|
407
|
+
}) {
|
|
408
|
+
return (
|
|
409
|
+
<ToolSection heading={heading} intro={intro} contentWidth="wide">
|
|
410
|
+
<div className="overflow-hidden rounded-[1.5rem] border border-[#D8D4CA] bg-white shadow-[0_18px_50px_rgba(17,17,17,0.06)]">
|
|
411
|
+
{items.map((item) => (
|
|
412
|
+
<article
|
|
413
|
+
key={item.standard}
|
|
414
|
+
className="grid border-b border-[#E8E4DB] last:border-b-0 md:grid-cols-[0.9fr_1fr_1.15fr]"
|
|
415
|
+
>
|
|
416
|
+
<h3 className="bg-[#F7F6F2] px-5 py-4 text-sm font-semibold leading-6 text-[#111111] md:flex md:items-center">
|
|
417
|
+
{item.standard}
|
|
418
|
+
</h3>
|
|
419
|
+
<p className="border-t border-[#E8E4DB] px-5 py-4 text-sm leading-6 text-[#6B6257] md:border-l md:border-t-0">
|
|
420
|
+
{item.manual}
|
|
421
|
+
</p>
|
|
422
|
+
<p className="border-t border-[#E8E4DB] px-5 py-4 text-sm leading-6 text-[#111111] md:border-l md:border-t-0">
|
|
423
|
+
{item.tomako}
|
|
424
|
+
</p>
|
|
425
|
+
</article>
|
|
426
|
+
))}
|
|
427
|
+
</div>
|
|
428
|
+
</ToolSection>
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export function ToolSectionEyebrow({
|
|
433
|
+
children,
|
|
434
|
+
tone = "default",
|
|
435
|
+
}: {
|
|
436
|
+
children: string;
|
|
437
|
+
tone?: "default" | "coral" | "blue";
|
|
438
|
+
}) {
|
|
439
|
+
const toneClass =
|
|
440
|
+
tone === "coral"
|
|
441
|
+
? "text-[#D85435]"
|
|
442
|
+
: tone === "blue"
|
|
443
|
+
? "text-[#075DF5]"
|
|
444
|
+
: "text-[#777777]";
|
|
445
|
+
return (
|
|
446
|
+
<p className={`text-xs font-semibold uppercase tracking-[0.08em] ${toneClass}`}>
|
|
447
|
+
{children}
|
|
448
|
+
</p>
|
|
449
|
+
);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/** Grid of plain-text cards (value props without title/body split). */
|
|
453
|
+
export function ToolPlainTextGrid({
|
|
454
|
+
items,
|
|
455
|
+
columns = "two",
|
|
456
|
+
}: {
|
|
457
|
+
items: readonly string[];
|
|
458
|
+
columns?: "two" | "three" | "four";
|
|
459
|
+
}) {
|
|
460
|
+
const colClass =
|
|
461
|
+
columns === "four"
|
|
462
|
+
? "md:grid-cols-2 xl:grid-cols-4"
|
|
463
|
+
: columns === "three"
|
|
464
|
+
? "md:grid-cols-3"
|
|
465
|
+
: "md:grid-cols-2";
|
|
466
|
+
return (
|
|
467
|
+
<div className={`grid gap-4 ${colClass}`}>
|
|
468
|
+
{items.map((item) => (
|
|
469
|
+
<article
|
|
470
|
+
key={item}
|
|
471
|
+
className="rounded-[1.25rem] border border-[#D8D4CA] bg-white p-5"
|
|
472
|
+
>
|
|
473
|
+
<p className="text-sm leading-6 text-[#3D3D3D]">{item}</p>
|
|
474
|
+
</article>
|
|
475
|
+
))}
|
|
476
|
+
</div>
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/** FAQ as divided rows (lighter than card-style ToolFaqSection). */
|
|
481
|
+
export function ToolDividedFaqList({ items }: { items: readonly ToolFaqItem[] }) {
|
|
482
|
+
return (
|
|
483
|
+
<div className="divide-y divide-[#E1DDD3] border-y border-[#E1DDD3]">
|
|
484
|
+
{items.map((item) => (
|
|
485
|
+
<article key={item.question} className="py-4">
|
|
486
|
+
<h3 className="text-base font-semibold text-[#111111]">{item.question}</h3>
|
|
487
|
+
<p className="mt-2 text-sm leading-6 text-[#555555]">{item.answer}</p>
|
|
488
|
+
</article>
|
|
489
|
+
))}
|
|
490
|
+
</div>
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/** Numbered use-case cards. */
|
|
495
|
+
export function ToolNumberedUseCaseGrid({ items }: { items: readonly string[] }) {
|
|
496
|
+
return (
|
|
497
|
+
<div className="grid gap-4 md:grid-cols-3">
|
|
498
|
+
{items.map((item, index) => (
|
|
499
|
+
<article
|
|
500
|
+
key={item}
|
|
501
|
+
className="rounded-[1.25rem] border border-[#D8D4CA] bg-white p-5 shadow-[0_12px_28px_rgba(17,17,17,0.05)]"
|
|
502
|
+
>
|
|
503
|
+
<span className="flex size-9 items-center justify-center rounded-full bg-[#F7F6F2] text-sm font-semibold text-[#111111]">
|
|
504
|
+
{String(index + 1).padStart(2, "0")}
|
|
505
|
+
</span>
|
|
506
|
+
<p className="mt-4 text-sm leading-6 text-[#3D3D3D]">{item}</p>
|
|
507
|
+
</article>
|
|
508
|
+
))}
|
|
509
|
+
</div>
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export function ToolBoundaryAside({
|
|
514
|
+
title,
|
|
515
|
+
items,
|
|
516
|
+
body,
|
|
517
|
+
}: {
|
|
518
|
+
title: string;
|
|
519
|
+
items?: readonly string[];
|
|
520
|
+
body?: string;
|
|
521
|
+
}) {
|
|
522
|
+
return (
|
|
523
|
+
<aside className="rounded-[1.5rem] border border-[#D8D4CA] bg-white p-5 shadow-[0_18px_46px_rgba(17,17,17,0.06)] md:p-6">
|
|
524
|
+
<p className="text-xs font-semibold uppercase tracking-[0.08em] text-[#777777]">
|
|
525
|
+
{title}
|
|
526
|
+
</p>
|
|
527
|
+
{body ? <p className="mt-3 text-sm leading-6 text-[#555555]">{body}</p> : null}
|
|
528
|
+
{items ? (
|
|
529
|
+
<ul className="mt-5 grid gap-4">
|
|
530
|
+
{items.map((item) => (
|
|
531
|
+
<li key={item} className="flex gap-3 text-sm leading-6 text-[#555555]">
|
|
532
|
+
<span className="mt-2 size-2 shrink-0 rounded-full bg-[#111111]" />
|
|
533
|
+
<span>{item}</span>
|
|
534
|
+
</li>
|
|
535
|
+
))}
|
|
536
|
+
</ul>
|
|
537
|
+
) : null}
|
|
538
|
+
</aside>
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
export type ToolCodeGuideItem = {
|
|
543
|
+
title: string;
|
|
544
|
+
body: string;
|
|
545
|
+
code: string;
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
export function ToolCodeGuidesSection({
|
|
549
|
+
eyebrow = "Implementation",
|
|
550
|
+
heading,
|
|
551
|
+
intro,
|
|
552
|
+
items,
|
|
553
|
+
}: {
|
|
554
|
+
eyebrow?: string;
|
|
555
|
+
heading: string;
|
|
556
|
+
intro: string;
|
|
557
|
+
items: readonly ToolCodeGuideItem[];
|
|
558
|
+
}) {
|
|
559
|
+
return (
|
|
560
|
+
<section className="border-t border-[#E1DDD3] py-14 md:py-16">
|
|
561
|
+
<div className="max-w-3xl">
|
|
562
|
+
<ToolSectionEyebrow tone="coral">{eyebrow}</ToolSectionEyebrow>
|
|
563
|
+
<h2 className="mt-3 text-3xl font-semibold leading-tight text-[#111111] md:text-4xl">
|
|
564
|
+
{heading}
|
|
565
|
+
</h2>
|
|
566
|
+
<p className="mt-4 text-base leading-7 text-[#555555]">{intro}</p>
|
|
567
|
+
</div>
|
|
568
|
+
<div className="mt-8 grid gap-4 lg:grid-cols-2">
|
|
569
|
+
{items.map((item) => (
|
|
570
|
+
<article
|
|
571
|
+
key={item.title}
|
|
572
|
+
className="overflow-hidden rounded-[1.25rem] border border-[#D8D4CA] bg-white shadow-[0_12px_28px_rgba(17,17,17,0.05)]"
|
|
573
|
+
>
|
|
574
|
+
<div className="p-5">
|
|
575
|
+
<h3 className="text-lg font-semibold text-[#111111]">{item.title}</h3>
|
|
576
|
+
<p className="mt-2 text-sm leading-6 text-[#555555]">{item.body}</p>
|
|
577
|
+
</div>
|
|
578
|
+
<pre className="overflow-x-auto bg-[#111111] p-5 text-xs leading-6 text-white">
|
|
579
|
+
<code>{item.code}</code>
|
|
580
|
+
</pre>
|
|
581
|
+
</article>
|
|
582
|
+
))}
|
|
583
|
+
</div>
|
|
584
|
+
</section>
|
|
585
|
+
);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/** Split section with eyebrow + border-left card items + visual slot. */
|
|
589
|
+
export function ToolSplitCardSection({
|
|
590
|
+
eyebrow,
|
|
591
|
+
heading,
|
|
592
|
+
items,
|
|
593
|
+
visual,
|
|
594
|
+
reverse = false,
|
|
595
|
+
eyebrowTone = "coral",
|
|
596
|
+
}: {
|
|
597
|
+
eyebrow: string;
|
|
598
|
+
heading: string;
|
|
599
|
+
items: readonly ToolTextCard[];
|
|
600
|
+
visual: ReactNode;
|
|
601
|
+
reverse?: boolean;
|
|
602
|
+
eyebrowTone?: "default" | "coral" | "blue";
|
|
603
|
+
}) {
|
|
604
|
+
return (
|
|
605
|
+
<section className="grid gap-8 border-t border-[#E1DDD3] py-14 md:grid-cols-2 md:items-center md:py-16">
|
|
606
|
+
<div className={reverse ? "md:order-2" : ""}>
|
|
607
|
+
<ToolSectionEyebrow tone={eyebrowTone}>{eyebrow}</ToolSectionEyebrow>
|
|
608
|
+
<h2 className="mt-3 text-3xl font-semibold leading-tight text-[#111111] md:text-4xl">
|
|
609
|
+
{heading}
|
|
610
|
+
</h2>
|
|
611
|
+
<div className="mt-6 grid gap-4">
|
|
612
|
+
{items.map((item) => (
|
|
613
|
+
<article key={item.title} className="border-l-2 border-[#111111] pl-4">
|
|
614
|
+
<h3 className="text-base font-semibold text-[#111111]">{item.title}</h3>
|
|
615
|
+
<p className="mt-2 text-sm leading-6 text-[#555555]">{item.body}</p>
|
|
616
|
+
</article>
|
|
617
|
+
))}
|
|
618
|
+
</div>
|
|
619
|
+
</div>
|
|
620
|
+
<div className={reverse ? "md:order-1" : ""}>{visual}</div>
|
|
621
|
+
</section>
|
|
622
|
+
);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export function ToolPlaceholderLogoSection({
|
|
626
|
+
eyebrow = "Community",
|
|
627
|
+
heading,
|
|
628
|
+
intro,
|
|
629
|
+
items,
|
|
630
|
+
}: {
|
|
631
|
+
eyebrow?: string;
|
|
632
|
+
heading: string;
|
|
633
|
+
intro: string;
|
|
634
|
+
items: readonly string[];
|
|
635
|
+
}) {
|
|
636
|
+
return (
|
|
637
|
+
<section className="border-t border-[#E1DDD3] py-14 md:py-16">
|
|
638
|
+
<div className="grid gap-8 rounded-[1.25rem] border border-[#D8D4CA] bg-white p-6 md:grid-cols-[0.8fr_1.2fr] md:p-8">
|
|
639
|
+
<div>
|
|
640
|
+
<ToolSectionEyebrow tone="coral">{eyebrow}</ToolSectionEyebrow>
|
|
641
|
+
<h2 className="mt-3 text-3xl font-semibold leading-tight text-[#111111] md:text-4xl">
|
|
642
|
+
{heading}
|
|
643
|
+
</h2>
|
|
644
|
+
<p className="mt-4 text-base leading-7 text-[#555555]">{intro}</p>
|
|
645
|
+
</div>
|
|
646
|
+
<div className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
|
|
647
|
+
{items.map((item) => (
|
|
648
|
+
<div
|
|
649
|
+
key={item}
|
|
650
|
+
className="flex h-24 items-center justify-center rounded-[1rem] border border-dashed border-[#D8D4CA] bg-[#FAFAFA] px-4 text-center text-sm font-semibold text-[#555555]"
|
|
651
|
+
>
|
|
652
|
+
{item}
|
|
653
|
+
</div>
|
|
654
|
+
))}
|
|
655
|
+
</div>
|
|
656
|
+
</div>
|
|
657
|
+
</section>
|
|
658
|
+
);
|
|
659
|
+
}
|