commit fc81f0ae975b5b61f85562a4439ac8556b2b8a2f
parent d5968765f854666736eaf9568e7b244669512b27
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sat, 23 Mar 2024 21:46:08 -0700
Add about page
Gives a little background on the project and myself.
Diffstat:
3 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/frags/about b/frags/about
@@ -0,0 +1,17 @@
+<h1>About</h1>
+
+<p>The timekeeper system is a tool for keeping track of hours spent
+on the job. It's probably only useful for personal records or small
+businesses with trusted employees right now, and this may never
+change.</p>
+
+<p>I'm <a href="https://jacobedwards.org">Jacob Edwards</a> and I'm making
+this in part because it's something I'll actually use, but also to
+learn how to make more significant <q>web applications</q> using
+things I'v avoided in the past, namely SQL (<a
+href="https://sqlite.org">SQLite</a> via <a
+href="https://kristaps.bsd.lv/sqlbox/">sqlbox</a>) and JavaScript.</p>
+
+<p>It's still under heavy development so anything could change at
+any time. The backend could change too, which means that any data
+entered at this point <em>will likely be lost</em>.</p>
diff --git a/pages/pages.h b/pages/pages.h
@@ -6,6 +6,7 @@ enum Page {
PageMain,
PageExport,
PageArchive,
+ PageAbout,
PageMax
};
diff --git a/timekeeper.c b/timekeeper.c
@@ -36,7 +36,8 @@ static char *pages[] = {
[PageAccount] = "account",
[PageMain] = "main",
[PageExport] = "export",
- [PageArchive] = "archive"
+ [PageArchive] = "archive",
+ [PageAbout] = "about"
};
int
@@ -71,7 +72,8 @@ main(void)
[PageAccount] = pageaccount,
[PageMain] = pagemain,
[PageExport] = pageexport,
- [PageArchive] = pagearchive
+ [PageArchive] = pagearchive,
+ [PageAbout] = pagefrag
};
memset(&cfg, 0, sizeof(cfg));