Skip to content

Commit

Permalink
implement premium button
Browse files Browse the repository at this point in the history
  • Loading branch information
dallen4 committed Aug 1, 2023
1 parent 0f87bfb commit 2e887b0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions web/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { GRAB_PATH } from '@config/paths';
import { Faq } from 'molecules/Faq';
import { useMediaQuery } from '@mantine/hooks';

const paymentLink = process.env.NEXT_PUBLIC_STRIPE_LIFETIME_LICENSE_LINK!;

const Home = () => {
const router = useRouter();
const theme = useMantineTheme();
Expand Down Expand Up @@ -88,6 +90,18 @@ const Home = () => {
</Card>
</Center>
<Faq />
<Center
style={{
minHeight: '230px',
paddingTop: theme.spacing.xl,
paddingBottom: theme.spacing.md,
}}
>
<Button
onClick={() => (window.location.href = paymentLink)}
type={'button'}
>Get Premium</Button>
</Center>
</>
);
};
Expand Down

0 comments on commit 2e887b0

Please sign in to comment.