From 24ae5dc3e206b198e8513717eae57ef935457f5e Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Fri, 22 Mar 2024 04:43:44 +0400 Subject: [PATCH] Replace SVG icons with Icon component throughout the application A centralized Icon component is now used to manage all SVG icons, improving code readability and maintainability. It also replaced manually defined SVG paths in various components including cards, buttons, and sections. --- .../sections/pricing/PricingSection.astro | 25 ++-------- src/components/ui/blocks/AccordionItem.astro | 35 ++++---------- src/components/ui/blocks/StatsGrid.astro | 21 ++------- src/components/ui/buttons/Bookmark.astro | 19 ++------ src/components/ui/buttons/Btn404.astro | 18 +------ src/components/ui/buttons/GithubBtn.astro | 17 +------ src/components/ui/buttons/PrimaryCTA.astro | 18 +------ src/components/ui/buttons/SocialShare.astro | 47 +++---------------- src/components/ui/cards/CardInsight.astro | 14 +----- src/components/ui/cards/CardSmall.astro | 8 +--- src/components/ui/cards/CardWide.astro | 8 +--- 11 files changed, 37 insertions(+), 193 deletions(-) diff --git a/src/components/sections/pricing/PricingSection.astro b/src/components/sections/pricing/PricingSection.astro index 5eb1f96..8e66c78 100644 --- a/src/components/sections/pricing/PricingSection.astro +++ b/src/components/sections/pricing/PricingSection.astro @@ -1,6 +1,7 @@ --- // Import SecondaryCTA component for use in this module import SecondaryCTA from "../../ui/buttons/SecondaryCTA.astro"; +import Icon from "../../ui/icons/Icon.astro"; // Set heading and sub-heading for the pricing section const title: string = "Simple, Transparent Pricing"; @@ -94,17 +95,7 @@ const professionalToolbox: Product = { { starterKit.features.map((feature) => (
- {content} + {answer}
diff --git a/src/components/ui/buttons/Bookmark.astro b/src/components/ui/buttons/Bookmark.astro index 0c8ae2c..5265406 100644 --- a/src/components/ui/buttons/Bookmark.astro +++ b/src/components/ui/buttons/Bookmark.astro @@ -1,22 +1,13 @@ +--- +import Icon from "../icons/Icon.astro"; +--- +