aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/icons/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/components/icons/root.zig')
-rw-r--r--src/app/components/icons/root.zig17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/app/components/icons/root.zig b/src/app/components/icons/root.zig
new file mode 100644
index 0000000..0328472
--- /dev/null
+++ b/src/app/components/icons/root.zig
@@ -0,0 +1,17 @@
+const zilch = @import("zilch");
+
+pub const icons: []const zilch.Component = &.{
+ icon("menu"),
+ icon("upload"),
+ icon("settings"),
+};
+
+pub fn icon(name: []const u8) zilch.Component {
+ return .build(.{
+ .namespace = "icon",
+ .name = name,
+ .html = .parse(@embedFile(name ++ ".svg")),
+ .css = @embedFile("index.css"),
+ .link = struct {},
+ });
+}