site_header start

This commit is contained in:
2024-02-22 20:13:23 +01:00
parent 8892624e9a
commit 0cb8e84666
13 changed files with 673 additions and 10 deletions

View File

@ -1 +1,2 @@
pub mod site_footer;
pub mod site_header;

View File

@ -0,0 +1,29 @@
pub struct Link {
pub href: String,
pub label: String,
}
pub struct HeaderProps {
pub links: Vec<Link>,
}
impl Default for HeaderProps {
fn default() -> Self {
Self {
links: vec![
Link {
href: "/".to_string(),
label: "Introduction".to_string(),
},
Link {
href: "/blog".to_string(),
label: "Blog".to_string(),
},
Link {
href: "/portfolio".to_string(),
label: "Portfolio".to_string(),
},
],
}
}
}