From c2dda2165b678719405e3c0b00a1c08ed93f2f18 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Sun, 18 Feb 2024 07:39:53 +0400 Subject: [PATCH] Update component codebase for readability and maintenance Several component files have been refactored to improve code clarity and ease of maintenance. This includes introducing comprehensive comments explaining the functionality and purpose of sections of the code, as well as leveraging Astro.js for more streamlined data sourcing. The commit also includes the removal of redundant files from the vendor scripts directory as part of a general clean-up, improving overall codebase organization. --- src/components/ClientsSection.astro | 21 ++++---- src/components/ContactSection.astro | 16 ++----- src/components/FAQ.astro | 48 +++++++++++++------ src/components/FeaturesGeneral.astro | 18 +++---- src/components/FeaturesNavs.astro | 10 ++-- src/components/FeaturesStats.astro | 15 ++++-- ...resStats2.astro => FeaturesStatsAlt.astro} | 6 +-- src/components/FooterSection.astro | 11 ++--- .../ui/blocks/ContactIconBlock.astro | 10 ++++ src/components/ui/forms/input/Checkbox.astro | 26 +++++++--- .../ui/forms/input/EmailContactInput.astro | 6 ++- .../ui/forms/input/EmailFooterInput.astro | 6 ++- .../ui/forms/input/EmailInput.astro | 10 +++- .../ui/links/FooterSocialLink.astro | 13 ++--- src/pages/contact.astro | 9 ++-- 15 files changed, 142 insertions(+), 83 deletions(-) rename src/components/{FeaturesStats2.astro => FeaturesStatsAlt.astro} (91%) diff --git a/src/components/ClientsSection.astro b/src/components/ClientsSection.astro index d099ef4..9254e35 100644 --- a/src/components/ClientsSection.astro +++ b/src/components/ClientsSection.astro @@ -1,9 +1,6 @@ --- -// Variables for customization of the LoginModal Component -// Main heading +// Define the variables that will be used in this component const title: string = "Trusted by Industry Leaders"; - -// Sub-heading text const subTitle: string = "Experience the reliability chosen by industry giants."; --- @@ -12,19 +9,21 @@ const subTitle: string = class="mx-auto max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 2xl:max-w-full" > -
+
{subTitle}