diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-28 18:37:11 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-28 18:37:11 +0200 |
| commit | 35fb9361b2113f4ebc7179b9421f5f3b8a98a6c7 (patch) | |
| tree | d0edf41dce305830c7e776de5e120a543fb1d1c2 /src/main.zig | |
| parent | 567c1fa209b0820444e2ad2c6234af5e4e203a8f (diff) | |
add timeline
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main.zig b/src/main.zig index f17214c..82f5824 100644 --- a/src/main.zig +++ b/src/main.zig @@ -8,7 +8,7 @@ const http = @import("http"); const html = @import("html"); const z = @import("z"); -const badge = @import("web/badge/root.zig"); +const components = @import("web/component/root.zig").components; const document: html.Element = .native(.html, .{}, .children(&.{ .native(.head, .{}, .children(&.{ @@ -17,15 +17,11 @@ const document: html.Element = .native(.html, .{}, .children(&.{ .name = "viewport", .content = "width=device-width, initial-scale=1.0", }, .void), - z.env(&.{ - badge.component, - }), + z.style.load(@embedFile("web/index.css")), + z.env(components), })), .native(.body, .{}, .children(&.{ z.html.load(@embedFile("web/index.html")), - z.component(.badge, .{}, .children(&.{ - .native(.span, .{ .slot = "content" }, .content("Hello Z (direct)!")), - })), })), })); |