From f7f2f38d32c9cde3b9732ec28de7958508e966f8 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Sun, 18 Feb 2024 23:16:41 +0400 Subject: [PATCH] Update various UI elements and improve form error handling This commit introduces adjustments to several UI elements, including title alignment, font sizes, and avatars loading. The updates aim to improve the overall visual appeal and user experience on the website. In addition, better error handling has been added to form inputs, including adding unique error IDs for each form's email input to enhance user feedback and accessibility. --- src/components/ClientsSection.astro | 12 ++++++------ src/components/FeaturesStatsAlt.astro | 2 +- src/components/ui/avatars/Avatar.astro | 1 + .../ui/avatars/AvatarTestimonialSection.astro | 1 + src/components/ui/cards/CardRelated.astro | 3 ++- src/components/ui/forms/LoginModal.astro | 2 +- src/components/ui/forms/RecoverModal.astro | 2 +- src/components/ui/forms/RegisterModal.astro | 2 +- src/components/ui/forms/input/EmailInput.astro | 7 ++++--- src/pages/blog/index.astro | 2 +- 10 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/components/ClientsSection.astro b/src/components/ClientsSection.astro index 455eec4..15badcf 100644 --- a/src/components/ClientsSection.astro +++ b/src/components/ClientsSection.astro @@ -22,12 +22,12 @@ const subTitle: string =
@@ -2424,7 +2424,7 @@ const subTitle: string = @@ -2451,11 +2451,11 @@ const subTitle: string = - + - + diff --git a/src/components/FeaturesStatsAlt.astro b/src/components/FeaturesStatsAlt.astro index e40ca9e..5371b24 100644 --- a/src/components/FeaturesStatsAlt.astro +++ b/src/components/FeaturesStatsAlt.astro @@ -43,7 +43,7 @@ const ListItemMarker: string = ` - + {item} diff --git a/src/components/ui/avatars/Avatar.astro b/src/components/ui/avatars/Avatar.astro index 5f67be6..426a2d8 100644 --- a/src/components/ui/avatars/Avatar.astro +++ b/src/components/ui/avatars/Avatar.astro @@ -13,4 +13,5 @@ interface Props { class="inline-block h-8 w-8 rounded-full ring-2 ring-neutral-50 dark:ring-zinc-800" src={src} alt={alt} + loading="lazy" /> diff --git a/src/components/ui/avatars/AvatarTestimonialSection.astro b/src/components/ui/avatars/AvatarTestimonialSection.astro index 2ad43bf..350a156 100644 --- a/src/components/ui/avatars/AvatarTestimonialSection.astro +++ b/src/components/ui/avatars/AvatarTestimonialSection.astro @@ -12,5 +12,6 @@ interface Props { class="size-8 rounded-full sm:h-[2.875rem] sm:w-[2.875rem]" src={src} alt={alt} + loading="lazy" />
diff --git a/src/components/ui/cards/CardRelated.astro b/src/components/ui/cards/CardRelated.astro index a609f1f..e72daef 100644 --- a/src/components/ui/cards/CardRelated.astro +++ b/src/components/ui/cards/CardRelated.astro @@ -15,7 +15,8 @@ interface Props { You might want to change it to the corresponding blog post's URL. -->
diff --git a/src/components/ui/forms/LoginModal.astro b/src/components/ui/forms/LoginModal.astro index 234efac..a8f669c 100644 --- a/src/components/ui/forms/LoginModal.astro +++ b/src/components/ui/forms/LoginModal.astro @@ -58,7 +58,7 @@ const config = {
- +
- +
diff --git a/src/components/ui/forms/RegisterModal.astro b/src/components/ui/forms/RegisterModal.astro index a9155f7..843ae43 100644 --- a/src/components/ui/forms/RegisterModal.astro +++ b/src/components/ui/forms/RegisterModal.astro @@ -59,7 +59,7 @@ const config = {
- +
-
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 4275573..815cb91 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -37,7 +37,7 @@ const secondSubTitle: string = class="mx-auto max-w-[85rem] space-y-8 px-4 pt-16 sm:px-6 lg:px-8 2xl:max-w-full" > -
+