live user count for federated nexus
This commit is contained in:
parent
2ee6b284a1
commit
21edcb0267
2 changed files with 15 additions and 5 deletions
|
|
@ -76,10 +76,10 @@ import CallToAction from "../components/CallToAction.astro"
|
||||||
<p>
|
<p>
|
||||||
I run <a href="https://federated.nexus"
|
I run <a href="https://federated.nexus"
|
||||||
>Federated Nexus</a
|
>Federated Nexus</a
|
||||||
>, a community resource hosted on Nix with over 250
|
>, a community resource hosted on Nix with <span
|
||||||
users. We host many FOSS (especially federated)
|
id="user-count">over 450</span
|
||||||
services, including Matrix, LaSuite Docs, and
|
> users. We host many FOSS (especially federated) services,
|
||||||
Forgejo.
|
including Matrix, LaSuite Docs, and Forgejo.
|
||||||
</p>
|
</p>
|
||||||
</article>
|
</article>
|
||||||
<aside>
|
<aside>
|
||||||
|
|
@ -275,3 +275,13 @@ import CallToAction from "../components/CallToAction.astro"
|
||||||
</mdui-card>
|
</mdui-card>
|
||||||
<BottomBar slot="navbar" />
|
<BottomBar slot="navbar" />
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
;(async () => {
|
||||||
|
const response = await fetch(
|
||||||
|
"https://matrix.federated.nexus/_continuwuity/local_user_count"
|
||||||
|
)
|
||||||
|
const json = await response.json()
|
||||||
|
document.querySelector("#user-count")!.innerHTML = json["count"]
|
||||||
|
})()
|
||||||
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ main > * > section {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
& article {
|
& article {
|
||||||
& span {
|
& > span {
|
||||||
color: hsl(0, 0%, 60%);
|
color: hsl(0, 0%, 60%);
|
||||||
}
|
}
|
||||||
& h3 {
|
& h3 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue