aboutsummaryrefslogtreecommitdiff
path: root/src/info.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-20 16:08:57 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-20 16:08:57 +0200
commit270283eb61716fa51c0c9b96ef3e00d23eb94dc9 (patch)
treeaf50329912c2a699ef168f7915236f5d68a8a22e /src/info.rs
parent9cfb8a07ad4f7413a37ec316f422938e672163f2 (diff)
downloadmeta-adservices-270283eb61716fa51c0c9b96ef3e00d23eb94dc9.tar
meta-adservices-270283eb61716fa51c0c9b96ef3e00d23eb94dc9.tar.bz2
meta-adservices-270283eb61716fa51c0c9b96ef3e00d23eb94dc9.tar.zst
add more info
Diffstat (limited to 'src/info.rs')
-rw-r--r--src/info.rs16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/info.rs b/src/info.rs
index f0cda28..d082d4d 100644
--- a/src/info.rs
+++ b/src/info.rs
@@ -20,7 +20,9 @@ pub async fn r_index<'a>(state: &State<Arc<Logic>>) -> MyResult<Template<DynRend
h1 { "meta adservices" }
p {
"meta adservices is the leading provider of useless images within iframes. "
- "meta adservices is inspired by " a[href="https://john.citrons.xyz/"]{"johnvertisement"}
+ "meta adservices is inspired by " a[href="https://john.citrons.xyz/"]{"johnvertisement"} ". "
+ "the primary differences to john are that meta adservices serves properly compressed images, is free software and is bit more responsive in general. "
+ "check the source code on " a[href="https://codeberg.org/metamuffin/meta-adservices"]{"codeberg"} ". "
}
h2 { "sample ad" }
iframe[src="/v1/embed?s=adservices.metamuffin.org", style="border:none;width:728px;height:90px;"] {}
@@ -33,10 +35,11 @@ pub async fn r_index<'a>(state: &State<Arc<Logic>>) -> MyResult<Template<DynRend
"Send mail to " a[href="mailto:metamuffin@disroot.org"]{"metamuffin@disroot.org"} "." br;
"The mail MUST contain a ad name, ad image, URL to direct those who click it and optionally ad author name. " br;
"Some ads will be rejected for any or no reason at all. "
- "To create good ads, consider the following statements in the context of your ad: "
+ "To create good ads, consider the following statements in the context of your ad (you must not satisfy all): "
ol {
li { "It is funny, amusing or enigmatic in some way." }
- li { "It doesn't break any laws." }
+ li { "It doesn't break any laws in germany." }
+ li { "The link promotes a personal page or free software project page." }
li { "The image is compressed losslessly." }
li { "The image has a resolution of exactly 728x90." }
li { "The image uses the sRGB color space." }
@@ -46,12 +49,12 @@ pub async fn r_index<'a>(state: &State<Arc<Logic>>) -> MyResult<Template<DynRend
}
h2 { "leaderboard" }
table {
- tr { th { "Domain" } th { "Impressions" } th { "Impression weight" } }
+ tr { th { "Domain" } th { "Impression weight" } th { "Impressions" } }
@for (domain, raw, weighted) in &leaderboard {
tr {
td { @domain }
- td { @raw }
- td { @weighted.round() }
+ td { b { @weighted.round() } }
+ td { small { @raw } }
}
}
}
@@ -66,6 +69,7 @@ pub async fn r_index<'a>(state: &State<Arc<Logic>>) -> MyResult<Template<DynRend
li { "Your IP address is used within a bloom filter in volatile memory." }
li { "Your requests increments a persistent public counter per ad site (according to a weighting function)." }
}
+ p { "in case of questions or request mail " a[href="mailto:metamuffin@disroot.org"]{"metamuffin@disroot.org"} }
}
}
}))