mirror of
https://github.com/hanzoai/hanzo.industries.git
synced 2026-11-03 00:26:29 +00:00
- Add I Ching PhilosophyBridge component to homepage - Remove broken opengraph-image.tsx files (used @hanzo/og which is unavailable) - Clean up .bak artifacts
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
import Hero from "@/components/Hero";
|
|
import ServicesOverview from "@/components/ServicesOverview";
|
|
import ResearchHighlights from "@/components/ResearchHighlights";
|
|
import Leadership from "@/components/Leadership";
|
|
import TrustedBySection from "@/components/TrustedBySection";
|
|
import Contact from "@/components/Contact";
|
|
import PhilosophyBridge from "@/components/PhilosophyBridge";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export default function PageClient() {
|
|
useEffect(() => {
|
|
const smoothScroll = (e: MouseEvent) => {
|
|
const target = e.target as HTMLAnchorElement;
|
|
if (target.hash) {
|
|
e.preventDefault();
|
|
const element = document.querySelector(target.hash);
|
|
if (element) {
|
|
element.scrollIntoView({ behavior: "smooth" });
|
|
}
|
|
}
|
|
};
|
|
|
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
anchor.addEventListener("click", smoothScroll);
|
|
});
|
|
|
|
return () => {
|
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
anchor.removeEventListener("click", smoothScroll);
|
|
});
|
|
};
|
|
}, []);
|
|
|
|
return (
|
|
<main>
|
|
<Hero />
|
|
<ServicesOverview />
|
|
<ResearchHighlights />
|
|
<Leadership />
|
|
<TrustedBySection />
|
|
<PhilosophyBridge />
|
|
<Contact />
|
|
</main>
|
|
);
|
|
}
|