Skip to content

Commit

Permalink
Website: sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Jan 8, 2024
1 parent d0f3e46 commit 8e936ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
15 changes: 10 additions & 5 deletions website/src/components/sentry/SentryCheckout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ export default function SentryCheckout({ open, setOpen, price, linkSingle, linkS
</Dialog.Title>
<div className="mt-2">
<div className="text-sm text-gray-500">
Do you want to enable automatic license renewal every year? You can
cancel it anytime.
Do you want to enable automatic license renewal every year?
</div>
<div className="mt-2 text-sm text-gray-500">
Without license renewal, you will stop receiving updates after 1
year.
</div>
<div className="mt-2 text-sm text-gray-500">
With license renewal, the license renews automatically every year so <strong>you always get the latest updates</strong>. You also get a 10% discount on the price. Renewal can be cancelled at any time.
</div>
</div>
<Switch.Group as="div" className="mt-5 flex items-center">
<Switch
Expand All @@ -73,18 +75,21 @@ export default function SentryCheckout({ open, setOpen, price, linkSingle, linkS
)}
/>
</Switch>
<Switch.Label as="span" className="ml-3 text-sm">
<Switch.Label as="span" className="ml-3 text-sm cursor-pointer">
<span className="font-medium text-gray-900">Automatic license renewal</span>{' '}
<span className="text-gray-500">(every year)</span>
</Switch.Label>
</Switch.Group>
{renewalEnabled ? (
<div className="mt-5 text-sm text-gray-500">
{price}€ per year, cancel anytime, unlimited updates
{price[1]}€ per year, cancel anytime,{" "}
<span className="text-gray-900 font-medium">
{" "}all future updates
</span>
</div>
) : (
<div className="mt-5 text-sm text-gray-500">
{price}€, one-time payment,{" "}
{price[0]} one-time payment,{" "}
<span className="text-gray-900 font-medium">
{" "}no updates after 1 year
</span>
Expand Down
19 changes: 9 additions & 10 deletions website/src/pages/sentry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useState } from 'react';

export function Sentry() {
const [openCheckout, setOpenCheckout] = useState(false);
const [checkoutPrice, setCheckoutPrice] = useState('');
const [checkoutPrice, setCheckoutPrice] = useState(['']);
const [checkoutLinkSingle, setCheckoutLinkSingle] = useState('');
const [checkoutLinkSubscription, setCheckoutLinkSubscription] = useState('');

Expand All @@ -34,13 +34,12 @@ export function Sentry() {
id: 'single-license',
linkSingle: 'https://bref.lemonsqueezy.com/checkout/buy/cfb8de93-1f0e-41fa-868b-4fa3ab68fea0',
linkSubscription: 'https://bref.lemonsqueezy.com/checkout/buy/0f4f58f4-4449-4fb9-89d6-c22b9fc41691',
price: '99',
price: ['99', '89'],
features: [
'Single project',
'Unlimited users',
'Composer package & documentation',
'Free updates for one year',
'Optional yearly license renewals',
],
featured: false,
},
Expand All @@ -49,13 +48,12 @@ export function Sentry() {
id: 'unlimited-license',
linkSingle: 'https://bref.lemonsqueezy.com/checkout/buy/e9d8ed0f-f0af-44e3-9718-742ac90e1e51',
linkSubscription: 'https://bref.lemonsqueezy.com/checkout/buy/0792799d-c2e8-402a-96d4-409bf4a6f04d',
price: '299',
price: ['279', '249'],
features: [
'Unlimited projects',
'Unlimited users',
'Composer package & documentation',
'Free updates for one year',
'Optional yearly license renewals',
'Email support',
],
featured: true,
Expand Down Expand Up @@ -92,7 +90,7 @@ export function Sentry() {
},
{
question: 'What is a considered a "project"?',
answer: 'You can use a single project license on a single "service" or "application" (for example a Laravel or a Symfony project), regardless if you deploy it in multiple environments (like "dev", "staging", "production"…) or if you deploy multiple AWS Lambda functions in that application. However, if you deploy multiple applications, multiple services, or deploy the same application for multiple customers (aka multi-tenant), you need an "Unlimited" license (or a license for each application).',
answer: 'You can use a "Single Project" license on one "service" or "application" (for example a Laravel or a Symfony project). If one application is deployed to multiple environments (like "dev", "staging", "production"…), it counts as a single project (non-production environments are ignored). If one application contains multiple AWS Lambda functions, it still counts as a single project. <br/> However, if you deploy multiple applications, multiple services (e.g. with <strong>microservices</strong>), or deploy the same application for multiple customers (aka multi-tenant) or to multiple regions, you need an "Unlimited" license (or a license for each application).',
},
{
question: 'Do I get invoices?',
Expand All @@ -104,15 +102,15 @@ export function Sentry() {
},
{
question: 'Can I use an unlimited license for all of my client projects?',
answer: 'Not exactly. An unlimited license provides you unlimited access to Nova for all of your projects, but it doesn\'t mean your client is also allowed to use your license. Your clients will need their own license to use Nova for their projects.',
answer: 'Not exactly. An unlimited license provides you unlimited access for all of <em>your</em> projects, but it doesn\'t mean your client is also allowed to use your license. Your clients will need their own license to use the Sentry integration for their projects.',
},
{
question: 'Are there any bulk pricing options?',
answer: 'That is possible, please get in touch.',
},
{
question: 'What are the terms of service?',
answer: 'Please follow this link to read the <a href="/sentry/terms" class="link">Terms of service</a> for the Sentry integration.',
answer: 'Please follow the following link to read the <a href="/sentry/terms" class="link">Terms of service</a> for the Sentry integration.',
},
];

Expand Down Expand Up @@ -192,7 +190,7 @@ export function Sentry() {
</div>
<div className="mx-auto mt-6 max-w-2xl text-center text-lg leading-8 text-gray-600">
The license is a <strong>one-time purchase</strong> and includes free updates for a year.
You can optionally enable license renewals to receive all future updates.
If you prefer to get all future updates, you can enable automatic license renewals.
</div>
<div className="mx-auto mt-16 grid max-w-lg grid-cols-1 items-center gap-y-6 sm:mt-20 sm:gap-y-0 lg:max-w-4xl lg:grid-cols-2">
{tiers.map((tier, tierIdx) => (
Expand All @@ -212,7 +210,7 @@ export function Sentry() {
{tier.name}
</h3>
<div className="mt-4 flex items-baseline gap-x-2">
<span className="text-5xl font-bold tracking-tight text-gray-900">{tier.price}€</span>
<span className="text-5xl font-bold tracking-tight text-gray-900">{tier.price[0]}€</span>
<span className="text-xs text-gray-500">one-time payment</span>
</div>
<ul role="list" className="mt-8 space-y-3 text-sm leading-6 text-gray-600 sm:mt-10">
Expand All @@ -222,6 +220,7 @@ export function Sentry() {
{feature}
</li>
))}
<li>10% discount with yearly license renewal enabled</li>
</ul>
<button
type="button"
Expand Down

0 comments on commit 8e936ea

Please sign in to comment.