From 35fb9361b2113f4ebc7179b9421f5f3b8a98a6c7 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 28 May 2026 18:37:11 +0200 Subject: add timeline --- src/main.zig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/main.zig') 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)!")), - })), })), })); -- cgit v1.2.3-70-g09d2