From f9ac53375e4e3a8547eccf5e425d069653e4397e Mon Sep 17 00:00:00 2001 From: Damien Schneider <74979845+damien-schneider@users.noreply.github.com> Date: Thu, 8 Aug 2024 02:11:29 +0200 Subject: [PATCH] Release v0.0.1 (#4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :bug: fix display when no Iframe * :sparkles: Improve simple cursor variants * :sparkles: improve responsive of skeleton children * :lipstick: update component height * :sparkles: Add component wrapper h-full children * :label: add prefer-desktop badge * ๐Ÿ” Add manifest, metadatas & sitemap * :sparkles: Improve home page with card preview * :fire: replace changelog by featurebase changelogs * ๐Ÿšง Add coming soon categories * ๐ŸŽจ Improve existing components * :art: Improve website & code structure & minor errors * ๐Ÿ“ Add micro interactions section to About page --- public/manifest.json | 12 + .../(components)/application-ui/kbd/page.tsx | 10 + .../application-ui/settings/page.tsx | 2 - .../static-steppers/code/variant1.tsx | 76 ++++++ .../application-ui/static-steppers/page.tsx | 27 +++ .../(components)/common-ui/avatars/page.tsx | 6 + .../(components)/common-ui/badges/page.tsx | 2 - .../buttons/before-effect-button/variant1.tsx | 3 +- .../buttons/before-effect-button/variant2.tsx | 2 +- .../buttons/growing-button/variant1.tsx | 2 +- .../(components)/common-ui/buttons/page.tsx | 4 +- .../shiny-rotating-border-button/variant1.tsx | 2 +- .../(components)/common-ui/skeletons/page.tsx | 4 +- .../skeletons/shiny-gradient/variant1.tsx | 16 +- src/app/(components)/hooks/page.tsx | 10 + .../hooks/picture-in-picture/page.tsx | 10 + .../pricing-tables/page.tsx | 38 ++- .../other/cursors/dynamic-cards/variant2.tsx | 8 +- .../other/cursors/follow-cursor/variant1.tsx | 4 +- .../other/cursors/follow-cursor/variant2.tsx | 50 ++++ src/app/(components)/other/cursors/page.tsx | 18 +- .../other/transition-wrappers/page.tsx | 2 - src/app/about/page.tsx | 21 ++ src/app/card.tsx | 104 +++++++++ src/app/changelog/changelogs.ts | 7 - src/app/changelog/page.tsx | 65 ------ src/app/getting-started/page.tsx | 10 + src/app/layout.tsx | 45 +++- src/app/page.tsx | 40 +--- src/app/sitemap.ts | 48 ++++ src/components/full-component.tsx | 132 +++++++---- src/lib/component-categories.ts | 131 ----------- src/lib/component-categories.tsx | 219 ++++++++++++++++++ src/lib/types/component.d.ts | 18 +- src/styles/globals.css | 9 + src/ui/gradient-container.tsx | 2 +- src/ui/navigation/navigation-menu.tsx | 18 +- src/utils/get-component-href.ts | 17 ++ src/utils/get-file-content-as-string.tsx | 24 +- 39 files changed, 862 insertions(+), 356 deletions(-) create mode 100644 public/manifest.json create mode 100644 src/app/(components)/application-ui/kbd/page.tsx create mode 100644 src/app/(components)/application-ui/static-steppers/code/variant1.tsx create mode 100644 src/app/(components)/application-ui/static-steppers/page.tsx create mode 100644 src/app/(components)/common-ui/avatars/page.tsx create mode 100644 src/app/(components)/hooks/page.tsx create mode 100644 src/app/(components)/hooks/picture-in-picture/page.tsx create mode 100644 src/app/(components)/other/cursors/follow-cursor/variant2.tsx create mode 100644 src/app/card.tsx delete mode 100644 src/app/changelog/changelogs.ts delete mode 100644 src/app/changelog/page.tsx create mode 100644 src/app/getting-started/page.tsx create mode 100644 src/app/sitemap.ts delete mode 100644 src/lib/component-categories.ts create mode 100644 src/lib/component-categories.tsx create mode 100644 src/utils/get-component-href.ts diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 00000000..efa19e6b --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,12 @@ +{ + "theme_color": "#e34ba9", + "background_color": "#F3F3F3", + "display": "standalone", + "scope": "/", + "start_url": "/localhost:3000", + "name": "CuiCui", + "short_name": "Cuicui", + "description": "The best react copy paste component library, customisable, robust and easy to use.", + "lang": "en", + "orientation": "landscape-primary" +} diff --git a/src/app/(components)/application-ui/kbd/page.tsx b/src/app/(components)/application-ui/kbd/page.tsx new file mode 100644 index 00000000..2e6a39d4 --- /dev/null +++ b/src/app/(components)/application-ui/kbd/page.tsx @@ -0,0 +1,10 @@ +import React from "react"; +import ComingSoonCard from "#/src/components/coming-soon"; + +export default function Page() { + return ( +
+ +
+ ); +} diff --git a/src/app/(components)/application-ui/settings/page.tsx b/src/app/(components)/application-ui/settings/page.tsx index 037c2f8a..7202388a 100644 --- a/src/app/(components)/application-ui/settings/page.tsx +++ b/src/app/(components)/application-ui/settings/page.tsx @@ -2,8 +2,6 @@ import FullComponent from "#/src/components/full-component"; import { getFileContentAsString } from "#/src/utils/get-file-content-as-string"; import DynamicSettingsVariant1 from "./dynamic-settings/variant1"; -const BASE_COMPONENT_PATH = - "./src/app/(components)/marketing-components/features/"; export default async function Page() { return ( { + return ( +
+ {dataSteps.map((step, index) => ( + + {step.code} + + ))} +
+ ); +}; + +const StaticStep = ({ + step, + title, + children, +}: { + step: number; + title: string; + children?: ReactNode; +}) => { + return ( +
+
+

+ {step} +

+
+
+
+
+ {title} +
+ {children} +
+
+ ); +}; + +const CodeContainer = ({ children }: { children: ReactNode }) => { + return ( +
+ + {children} + +
+ ); +}; diff --git a/src/app/(components)/application-ui/static-steppers/page.tsx b/src/app/(components)/application-ui/static-steppers/page.tsx new file mode 100644 index 00000000..14a899e7 --- /dev/null +++ b/src/app/(components)/application-ui/static-steppers/page.tsx @@ -0,0 +1,27 @@ +import FullComponent from "#/src/components/full-component"; +import { getFileContentAsString } from "#/src/utils/get-file-content-as-string"; +import { StepWithStickyColorVariant1 } from "./code/variant1"; + +export default async function Page() { + return ( + , + code: await getFileContentAsString({ + componentSlug: "static-steppers", + variantName: "code/variant1", + }), + }, + ]} + librariesBadges={["framer-motion", "lucide-react", "sonner"]} + componentBadges={["updated"]} + title="Simple static stepper" + description="A simple static stepper component to display a list of steps." + inspiration="Hooks Scriptkavi manual installation" + inspirationLink="https://hooks.scriptkavi.com/docs/hooks/battery" + /> + ); +} diff --git a/src/app/(components)/common-ui/avatars/page.tsx b/src/app/(components)/common-ui/avatars/page.tsx new file mode 100644 index 00000000..ab67ac1a --- /dev/null +++ b/src/app/(components)/common-ui/avatars/page.tsx @@ -0,0 +1,6 @@ +import React from "react"; +import ComingSoonCard from "#/src/components/coming-soon"; + +export default function Page() { + return ; +} diff --git a/src/app/(components)/common-ui/badges/page.tsx b/src/app/(components)/common-ui/badges/page.tsx index 919db378..0bb743fd 100644 --- a/src/app/(components)/common-ui/badges/page.tsx +++ b/src/app/(components)/common-ui/badges/page.tsx @@ -6,8 +6,6 @@ import ClerkBadgeVariant1 from "./clerk-badge/variant1"; import { BadgeSimpleVariantAmber } from "./modern-simple-badges/variant1"; import { BadgeSimpleVariantRed } from "./modern-simple-badges/variant2"; -const BASE_COMPONENT_PATH = - "./src/app/(components)/marketing-components/features/"; export default async function Page() { return ( <> diff --git a/src/app/(components)/common-ui/buttons/before-effect-button/variant1.tsx b/src/app/(components)/common-ui/buttons/before-effect-button/variant1.tsx index 0e0612a8..dcb36816 100644 --- a/src/app/(components)/common-ui/buttons/before-effect-button/variant1.tsx +++ b/src/app/(components)/common-ui/buttons/before-effect-button/variant1.tsx @@ -5,8 +5,7 @@ export default function BeforeEffectButtonVariant1() { return ( diff --git a/src/app/(components)/common-ui/buttons/before-effect-button/variant2.tsx b/src/app/(components)/common-ui/buttons/before-effect-button/variant2.tsx index 708cb166..8b4d1ea9 100644 --- a/src/app/(components)/common-ui/buttons/before-effect-button/variant2.tsx +++ b/src/app/(components)/common-ui/buttons/before-effect-button/variant2.tsx @@ -5,7 +5,7 @@ export default function BeforeEffectButtonVariant2() { return (