Compare commits

..

1 Commits
main ... main

Author SHA1 Message Date
Luna 85c8f48792 Add Luna to the webring 2022-06-15 16:06:25 +00:00
3 changed files with 63 additions and 8 deletions

View File

@ -1,13 +1,59 @@
use crate::*;
struct Member {
name: String,
website: String,
title: String,
}
impl From<&(&str, &str, &str)> for Member {
fn from(tuple: &(&str, &str, &str)) -> Self {
Member {
name: tuple.0.to_string(),
website: tuple.1.to_string(),
title: tuple.2.to_string(),
}
}
}
#[derive(Template)]
#[template(path = "main_page.html.j2")]
struct MainPageTemplate {}
struct MainPageTemplate {
members: Vec<Member>,
}
pub fn main_page(ctx: &BuildContext) -> Result<()> {
log_info("Rendering main page…");
ctx.write("index.html", MainPageTemplate {}.render()?)?;
let members = [
("charlotte som", "https://char.lt/", "founder"),
(
"agatha lovelace",
"https://technogothic.net/",
"vampy wolfy",
),
(
"annie versario",
"https://versary.town",
"marquee technician",
),
("ella paws", "#", "8fde7b6ef7c84fc295ba"),
(
"maia arson crimew",
"https://maia.crimew.gay/",
"tiny kitten",
),
("easrng", "https://easrng.net/", "cursed code contributor"),
("luna nova", "https://luna.mint.lgbt", "local anime catgirl/ruby enthusiast"),
];
ctx.write(
"index.html",
MainPageTemplate {
members: members.iter().map(|x| x.into()).collect(),
}
.render()?,
)?;
Ok(())
}

View File

@ -9,11 +9,6 @@
"name": "charlotte",
"url": "https://char.lt/"
},
{
"id": "milse113",
"name": "milse113",
"url": "https://milse113.github.io/lavender.html"
},
{
"id": "mira",
"name": "mira",
@ -33,5 +28,10 @@
"id": "easrng",
"name": "easrng",
"url": "https://easrng.net/"
},
{
"id": "luna",
"name": "luna",
"url": "https://luna.mint.lgbt"
}
]

View File

@ -27,11 +27,20 @@
<li><a href="https://git.lain.faith/videogame-hacker/discord-css-injector">lavender cord</a> - a theming platform for Discord</li>
<li><a href="https://git.lavender.software/lavender/watch-party">watch-party</a> - a webapp to allow for synced video playback among friends</li>
<li>catsette <em>(upcoming)</em> - an independent music marketplace platform for artists</li>
<li>Hermes <em>(upcoming)</em> - a native <a href="https://scuttlebutt.nz/">Secure Scuttlebutt</a> client for Linux</li>
<li>&hellip; and more soon!</li>
</ul>
</section>
<section>
<h2>members</h2>
<ul>
{% for member in members %}
<li><a href="{{ member.website }}">{{ member.name }}</a> &ndash; {{ member.title }}</li>
{% endfor %}
</ul>
</section>
<section>
<h2>services</h2>