From cd12ff7dd8631356100cbd016e89833ad6e4fa5c Mon Sep 17 00:00:00 2001 From: Ayo Date: Fri, 5 Jun 2026 20:27:11 +0200 Subject: [PATCH] feat: show social note (WIP) --- src/pages/index.astro | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 83c3074..9fb498f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -11,8 +11,16 @@ const response = await fetch( 'https://m.webtoo.ls/api/v1/accounts/lookup?acct=ayo' ) const data = await response.json() -const { avatar, note } = data +const { avatar, note, emojis } = data const avatarSize = 150 +console.log(emojis) +let description = note +emojis.forEach((emoji) => { + description = description.replace( + `:${emoji.shortcode}:`, + `` + ) +}) --- @@ -22,7 +30,6 @@ const avatarSize = 150 Ayo Ayco w, -
Ayo! +
+ now @@ -134,12 +143,28 @@ const avatarSize = 150 } .highlighted-section__content { + .p-note { + font-size: var(--font-size-sm) + a { + text-decoration: none; + color: var(--color-brand-complement); + } + } + + .emoji { + border: 0; + display: inline; + height: calc(1rem + 6px); + margin-bottom: -4px; + } + margin: auto; padding: 1rem; max-width: var(--content-width); font-weight: normal; font-size: var(--font-size-lg); color: var(--text-color-light); + line-height: 1em; } .highlighted-section__content__profile-picture {