-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: first pass at a plans page (#8)
Just get the embed working. Not super happy about how this behaves in a responsive context, but a good start.
- Loading branch information
Showing
4 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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,2 @@ | ||
NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1NzhdvF6A5ufQX5vKNZuRhie | ||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_51LO87hF6A5ufQX5viNsPTbuErzfavdrEFoBuaJJPfoIhzQXdOUdefwL70YewaXA32ZrSRbK4U4fqebC7SVtyeNcz00qmgNgueC |
This file contains 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 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,11 @@ | ||
import Plans from '@/components/Plans' | ||
export default function PlansComponent () { | ||
return ( | ||
<div className='flex flex-col items-center'> | ||
<h1 className='text-4xl'>Plans</h1> | ||
<div className='w-full overflow-x-scroll'> | ||
<Plans /> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains 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,15 @@ | ||
import { createElement } from 'react' | ||
import Script from 'next/script' | ||
|
||
export default function Plans({className=''}) { | ||
return ( | ||
<> | ||
<Script async src="https://js.stripe.com/v3/pricing-table.js" /> | ||
{createElement('stripe-pricing-table', { | ||
'pricing-table-id': process.env.NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID, | ||
'publishable-key': process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY, | ||
className | ||
}, '')} | ||
</> | ||
) | ||
} |