diff --git a/packages/studiocms_dashboard/src/components/islands/profile/BasicInfoFallback.astro b/packages/studiocms_dashboard/src/components/islands/profile/BasicInfoFallback.astro new file mode 100644 index 000000000..ae1ceaa36 --- /dev/null +++ b/packages/studiocms_dashboard/src/components/islands/profile/BasicInfoFallback.astro @@ -0,0 +1,40 @@ +--- +import { Button, Card, Input } from '@studiocms/ui/components'; +--- + +
+

Basic Info

+
+ +
+
+
+ + + + +
+
+ + \ No newline at end of file diff --git a/packages/studiocms_dashboard/src/components/islands/profile/UpdatePasswordFallback.astro b/packages/studiocms_dashboard/src/components/islands/profile/UpdatePasswordFallback.astro new file mode 100644 index 000000000..8be5ccd93 --- /dev/null +++ b/packages/studiocms_dashboard/src/components/islands/profile/UpdatePasswordFallback.astro @@ -0,0 +1,44 @@ +--- +import { Button, Card, Input } from '@studiocms/ui/components'; +--- + + +
+

Update Password

+
+ +
+
+
+ + + +
+
+ + \ No newline at end of file diff --git a/packages/studiocms_dashboard/src/routes/profile.astro b/packages/studiocms_dashboard/src/routes/profile.astro index c2d934879..ea0e221f2 100644 --- a/packages/studiocms_dashboard/src/routes/profile.astro +++ b/packages/studiocms_dashboard/src/routes/profile.astro @@ -1,10 +1,11 @@ --- // import { useTranslations } from 'studiocms:i18n'; -import { Button, Card, Input } from '@studiocms/ui/components'; import { Layout } from '../components'; import PageHeader from '../components/PageHeader.astro'; import BasicInfo from '../components/islands/profile/BasicInfo.astro'; +import BasicInfoFallback from '../components/islands/profile/BasicInfoFallback.astro'; import UpdatePassword from '../components/islands/profile/UpdatePassword.astro'; +import UpdatePasswordFallback from '../components/islands/profile/UpdatePasswordFallback.astro'; const lang = 'en-us'; // const t = useTranslations(lang, '@studiocms/dashboard:index'); @@ -20,38 +21,13 @@ const lang = 'en-us';
- -
-

Basic Info

-
- -
-
-
- - - - -
-
+
- -
-

Update Password

-
- -
-
-
- - - -
-
+
- +
@@ -61,49 +37,4 @@ const lang = 'en-us'; flex-direction: column; gap: 1rem; } - - .basic-info-form { - position: relative; - } - - .basic-info-form .form-inputs { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 1rem; - - @media screen and (max-width: 768px) { - grid-template-columns: 1fr; - } - } - - .form-header { - display: block; - position: absolute; - top: 1rem; - right: 1rem; - } - .password-update-form { - position: relative; - } - - .password-update-form .password-form-entries { - display: grid; - gap: 1rem; - grid-template-columns: 1fr 1fr 1fr; - - @media (max-width: 1024px) { - grid-template-columns: 1fr 1fr; - } - - @media (max-width: 768px) { - grid-template-columns: 1fr; - } - } - - .form-header { - display: block; - position: absolute; - top: 1rem; - right: 1rem; - } \ No newline at end of file diff --git a/packages/studiocms_dashboard/src/routes/test.astro b/packages/studiocms_dashboard/src/routes/test.astro index 1f7464fcd..e0d22572c 100644 --- a/packages/studiocms_dashboard/src/routes/test.astro +++ b/packages/studiocms_dashboard/src/routes/test.astro @@ -9,7 +9,7 @@ const lang = 'en-us'; Sus