Added link to the repository on the project page

This commit is contained in:
2025-10-26 22:36:20 +01:00
parent f6b6b0a80b
commit 9c79881c4b

View File

@@ -53,13 +53,14 @@ async fn project(project: web::Path<String>) -> impl Responder {
match project.as_str() {
"website" => {
let title = Heading::builder().text("Website").build();
let gitea = Anchor::builder().href("https://git.aindustries.be/AINDUSTRIES/aindustries.be").text("aindustries-be").build();
let desc = Paragraph::builder().classes(vec!["description"]).text(
"This project, the website you are on, \
format!("This project, the website you are on, \
is made in Rust such that all the pages are generated by code.<br>\
That is that each html element is represented by a struct which implements the Render trait (as in render the element to html).<br>\
As it is right now the system is not that impressive but I believe it can do amazing things in the futur.<br>\
<br>\
Wish to see more? Check out the gitea repository: ",
Wish to see more? Check out the gitea repository: {}", gitea.render()),
).build();
page.append_element_to_body(title);
page.append_element_to_body(desc);