From 2acfdaa84aee7dcf17834e545dc3f70701562e1d Mon Sep 17 00:00:00 2001
From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com>
Date: Mon, 12 Feb 2024 17:36:50 +0400
Subject: [PATCH] Simplify image configuration and update button text sizing
The image handling configuration within astro.config.mjs has been simplified by removing explicit sizing and format details. Concurrently, button text sizing for both PrimaryCTA and SecondaryCTA components has been updated to scale responsively on 2xl views, ensuring better user interface on larger screens.
---
astro.config.mjs | 9 +--------
src/components/ui/buttons/PrimaryCTA.astro | 2 +-
src/components/ui/buttons/SecondaryCTA.astro | 4 ++--
3 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/astro.config.mjs b/astro.config.mjs
index 72e7ab6..eafa4be 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -8,12 +8,5 @@ export default defineConfig({
site: 'https://screw-fast.vercel.app',
integrations: [tailwind(), sitemap()],
output: 'static',
- adapter: vercelStatic({
- imagesConfig: {
- sizes: [400, 600, 800, 1000, 1200, 1600, 2000],
- domains: [],
- formats: ["image/avif", "image/webp"],
- },
- imageService: true,
- }),
+ adapter: vercelStatic(),
});
\ No newline at end of file
diff --git a/src/components/ui/buttons/PrimaryCTA.astro b/src/components/ui/buttons/PrimaryCTA.astro
index 075370c..3c23fb8 100644
--- a/src/components/ui/buttons/PrimaryCTA.astro
+++ b/src/components/ui/buttons/PrimaryCTA.astro
@@ -8,7 +8,7 @@ interface Props {
---
{title}
diff --git a/src/components/ui/buttons/SecondaryCTA.astro b/src/components/ui/buttons/SecondaryCTA.astro
index 89019ad..0b1453e 100644
--- a/src/components/ui/buttons/SecondaryCTA.astro
+++ b/src/components/ui/buttons/SecondaryCTA.astro
@@ -8,8 +8,8 @@ interface Props {
---
{title}
-
\ No newline at end of file
+