page.tsx 889 B

123456789101112131415161718192021222324252627282930
  1. "use client";
  2. import {Body, Header, Ratio} from "../packages/react-sol/dist/index.esm.js"
  3. import "./page.css"
  4. const menu = [
  5. {name: "Home", href: "/"},
  6. {name: "About", href: "/about"},
  7. {name: "Contact", href: "/contact"}
  8. ];
  9. export default function Home() {
  10. const ratio: Ratio = new Ratio(6, 4, 94);
  11. return (
  12. <div className="page-container">
  13. <Header
  14. height={ratio.top()}
  15. siteName="My Site"
  16. logo="globe.svg"
  17. className="bg-gray-800 text-white flex items-center"
  18. menu={menu}
  19. />
  20. <Body height={ratio.middle()} renderFn={undefined}
  21. className="bg-gray-700 justify-center items-center flex flex-col">
  22. <h1>Main Content</h1>
  23. <p>Your page content here...</p>
  24. </Body>
  25. </div>
  26. );
  27. };