aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig10
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)!")),
- })),
})),
}));