From 2d2bada884e1ca4a6bd0bb7e75badccf28a7f65d Mon Sep 17 00:00:00 2001
From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com>
Date: Mon, 19 Feb 2024 09:36:37 +0400
Subject: [PATCH] Replace div tags with section tags in various components
The div HTML tags in various components of the project have been replaced with more appropriate section tags for better semantic structure. This affects the TestimonialsSection, Products, FeaturesStats, and several other components. Options for minifying JavaScript in the process-html file have also been updated. In the MainLayout, a main tag has been added to wrap page content for better accessibility and semantics.
---
process-html.mjs | 3 +-
src/components/ClientsSection.astro | 2411 +------------------
src/components/ContactSection.astro | 4 +-
src/components/FAQ.astro | 4 +-
src/components/FeaturesGeneral.astro | 4 +-
src/components/FeaturesNavs.astro | 4 +-
src/components/FeaturesStats.astro | 4 +-
src/components/FeaturesStatsAlt.astro | 4 +-
src/components/HeroSection.astro | 4 +-
src/components/HeroSectionAlt.astro | 4 +-
src/components/PricingSection.astro | 4 +-
src/components/TestimonialsSection.astro | 4 +-
src/components/TestimonialsSectionAlt.astro | 4 +-
src/layouts/MainLayout.astro | 2 +
src/pages/blog/[...slug].astro | 8 +-
src/pages/blog/index.astro | 16 +-
src/pages/insights/[...slug].astro | 4 +-
src/pages/products/[...slug].astro | 4 +-
src/pages/products/index.astro | 4 +-
19 files changed, 58 insertions(+), 2438 deletions(-)
diff --git a/process-html.mjs b/process-html.mjs
index 75a0afd..31e0c67 100644
--- a/process-html.mjs
+++ b/process-html.mjs
@@ -15,7 +15,8 @@ await Promise.all(
html = minify(html, {
removeComments: true,
preserveLineBreaks: true,
- collapseWhitespace: true
+ collapseWhitespace: true,
+ minifyJS: true
})
await fs.writeFile(file, html)
})
diff --git a/src/components/ClientsSection.astro b/src/components/ClientsSection.astro
index 15badcf..809f762 100644
--- a/src/components/ClientsSection.astro
+++ b/src/components/ClientsSection.astro
@@ -5,7 +5,7 @@ const subTitle: string =
"Experience the reliability chosen by industry giants.";
---
-
@@ -15,12 +15,10 @@ const subTitle: string =
>
{title}
-
{subTitle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-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ d="M-26.912 496.696c-2.812-5.011-7.55-7.83-13.31-7.83-7.824 0-15.236 5.018-15.236 13.383 0 7.21 5.357 10.577 11.255 13.108l3.563 1.514c4.47 1.853 8.926 4.254 8.926 9.807 0 5.422-3.974 10.094-9.54 10.094-5.559 0-10.087-4.124-10.015-9.814l-6.525 1.37c1.102 8.307 7.62 14.486 15.999 14.486 9.259 0 16.534-6.727 16.534-16.136 0-8.64-5.488-12.691-12.835-15.568l-3.7-1.442c-3.23-1.24-7.21-3.36-7.21-7.42 0-4.521 4.529-7.34 8.646-7.34 3.915 0 6.382 1.651 8.3 4.88l5.148-3.092zm50.62-7.83c-14.825 0-27.104 12.15-27.104 26.974 0 15.373 12.142 26.974 27.104 26.974 14.955 0 27.11-11.601 27.11-26.974 0-14.824-12.286-26.974-27.11-26.974zm0 47.906c-11.184 0-20.651-9.128-20.651-20.932 0-11.392 8.508-20.932 20.65-20.932 12.15 0 20.659 9.54 20.659 20.932 0 11.804-9.474 20.932-20.658 20.932zm86.722-44.402c-3.909-2.401-8.515-3.504-13.043-3.504-15.236 0-27.516 11.947-27.516 27.248 0 14.962 12.221 26.7 26.968 26.7 4.528 0 9.61-1.312 13.59-3.648v-7.614c-3.849 3.432-8.716 5.357-13.793 5.357-11.53 0-20.318-9.677-20.318-21.004 0-11.457 8.854-21.134 20.455-21.134 4.868 0 9.944 1.788 13.657 5.083v-7.484zm35.782-2.401h-6.453v51.742h6.453V489.97zm32.227 51.742h27.789v-5.898h-21.343V516.25h20.723v-5.898h-20.723v-14.486h21.343v-5.898h-27.79v51.742zm68.113-45.844h12.286v-5.898h-31.02v5.898h12.287v45.844h6.447v-45.844zm61.38 32.873 5.898 12.971h6.935l-24.703-53.934-24.703 53.934h6.93l5.898-12.971h23.744zm-2.683-5.899h-18.387l9.2-20.932 9.187 20.932zm62.978-26.145c-2.805-5.011-7.549-7.83-13.31-7.83-7.817 0-15.23 5.018-15.23 13.383 0 7.21 5.351 10.577 11.25 13.108l3.569 1.514c4.463 1.853 8.92 4.254 8.92 9.807 0 5.422-3.981 10.094-9.54 10.094-5.56 0-10.088-4.124-10.016-9.814l-6.518 1.37c1.096 8.307 7.614 14.486 15.986 14.486 9.265 0 16.54-6.727 16.54-16.136 0-8.64-5.487-12.691-12.834-15.568l-3.706-1.442c-3.224-1.24-7.204-3.36-7.204-7.42 0-4.521 4.528-7.34 8.646-7.34 3.915 0 6.38 1.651 8.306 4.88l5.141-3.092zm65.425 45.015h27.783v-5.898h-21.343V516.25h20.73v-5.898h-20.73v-14.486h21.343v-5.898h-27.783v51.742zm53.974-51.742v32.735c0 11.393 7.073 20.11 18.942 20.11 11.868 0 18.941-8.717 18.941-20.11V489.97h-6.453v30.536c0 8.443-2.538 16.267-12.488 16.267s-12.489-7.824-12.489-16.267V489.97h-6.453zm82.461 29.238c7.478-.894 12.417-7.067 12.417-14.485 0-4.933-2.466-9.814-6.792-12.352-4.118-2.336-9.057-2.401-13.65-2.401h-7.824v51.742h6.453v-21.89h2.669l15.236 21.89h7.823l-16.332-22.504zm-9.396-23.477h1.716c6.382 0 14.061 1.168 14.061 9.272 0 8.228-7.138 9.461-13.728 9.461h-2.049V495.73zm72.726-6.864c-14.817 0-27.104 12.15-27.104 26.974 0 15.373 12.15 26.974 27.104 26.974 14.969 0 27.111-11.601 27.111-26.974 0-14.824-12.28-26.974-27.11-26.974zm0 47.906c-11.177 0-20.65-9.128-20.65-20.932 0-11.392 8.508-20.932 20.65-20.932 12.15 0 20.658 9.54 20.658 20.932 0 11.804-9.474 20.932-20.658 20.932zm58.248-16.75h3.7c9.813 0 18.12-4.182 18.12-15.092 0-9.474-4.94-14.961-20.86-14.961h-7.413v51.742h6.453v-21.689zm0-24.292h1.71c6.38 0 14.067.966 14.067 9.063 0 8.235-7.138 9.468-13.728 9.468h-2.049v-18.53zm75.65 33.01 5.898 12.971h6.93l-24.704-53.934-24.703 53.934h6.936l5.898-12.971h23.744zm-2.676-5.899h-18.387l9.187-20.932 9.2 20.932zm36.213 18.87h27.79v-5.898h-21.343V516.25h20.73v-5.898h-20.73v-14.486h21.343v-5.898h-27.79v51.742zm85.274-12.971 5.898 12.971h6.93l-24.704-53.934-24.703 53.934h6.936l5.899-12.971h23.744zm-2.682-5.899H865.05l9.2-20.932 9.194 20.932"
+ style="fill:#6B7280;fill-opacity:1;fill-rule:nonzero;stroke:none"
+ transform="translate(98.847 -259.733)">
+
+
-
-
-
-
+
diff --git a/src/components/ContactSection.astro b/src/components/ContactSection.astro
index fa2a10e..51006c0 100644
--- a/src/components/ContactSection.astro
+++ b/src/components/ContactSection.astro
@@ -18,7 +18,7 @@ const formSubTitle: string = "We'll get back to you in 1-2 business days.";
---
-
+
diff --git a/src/components/FAQ.astro b/src/components/FAQ.astro
index 9013569..84add9f 100644
--- a/src/components/FAQ.astro
+++ b/src/components/FAQ.astro
@@ -47,7 +47,7 @@ const faqs = [
---
-
@@ -93,7 +93,7 @@ const faqs = [
-
+
diff --git a/src/components/FeaturesGeneral.astro b/src/components/FeaturesGeneral.astro
index b782c5d..58d72ee 100644
--- a/src/components/FeaturesGeneral.astro
+++ b/src/components/FeaturesGeneral.astro
@@ -10,7 +10,7 @@ const subTitle: string =
"At ScrewFast, we tackle the unique challenges encountered in the hardware and construction sectors. From cutting-edge tools to expert services, we're dedicated to helping you overcome obstacles and achieve your goals.";
---
-
@@ -112,4 +112,4 @@ const subTitle: string =
-
+
diff --git a/src/components/FeaturesNavs.astro b/src/components/FeaturesNavs.astro
index eaf50d0..ff0423d 100644
--- a/src/components/FeaturesNavs.astro
+++ b/src/components/FeaturesNavs.astro
@@ -10,7 +10,7 @@ import dashboard from "../images/dashboard-image.avif";
const title: string = `Customize ScrewFast 's offerings to perfectly suit your hardware and construction needs.`;
---
-
@@ -125,7 +125,7 @@ const title: string = `Customize
diff --git a/src/components/FeaturesStats.astro b/src/components/FeaturesStats.astro
index e445b43..ac8b6bb 100644
--- a/src/components/FeaturesStats.astro
+++ b/src/components/FeaturesStats.astro
@@ -33,7 +33,7 @@ const stats: Stat[] = [
];
---
-
@@ -75,4 +75,4 @@ const stats: Stat[] = [
-
+
diff --git a/src/components/FeaturesStatsAlt.astro b/src/components/FeaturesStatsAlt.astro
index 5371b24..f336349 100644
--- a/src/components/FeaturesStatsAlt.astro
+++ b/src/components/FeaturesStatsAlt.astro
@@ -17,7 +17,7 @@ const benefits: string[] = [
const ListItemMarker: string = ` `;
---
-
@@ -53,4 +53,4 @@ const ListItemMarker: string = `
-
+
diff --git a/src/components/HeroSection.astro b/src/components/HeroSection.astro
index ee88cdf..c7bf0ed 100644
--- a/src/components/HeroSection.astro
+++ b/src/components/HeroSection.astro
@@ -23,7 +23,7 @@ const reviews: string = "12.8k";
---
-
@@ -124,4 +124,4 @@ const reviews: string = "12.8k";
/>
-
+
diff --git a/src/components/HeroSectionAlt.astro b/src/components/HeroSectionAlt.astro
index f14a794..4b2fecb 100644
--- a/src/components/HeroSectionAlt.astro
+++ b/src/components/HeroSectionAlt.astro
@@ -8,7 +8,7 @@ const subTitle: string =
"ScrewFast is an open-source template, meticulously crafted with Astro, Tailwind CSS, and Preline UI frameworks.";
---
-
+
diff --git a/src/components/PricingSection.astro b/src/components/PricingSection.astro
index 69c21e7..4079714 100644
--- a/src/components/PricingSection.astro
+++ b/src/components/PricingSection.astro
@@ -51,7 +51,7 @@ const professionalToolbox: Product = {
};
---
-
@@ -187,4 +187,4 @@ const professionalToolbox: Product = {
-
+
diff --git a/src/components/TestimonialsSection.astro b/src/components/TestimonialsSection.astro
index 551321c..d85842b 100644
--- a/src/components/TestimonialsSection.astro
+++ b/src/components/TestimonialsSection.astro
@@ -52,7 +52,7 @@ const statistics: StatProps[] = [
];
---
-
@@ -156,4 +156,4 @@ const statistics: StatProps[] = [
-
+
diff --git a/src/components/TestimonialsSectionAlt.astro b/src/components/TestimonialsSectionAlt.astro
index a0981de..7aa8c08 100644
--- a/src/components/TestimonialsSectionAlt.astro
+++ b/src/components/TestimonialsSectionAlt.astro
@@ -49,7 +49,7 @@ const testimonials: Testimonial[] = [
];
---
-
@@ -97,4 +97,4 @@ const testimonials: Testimonial[] = [
))
}
-
+
diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro
index 5227959..be91147 100644
--- a/src/layouts/MainLayout.astro
+++ b/src/layouts/MainLayout.astro
@@ -58,7 +58,9 @@ We set the language of the page to English and add classes for scrollbar and scr
-->
+
+