From 953e46a0429a3e604b35b261e91c18181aab83f8 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Fri, 25 Apr 2025 23:00:35 +0100 Subject: [PATCH] feat: replace missing.webp with question mark and style fixes --- public/loading.svg | 1 + public/missing.svg | 23 +++++++++++++++++++++++ public/missing.webp | Bin 122 -> 0 bytes src/app/profile/[slug]/page.tsx | 8 ++++---- src/app/profile/settings/page.tsx | 4 ++-- src/components/profile-overview.tsx | 4 ++-- src/components/submit-form/index.tsx | 6 +++++- 7 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 public/loading.svg create mode 100644 public/missing.svg delete mode 100644 public/missing.webp diff --git a/public/loading.svg b/public/loading.svg new file mode 100644 index 0000000..ed4aa54 --- /dev/null +++ b/public/loading.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/missing.svg b/public/missing.svg new file mode 100644 index 0000000..dcc266c --- /dev/null +++ b/public/missing.svg @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/public/missing.webp b/public/missing.webp deleted file mode 100644 index 1d623b67b5fa8575045f696abe2c7fdabc09f391..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 122 zcmV-=0EPcjNk&F;00012MM6+kP&iCw0000l|HJc cJAnWAkN^1J9l(G5$AA3q4&XojQ!f510DYQ7X#fBK diff --git a/src/app/profile/[slug]/page.tsx b/src/app/profile/[slug]/page.tsx index ffe1f76..784a3d1 100644 --- a/src/app/profile/[slug]/page.tsx +++ b/src/app/profile/[slug]/page.tsx @@ -48,7 +48,7 @@ export async function generateMetadata({ params }: Props): Promise { openGraph: { locale: "en_US", type: "profile", - images: [user.image ?? "/missing.webp"], + images: [user.image ?? "/missing.svg"], siteName: "TomodachiShare", username: user.username, firstName: user.name, @@ -57,7 +57,7 @@ export async function generateMetadata({ params }: Props): Promise { card: "summary", title: `${user.name} (@${user.username}) - TomodachiShare`, description: `View ${user.name}'s profile on TomodachiShare. Creator of ${user._count.miis} Miis. Member since ${joinDate}.`, - images: [user.image ?? "/missing.webp"], + images: [user.image ?? "/missing.svg"], creator: user.username!, }, alternates: { @@ -88,11 +88,11 @@ export default async function ProfilePage({ params }: Props) {
profile picture
diff --git a/src/app/profile/settings/page.tsx b/src/app/profile/settings/page.tsx index a0fb023..603e261 100644 --- a/src/app/profile/settings/page.tsx +++ b/src/app/profile/settings/page.tsx @@ -27,11 +27,11 @@ export default async function ProfileSettingsPage() {
profile picture
diff --git a/src/components/profile-overview.tsx b/src/components/profile-overview.tsx index c43f758..c93f33b 100644 --- a/src/components/profile-overview.tsx +++ b/src/components/profile-overview.tsx @@ -9,11 +9,11 @@ export default async function ProfileOverview() {
  • profile picture {session?.user?.username ?? "unknown"} diff --git a/src/components/submit-form/index.tsx b/src/components/submit-form/index.tsx index be94d99..f72d68a 100644 --- a/src/components/submit-form/index.tsx +++ b/src/components/submit-form/index.tsx @@ -132,7 +132,11 @@ export default function SubmitForm() {
    URL.createObjectURL(file))]} + images={[ + studioUrl ?? "/tomodachi-question-face-icon-alt.svg", + generatedQrCodeUrl ?? "/loading.svg", + ...files.map((file) => URL.createObjectURL(file)), + ]} />