Skip to content

Commit

Permalink
feat: add pricing section
Browse files Browse the repository at this point in the history
  • Loading branch information
dillionverma committed Mar 16, 2024
1 parent a06b781 commit 6750de3
Show file tree
Hide file tree
Showing 6 changed files with 370 additions and 30 deletions.
29 changes: 29 additions & 0 deletions components/ui/switch.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"use client"

import * as React from "react"
import * as SwitchPrimitives from "@radix-ui/react-switch"

import { cn } from "@/lib/utils"

const Switch = React.forwardRef<
React.ElementRef<typeof SwitchPrimitives.Root>,
React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
>(({ className, ...props }, ref) => (
<SwitchPrimitives.Root
className={cn(
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
className
)}
{...props}
ref={ref}
>
<SwitchPrimitives.Thumb
className={cn(
"pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
)}
/>
</SwitchPrimitives.Root>
))
Switch.displayName = SwitchPrimitives.Root.displayName

export { Switch }
28 changes: 7 additions & 21 deletions config/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,38 +104,24 @@ export const docsConfig: DocsConfig = {
label: "New",
},

// {
// title: "Pricing",
// href: `/docs/sections/pricing`,
// items: [],
// },
{
title: "Pricing",
href: `/docs/sections/pricing`,
items: [],
label: "New",
},
// {
// title: "FAQ",
// href: `/docs/sections/faq`,
// items: [],
// label: "New",
// },
{
title: "Footer",
href: `/docs/sections/footer`,
items: [],
label: "New",
},

// {
// title: "Pricing",
// href: `/docs/sections/pricing`,
// items: [],
// },
// {
// title: "FAQ",
// href: `/docs/sections/faq`,
// items: [],
// },
// {
// title: "Footer",
// href: `/docs/sections/footer`,
// items: [],
// },
],
},
{
Expand Down
8 changes: 4 additions & 4 deletions content/docs/sections/pricing.mdx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Pricing
date: 2024-02-27
date: 2024-03-15
description: These components are used to build the pricing of the website.
author: dillionverma
published: false
published: true
# video: https://cdn.magicui.design/animated-beam.mp4
---


{/* <BlockPreview name="pricing-1" />
<BlockPreview name="pricing-1" />

<BlockPreview name="pricing-2" /> */}
{/* <BlockPreview name="pricing-2" /> */}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.4",
"@react-email/body": "0.0.2",
Expand Down
44 changes: 44 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6750de3

Please sign in to comment.