You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

1 year ago
use crate::components::header::{Header, HeaderLink};
1 year ago
use cached::proc_macro::cached;
1 year ago
use maud::{html, Markup, PreEscaped, DOCTYPE};
1 year ago
1 year ago
#[cached]
1 year ago
pub async fn render() -> Markup {
html! {
1 year ago
(DOCTYPE)
title {"Home | Voltpad"};
1 year ago
meta name="viewport" content="width=device-width, initial-scale=1.0";
style {(PreEscaped(
grass::include!("./css/index.scss")
))}
1 year ago
(
Header(vec![
HeaderLink {
name: "Home".to_string(),
path: "/".to_string(),
prefix: None,
postfix: None
1 year ago
},
HeaderLink {
name: "Search".to_string(),
path: "/search".to_string(),
prefix: None,
postfix: None
},
HeaderLink {
name: "History".to_string(),
path: "/history".to_string(),
prefix: None,
postfix: None
},
HeaderLink {
name: "About".to_string(),
path: "/about".to_string(),
prefix: None,
postfix: None
},
1 year ago
], "/".to_string())
)
1 year ago
div .index-content {
h1 { "Voltpad" }
div { "A blazingly fast (but for real this time) Wattpad frontend" }
}
1 year ago
}
}