From fcfb57f4a58fc3ec72ff50166aa90b05fea3ef25 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 21 Sep 2025 00:01:47 +0800 Subject: [PATCH] :sparkles: Better detail post --- .../OgImage/{WithAvatar.vue => ImageCard.vue} | 23 ++--- app/components/PostEditor.vue | 22 ----- app/components/SidebarFooter.vue | 36 ++++++++ app/composables/useSolarNetwork.ts | 4 +- app/layouts/default.vue | 52 +++++++++--- app/pages/accounts/[name].vue | 2 +- app/pages/auth/create-account.vue | 4 +- app/pages/auth/login.vue | 4 +- app/pages/index.vue | 7 +- app/pages/posts/[id].vue | 84 +++++++++++-------- 10 files changed, 152 insertions(+), 86 deletions(-) rename app/components/OgImage/{WithAvatar.vue => ImageCard.vue} (89%) create mode 100644 app/components/SidebarFooter.vue diff --git a/app/components/OgImage/WithAvatar.vue b/app/components/OgImage/ImageCard.vue similarity index 89% rename from app/components/OgImage/WithAvatar.vue rename to app/components/OgImage/ImageCard.vue index 96a192d..d7fabde 100644 --- a/app/components/OgImage/WithAvatar.vue +++ b/app/components/OgImage/ImageCard.vue @@ -47,6 +47,9 @@ const themeRgb = computed(() => { ?.map((v) => Number.parseInt(v, 16)) .join(", ") }) +const textShadow = computed(() => { + return '2px 2px 8px rgba(0,0,0,0.8)' +}) const siteConfig = useSiteConfig() const siteName = computed(() => { return props.siteName || siteConfig.name @@ -88,11 +91,11 @@ function toAbsoluteUrl(url: string | undefined) {