From 4abf68a847393b221bdde72453daddc59fbfa416 Mon Sep 17 00:00:00 2001 From: Saidev Dhal Date: Wed, 13 Nov 2024 18:14:56 +0530 Subject: [PATCH 1/2] add auth page --- apps/www/app/(routes)/layout.tsx | 4 +- apps/www/app/(routes)/page.tsx | 6 +- apps/www/app/(routes)/pricing/page.tsx | 11 +- apps/www/app/auth/page.tsx | 166 +++++++++ apps/www/app/layout.tsx | 2 +- apps/www/components/custom/navbar/navbar.tsx | 2 +- .../custom/pricing/pricing.cards.tsx | 346 +++++++++--------- apps/www/components/custom/site/footer.tsx | 2 +- apps/www/components/ui/iphone-15-pro.tsx | 95 +++++ apps/www/components/ui/meteors.tsx | 44 +++ apps/www/components/ui/tabs.tsx | 55 +++ apps/www/config/pricing.config.ts | 105 +++--- apps/www/package.json | 2 + apps/www/tailwind.config.ts | 14 + pnpm-lock.yaml | 6 + 15 files changed, 630 insertions(+), 230 deletions(-) create mode 100644 apps/www/app/auth/page.tsx create mode 100644 apps/www/components/ui/iphone-15-pro.tsx create mode 100644 apps/www/components/ui/meteors.tsx create mode 100644 apps/www/components/ui/tabs.tsx diff --git a/apps/www/app/(routes)/layout.tsx b/apps/www/app/(routes)/layout.tsx index 6425796..ce76d2f 100644 --- a/apps/www/app/(routes)/layout.tsx +++ b/apps/www/app/(routes)/layout.tsx @@ -7,9 +7,9 @@ interface AppLayoutProps { export default function AppLayout({ children }: AppLayoutProps) { return ( -
+
-
{children}
+
{children}
); diff --git a/apps/www/app/(routes)/page.tsx b/apps/www/app/(routes)/page.tsx index adc0281..6b4e954 100644 --- a/apps/www/app/(routes)/page.tsx +++ b/apps/www/app/(routes)/page.tsx @@ -12,7 +12,7 @@ import Link from "next/link"; export default function Home() { return ( -
+
{/* */} @@ -26,10 +26,10 @@ export default function Home() { - + Get Premium For $15 diff --git a/apps/www/app/(routes)/pricing/page.tsx b/apps/www/app/(routes)/pricing/page.tsx index 9d78e7a..ebdc5ac 100644 --- a/apps/www/app/(routes)/pricing/page.tsx +++ b/apps/www/app/(routes)/pricing/page.tsx @@ -7,17 +7,18 @@ import PricingCards from "@/components/custom/pricing/pricing.cards"; export default function Pricing() { return ( -
+

- Get instant access to all components and templates + Get instant access to all components and templates

- For a one-time payment, you get access to all components and templates, including future updates and new templates. + For a one-time payment, you get access to all components and + templates, including future updates and new templates.
-
- +
+
); diff --git a/apps/www/app/auth/page.tsx b/apps/www/app/auth/page.tsx new file mode 100644 index 0000000..2880312 --- /dev/null +++ b/apps/www/app/auth/page.tsx @@ -0,0 +1,166 @@ +import { Button } from "@/components/ui/button"; +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { + IconBrandGoogle, + IconBrandGithub, + IconBrandDiscord, +} from "@tabler/icons-react"; + +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; +import React from "react"; + +export default function Auth() { + return ( +
+
+ + + SignIn + SignUp + + + + + + Welcome to Plura Ai + + + SignIn to Plura and continue managing your saas! + + + +
+ + + +
+
+
+
+ + +
+ +
+ + +
+ +
+ + + + + + + + + + + + Welcome to Plura Ai + + + SignIn to Plura and continue managing your saas! + + + +
+ + + +
+
+
+
+
+ + +
+
+ + +
+
+ +
+ + +
+ +
+ + +
+
+ + +
+ +
+ + {/* + + */} + + + +
+ +
+
+ + Talk to any website using okokoa sss okokokks sssss + +
+
+ +
+
+ ); +} diff --git a/apps/www/app/layout.tsx b/apps/www/app/layout.tsx index 818e5c7..c72ae79 100644 --- a/apps/www/app/layout.tsx +++ b/apps/www/app/layout.tsx @@ -24,7 +24,7 @@ export default function RootLayout({ enableSystem disableTransitionOnChange > -
+
{children}
diff --git a/apps/www/components/custom/navbar/navbar.tsx b/apps/www/components/custom/navbar/navbar.tsx index f06a3d4..3a57c69 100644 --- a/apps/www/components/custom/navbar/navbar.tsx +++ b/apps/www/components/custom/navbar/navbar.tsx @@ -50,7 +50,7 @@ export function MainNav() { Usage - {/* Basic Plan */} - - -

{pricingCardConfig.basic.name}

-

{pricingCardConfig.basic.tier}

-
- - {/* $ */} - {pricingCardConfig.basic.price} - - {/*
+ {/* Basic Plan */} + + +

+ {pricingCardConfig.basic.name} +

+

{pricingCardConfig.basic.tier}

+
+ + {/* $ */} + {pricingCardConfig.basic.price} + + {/*
$199 35% OFF
*/} -
- - -
- -
    - {[ - "1 year access to all the premium component packs and templates", - "1 year of updates and new features", - "1 year access to new templates and components", - "Access to private discord community", - "48 hours turnaround time for support", - "Copy and paste, no complexity", - "Built with Next.js and React", - "Styled with Tailwind CSS and Framer Motion", - "Available in TypeScript and JavaScript", - "Cancel anytime", - ].map((feature, index) => ( -
  • - - {feature} -
  • - ))} -
-
- - - -
+
- {/* Lifetime Plan */} - - -
-

{pricingCardConfig.plus.name}

- Featured -
-

{pricingCardConfig.plus.tier}

+ +
+ +
    + {[ + "1 year access to all the premium component packs and templates", + "1 year of updates and new features", + "1 year access to new templates and components", + "Access to private discord community", + "48 hours turnaround time for support", + "Copy and paste, no complexity", + "Built with Next.js and React", + "Styled with Tailwind CSS and Framer Motion", + "Available in TypeScript and JavaScript", + "Cancel anytime", + ].map((feature, index) => ( +
  • + + {feature} +
  • + ))} +
+
+ + + +
-
- - {pricingCardConfig.plus.currency}{pricingCardConfig.plus.price} - -
- {pricingCardConfig.plus.currency}{pricingCardConfig.plus.beforePrice} - - {pricingCardConfig.plus.discount} - + {/* Lifetime Plan */} + + +
+

+ {pricingCardConfig.plus.name} +

+ Featured
-
- - - - -
    - {[ - "Lifetime access to all the premium component packs", - "Lifetime access to all the premium templates", - "Lifetime access to updates and new features", - "Lifetime access to new templates and components", - "Access to Figma Kit for all components and templates", - "Access to private discord community", - "Copy and paste, no complexity", - "Built with Next.js and React", - "Styled with Tailwind CSS and Framer Motion", - "Available in TypeScript and JavaScript", - "Priority support", - ].map((feature, index) => ( -
  • - - {feature} -
  • - ))} -
-
- - - - +

{pricingCardConfig.plus.tier}

- {/* Team Plan */} - - -

{pricingCardConfig.pro.name}

-

{pricingCardConfig.pro.tier}

-
- - {pricingCardConfig.pro.currency}{pricingCardConfig.pro.price} - -
- {pricingCardConfig.pro.currency}{pricingCardConfig.pro.beforePrice} - - {pricingCardConfig.pro.discount} - +
+ + + {pricingCardConfig.plus.currency} + + {pricingCardConfig.plus.price} + +
+ + {pricingCardConfig.plus.currency} + {pricingCardConfig.plus.beforePrice} + + + {pricingCardConfig.plus.discount} + +
-
- - - - -
    - {[ - "10 team members", - "Lifetime access to all the component packs and templates", - "Lifetime access to updates and new features", - "Lifetime access to new templates and components", - "Access to private discord community", - "Copy and paste, no complexity", - "Built with Next.js and React", - "Styled with Tailwind CSS and Framer Motion", - "Available in TypeScript and JavaScript", - "Priority support", - ].map((feature, index) => ( -
  • - - {feature} -
  • - ))} -
-
- - - - + + + + +
    + {[ + "Lifetime access to all the premium component packs", + "Lifetime access to all the premium templates", + "Lifetime access to updates and new features", + "Lifetime access to new templates and components", + "Access to Figma Kit for all components and templates", + "Access to private discord community", + "Copy and paste, no complexity", + "Built with Next.js and React", + "Styled with Tailwind CSS and Framer Motion", + "Available in TypeScript and JavaScript", + "Priority support", + ].map((feature, index) => ( +
  • + + {feature} +
  • + ))} +
+
+ + + + + + {/* Team Plan */} + + +

+ {pricingCardConfig.pro.name} +

+

{pricingCardConfig.pro.tier}

+
+ + + {pricingCardConfig.pro.currency} + + {pricingCardConfig.pro.price} + +
+ + {pricingCardConfig.pro.currency} + {pricingCardConfig.pro.beforePrice} + + + {pricingCardConfig.pro.discount} + +
- ) + + +
+ +
    + {[ + "10 team members", + "Lifetime access to all the component packs and templates", + "Lifetime access to updates and new features", + "Lifetime access to new templates and components", + "Access to private discord community", + "Copy and paste, no complexity", + "Built with Next.js and React", + "Styled with Tailwind CSS and Framer Motion", + "Available in TypeScript and JavaScript", + "Priority support", + ].map((feature, index) => ( +
  • + + {feature} +
  • + ))} +
+
+ + + +
+
+ ); } diff --git a/apps/www/components/custom/site/footer.tsx b/apps/www/components/custom/site/footer.tsx index c190016..498d176 100644 --- a/apps/www/components/custom/site/footer.tsx +++ b/apps/www/components/custom/site/footer.tsx @@ -1,7 +1,7 @@ export function SiteFooter() { return (