aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-30 10:45:52 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-30 10:45:52 +0530
commitcb86b7f9e4dcd1c1331025d70b272e4de33f164a (patch)
tree34bc2f24c4df690eb8801ddf9059c355bc8e98d6
parentcdd1159b2e78c4a76fde0dd4a45374dddfe00f1b (diff)
added about page
-rw-r--r--src/app/mod.rs21
-rw-r--r--src/components/navbar/nav.rs8
2 files changed, 21 insertions, 8 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs
index 671aac6..1f37a9f 100644
--- a/src/app/mod.rs
+++ b/src/app/mod.rs
@@ -45,8 +45,11 @@ pub enum Route {
ViewInvoices,
#[at("/invoice/one")]
ViewInvoice,
+
#[at("/settings")]
Settings,
+ #[at("/about")]
+ About,
#[not_found]
#[at("/404")]
@@ -58,15 +61,17 @@ pub fn switch(routes: Route) -> Html {
Route::Home => html! {<home::HomePage />},
Route::ManageMenu => html! {<manage::ManageMenuPage />},
- Route::ManageClients => html! {<h1>{ "Edit Clients" }</h1>},
- Route::ManageBrands => html! {<h1>{ "Edit Brands" }</h1>},
- Route::ManageItems => html! {<h1>{ "Edit Items" }</h1>},
- Route::ManageInvoices => html! {<h1>{ "Edit Invoices" }</h1>},
+ Route::ManageClients => html! {<h1>{ "Edit Clients (To Be Added)" }</h1>},
+ Route::ManageBrands => html! {<h1>{ "Edit Brands (To Be Added)" }</h1>},
+ Route::ManageItems => html! {<h1>{ "Edit Items (To Be Added)" }</h1>},
+ Route::ManageInvoices => html! {<h1>{ "Edit Invoices (To Be Added)" }</h1>},
+
+ Route::NewInvoice => html! {<h1>{ "Create New Invoice (To Be Added)" }</h1>},
+ Route::ViewInvoices => html! {<h1>{ "View All Invoices (To Be Added)" }</h1>},
+ Route::ViewInvoice => html! {<h1>{ "View a Single Invoice (To Be Added)" }</h1>},
- Route::NewInvoice => html! {<h1>{ "Create New Invoice" }</h1>},
- Route::ViewInvoices => html! {<h1>{ "View All Invoices" }</h1>},
- Route::ViewInvoice => html! {<h1>{ "View a Single Invoice" }</h1>},
- Route::Settings => html! {<h1>{ "Settings Page" }</h1>},
+ Route::Settings => html! {<h1>{ "Settings Page (To Be Added)" }</h1>},
+ Route::About => html! {<h1>{ "About Page (To Be Added)" }</h1>},
Route::NotFound => html! {<h1>{"404 Page Not Found"}</h1>},
}
diff --git a/src/components/navbar/nav.rs b/src/components/navbar/nav.rs
index 0cdc029..dd215a0 100644
--- a/src/components/navbar/nav.rs
+++ b/src/components/navbar/nav.rs
@@ -42,6 +42,14 @@ pub fn nav() -> Html {
label: String::from("Manage"),
to: Route::ManageMenu,
},
+ Link {
+ label: String::from("Settings"),
+ to: Route::Settings,
+ },
+ Link {
+ label: String::from("About"),
+ to: Route::About,
+ },
]);
let manage_links = Vec::from([