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.
This commit is contained in:
parent
38e8049299
commit
ff2b8e56eb
4 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies
|
// Import the necessary dependencies
|
||||||
import { Image } from "astro:assets";
|
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";
|
import IconBlock from "../../ui/blocks/IconBlock.astro";
|
||||||
|
|
||||||
// Define the string variables `title` and `subTitle` for the main heading and sub-heading text respectively.
|
// Define the string variables `title` and `subTitle` for the main heading and sub-heading text respectively.
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
// Import the necessary dependencies
|
// Import the necessary dependencies
|
||||||
import TabNav from "../../ui/blocks/TabNav.astro";
|
import TabNav from "../../ui/blocks/TabNav.astro";
|
||||||
import TabContent from "../../ui/blocks/TabContent.astro";
|
import TabContent from "../../ui/blocks/TabContent.astro";
|
||||||
import construction from "../../images/construction-image.avif";
|
import construction from "../../../images/construction-image.avif";
|
||||||
import tools from "../../images/automated-tools.avif";
|
import tools from "../../../images/automated-tools.avif";
|
||||||
import dashboard from "../../images/dashboard-image.avif";
|
import dashboard from "../../../images/dashboard-image.avif";
|
||||||
|
|
||||||
// Define the variable for the section's heading
|
// Define the variable for the section's heading
|
||||||
const title: string = `Customize <span class="text-yellow-500 dark:text-yellow-400">ScrewFast</span>'s offerings to perfectly suit your hardware and construction needs.`;
|
const title: string = `Customize <span class="text-yellow-500 dark:text-yellow-400">ScrewFast</span>'s offerings to perfectly suit your hardware and construction needs.`;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
import { Image } from "astro:assets";
|
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?";
|
const title: string = "Why Choose ScrewFast?";
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies
|
// Import the necessary dependencies
|
||||||
import { Image } from "astro:assets";
|
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 PrimaryCTA from "../../ui/buttons/PrimaryCTA.astro";
|
||||||
import SecondaryCTA from "../../ui/buttons/SecondaryCTA.astro";
|
import SecondaryCTA from "../../ui/buttons/SecondaryCTA.astro";
|
||||||
import Avatar from "../../ui/avatars/Avatar.astro";
|
import Avatar from "../../ui/avatars/Avatar.astro";
|
||||||
|
|
Loading…
Add table
Reference in a new issue