diff --git a/apps/docs/app/blog/layout.tsx b/apps/docs/app/blog/layout.tsx index 81b173e1f0..a105d13a2c 100644 --- a/apps/docs/app/blog/layout.tsx +++ b/apps/docs/app/blog/layout.tsx @@ -16,13 +16,21 @@ export default function DocsLayout({children}: DocsLayoutProps) { aria-hidden="true" className="fixed hidden dark:md:block dark:opacity-70 -bottom-[40%] -left-[20%] z-0" > - docs left background + docs left background diff --git a/apps/docs/app/docs/layout.tsx b/apps/docs/app/docs/layout.tsx index 9ed37fa8ab..1f527d98df 100644 --- a/apps/docs/app/docs/layout.tsx +++ b/apps/docs/app/docs/layout.tsx @@ -21,15 +21,23 @@ export default function DocsLayout({children}: DocsLayoutProps) { diff --git a/apps/docs/app/figma/page.tsx b/apps/docs/app/figma/page.tsx index 95217bdfbb..0a1043de81 100644 --- a/apps/docs/app/figma/page.tsx +++ b/apps/docs/app/figma/page.tsx @@ -36,13 +36,21 @@ export default function FigmaPage() { aria-hidden="true" className="fixed hidden dark:md:block dark:opacity-70 -bottom-[40%] -left-[20%] z-0" > - docs left background + docs left background diff --git a/apps/docs/app/page.tsx b/apps/docs/app/page.tsx index d14b899a21..7477c05c2c 100644 --- a/apps/docs/app/page.tsx +++ b/apps/docs/app/page.tsx @@ -13,7 +13,7 @@ import {Community} from "@/components/marketing/community"; import Support from "@/components/marketing/support"; import landingContent from "@/content/landing"; import {Sponsors} from "@/components/marketing/sponsors"; -import {NextUIProSection} from "@/components/marketing/nextui-pro-section"; +import {NextUIProSection} from "@/components/marketing/nextui-pro-section/nextui-pro-section"; export default async function Home() { return ( diff --git a/apps/docs/components/marketing/marquee.tsx b/apps/docs/components/marketing/marquee.tsx index dc4ed47f78..fc01c979d4 100644 --- a/apps/docs/components/marketing/marquee.tsx +++ b/apps/docs/components/marketing/marquee.tsx @@ -9,6 +9,7 @@ import {cn} from "@nextui-org/react"; interface MarqueeProps { className?: string; + wrapperClassName?: string; reverse?: boolean; shadow?: boolean; duration?: number; @@ -20,6 +21,7 @@ interface MarqueeProps { export const Marquee = ({ className, + wrapperClassName, reverse, duration = 40, shadow = false, @@ -59,14 +61,18 @@ export const Marquee = ({ }} >
{Children.map(children, (child) => child && typeof child === "object" && "type" in child ? cloneElement(child) : child, diff --git a/apps/docs/components/marketing/nextui-pro-section.tsx b/apps/docs/components/marketing/nextui-pro-section.tsx deleted file mode 100644 index 0563046d73..0000000000 --- a/apps/docs/components/marketing/nextui-pro-section.tsx +++ /dev/null @@ -1,182 +0,0 @@ -"use client"; - -import {Button, Chip} from "@nextui-org/react"; -import {useEffect, useState} from "react"; -import {useTheme} from "next-themes"; - -import {sectionWrapper, title, titleWrapper, subtitle} from "../primitives"; - -import Marquee from "./marquee"; - -import {useIsMobile} from "@/hooks/use-media-query"; - -export const NextUIProSection = () => { - const [mounted, setMounted] = useState(false); - - useEffect(() => { - setMounted(true); - }, []); - - const isMobile = useIsMobile(); - const {theme} = useTheme(); - const isDarkMode = theme === "dark"; - - let imgSrc: string; - - if (isDarkMode) { - imgSrc = isMobile - ? "/images/nextuipro-section-background@mobile.webp" - : "/images/nextuipro-section-background.webp"; - } else { - imgSrc = isMobile - ? "/images/nextuipro-section-background-light@mobile.webp" - : "/images/nextuipro-section-background-light.webp"; - } - - const mobileClassName: string = isDarkMode - ? "h-full w-full bg-[radial-gradient(at_40%_80%,_rgba(255,255,255,_0)_5%,_rgba(0,0,0,_0.8)_50%,_rgba(0,0,0,1)_100%)]" - : "h-full w-full bg-[radial-gradient(at_40%_80%,_rgba(0,0,0,_0)_5%,_rgba(255,255,255,_0.8)_50%,_rgba(255,255,255,1)_100%)]"; - - const webClassName: string = isDarkMode - ? "h-full w-full bg-[radial-gradient(at_80%_50%,_rgba(255,255,255,_0)_20%,_rgba(0,0,0,_0.8)_40%,_rgba(0,0,0,1)_100%)]" - : "h-full w-full bg-[radial-gradient(at_80%_50%,_rgba(0,0,0,_0)_20%,_rgba(255,255,255,_0.9)_40%,_rgba(255,255,255,1)_100%)]"; - - if (!mounted) return null; - - const CheckmarkIcon = () => ( - - - - ); - - return ( -
-
-
- - PRO - -
-

- Ship  -

-

- faster  -

-

- with  -

-
-

- beautiful  -

-

- components -

-
-
-

- Premade templates of over 210+ beautiful and responsive components, professionally - created by the team behind NextUI. -

-
-
- - 210+ Components -
-
- - Lifetime Access -
-
- - Free Updates -
-
- - Figma Files Included -
-
-
- -
-
-
- - Hero Background - -
-
-
- -
-
-
-
-
-
- ); -}; diff --git a/apps/docs/components/marketing/nextui-pro-section/index.ts b/apps/docs/components/marketing/nextui-pro-section/index.ts new file mode 100644 index 0000000000..20e3f8cf66 --- /dev/null +++ b/apps/docs/components/marketing/nextui-pro-section/index.ts @@ -0,0 +1 @@ +export {NextUIProSection} from "./nextui-pro-section"; diff --git a/apps/docs/components/marketing/nextui-pro-section/nextui-pro-button.tsx b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-button.tsx new file mode 100644 index 0000000000..2abaab67c8 --- /dev/null +++ b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-button.tsx @@ -0,0 +1,32 @@ +import {Button} from "@nextui-org/react"; + +export const NextUIProButton = () => ( + +); diff --git a/apps/docs/components/marketing/nextui-pro-section/nextui-pro-chip.tsx b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-chip.tsx new file mode 100644 index 0000000000..755149f205 --- /dev/null +++ b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-chip.tsx @@ -0,0 +1,14 @@ +import {Chip} from "@nextui-org/react"; + +export const NextUIProChip = () => ( + + PRO + +); diff --git a/apps/docs/components/marketing/nextui-pro-section/nextui-pro-image.tsx b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-image.tsx new file mode 100644 index 0000000000..20aec165dc --- /dev/null +++ b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-image.tsx @@ -0,0 +1,32 @@ +"use client"; + +import {useTheme} from "next-themes"; +import NextImage from "next/image"; +import {useEffect, useState} from "react"; + +export const NextUIProImage = () => { + const [mounted, setMounted] = useState(false); + const {theme} = useTheme(); + const isDarkMode = theme === "dark"; + + useEffect(() => { + setMounted(true); + }, []); + + let imgSrc = isDarkMode + ? "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/nextuipro-section-background.webp" + : "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/images/nextuipro-section-background-light.webp"; + + if (!mounted) return null; + + return ( + + ); +}; diff --git a/apps/docs/components/marketing/nextui-pro-section/nextui-pro-section.tsx b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-section.tsx new file mode 100644 index 0000000000..97c98964f9 --- /dev/null +++ b/apps/docs/components/marketing/nextui-pro-section/nextui-pro-section.tsx @@ -0,0 +1,105 @@ +import {memo} from "react"; +import clsx from "clsx"; + +import {sectionWrapper, title, titleWrapper, subtitle} from "../../primitives"; +import Marquee from "../marquee"; + +import {NextUIProButton} from "./nextui-pro-button"; +import {NextUIProChip} from "./nextui-pro-chip"; +import {NextUIProImage} from "./nextui-pro-image"; + +const CheckmarkIcon = memo(() => ( + + + +)); + +CheckmarkIcon.displayName = "CheckmarkIcon"; + +export const NextUIProSection = () => { + return ( +
+
+
+ +
+

+ Ship  +

+

+ faster  +

+

+ with  +

+
+

+ beautiful  +

+

+ components +

+
+
+

+ Premade templates of over 210+ beautiful and responsive components, professionally + created by the team behind NextUI. +

+
    +
  • + + 210+ Components +
  • +
  • + + Lifetime Access +
  • +
  • + + Free Updates +
  • +
  • + + Figma Files Included +
  • +
+
+ +
+
+
+
+ + + +
+
+
+ ); +}; diff --git a/apps/docs/config/github-info.json b/apps/docs/config/github-info.json index b779a1cf27..7b69d9f4f6 100644 --- a/apps/docs/config/github-info.json +++ b/apps/docs/config/github-info.json @@ -1,6 +1,6 @@ { - "stars": { "raw": 22226, "formatted": "22.2K" }, - "forks": 1566, - "subscribers": 83, - "openIssues": 406 + "stars": { "raw": 22380, "formatted": "22.4K" }, + "forks": 1580, + "subscribers": 85, + "openIssues": 428 } diff --git a/apps/docs/content/docs/guide/introduction.mdx b/apps/docs/content/docs/guide/introduction.mdx index 242c7f8a8c..85428bebb6 100644 --- a/apps/docs/content/docs/guide/introduction.mdx +++ b/apps/docs/content/docs/guide/introduction.mdx @@ -9,7 +9,7 @@ Welcome to the NextUI documentation!