Skip to content

Commit df0536e

Browse files
Create layouts.tsx
1 parent a3baac5 commit df0536e

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

app/layouts.tsx

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
"use client";
2+
3+
import { useEffect } from "react";
4+
import { bootWeb4 } from "@/core/bootstrap";
5+
6+
export default function RootLayout({
7+
children,
8+
}: {
9+
children: React.ReactNode;
10+
}) {
11+
useEffect(() => {
12+
// Boot the Web4 Kernel once at system start
13+
bootWeb4();
14+
}, []);
15+
16+
return (
17+
<html lang="en">
18+
<head>
19+
<title>Web4 OS</title>
20+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
21+
22+
{/* Optional: system theme tuning */}
23+
<meta name="theme-color" content="#0a0a0f" />
24+
</head>
25+
26+
<body className="web4-body">
27+
{/* SYSTEM ROOT */}
28+
<div id="web4-root">
29+
30+
{/* OS LAYER (desktop, windows, widgets render here) */}
31+
<div id="desktop-layer">
32+
{children}
33+
</div>
34+
35+
{/* GLOBAL SYSTEM OVERLAYS */}
36+
<div id="overlay-layer"></div>
37+
<div id="modal-layer"></div>
38+
<div id="cursor-layer"></div>
39+
40+
</div>
41+
</body>
42+
</html>
43+
);
44+
}

0 commit comments

Comments
 (0)