From fd20e55cd42db7256dffe2305b1483f49654a105 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 2 Sep 2023 21:38:27 +0200 Subject: [PATCH 1/4] 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 From b65fd729e82c5a320ac9e6f7a976b0aba0615914 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sun, 16 Jul 2023 00:32:27 +0200 Subject: [PATCH 2/4] update source code url --- src/components/Footer.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index d234019..d8bf221 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -2,7 +2,7 @@ From f83317bfcb15bcc20eba056db90b5625bd5e589c Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 2 Sep 2023 21:52:25 +0200 Subject: [PATCH 3/4] link to followers/following --- src/pages/index.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index a8689a6..7dc478f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -27,8 +27,8 @@ const {