-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🎨 unify component type * 🔥 remove dupplicated lib files * 🔥 remove lastUpdatedDateComponent from multiple categories * ✨ v0.3.2 * 🎨 update slugPreviewFile format in gradientPricingTableComponent
- Loading branch information
1 parent
b41185e
commit 7f82807
Showing
147 changed files
with
677 additions
and
660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
6 changes: 3 additions & 3 deletions
6
...components)/[section]/[category]/page.tsx → .../app/(site)/[section]/[category]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { CuicuiFloatingDock } from "#/src/components/floating-dock-navigation/floating-dock"; | ||
import { DesktopSideMenu } from "#/src/components/navigation/desktop-menu"; | ||
|
||
import { AddressBar } from "#/src/ui/address-bar"; | ||
import StarCuicuiGithubButton from "#/src/ui/star-github-project-button"; | ||
import { StaticNoise } from "@/cuicui/other/creative-effects/animated-noise/static-noise"; | ||
import type React from "react"; | ||
|
||
export default function ComponentsLayout({ | ||
children, | ||
}: Readonly<{ children: React.ReactNode }>) { | ||
return ( | ||
<> | ||
<div className="mx-auto max-w-screen-2xl"> | ||
{/* Note: The noise effect is experimental and may affect the design. Consider its impact before using it officialy. */} | ||
<StaticNoise | ||
opacity={0.05} | ||
className="z-[9999] fixed inset-0 pointer-events-none" | ||
/> | ||
<DesktopSideMenu /> | ||
|
||
<div className="lg:ml-80"> | ||
{/* Add overflow-auto if layout width problems */} | ||
|
||
<AddressBar /> | ||
|
||
<main className=" p-4 pt-12 md:p-6"> | ||
<div className="space-y-10 pb-20">{children}</div> | ||
</main> | ||
|
||
<div className="flex sm:hidden fixed bottom-6 left-2"> | ||
<StarCuicuiGithubButton /> | ||
</div> | ||
</div> | ||
</div> | ||
<CuicuiFloatingDock /> | ||
</> | ||
); | ||
} |
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
import Image from "next/image"; | ||
import type { | ||
CategoryType, | ||
SingleComponentCategoryType, | ||
} from "../lib/types/component"; | ||
CategoryType, | ||
SingleComponentCategoryType, | ||
} from "@cuicui/ui/lib/types/component"; | ||
|
||
export const MainMenuCardContent = ({ | ||
category, | ||
sectionSlug, | ||
category, | ||
sectionSlug, | ||
}: { | ||
category: CategoryType | SingleComponentCategoryType; | ||
sectionSlug: string; | ||
category: CategoryType | SingleComponentCategoryType; | ||
sectionSlug: string; | ||
}) => { | ||
if (category?.comingSoonCategory) { | ||
return ( | ||
<p className="-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 font-semibold text-2xl text-neutral-800 dark:text-neutral-300"> | ||
Coming Soon | ||
</p> | ||
); | ||
} | ||
if (category?.comingSoonCategory) { | ||
return ( | ||
<p className="-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 font-semibold text-2xl text-neutral-800 dark:text-neutral-300"> | ||
Coming Soon | ||
</p> | ||
); | ||
} | ||
|
||
return ( | ||
<> | ||
<Image | ||
alt={`${category.name} preview`} | ||
className="h-48 w-full object-cover hidden dark:block" | ||
height={400} | ||
src={`/preview-images/dark-${sectionSlug}-${category.slug}.png`} | ||
width={600} | ||
/> | ||
<Image | ||
alt={`${category.name} preview`} | ||
className="h-48 w-full object-cover dark:hidden" | ||
height={400} | ||
src={`/preview-images/light-${sectionSlug}-${category.slug}.png`} | ||
width={600} | ||
/> | ||
</> | ||
); | ||
return ( | ||
<> | ||
<Image | ||
alt={`${category.name} preview`} | ||
className="h-48 w-full object-cover hidden dark:block" | ||
height={400} | ||
src={`/preview-images/dark-${sectionSlug}-${category.slug}.png`} | ||
width={600} | ||
/> | ||
<Image | ||
alt={`${category.name} preview`} | ||
className="h-48 w-full object-cover dark:hidden" | ||
height={400} | ||
src={`/preview-images/light-${sectionSlug}-${category.slug}.png`} | ||
width={600} | ||
/> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Modern3dKbdVariant1 from "@/cuicui/application-ui/kbd/modern-3d-kbd/variant1"; | ||
import React from "react"; | ||
|
||
export default function Page() { | ||
return <Modern3dKbdVariant1 />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Playground from "#/src/app/dev/playground-component/playground"; | ||
import type { Metadata } from "next"; | ||
|
||
export const metadata: Metadata = { | ||
referrer: "no-referrer", | ||
robots: "noindex, nofollow", | ||
}; | ||
|
||
export default function PageGeneratePreviewImages() { | ||
if (process.env.NODE_ENV === "production") { | ||
return null; | ||
} | ||
|
||
return <Playground />; | ||
} |
15 changes: 15 additions & 0 deletions
15
apps/website/src/app/dev/playground-component/playground.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
|
||
export default function Playground() { | ||
return ( | ||
<div className="h-screen w-full"> | ||
<iframe | ||
className="w-full h-full flex items-center *:flex *:items-center" | ||
src="/dev" | ||
title="test" | ||
> | ||
test | ||
</iframe> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Modern3dKbdVariant1 from "@/cuicui/application-ui/kbd/modern-3d-kbd/variant1"; | ||
import React from "react"; | ||
|
||
export default function test() { | ||
return <Modern3dKbdVariant1 />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.