-
Notifications
You must be signed in to change notification settings - Fork 240
feat: cosmo signup page variants with alternate copy #2558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f45bbb2
Signup Apollo variant: alternate copy, static tile border highlight
wunderhawk 2777542
Signup copy: small text tweaks
wunderhawk a47ccbe
refactor(signup): use content map for signup features (DRY)
wunderhawk 3e8d63c
Signup copy: content tweaks
wunderhawk effc8ad
Merge branch 'main' into bjoern/cosmo-signup-page-alternates2
wunderhawk a1873e9
Merge branch 'main' into bjoern/cosmo-signup-page-alternates2
wunderhawk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| /** | ||
| * Signup page content configuration | ||
| * Defines different content variants for the signup page based on URL parameters | ||
| */ | ||
|
|
||
| export interface MarketingFeature { | ||
| icon: string; // Icon name/key to identify which icon to use | ||
| title: string; | ||
| description: string; | ||
| } | ||
|
|
||
| export interface SignupContent { | ||
| heading: string; | ||
| description: string; | ||
| marketingTitle: string; | ||
| marketingDescription: string; | ||
| features: MarketingFeature[]; | ||
| } | ||
|
|
||
| export type SignupVariant = "default" | "apollo"; | ||
|
|
||
| const signupContentMap: Record<SignupVariant, SignupContent> = { | ||
| default: { | ||
| heading: "Sign up for free", | ||
| description: "Try Cosmo as Managed Service. No card required.", | ||
| marketingTitle: "Cosmo: Open-Source\nGraphQL Federation Solution", | ||
| marketingDescription: | ||
| "Unify distributed APIs into one federated graph. Platform teams get observability and control. Service teams ship independently.", | ||
| features: [ | ||
| { | ||
| icon: "share", | ||
| title: "Federate Any API, Not Just GraphQL", | ||
| description: | ||
| "Connect REST, gRPC, and GraphQL services without rewrites. Cosmo Connect wraps existing APIs into your graph without forcing migrations.", | ||
| }, | ||
| { | ||
| icon: "magnifying-glass", | ||
| title: "Track Every Query Across Your Entire Graph", | ||
| description: | ||
| "Native OpenTelemetry tracing from gateway to subgraph. Find slow queries and failing services in seconds with zero instrumentation required.", | ||
| }, | ||
| { | ||
| icon: "shield-check", | ||
| title: "Catch Breaking Changes Before Deployment", | ||
| description: | ||
| "Schema checks run automatically in CI/CD. Service teams ship on their own schedule, while platform teams prevent breaking changes from reaching production.", | ||
| }, | ||
| { | ||
| icon: "rocket-launch", | ||
| title: "Built for Scale and Performance", | ||
| description: | ||
| "Go router with sub-millisecond overhead. Deploy with built-in caching, rate limiting, and security controls wherever your infrastructure lives.", | ||
| }, | ||
| ], | ||
| }, | ||
| apollo: { | ||
| heading: "Sign up for free", | ||
| description: "Try Cosmo managed and migrate from Apollo GraphOS in minutes. All you need is your API key.", | ||
| marketingTitle: "Migrate to Cosmo\nfrom Apollo GraphOS", | ||
| marketingDescription: | ||
| "Escape the vendor lock. 100% open source GraphQL Federation with full control. A drop-in GraphOS replacement.", | ||
| features: [ | ||
| { | ||
| icon: "code-bracket", | ||
| title: "Schema design and governance as it should be", | ||
| description: | ||
| "Get linting, breaking-change detection, schema contracts, and PR-based checks from day one. Cosmo doesn't gate governance behind tiers.", | ||
| }, | ||
| { | ||
| icon: "rocket-launch", | ||
| title: "Cosmo delivers value, not traffic bills", | ||
| description: | ||
| "Enjoy predictable, transparent pricing for what drives value in your organization, as well as world-class support. ", | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| }, | ||
| { | ||
| icon: "share", | ||
| title: "Connect legacy services without a proprietary lock-in", | ||
| description: | ||
| "Wrap REST, gRPC, SOAP and other existing APIs into your supergraph without rewriting backends. No schema changes required.", | ||
| }, | ||
| { | ||
| icon: "bolt", | ||
| title: "Build real-time event-driven subscriptions that scale", | ||
| description: | ||
| "Turn Kafka, NATS, or Redis into GraphQL subscriptions. Subgraphs stay stateless. Scale to tens of thousands of clients effortlessly.", | ||
| }, | ||
| ], | ||
| }, | ||
| }; | ||
|
|
||
| /** | ||
| * Get signup content based on the variant | ||
| * @param variant - The signup variant (from URL parameter) | ||
| * @returns The content configuration for the variant | ||
| */ | ||
| export const getSignupContent = (variant: SignupVariant = "default"): SignupContent => { | ||
| return signupContentMap[variant] || signupContentMap.default; | ||
| }; | ||
|
|
||
| /** | ||
| * Parse the 'uc' (use case) parameter from URL query | ||
| * @param ucParam - The 'uc' query parameter value | ||
| * @returns The signup variant or 'default' if not recognized | ||
| */ | ||
| export const parseSignupVariant = (ucParam?: string): SignupVariant => { | ||
| if (ucParam?.toLowerCase() === "apollo") { | ||
| return "apollo"; | ||
| } | ||
| return "default"; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.