-
Notifications
You must be signed in to change notification settings - Fork 8
Hide Early Bird card on KiloClaw provisioning page #772
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
Closed
kilo-code-bot
wants to merge
1
commit into
main
from
session/agent_eb44662e-8d7a-4b25-b64a-67dec615cfcb
Closed
Changes from all commits
Commits
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 |
|---|---|---|
| @@ -1,74 +1,4 @@ | ||
| 'use client'; | ||
|
|
||
| import { useUser } from '@/hooks/useUser'; | ||
| import { PageLayout } from '@/components/PageLayout'; | ||
| import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'; | ||
| import { Button } from '@/components/ui/button'; | ||
|
|
||
| const STRIPE_PAYMENT_LINK = 'https://buy.stripe.com/00wcN64ot27OaIK0K4dAk00'; | ||
| const PROMO_CODE = 'KILOCLAWEARLYBIRD'; | ||
|
|
||
| function buildStripeUrl(email: string | undefined) { | ||
| const url = new URL(STRIPE_PAYMENT_LINK); | ||
| if (email) { | ||
| url.searchParams.set('prefilled_email', email); | ||
| } | ||
| url.searchParams.set('prefilled_promo_code', PROMO_CODE); | ||
| return url.toString(); | ||
| } | ||
|
|
||
| // Early Bird offer has been retired. | ||
| export default function EarlybirdPage() { | ||
| const { data: user } = useUser(); | ||
| const stripeUrl = buildStripeUrl(user?.google_user_email); | ||
|
|
||
| return ( | ||
| <PageLayout title=""> | ||
| <div className="flex justify-center pt-8"> | ||
| <Card className="group border-brand-primary/20 hover:border-brand-primary/40 hover:shadow-brand-primary/5 relative max-w-2xl overflow-hidden transition-all hover:shadow-lg"> | ||
| <div className="bg-brand-primary/10 group-hover:bg-brand-primary/20 absolute top-0 right-0 h-40 w-40 translate-x-10 -translate-y-10 rounded-full blur-2xl transition-all" /> | ||
| <div className="bg-brand-primary/5 group-hover:bg-brand-primary/10 absolute bottom-0 left-0 h-32 w-32 -translate-x-8 translate-y-8 rounded-full blur-2xl transition-all" /> | ||
|
|
||
| <CardHeader className="relative pb-4"> | ||
| <div className="flex items-center gap-3"> | ||
| <span className="text-3xl" role="img" aria-label="lobster"> | ||
| 🦞 | ||
| </span> | ||
| <CardTitle className="text-2xl">Presale: 50% Off for the First 1,000</CardTitle> | ||
| </div> | ||
| <span className="bg-brand-primary/15 text-brand-primary mt-2 w-fit rounded-full px-3 py-1 text-xs font-bold tracking-wide uppercase"> | ||
| Early Bird — 50% Off | ||
| </span> | ||
| </CardHeader> | ||
|
|
||
| <CardContent className="relative flex flex-col gap-4"> | ||
| <p className="text-muted-foreground leading-relaxed"> | ||
| To thank those of you who have been early adopters, we're offering the first | ||
| 1,000 users 6 months of KiloClaw compute at 50% off. That's{' '} | ||
| <span className="text-brand-primary font-semibold">$150 total</span> — works out | ||
| to <span className="text-brand-primary font-semibold">$25/month</span> instead of $49. | ||
| </p> | ||
| <p className="text-muted-foreground leading-relaxed"> | ||
| The discount applies to compute only, not inference. At $25/month for a hosted AI | ||
| agent, that's hard to beat. 🦀 | ||
| </p> | ||
| <p className="rounded-md bg-amber-500/10 px-3 py-2 text-center text-sm font-medium text-amber-600 dark:text-amber-400"> | ||
| ⚠ All early bird purchases are final. No refunds will be issued. | ||
| </p> | ||
| </CardContent> | ||
|
|
||
| <CardFooter className="relative pt-2"> | ||
| <Button | ||
| className="bg-brand-primary hover:text-brand-primary hover:ring-brand-primary w-full text-black hover:bg-black hover:ring-2" | ||
| size="lg" | ||
| asChild | ||
| > | ||
| <a href={stripeUrl} target="_blank" rel="noopener noreferrer"> | ||
| 🦞 Get the Early Bird Offer | ||
| </a> | ||
| </Button> | ||
| </CardFooter> | ||
| </Card> | ||
| </div> | ||
| </PageLayout> | ||
| ); | ||
| return null; | ||
| } | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: Returning
nullmeans users who bookmarked or were linked to/claw/earlybirdwill see a blank page. Consider redirecting to/clawinstead:(with
import { redirect } from 'next/navigation';at the top)