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.
This commit is contained in:
Emil Gulamov 2024-02-20 07:51:14 +04:00
parent addbb5457a
commit 83553eb1c1
7 changed files with 13 additions and 13 deletions

View file

@ -2,7 +2,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.
const title: string = "Meeting Industry Demands"; const title: string = "Meeting Industry Demands";

View file

@ -1,7 +1,7 @@
--- ---
// 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";

View file

@ -1,7 +1,7 @@
--- ---
// Import the necessary components // Import the necessary components
import StatsBig from "../ui/blocks/StatsBig.astro"; import StatsBig from "../../ui/blocks/StatsBig.astro";
import StatsSmall from "../ui/blocks/StatsSmall.astro"; import StatsSmall from "../../ui/blocks/StatsSmall.astro";
// Get values from Astro's builtin props // Get values from Astro's builtin props
const { title, subTitle } = Astro.props; const { title, subTitle } = Astro.props;
// TypeScript interface for the properties // TypeScript interface for the properties

View file

@ -2,11 +2,11 @@
// 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";
import FullStar from "../ui/stars/FullStar.astro"; import FullStar from "../../ui/stars/FullStar.astro";
import HalfStar from "../ui/stars/HalfStar.astro"; import HalfStar from "../../ui/stars/HalfStar.astro";
// Define props from Astro // Define props from Astro
const { const {

View file

@ -1,6 +1,6 @@
--- ---
// Import the necessary dependencies // Import the necessary dependencies
import GithubBtn from "../ui/buttons/GithubBtn.astro"; import GithubBtn from "../../ui/buttons/GithubBtn.astro";
// Define props from Astro // Define props from Astro
const { title, subTitle, url } = Astro.props; const { title, subTitle, url } = Astro.props;

View file

@ -1,6 +1,6 @@
--- ---
// Import SecondaryCTA component for use in this module // 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 // Set heading and sub-heading for the pricing section
const title: string = "Simple, Transparent Pricing"; const title: string = "Simple, Transparent Pricing";

View file

@ -1,6 +1,6 @@
--- ---
// Import AvatarTestimonialSection component for use in this module // 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 // Set title for the testimonial section
const title: string = "What Our Customers Say"; const title: string = "What Our Customers Say";