update templates with new style ^^ #1
1 arquivos alterados com 91 adições e 91 exclusões
Fix css file link
Algumas verificações falharam
/ clippy (pull_request) Has been cancelled
/ tests (pull_request) Has been cancelled
/ check (aarch64-unknown-linux-musl) (pull_request) Has been cancelled
/ check (armv7-unknown-linux-musleabihf) (pull_request) Has been cancelled
/ check (x86_64-unknown-linux-musl) (pull_request) Has been cancelled
Algumas verificações falharam
/ clippy (pull_request) Has been cancelled
/ tests (pull_request) Has been cancelled
/ check (aarch64-unknown-linux-musl) (pull_request) Has been cancelled
/ check (armv7-unknown-linux-musleabihf) (pull_request) Has been cancelled
/ check (x86_64-unknown-linux-musl) (pull_request) Has been cancelled
commit
297fc676bd
|
|
@ -1,92 +1,92 @@
|
||||||
@use crate::{
|
@use crate::{
|
||||||
config::{Config, UrlKind},
|
config::{Config, UrlKind},
|
||||||
data::Node,
|
data::Node,
|
||||||
templates::{info_html, instance_html, statics::index_css},
|
templates::{info_html, instance_html, statics::index_css},
|
||||||
};
|
};
|
||||||
|
|
||||||
@(local: &[Node], nodes: &[Node], config: &Config)
|
@(local: &[Node], nodes: &[Node], config: &Config)
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="stylesheet" href="/style.css" type="text/css" />
|
<link rel="stylesheet" href="/style.css" type="text/css" />
|
||||||
<title>KitsuRelay</title>
|
<title>KitsuRelay</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="about">
|
<div class="about">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<img src="https://s3.kitsunes.club/storage/2899f08c-cf97-4346-a9d6-9652c7d287df.webp" height="50px" alt="A screaming, fluffy Neofox">
|
<img src="https://s3.kitsunes.club/storage/2899f08c-cf97-4346-a9d6-9652c7d287df.webp" height="50px" alt="A screaming, fluffy Neofox">
|
||||||
<span>
|
<span>
|
||||||
<h1>KitsuRelay</h1>
|
<h1>KitsuRelay</h1>
|
||||||
<span class="subtitle">Friendly Relay for Friendly Instances!</span>
|
<span class="subtitle">Friendly Relay for Friendly Instances!</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<section>
|
<section>
|
||||||
Welcome to KitsuRelay! Fedi's favorite GenPur, Furry+ and Queer+ Relay! We cannot wait to see you on the fediverse!
|
Welcome to KitsuRelay! Fedi's favorite GenPur, Furry+ and Queer+ Relay! We cannot wait to see you on the fediverse!
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>What's a Relay?</h2>
|
<h2>What's a Relay?</h2>
|
||||||
Have you ever seen those posts where someone asks for boosts to help them get visibility and get their server connected with others? Relays are an attempt to reduce some of the work needed to get a head start, and connect with a whole bunch of new friends! It grabs your posts, and shoots it out to other members, and we'll send their posts your way. Neat, huh?
|
Have you ever seen those posts where someone asks for boosts to help them get visibility and get their server connected with others? Relays are an attempt to reduce some of the work needed to get a head start, and connect with a whole bunch of new friends! It grabs your posts, and shoots it out to other members, and we'll send their posts your way. Neat, huh?
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Rules:</h2>
|
<h2>Rules:</h2>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Instances must be primarily English-speaking</li>
|
<li>Instances must be primarily English-speaking</li>
|
||||||
<li>You must have a reasonable Moderator-to-User ratio</li>
|
<li>You must have a reasonable Moderator-to-User ratio</li>
|
||||||
<li>Moderation must be active</li>
|
<li>Moderation must be active</li>
|
||||||
<li>You must moderate undesirable content<br>(hate speech, antisemetism, illegal content & spam)</li>
|
<li>You must moderate undesirable content<br>(hate speech, antisemetism, illegal content & spam)</li>
|
||||||
<li>NSFW content must be appropriately flagged</li>
|
<li>NSFW content must be appropriately flagged</li>
|
||||||
</ol>
|
</ol>
|
||||||
<span class="admin-line">Administrator: <a href="https://kio.moe" class="serverCard">Kio</a> - KitsuClub & KitsuGay</span>
|
<span class="admin-line">Administrator: <a href="https://kio.moe" class="serverCard">Kio</a> - KitsuClub & KitsuGay</span>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Joining</h2>
|
<h2>Joining</h2>
|
||||||
<b>Mastodon & *key</b>: <pre>@config.generate_url(UrlKind::Inbox)</pre>
|
<b>Mastodon & *key</b>: <pre>@config.generate_url(UrlKind::Inbox)</pre>
|
||||||
<b>*oma</b>: <pre>@config.generate_url(UrlKind::Actor)</pre>
|
<b>*oma</b>: <pre>@config.generate_url(UrlKind::Actor)</pre>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div class="instances">
|
<div class="instances">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span>
|
<span>
|
||||||
<h2>Connected Instances</h2>
|
<h2>Connected Instances</h2>
|
||||||
<span class="subtitle">Currently, we're sitting at <i>@nodes.len()</i> members!</span>
|
<span class="subtitle">Currently, we're sitting at <i>@nodes.len()</i> members!</span>
|
||||||
<span>
|
<span>
|
||||||
</div>
|
</div>
|
||||||
<section>
|
<section>
|
||||||
<ul>
|
<ul>
|
||||||
@for node in nodes {
|
@for node in nodes {
|
||||||
@if let Some(inst) = node.instance.as_ref() {
|
@if let Some(inst) = node.instance.as_ref() {
|
||||||
@:instance_html(inst, node.info.as_ref().map(|info| { info.software.as_ref() }), node.contact.as_ref(), &node.base)
|
@:instance_html(inst, node.info.as_ref().map(|info| { info.software.as_ref() }), node.contact.as_ref(), &node.base)
|
||||||
} else {
|
} else {
|
||||||
@if let Some(inf) = node.info.as_ref() {
|
@if let Some(inf) = node.info.as_ref() {
|
||||||
@:info_html(inf, &node.base)
|
@:info_html(inf, &node.base)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
<div class="horizontal-list">
|
<div class="horizontal-list">
|
||||||
<a href="https://kitsunes.club/@@kitsurelay">Fedi</a>
|
<a href="https://kitsunes.club/@@kitsurelay">Fedi</a>
|
||||||
<span class="separator" aria-hidden="true" role="presentation"></span>
|
<span class="separator" aria-hidden="true" role="presentation"></span>
|
||||||
<a href="https://kitsunes.club/@@kio">Admin</a>
|
<a href="https://kitsunes.club/@@kio">Admin</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Running @Config::software_name() @Config::software_version()-KMod</p>
|
<p>Running @Config::software_name() @Config::software_version()-KMod</p>
|
||||||
<section>
|
<section>
|
||||||
<div class="horizontal-list">
|
<div class="horizontal-list">
|
||||||
<a href="@config.source_code()">Source</a>
|
<a href="@config.source_code()">Source</a>
|
||||||
<span class="separator" aria-hidden="true" role="presentation"></span>
|
<span class="separator" aria-hidden="true" role="presentation"></span>
|
||||||
<a href="https://git.asonix.dog/asonix/relay">OG</a>
|
<a href="https://git.asonix.dog/asonix/relay">OG</a>
|
||||||
<span class="separator" aria-hidden="true" role="presentation"></span>
|
<span class="separator" aria-hidden="true" role="presentation"></span>
|
||||||
<a href="https://volpeon.ink/emojis/neofox">Neofox</a>
|
<a href="https://volpeon.ink/emojis/neofox">Neofox</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<sub>a thermos wuz here <3</sub>
|
<sub>a thermos wuz here <3</sub>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Carregando…
Adicionar tabela
Adicionar um link
Referência em uma nova issue