aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/navbutton
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/components/navbutton')
-rw-r--r--src/app/components/navbutton/index.css9
-rw-r--r--src/app/components/navbutton/index.html2
-rw-r--r--src/app/components/navbutton/root.zig16
3 files changed, 27 insertions, 0 deletions
diff --git a/src/app/components/navbutton/index.css b/src/app/components/navbutton/index.css
new file mode 100644
index 0000000..bf1b4ee
--- /dev/null
+++ b/src/app/components/navbutton/index.css
@@ -0,0 +1,9 @@
+#button {
+ position: absolute;
+ bottom: 10px;
+ right: 10px;
+ width: 50px;
+ height: 50px;
+ background: var(--primary);
+ border-radius: 100%;
+}
diff --git a/src/app/components/navbutton/index.html b/src/app/components/navbutton/index.html
new file mode 100644
index 0000000..ab23160
--- /dev/null
+++ b/src/app/components/navbutton/index.html
@@ -0,0 +1,2 @@
+<div id="button">
+</div>
diff --git a/src/app/components/navbutton/root.zig b/src/app/components/navbutton/root.zig
new file mode 100644
index 0000000..0040c9d
--- /dev/null
+++ b/src/app/components/navbutton/root.zig
@@ -0,0 +1,16 @@
+const z = @import("z");
+
+const Self = @This();
+
+pub const component: z.Component = .{
+ .name = "navbutton",
+ .html = .parse(@embedFile("index.html")),
+ .css = @embedFile("index.css"),
+ .link = @This(),
+};
+
+element: *z.Object,
+
+pub fn init(self: *Self, element: *z.Object) void {
+ self.element = element;
+}