Update import paths after directory restructure

All import paths to UI elements in various components have been updated following a directory restructure. The change helps to better organize components within the 'sections' and 'ui' directories.
This commit is contained in:
Emil Gulamov 2024-02-19 18:14:31 +04:00
parent 7a609e4a5c
commit 58678ed276
13 changed files with 30 additions and 30 deletions

View file

@ -1,9 +1,9 @@
--- ---
// Import the necessary components from their respective component files // Import the necessary components from their respective component files
import LoginModal from "./ui/forms/LoginModal.astro"; import LoginModal from "../ui/forms/LoginModal.astro";
import RegisterModal from "./ui/forms/RegisterModal.astro"; import RegisterModal from "../ui/forms/RegisterModal.astro";
import RecoverModal from "./ui/forms/RecoverModal.astro"; import RecoverModal from "../ui/forms/RecoverModal.astro";
import LoginBtn from "./ui/buttons/LoginBtn.astro"; import LoginBtn from "../ui/buttons/LoginBtn.astro";
--- ---
<!-- Login Button --> <!-- Login Button -->

View file

@ -1,11 +1,11 @@
--- ---
// Import the necessary dependencies. // Import the necessary dependencies.
import AuthBtn from "./ui/buttons/AuthBtn.astro"; import AuthBtn from "../ui/buttons/AuthBtn.astro";
import ContactIconBlock from "./ui/blocks/ContactIconBlock.astro"; import ContactIconBlock from "../ui/blocks/ContactIconBlock.astro";
import TextInput from "./ui/forms/input/TextInput.astro"; import TextInput from "../ui/forms/input/TextInput.astro";
import EmailContactInput from "./ui/forms/input/EmailContactInput.astro"; import EmailContactInput from "../ui/forms/input/EmailContactInput.astro";
import PhoneInput from "./ui/forms/input/PhoneInput.astro"; import PhoneInput from "../ui/forms/input/PhoneInput.astro";
import TextAreaInput from "./ui/forms/input/TextAreaInput.astro"; import TextAreaInput from "../ui/forms/input/TextAreaInput.astro";
// Define the variables that will be used in this component // Define the variables that will be used in this component
const title: string = "Contact us"; const title: string = "Contact us";

View file

@ -1,6 +1,6 @@
--- ---
// Import the necessary AccordionItem component // Import the necessary AccordionItem component
import AccordionItem from "./ui/blocks/AccordionItem.astro"; import AccordionItem from "../ui/blocks/AccordionItem.astro";
// Define the string variable `subTitle` to provide additional information. // Define the string variable `subTitle` to provide additional information.
const subTitle: string = const subTitle: string =

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 "../components/ui/blocks/StatsBig.astro"; import StatsBig from "../ui/blocks/StatsBig.astro";
import StatsSmall from "../components/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

@ -1,7 +1,7 @@
--- ---
// Import the necessary dependencies // Import the necessary dependencies
import FooterSocialLink from "./ui/links/FooterSocialLink.astro"; import FooterSocialLink from "../ui/links/FooterSocialLink.astro";
import EmailFooterInput from "./ui/forms/input/EmailFooterInput.astro"; import EmailFooterInput from "../ui/forms/input/EmailFooterInput.astro";
// Footer Section Names // Footer Section Names
const sectionOne: string = "Product"; const sectionOne: string = "Product";

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 the variables that will be used in this component // Define the variables that will be used in this component
const title: string = `Equip Your Projects with <span const title: string = `Equip Your Projects with <span

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 the variables that will be used in this component // Define the variables that will be used in this component
const title: string = "Let's Build Together"; const title: string = "Let's Build Together";

View file

@ -1,7 +1,7 @@
--- ---
//Import relevant dependencies //Import relevant dependencies
import ThemeIcon from "./ThemeIcon.astro"; import ThemeIcon from "../ThemeIcon.astro";
import NavLink from "./ui/links/NavLink.astro"; import NavLink from "../ui/links/NavLink.astro";
import Authentication from "./Authentication.astro"; import Authentication from "./Authentication.astro";
--- ---

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";

View file

@ -1,8 +1,8 @@
--- ---
// Importing necessary components // Importing necessary components
import Meta from "../components/Meta.astro"; import Meta from "../components/Meta.astro";
import Navbar from "../components/Navbar.astro"; import Navbar from "../components/sections/Navbar.astro";
import FooterSection from "../components/FooterSection.astro"; import FooterSection from "../components/sections/FooterSection.astro";
// Setting expected props - expecting 'title' and 'meta' as options with a default value for title // Setting expected props - expecting 'title' and 'meta' as options with a default value for title
const { title = "ScrewFast", meta, structuredData } = Astro.props; const { title = "ScrewFast", meta, structuredData } = Astro.props;