From 83553eb1c15be14a0511c643fbf94b5e61835976 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Tue, 20 Feb 2024 07:51:14 +0400 Subject: [PATCH] Update import paths due to directory restructuring The directory structure of components was reorganized, which required the updating of import paths in various sections. This was crucial to maintain the functionality of the UI components, buttons, blocks, and avatars after the folder restructuring. This change also sets the groundwork for future enhancements, such as improving SEO performance. --- src/components/sections/features/FeaturesGeneral.astro | 2 +- src/components/sections/features/FeaturesNavs.astro | 4 ++-- src/components/sections/features/FeaturesStats.astro | 4 ++-- src/components/sections/landing/HeroSection.astro | 10 +++++----- src/components/sections/landing/HeroSectionAlt.astro | 2 +- src/components/sections/pricing/PricingSection.astro | 2 +- .../sections/testimonials/TestimonialsSectionAlt.astro | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/sections/features/FeaturesGeneral.astro b/src/components/sections/features/FeaturesGeneral.astro index 2772f45..1e3e33e 100644 --- a/src/components/sections/features/FeaturesGeneral.astro +++ b/src/components/sections/features/FeaturesGeneral.astro @@ -2,7 +2,7 @@ // Import the necessary dependencies import { Image } from "astro:assets"; import featureImage from "../../images/features-image.avif"; -import IconBlock from "../ui/blocks/IconBlock.astro"; +import IconBlock from "../../ui/blocks/IconBlock.astro"; // Define the string variables `title` and `subTitle` for the main heading and sub-heading text respectively. const title: string = "Meeting Industry Demands"; diff --git a/src/components/sections/features/FeaturesNavs.astro b/src/components/sections/features/FeaturesNavs.astro index 32ae55a..426ba3e 100644 --- a/src/components/sections/features/FeaturesNavs.astro +++ b/src/components/sections/features/FeaturesNavs.astro @@ -1,7 +1,7 @@ --- // Import the necessary dependencies -import TabNav from "../ui/blocks/TabNav.astro"; -import TabContent from "../ui/blocks/TabContent.astro"; +import TabNav from "../../ui/blocks/TabNav.astro"; +import TabContent from "../../ui/blocks/TabContent.astro"; import construction from "../../images/construction-image.avif"; import tools from "../../images/automated-tools.avif"; import dashboard from "../../images/dashboard-image.avif"; diff --git a/src/components/sections/features/FeaturesStats.astro b/src/components/sections/features/FeaturesStats.astro index cef0d83..acf589a 100644 --- a/src/components/sections/features/FeaturesStats.astro +++ b/src/components/sections/features/FeaturesStats.astro @@ -1,7 +1,7 @@ --- // Import the necessary components -import StatsBig from "../ui/blocks/StatsBig.astro"; -import StatsSmall from "../ui/blocks/StatsSmall.astro"; +import StatsBig from "../../ui/blocks/StatsBig.astro"; +import StatsSmall from "../../ui/blocks/StatsSmall.astro"; // Get values from Astro's builtin props const { title, subTitle } = Astro.props; // TypeScript interface for the properties diff --git a/src/components/sections/landing/HeroSection.astro b/src/components/sections/landing/HeroSection.astro index 943bb15..0d90e58 100644 --- a/src/components/sections/landing/HeroSection.astro +++ b/src/components/sections/landing/HeroSection.astro @@ -2,11 +2,11 @@ // Import the necessary dependencies import { Image } from "astro:assets"; import heroImage from "../../images/hero-image.avif"; -import PrimaryCTA from "../ui/buttons/PrimaryCTA.astro"; -import SecondaryCTA from "../ui/buttons/SecondaryCTA.astro"; -import Avatar from "../ui/avatars/Avatar.astro"; -import FullStar from "../ui/stars/FullStar.astro"; -import HalfStar from "../ui/stars/HalfStar.astro"; +import PrimaryCTA from "../../ui/buttons/PrimaryCTA.astro"; +import SecondaryCTA from "../../ui/buttons/SecondaryCTA.astro"; +import Avatar from "../../ui/avatars/Avatar.astro"; +import FullStar from "../../ui/stars/FullStar.astro"; +import HalfStar from "../../ui/stars/HalfStar.astro"; // Define props from Astro const { diff --git a/src/components/sections/landing/HeroSectionAlt.astro b/src/components/sections/landing/HeroSectionAlt.astro index 18a0b2a..09f44d8 100644 --- a/src/components/sections/landing/HeroSectionAlt.astro +++ b/src/components/sections/landing/HeroSectionAlt.astro @@ -1,6 +1,6 @@ --- // Import the necessary dependencies -import GithubBtn from "../ui/buttons/GithubBtn.astro"; +import GithubBtn from "../../ui/buttons/GithubBtn.astro"; // Define props from Astro const { title, subTitle, url } = Astro.props; diff --git a/src/components/sections/pricing/PricingSection.astro b/src/components/sections/pricing/PricingSection.astro index 8ca8f4e..5eb1f96 100644 --- a/src/components/sections/pricing/PricingSection.astro +++ b/src/components/sections/pricing/PricingSection.astro @@ -1,6 +1,6 @@ --- // Import SecondaryCTA component for use in this module -import SecondaryCTA from "../ui/buttons/SecondaryCTA.astro"; +import SecondaryCTA from "../../ui/buttons/SecondaryCTA.astro"; // Set heading and sub-heading for the pricing section const title: string = "Simple, Transparent Pricing"; diff --git a/src/components/sections/testimonials/TestimonialsSectionAlt.astro b/src/components/sections/testimonials/TestimonialsSectionAlt.astro index f1f2c1d..15f638b 100644 --- a/src/components/sections/testimonials/TestimonialsSectionAlt.astro +++ b/src/components/sections/testimonials/TestimonialsSectionAlt.astro @@ -1,6 +1,6 @@ --- // Import AvatarTestimonialSection component for use in this module -import AvatarTestimonialSection from "../ui/avatars/AvatarTestimonialSection.astro"; +import AvatarTestimonialSection from "../../ui/avatars/AvatarTestimonialSection.astro"; // Set title for the testimonial section const title: string = "What Our Customers Say";