Skip to content

Commit f1f1faa

Browse files
Add new home page (#68)
* 🚧 add component in the first one-file-theme * 🚧 Minor component updates * 🔧 Update category previews generation and enhance package scripts * ✨ 🚧 add work in progress new components * 🔧 Update Next.js version, add new home page, and replace deprecated components * 🎨 rename releaseDateCategory to latestUpdateDate
1 parent a5a9589 commit f1f1faa

File tree

130 files changed

+2226
-811
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+2226
-811
lines changed

apps/website/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"fs-extra": "11.2.0",
2222
"lucide-react": "^0.468.0",
2323
"motion": "^11.14.1",
24-
"next": "15.1.0",
24+
"next": "15.1.1",
2525
"next-mdx-remote": "5.0.0",
2626
"next-themes": "0.4.4",
2727
"path": "0.12.7",

apps/website/src/app/(site)/[section]/page.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Link from "next/link";
22
import { notFound } from "next/navigation";
3-
import { MainMenuCardContent } from "#/src/app/card";
43
import MenuSectionWrapper from "#/src/components/main-menus/menu-category-wrapper";
54
import { MainMenusGradientCard } from "@cuicui/ui/cuicui/other/cursors/dynamic-cards/gradient-card";
65

76
import { sectionList } from "@/section-list";
87
import { newFindSectionBySlug } from "#/src/utils/section-category-components-utils/section-list-utils";
8+
import { getCategoryPreviewBySlug } from "#/src/features/preview-category/utils/render-preview-category";
99

1010
type Props = {
1111
params: Promise<{ section: string }>;
@@ -48,10 +48,9 @@ export default async function Page({ params }: Props) {
4848
description={category.meta.description}
4949
title={category.meta.name}
5050
>
51-
<MainMenuCardContent
52-
slugCategory={category.slug}
53-
isComingSoon={category.meta.isComingSoon}
54-
/>
51+
<div className="flex items-center justify-center size-full gap-2 py-4 px-12">
52+
{getCategoryPreviewBySlug(category)}
53+
</div>
5554
</MainMenusGradientCard>
5655
</Link>
5756
);

apps/website/src/app/card.tsx

-46
This file was deleted.

0 commit comments

Comments
 (0)