From 6610a27857e6c714c88046bf4d34b853faa75bc0 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Tue, 13 Feb 2024 05:50:53 +0400 Subject: [PATCH] Update image handling and responsive button text sizing Simplified image handling configuration in the "astro.config.mjs" by removing explicit sizing. Updated text sizing of PrimaryCTA and SecondaryCTA components to scale responsively in 2xl views. Aimed to improve the user interface and experience on larger screens. --- package-lock.json | 22 ++++ package.json | 1 + src/components/ClientsSection.astro | 11 +- src/components/FeaturesGeneral.astro | 12 +-- src/components/FeaturesNavs.astro | 8 +- src/components/HeroSection.astro | 10 +- src/components/Meta.astro | 30 +++--- src/components/Navbar.astro | 27 +---- src/components/PricingSection.astro | 14 ++- src/components/TestimonialsSection.astro | 7 +- src/components/ThemeIcon.astro | 104 +++++++------------ src/components/ui/blocks/AccordionItem.astro | 4 +- src/components/ui/blocks/IconBlock.astro | 2 +- src/components/ui/blocks/TabNav.astro | 2 +- src/components/ui/buttons/PrimaryCTA.astro | 2 +- src/components/ui/buttons/SecondaryCTA.astro | 2 +- src/components/ui/links/NavLink.astro | 7 +- src/layouts/MainLayout.astro | 5 + src/pages/contact.astro | 10 ++ src/pages/index.astro | 5 +- src/pages/robots.txt.ts | 1 + tailwind.config.mjs | 5 +- 22 files changed, 145 insertions(+), 146 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8d5449e..738a0ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "typescript": "^5.3.3" }, "devDependencies": { + "@tailwindcss/forms": "^0.5.7", "prettier": "^3.2.5", "prettier-plugin-astro": "^0.13.0", "prettier-plugin-tailwindcss": "^0.5.11" @@ -1236,6 +1237,18 @@ "win32" ] }, + "node_modules/@tailwindcss/forms": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.7.tgz", + "integrity": "sha512-QE7X69iQI+ZXwldE+rzasvbJiyV/ju1FGHH0Qn2W3FKbuYtqp8LKcy6iSw79fVUT5/Vvf+0XgLCeYVG+UV6hOw==", + "dev": true, + "dependencies": { + "mini-svg-data-uri": "^1.2.3" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1" + } + }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -4591,6 +4604,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/mini-svg-data-uri": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", + "dev": true, + "bin": { + "mini-svg-data-uri": "cli.js" + } + }, "node_modules/minimatch": { "version": "9.0.3", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", diff --git a/package.json b/package.json index 3395f29..013ddba 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "typescript": "^5.3.3" }, "devDependencies": { + "@tailwindcss/forms": "^0.5.7", "prettier": "^3.2.5", "prettier-plugin-astro": "^0.13.0", "prettier-plugin-tailwindcss": "^0.5.11" diff --git a/src/components/ClientsSection.astro b/src/components/ClientsSection.astro index 68dc1c1..3822cfb 100644 --- a/src/components/ClientsSection.astro +++ b/src/components/ClientsSection.astro @@ -1,14 +1,11 @@ --- -/* `title` variable used to customise the heading. */ +// Variables for customization of the LoginModal Component +// Main heading const title: string = "Trusted by Industry Leaders"; -/* `subTitle` variable used to customise the sub-heading text. */ +// Sub-heading text const subTitle: string = "Experience the reliability chosen by industry giants."; - -/* - In the above, the title and subTitle attributes are variables part of the ClientsSection component. -*/ ---
+
{content}