File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments