refactor(blog): drive blog and home sections from markdown data

This commit is contained in:
Poyraz Avsever
2026-03-11 11:03:00 +03:00
parent 2fbf1f532d
commit be43edc6a6
10 changed files with 304 additions and 633 deletions
+5 -2
View File
@@ -1,11 +1,14 @@
import { HomeHero } from "@/components/home-hero";
import { HomeVideosSection } from "@/components/home-videos-section";
import { ReferencesSection } from "@/components/references-section";
import { getHomeBlogNews } from "@/data/blog";
export default async function Home() {
const homeNews = await getHomeBlogNews(3);
export default function Home() {
return (
<section className="flex h-full flex-col gap-4 overflow-hidden">
<HomeHero />
<HomeHero news={homeNews} />
<ReferencesSection />
<HomeVideosSection />
</section>