This commit is contained in:
parent
fe93e7887a
commit
ae43734297
3 changed files with 124 additions and 0 deletions
|
@ -26,6 +26,9 @@ mod networks;
|
|||
#[path = "routes/portfolio.rs"]
|
||||
mod portfolio;
|
||||
|
||||
#[path = "routes/contrib.rs"]
|
||||
mod contrib;
|
||||
|
||||
#[actix_web::main]
|
||||
async fn main() -> io::Result<()> {
|
||||
let config = config::get_config("./config/config.toml");
|
||||
|
@ -99,6 +102,7 @@ async fn main() -> io::Result<()> {
|
|||
.service(agreements::sitemap)
|
||||
.service(networks::page)
|
||||
.service(portfolio::page)
|
||||
.service(contrib::page)
|
||||
.service(Files::new("/", &folder))
|
||||
.default_service(web::to(not_found::page))
|
||||
})
|
||||
|
|
17
src/routes/contrib.rs
Normal file
17
src/routes/contrib.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
use actix_web::{get, HttpResponse, Responder};
|
||||
use askama::Template;
|
||||
|
||||
use crate::template::render_html;
|
||||
|
||||
#[get("/contrib")]
|
||||
pub async fn page() -> impl Responder {
|
||||
HttpResponse::Ok().body(get_page())
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "../templates/contrib.html")]
|
||||
struct PortfolioTemplate {}
|
||||
|
||||
pub fn get_page() -> std::string::String {
|
||||
render_html(&PortfolioTemplate {})
|
||||
}
|
103
templates/contrib.html
Normal file
103
templates/contrib.html
Normal file
|
@ -0,0 +1,103 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="index" lang="fr">
|
||||
<head dir="rtl">
|
||||
<title>Mes contributions - Anri</title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="css/style.css" />
|
||||
<meta name="author" content="Mylloon" />
|
||||
<meta name="description" content="Réseaux d'Anri Kennel" />
|
||||
<base target="_blank" />
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="icons/apple-touch-icon.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="32x32"
|
||||
href="icons/favicon-32x32.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="16x16"
|
||||
href="icons/favicon-16x16.png"
|
||||
/>
|
||||
<link rel="manifest" href="icons/site.webmanifest" />
|
||||
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bbad5" />
|
||||
<link rel="shortcut icon" href="icons/favicon.ico" />
|
||||
<meta name="msapplication-TileColor" content="#ffffff" />
|
||||
<meta name="msapplication-config" content="icons/browserconfig.xml" />
|
||||
<meta name="theme-color" content="#2a2424" />
|
||||
<meta content="Réseaux" property="og:title" />
|
||||
<meta content="Réseaux d'Anri Kennel" property="og:description" />
|
||||
<meta content="icons/apple-touch-icon.png" property="og:image" />
|
||||
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<h1 class="subtitle">Mes contributions</h1>
|
||||
<h2 class="subtitle">PineDocs</h2>
|
||||
<p>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/193">#193</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/194">#194</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/196">#196</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/228">#228</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/230">#230</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/231">#231</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/237">#237</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/240">#240</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/243">#243</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/259">#259</a>
|
||||
</p>
|
||||
<h2 class="subtitle">Tachiyomi Extensions</h2>
|
||||
<p>
|
||||
<a
|
||||
href="https://github.com/tachiyomiorg/tachiyomi-extensions/pull/10994"
|
||||
>#10994</a
|
||||
>
|
||||
<a
|
||||
href="https://github.com/tachiyomiorg/tachiyomi-extensions/pull/12181"
|
||||
>#12181</a
|
||||
>
|
||||
<a
|
||||
href="https://github.com/tachiyomiorg/tachiyomi-extensions/pull/15397"
|
||||
>#15397</a
|
||||
>
|
||||
</p>
|
||||
|
||||
<h2 class="subtitle">x11 Emoji Picker</h2>
|
||||
<p>
|
||||
<a href="https://github.com/GaZaTu/x11-emoji-picker/pull/12">#12</a>
|
||||
</p>
|
||||
<h2 class="subtitle">Joal</h2>
|
||||
<p><a href="https://github.com/anthonyraymond/joal/pull/112">#122</a></p>
|
||||
<h2 class="subtitle">Node Genius Lyrics</h2>
|
||||
<p>
|
||||
<a href="https://github.com/zyrouge/node-genius-lyrics/pull/44">#44</a>
|
||||
</p>
|
||||
|
||||
<h1 class="subtitle">En attente</h1>
|
||||
<p>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/213">PineDocs#213</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/232">PineDocs#232</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/234">PineDocs#234</a>
|
||||
<a href="https://github.com/xy2z/PineDocs/pull/257">PineDocs#257</a>
|
||||
<a href="https://github.com/SimpleMobileTools/Simple-Contacts/pull/937"
|
||||
>Simple-Contacts#937</a
|
||||
>
|
||||
</p>
|
||||
|
||||
<h1 class="subtitle">Non mergées</h1>
|
||||
<p>
|
||||
<a href="https://github.com/secure-77/Perlite/pull/16">Perlite#16</a>
|
||||
</p>
|
||||
</div>
|
||||
<footer class="backToIndexPage">
|
||||
<a href="/" target="_self">Retour à la page principale</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue