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 1d623b6..0000000 Binary files a/public/missing.webp and /dev/null differ 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)), + ]} />