Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakkarrr committed Jan 9, 2024
1 parent 2326c1e commit 762bbcb
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 54 deletions.
6 changes: 3 additions & 3 deletions components/FreeCounter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const FreeCounter: React.FC<FreeCounterProps> = ({
<div className='px-3'>
<Card className='border-0 bg-white/10'>
<CardContent className='py-6'>
<div className='mb-4 space-y-2 text-center text-sm text-white'>
<div className='mb-4 space-y-2 text-sm text-center text-white'>
<p>
{apiLimit} / {MAX_FREE_COUNTS} Free Generations
</p>
Expand All @@ -41,11 +41,11 @@ const FreeCounter: React.FC<FreeCounterProps> = ({
</div>
<Button
onClick={proModal.onOpen}
variant='premium'
variant='default'
className='w-full'
>
Upgrade
<Zap className='ml-2 h-4 w-4 fill-white' />
<Zap className='w-4 h-4 ml-2 fill-white' />
</Button>
</CardContent>
</Card>
Expand Down
8 changes: 4 additions & 4 deletions components/LandingHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const LandingHero = () => {
const { isSignedIn } = useAuth();

return (
<div className='space-y-5 py-36 text-center font-bold text-white'>
<div className='space-y-5 font-bold text-center text-white py-36'>
<div className='space-y-5 text-4xl font-extrabold md:text-6xl lg:text-7xl'>
<h1>D-prompt AI Generative for</h1>
<div className='text-md bg-gradient-to-r from-[#9076fc] to-[#61cfeb] bg-clip-text text-transparent'>
Expand Down Expand Up @@ -38,17 +38,17 @@ const LandingHero = () => {
<Link href={isSignedIn ? '/dashboard' : '/sign-up'}>
<Button
variant='premium'
className='rounded-full p-4 md:p-6 md:text-lg'
className='p-4 rounded-full md:p-6 md:text-lg'
>
Start Generating For Free
</Button>
</Link>
</div>
<div className='text-xm font-normal text-zinc-400 md:text-sm'>
<div className='font-normal text-xm text-zinc-400 md:text-sm'>
Developed by &nbsp;
<Link
href='https://github.com/Drakkarrr'
className='tracking-wider text-slate-200 underline'
className='tracking-wider underline text-slate-200'
>
Drakkar
</Link>
Expand Down
12 changes: 6 additions & 6 deletions components/ProModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ const ProModal = () => {
<Dialog open={proModal.isOpen} onOpenChange={proModal.onClose}>
<DialogContent>
<DialogHeader>
<DialogTitle className='flex flex-col items-center justify-center gap-y-4 pb-2'>
<div className='flex items-center gap-x-2 text-xl font-bold'>
<DialogTitle className='flex flex-col items-center justify-center pb-2 gap-y-4'>
<div className='flex items-center text-xl font-bold gap-x-2'>
Upgrade to D-prompt
<Badge variant='default' className='py-1 text-sm uppercase'>
pro
</Badge>
</div>
</DialogTitle>
<DialogDescription className='space-y-2 pt-2 text-center font-medium'>
<DialogDescription className='pt-2 space-y-2 font-medium text-center'>
{tools.map((tool) => (
<Card
key={tool.href}
Expand All @@ -61,7 +61,7 @@ const ProModal = () => {
</div>
<div className='text-sm font-semibold'>{tool.label}</div>
</div>
<Check className='h-5 w-5 text-primary' />
<Check className='w-5 h-5 text-primary' />
</Card>
))}
</DialogDescription>
Expand All @@ -71,11 +71,11 @@ const ProModal = () => {
disabled={loading}
onClick={onSubscribe}
size='lg'
variant='premium'
variant='default'
className='w-full'
>
Upgrade to Pro
<Zap className='ml-2 h-4 w-4 fill-white' />
<Zap className='w-4 h-4 ml-2 fill-white' />
</Button>
</DialogFooter>
</DialogContent>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"*.ts": "stylelint --fix"
},
"dependencies": {
"@clerk/nextjs": "^4.21.15",
"@clerk/nextjs": "^4.29.2",
"@hookform/resolvers": "^3.1.1",
"@prisma/client": "^5.0.0",
"@radix-ui/react-avatar": "^1.0.3",
Expand Down
84 changes: 44 additions & 40 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,13 @@
"@babel/helper-validator-identifier" "^7.22.5"
to-fast-properties "^2.0.0"

"@clerk/backend@^0.26.0":
version "0.26.0"
resolved "https://registry.yarnpkg.com/@clerk/backend/-/backend-0.26.0.tgz#9c3980710b43e5f6cac46e5f8bb8025193516c60"
integrity sha512-lFDKVqx2soDvKpynZRtRzb1mg4peE5O5I5H7XIgaGhcchOVPrv+IYR0+rTwlSZkep4xCG12dPIKW+Bjtp6QLKw==
"@clerk/backend@0.37.1":
version "0.37.1"
resolved "https://registry.yarnpkg.com/@clerk/backend/-/backend-0.37.1.tgz#4a784ab8a0250ffe19527b3355b959fd62b2c261"
integrity sha512-+KNdl2QtAHGRe5DQSGNJ8FCPFWhG8+HnVw5gHtojCxvTgxvOVUaxDqzytYl2qDd2zjzBDiNqwTd7J+5sEXRdkg==
dependencies:
"@clerk/types" "^3.48.1"
"@clerk/shared" "1.3.1"
"@clerk/types" "3.60.0"
"@peculiar/webcrypto" "1.4.1"
"@types/node" "16.18.6"
cookie "0.5.0"
Expand All @@ -298,55 +299,56 @@
snakecase-keys "5.4.4"
tslib "2.4.1"

"@clerk/clerk-react@^4.23.1":
version "4.23.1"
resolved "https://registry.yarnpkg.com/@clerk/clerk-react/-/clerk-react-4.23.1.tgz#06fb0951990f8942d0a3121170c9989e67c92efa"
integrity sha512-X0h7I2aPxc3cY7f5ZOaUrrgYjYXSOWbWOCyNuF4rZeW1L6ED8mZEFpQV4+EluUgAomxgGrt8kdMIyMwSsGw3Tg==
"@clerk/clerk-react@4.30.3":
version "4.30.3"
resolved "https://registry.yarnpkg.com/@clerk/clerk-react/-/clerk-react-4.30.3.tgz#5b2fcbd773a8cbe4e1dfa3eafa1c878b3d45102f"
integrity sha512-bX4fUxGXUrMl8A50TpeUM8PHFKbMHmt7UfJ/NnUQMBN54h9N/NF2eSE2omY1+lDxBJmh/V9EiJZV8S6MwDflzw==
dependencies:
"@clerk/shared" "^0.20.0"
"@clerk/types" "^3.48.1"
swr "1.3.0"
"@clerk/shared" "1.3.1"
"@clerk/types" "3.60.0"
tslib "2.4.1"

"@clerk/clerk-sdk-node@^4.12.1":
version "4.12.1"
resolved "https://registry.yarnpkg.com/@clerk/clerk-sdk-node/-/clerk-sdk-node-4.12.1.tgz#eb7e4c0aa33f518c49ebc396f8e9b7d93ab302c5"
integrity sha512-KR8L0zX9YWms8ScZPXLfBmEHYxFWuI+JeXJ/UtYhTP5qu2LBoAOBbZI0zsYPwTKE2L/1i2Gga6m3whmVAJfmzg==
"@clerk/clerk-sdk-node@4.13.5":
version "4.13.5"
resolved "https://registry.yarnpkg.com/@clerk/clerk-sdk-node/-/clerk-sdk-node-4.13.5.tgz#c3f4be1fd64bf6923831164417f080211e695948"
integrity sha512-Qwf8Q8MXbLM25/kQQqK5TC06DrFsSHFGed61tRr2sLIC/7DedC4+VC7XE+qLIQvFNvjJp8USl3EUZXLn1cAjiA==
dependencies:
"@clerk/backend" "^0.26.0"
"@clerk/types" "^3.48.1"
"@clerk/backend" "0.37.1"
"@clerk/shared" "1.3.1"
"@clerk/types" "3.60.0"
"@types/cookies" "0.7.7"
"@types/express" "4.17.14"
"@types/node-fetch" "2.6.2"
camelcase-keys "6.2.2"
snakecase-keys "3.2.1"
tslib "2.4.1"

"@clerk/nextjs@^4.21.15":
version "4.23.1"
resolved "https://registry.yarnpkg.com/@clerk/nextjs/-/nextjs-4.23.1.tgz#bd1ec57dd311f5e6d9bfe6b8945e68019ebdd886"
integrity sha512-r7lSisqvUvyvlakn69AN+3EDBgIuEQQBR7Hn/MR71UT7zfKvdsRCyTENsj+rxDgfb8a4guiytDJGk1lOewLLvQ==
"@clerk/nextjs@^4.29.2":
version "4.29.2"
resolved "https://registry.yarnpkg.com/@clerk/nextjs/-/nextjs-4.29.2.tgz#3f06a1b45161958b2c984078e9da47613b3a05f1"
integrity sha512-iFDTpB2EuWsbRHOgkq8HAc7jHNbYbC/KfNRdLhqboR0RlJHx0+ryoBPTrBnZr5O3WKns2RjbWgQuMH6lh4IpXA==
dependencies:
"@clerk/backend" "^0.26.0"
"@clerk/clerk-react" "^4.23.1"
"@clerk/clerk-sdk-node" "^4.12.1"
"@clerk/types" "^3.48.1"
"@clerk/backend" "0.37.1"
"@clerk/clerk-react" "4.30.3"
"@clerk/clerk-sdk-node" "4.13.5"
"@clerk/shared" "1.3.1"
"@clerk/types" "3.60.0"
path-to-regexp "6.2.1"
tslib "2.4.1"

"@clerk/shared@^0.20.0":
version "0.20.0"
resolved "https://registry.yarnpkg.com/@clerk/shared/-/shared-0.20.0.tgz#645a0299e37a485de22870b0675c50bd762b8864"
integrity sha512-VbJZQ3DwF35qPNTa1u2r/UO0vEfk4Gzf8dzbbma6fLPRILAFovQGYb5Cwvmef+Qj7S0XPpOlW1lSYHBHL326gQ==
"@clerk/shared@1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@clerk/shared/-/shared-1.3.1.tgz#e29175245baecd294c5314ac283d6c457ce3136f"
integrity sha512-nzv4+uA90I/eQp55zfK9a1Po9VgCYlzlNhuZnKqyRsPyJ38l4gpIf3B3qSHHdN0+MTx9cWGFrik1CnpftdOBXQ==
dependencies:
glob-to-regexp "0.4.1"
js-cookie "3.0.1"
swr "1.3.0"
swr "2.2.0"

"@clerk/types@^3.48.1":
version "3.48.1"
resolved "https://registry.yarnpkg.com/@clerk/types/-/types-3.48.1.tgz#bfcc21d5b3e00789965098cc887cb12621e159a2"
integrity sha512-bpSSfqdrw4iYCLlJ8UVN8HWMkA12wOH0lICdjnefPKKm1qO3yb8P5p6jmaCckcwF77unMECAslO2q2ocZcO1QA==
"@clerk/types@3.60.0":
version "3.60.0"
resolved "https://registry.yarnpkg.com/@clerk/types/-/types-3.60.0.tgz#d0d369f5cb4558127e279f994057a616a6b4dab0"
integrity sha512-f1A16wFh5MtikxEo7o6vAVX7FxpqC1YmzA6c4ugwq5MH8J2mvIM/LwNVIHgNpZkn/s/G+BUhBcJJmUXqajDK2Q==
dependencies:
csstype "3.1.1"

Expand Down Expand Up @@ -4458,10 +4460,12 @@ supports-preserve-symlinks-flag@^1.0.0:
resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==

swr@1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/swr/-/swr-1.3.0.tgz#c6531866a35b4db37b38b72c45a63171faf9f4e8"
integrity sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw==
swr@2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/swr/-/swr-2.2.0.tgz#575c6ac1bec087847f4c86a39ccbc0043c834d6a"
integrity sha512-AjqHOv2lAhkuUdIiBu9xbuettzAzWXmCEcLONNKJRba87WAefz8Ca9d6ds/SzrPc235n1IxWYdhJ2zF3MNUaoQ==
dependencies:
use-sync-external-store "^1.2.0"

synckit@^0.8.5:
version "0.8.5"
Expand Down Expand Up @@ -4808,7 +4812,7 @@ use-sidecar@^1.1.2:
detect-node-es "^1.1.0"
tslib "^2.0.0"

use-sync-external-store@1.2.0:
use-sync-external-store@1.2.0, use-sync-external-store@^1.2.0:
version "1.2.0"
resolved "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz"
integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==
Expand Down

0 comments on commit 762bbcb

Please sign in to comment.