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:
parent
7a609e4a5c
commit
58678ed276
13 changed files with 30 additions and 30 deletions
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
// Import the necessary components from their respective component files
|
||||
import LoginModal from "./ui/forms/LoginModal.astro";
|
||||
import RegisterModal from "./ui/forms/RegisterModal.astro";
|
||||
import RecoverModal from "./ui/forms/RecoverModal.astro";
|
||||
import LoginBtn from "./ui/buttons/LoginBtn.astro";
|
||||
import LoginModal from "../ui/forms/LoginModal.astro";
|
||||
import RegisterModal from "../ui/forms/RegisterModal.astro";
|
||||
import RecoverModal from "../ui/forms/RecoverModal.astro";
|
||||
import LoginBtn from "../ui/buttons/LoginBtn.astro";
|
||||
---
|
||||
|
||||
<!-- Login Button -->
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
// Import the necessary dependencies.
|
||||
import AuthBtn from "./ui/buttons/AuthBtn.astro";
|
||||
import ContactIconBlock from "./ui/blocks/ContactIconBlock.astro";
|
||||
import TextInput from "./ui/forms/input/TextInput.astro";
|
||||
import EmailContactInput from "./ui/forms/input/EmailContactInput.astro";
|
||||
import PhoneInput from "./ui/forms/input/PhoneInput.astro";
|
||||
import TextAreaInput from "./ui/forms/input/TextAreaInput.astro";
|
||||
import AuthBtn from "../ui/buttons/AuthBtn.astro";
|
||||
import ContactIconBlock from "../ui/blocks/ContactIconBlock.astro";
|
||||
import TextInput from "../ui/forms/input/TextInput.astro";
|
||||
import EmailContactInput from "../ui/forms/input/EmailContactInput.astro";
|
||||
import PhoneInput from "../ui/forms/input/PhoneInput.astro";
|
||||
import TextAreaInput from "../ui/forms/input/TextAreaInput.astro";
|
||||
|
||||
// Define the variables that will be used in this component
|
||||
const title: string = "Contact us";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
// 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.
|
||||
const subTitle: string =
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
// Import the necessary components
|
||||
import StatsBig from "../components/ui/blocks/StatsBig.astro";
|
||||
import StatsSmall from "../components/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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
// Import the necessary dependencies
|
||||
import FooterSocialLink from "./ui/links/FooterSocialLink.astro";
|
||||
import EmailFooterInput from "./ui/forms/input/EmailFooterInput.astro";
|
||||
import FooterSocialLink from "../ui/links/FooterSocialLink.astro";
|
||||
import EmailFooterInput from "../ui/forms/input/EmailFooterInput.astro";
|
||||
|
||||
// Footer Section Names
|
||||
const sectionOne: string = "Product";
|
||||
|
|
|
@ -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 the variables that will be used in this component
|
||||
const title: string = `Equip Your Projects with <span
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
// 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
|
||||
const title: string = "Let's Build Together";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
//Import relevant dependencies
|
||||
import ThemeIcon from "./ThemeIcon.astro";
|
||||
import NavLink from "./ui/links/NavLink.astro";
|
||||
import ThemeIcon from "../ThemeIcon.astro";
|
||||
import NavLink from "../ui/links/NavLink.astro";
|
||||
import Authentication from "./Authentication.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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
// Importing necessary components
|
||||
import Meta from "../components/Meta.astro";
|
||||
import Navbar from "../components/Navbar.astro";
|
||||
import FooterSection from "../components/FooterSection.astro";
|
||||
import Navbar from "../components/sections/Navbar.astro";
|
||||
import FooterSection from "../components/sections/FooterSection.astro";
|
||||
|
||||
// Setting expected props - expecting 'title' and 'meta' as options with a default value for title
|
||||
const { title = "ScrewFast", meta, structuredData } = Astro.props;
|
||||
|
|
Loading…
Add table
Reference in a new issue