From e96af1f6fbcb6c287535c25dcdc58be89f4ae85d Mon Sep 17 00:00:00 2001 From: MotorTruck1221 Date: Mon, 30 Sep 2024 03:09:05 -0600 Subject: [PATCH] fix my scuffed toast notifs --- src/components/settings/Loader.astro | 7 +- src/components/toasts/ToastWrapper.svelte | 6 +- src/pages/[lang]/settings/pr.astro | 108 +++++++++++++- src/pages/[lang]/settings/tab.astro | 12 +- src/utils/settings.ts | 163 ++++++++++++---------- src/utils/toast.ts | 2 + 6 files changed, 212 insertions(+), 86 deletions(-) diff --git a/src/components/settings/Loader.astro b/src/components/settings/Loader.astro index d446b4d..b44f846 100644 --- a/src/components/settings/Loader.astro +++ b/src/components/settings/Loader.astro @@ -1,8 +1,9 @@ diff --git a/src/components/toasts/ToastWrapper.svelte b/src/components/toasts/ToastWrapper.svelte index 50495ff..0b1afa5 100644 --- a/src/components/toasts/ToastWrapper.svelte +++ b/src/components/toasts/ToastWrapper.svelte @@ -2,5 +2,7 @@ import { Toaster } from "svelte-french-toast"; - - + diff --git a/src/pages/[lang]/settings/pr.astro b/src/pages/[lang]/settings/pr.astro index ad63fcd..ecf27d0 100644 --- a/src/pages/[lang]/settings/pr.astro +++ b/src/pages/[lang]/settings/pr.astro @@ -2,6 +2,9 @@ import Layout from "@layouts/Layout.astro"; import SettingsLayout from "@layouts/SettingsLayout.astro"; import SettingsSection from "@layouts/SettingsSection.astro"; +import SettingsCard from "@components/settings/SettingsCard.astro"; +import ToastWrapper from "@components/toasts/ToastWrapper.svelte"; +import Toast from "@components/toasts/Toast.svelte"; import { getLangFromUrl, useTranslations } from "../../../i18n/utils"; const lang = getLangFromUrl(Astro.url); @@ -18,8 +21,109 @@ export const prerender = true; - - Guhh + +
+ + + + + +
+ + +
+ diff --git a/src/pages/[lang]/settings/tab.astro b/src/pages/[lang]/settings/tab.astro index cdb84b1..4a302c6 100644 --- a/src/pages/[lang]/settings/tab.astro +++ b/src/pages/[lang]/settings/tab.astro @@ -58,10 +58,10 @@ export const prerender = true;