From fd20e55cd42db7256dffe2305b1483f49654a105 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 2 Sep 2023 21:38:27 +0200 Subject: [PATCH] feat: slap public mastodon data --- src/pages/index.astro | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index c5b51c4..a8689a6 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,6 +2,14 @@ import Layout from "../layouts/Layout.astro"; import Card from "../components/Card.astro"; import Footer from "../components/Footer.astro"; + +const response = await fetch('https://social.ayco.io/api/v1/accounts/109547735999980313') +const { + avatar, + followers_count, + following_count, + note +} = await response.json(); --- @@ -10,18 +18,17 @@ import Footer from "../components/Footer.astro"; Ayo Ayco's picture

AyoAyco

+
    -
  • 🧸 Creator of Cozy
  • -
  • 🦌 Contributor to Elk
  • -
  • 👨🏻‍💻 Software Extraordinaire
  • -
  • 🕵🏻‍♂️ Frontend Detective
  • +
  • {followers_count} Followers
  • +
  • {following_count} Following
Now @@ -193,3 +200,9 @@ import Footer from "../components/Footer.astro"; } } + + \ No newline at end of file