training_data/apps/web/src/app/main/home/page.tsx

35 lines
986 B
TypeScript
Raw Normal View History

2025-02-25 12:31:37 +08:00
import HeroSection from "./components/HeroSection";
import CategorySection from "./components/CategorySection";
import CoursesSection from "./components/CoursesSection";
2025-02-27 23:06:17 +08:00
import { PostType } from "@nice/common";
import PathCard from "@web/src/components/models/post/SubPost/PathCard";
import CourseCard from "@web/src/components/models/post/SubPost/CourseCard";
2025-02-25 16:23:36 +08:00
2025-02-06 16:32:31 +08:00
const HomePage = () => {
2025-02-25 12:31:37 +08:00
return (
<div className="min-h-screen">
<HeroSection />
2025-02-27 23:06:17 +08:00
<CoursesSection
title="最受欢迎的思维导图"
description="深受追捧的思维导图,点亮你的智慧人生"
postType={PostType.PATH}
render={(post)=><PathCard post={post}></PathCard>}
2025-02-27 23:11:37 +08:00
to={"path"}
2025-02-27 23:06:17 +08:00
/>
2025-02-25 12:31:37 +08:00
<CoursesSection
title="推荐课程"
description="最受欢迎的精品课程,助你快速成长"
2025-02-27 23:06:17 +08:00
postType={PostType.COURSE}
render={(post)=> <CourseCard post={post}></CourseCard>}
2025-02-27 23:11:37 +08:00
to={"/courses"}
2025-02-25 12:31:37 +08:00
/>
2025-02-27 23:06:17 +08:00
2025-02-25 12:31:37 +08:00
<CategorySection />
</div>
);
2025-01-03 09:24:46 +08:00
};
2025-02-25 12:31:37 +08:00
export default HomePage;