From ff2b8e56eb320e5538ffcf27ebfc97b7a857df8b Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Tue, 20 Feb 2024 08:43:57 +0400 Subject: [PATCH] Update import paths for image assets The directory structure for image assets has been reorganised. This change required updates to the import paths in several Astro components, especially those in the features and landing sections. The updated structure streamlines the organisation of image assets, improving code readability and maintainability. --- src/components/sections/features/FeaturesGeneral.astro | 2 +- src/components/sections/features/FeaturesNavs.astro | 6 +++--- src/components/sections/features/FeaturesStatsAlt.astro | 2 +- src/components/sections/landing/HeroSection.astro | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/sections/features/FeaturesGeneral.astro b/src/components/sections/features/FeaturesGeneral.astro index 1e3e33e..1576261 100644 --- a/src/components/sections/features/FeaturesGeneral.astro +++ b/src/components/sections/features/FeaturesGeneral.astro @@ -1,7 +1,7 @@ --- // Import the necessary dependencies import { Image } from "astro:assets"; -import featureImage from "../../images/features-image.avif"; +import featureImage from "../../../images/features-image.avif"; import IconBlock from "../../ui/blocks/IconBlock.astro"; // Define the string variables `title` and `subTitle` for the main heading and sub-heading text respectively. diff --git a/src/components/sections/features/FeaturesNavs.astro b/src/components/sections/features/FeaturesNavs.astro index 426ba3e..3793548 100644 --- a/src/components/sections/features/FeaturesNavs.astro +++ b/src/components/sections/features/FeaturesNavs.astro @@ -2,9 +2,9 @@ // Import the necessary dependencies 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"; +import construction from "../../../images/construction-image.avif"; +import tools from "../../../images/automated-tools.avif"; +import dashboard from "../../../images/dashboard-image.avif"; // Define the variable for the section's heading const title: string = `Customize ScrewFast's offerings to perfectly suit your hardware and construction needs.`; diff --git a/src/components/sections/features/FeaturesStatsAlt.astro b/src/components/sections/features/FeaturesStatsAlt.astro index 0c1acca..6a73410 100644 --- a/src/components/sections/features/FeaturesStatsAlt.astro +++ b/src/components/sections/features/FeaturesStatsAlt.astro @@ -1,7 +1,7 @@ --- import { Image } from "astro:assets"; -import product5 from "../../images/features-image.avif"; +import product5 from "../../../images/features-image.avif"; const title: string = "Why Choose ScrewFast?"; diff --git a/src/components/sections/landing/HeroSection.astro b/src/components/sections/landing/HeroSection.astro index 0d90e58..9c93e68 100644 --- a/src/components/sections/landing/HeroSection.astro +++ b/src/components/sections/landing/HeroSection.astro @@ -1,7 +1,7 @@ --- // Import the necessary dependencies import { Image } from "astro:assets"; -import heroImage from "../../images/hero-image.avif"; +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";