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>
|
||||
I run <a href="https://federated.nexus"
|
||||
>Federated Nexus</a
|
||||
>, a community resource hosted on Nix with over 250
|
||||
users. We host many FOSS (especially federated)
|
||||
services, including Matrix, LaSuite Docs, and
|
||||
Forgejo.
|
||||
>, a community resource hosted on Nix with <span
|
||||
id="user-count">over 450</span
|
||||
> users. We host many FOSS (especially federated) services,
|
||||
including Matrix, LaSuite Docs, and Forgejo.
|
||||
</p>
|
||||
</article>
|
||||
<aside>
|
||||
|
|
@ -275,3 +275,13 @@ import CallToAction from "../components/CallToAction.astro"
|
|||
</mdui-card>
|
||||
<BottomBar slot="navbar" />
|
||||
</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;
|
||||
flex-wrap: wrap;
|
||||
& article {
|
||||
& span {
|
||||
& > span {
|
||||
color: hsl(0, 0%, 60%);
|
||||
}
|
||||
& h3 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue