Skip to content

Commit

Permalink
feat: tweaks from testing
Browse files Browse the repository at this point in the history
this fixes #150, #151, #152
  • Loading branch information
travis committed Dec 6, 2024
1 parent bc29a2b commit cc47a31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/app/referrals/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import CopyButton from '@/components/CopyButton'
import DefaultLoader from '@/components/Loader'
import { H1, H3 } from '@/components/Text'
import Tooltip from '@/components/Tooltip'
import { RefcodeResult, useReferrals } from '@/lib/referrals/hooks'
import { useEffect } from 'react'
import { KeyedMutator } from 'swr'
Expand Down Expand Up @@ -101,7 +102,10 @@ export function ReferralsList () {
referrals.map((referral, i) =>
<div key={i} className="flex flex-row justify-between items-center py-4">
<div>Referred Racha</div>
<div className="rounded-full bg-hot-red-light text-hot-red px-4 py-2 font-mono text-sm">In Progress</div>
<Tooltip
text={['Your referral was successful! You will receive your reward once the referred user has paid for the requisite period of time.']}>
<div className="rounded-full bg-hot-red-light text-hot-red px-4 py-2 font-mono text-sm">In Progress</div>
</Tooltip>
</div>
)
}
Expand All @@ -111,7 +115,7 @@ export function ReferralsList () {
<>
<H3>Earn Free Storage and Racha Points!</H3>
<p className='text-hot-red mb-4 max-w-lg'>
Turn your friends into Lite or Business Rachas and receive up to 16 months of Lite or
Turn your friends into Lite or Business Rachas and receive up to 16 months of Lite and
3 months of Business for free! You can also earn Racha Points.
</p>
</>
Expand Down
7 changes: 6 additions & 1 deletion src/components/PlanGate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ export function PlanGate ({ children }: { children: ReactNode }): ReactNode {
<h1 className="my-4 font-bold">Welcome, {email}!</h1>
<p className='my-4'>
Congratulations! You are eligible for a free trial of our Lite or Business subscriptions. That means
we won&apos;t charge you anything today. We do need you to provide a valid credit card before we can start your
we won&apos;t charge you anything today.
If you choose a Lite plan, you will get two months for free! If you choose Business, you will get one month for free!
We do need you to provide a valid credit card before we can start your
trial - pick a plan below and complete the checkout flow to get started!
</p>
<p className='my-4'>
Please note that after your free trial ends, you will be charged 10 USD per month for Lite or 100 USD per month for Business tier.
</p>
</div>
<StripeTrialPricingTable />
</>
Expand Down

0 comments on commit cc47a31

Please sign in to comment.