feat: add featured flag to project, display featured projects on home page
This commit is contained in:
@@ -175,7 +175,7 @@ function Label({ children }: { children: React.ReactNode }) {
|
||||
}
|
||||
|
||||
// ── MAIN COMPONENT ──
|
||||
export default function HomeClient({ lang, dict }: { lang: Locale; dict: any }) {
|
||||
export default function HomeClient({ lang, dict, featuredProjects }: { lang: Locale; dict: any; featuredProjects?: any[] }) {
|
||||
const heroRef = useRef<HTMLDivElement>(null);
|
||||
const { scrollYProgress } = useScroll({ target: heroRef, offset: ["start start", "end start"] });
|
||||
const heroY = useTransform(scrollYProgress, [0, 1], ["0%", "25%"]);
|
||||
@@ -283,7 +283,7 @@ export default function HomeClient({ lang, dict }: { lang: Locale; dict: any })
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<HomeClientBelowFold lang={lang} dict={dict} />
|
||||
<HomeClientBelowFold lang={lang} dict={dict} featuredProjects={featuredProjects} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user