feat: add page system behing navbar items and skeletons for loading

This commit is contained in:
2024-08-06 00:18:09 +02:00
committed by theo
parent 37ef6e2c15
commit 581bd2455e
15 changed files with 392 additions and 16 deletions

View File

@ -5,7 +5,7 @@ use serde::Deserialize;
struct MenuItem {
label: String,
id: String,
href: String,
current: bool,
}
@ -42,17 +42,12 @@ async fn menu(Query(params): Query<MenuParameters>) -> impl IntoResponse {
items: vec![
MenuItem {
label: "Accueil".to_string(),
id: "home".to_string(),
href: "/pages/home".to_string(),
current: true,
},
MenuItem {
label: "À propos".to_string(),
id: "about".to_string(),
current: false,
},
MenuItem {
label: "Contact".to_string(),
id: "contact".to_string(),
label: "CPS".to_string(),
href: "/pages/cps".to_string(),
current: false,
},
],