|
@@ -1,16 +1,21 @@
|
|
|
-import {Header, Body, Footer} from "./lib"
|
|
|
|
|
|
|
+import {Body, Footer, Header, Ratio} from "./lib"
|
|
|
import "./page.css"
|
|
import "./page.css"
|
|
|
|
|
+
|
|
|
export default function Home() {
|
|
export default function Home() {
|
|
|
- const buildHeader = () => <h1>My Custom Header</h1>;
|
|
|
|
|
|
|
+ const ratio: Ratio = new Ratio(8, 6, 88);
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="page-container">
|
|
<div className="page-container">
|
|
|
- <Header renderFn={buildHeader} />
|
|
|
|
|
- <Body>
|
|
|
|
|
|
|
+ <Header height={ratio.top()} className="bg-gray-800 flex flex-row justify-center items-center">
|
|
|
|
|
+ <h1>My Website</h1>
|
|
|
|
|
+ </Header>
|
|
|
|
|
+ <Body height={ratio.middle()} className="bg-gray-700 justify-center items-center flex flex-col">
|
|
|
<h1>Main Content</h1>
|
|
<h1>Main Content</h1>
|
|
|
<p>Your page content here...</p>
|
|
<p>Your page content here...</p>
|
|
|
</Body>
|
|
</Body>
|
|
|
- <Footer renderFn={() => <p>© 2025 Custom Footer</p>} />
|
|
|
|
|
|
|
+ <Footer height={ratio.bottom()} className="bg-gray-800 justify-center items-center flex">
|
|
|
|
|
+ <p>© 2025 Custom Footer</p>
|
|
|
|
|
+ </Footer>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|