Refactor imports to utilize absolute paths
This commit changes all project imports to use absolute paths instead of relative ones. In addition, the 'tsconfig.json' has been updated to recognize new paths, aiding in easier project navigation and improved readability. The implemented changes result in cleaner imports and a more comprehensible project structure.
This commit is contained in:
parent
70993a3cb0
commit
e57a205784
53 changed files with 184 additions and 178 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import { getImage } from "astro:assets";
|
import { getImage } from "astro:assets";
|
||||||
import { OG, SEO, SITE } from "@/data_files/constants";
|
import { OG, SEO, SITE } from "@data/constants";
|
||||||
import faviconSvgSrc from "@/images/icon.svg";
|
import faviconSvgSrc from "@images/icon.svg";
|
||||||
import faviconSrc from "@/images/icon.png";
|
import faviconSrc from "@images/icon.png";
|
||||||
|
|
||||||
// Default properties for the Meta component. These values are used if props are not provided.
|
// Default properties for the Meta component. These values are used if props are not provided.
|
||||||
// 'meta' sets a default description meta tag to describe the page content.
|
// 'meta' sets a default description meta tag to describe the page content.
|
||||||
|
|
|
||||||
|
|
@ -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 "@components/ui/forms/LoginModal.astro";
|
||||||
import RegisterModal from "../ui/forms/RegisterModal.astro";
|
import RegisterModal from "@components/ui/forms/RegisterModal.astro";
|
||||||
import RecoverModal from "../ui/forms/RecoverModal.astro";
|
import RecoverModal from "@components/ui/forms/RecoverModal.astro";
|
||||||
import LoginBtn from "../ui/buttons/LoginBtn.astro";
|
import LoginBtn from "@components/ui/buttons/LoginBtn.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- Login Button -->
|
<!-- Login Button -->
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies.
|
// Import the necessary dependencies.
|
||||||
import AuthBtn from "../ui/buttons/AuthBtn.astro";
|
import AuthBtn from "@components/ui/buttons/AuthBtn.astro";
|
||||||
import ContactIconBlock from "../ui/blocks/ContactIconBlock.astro";
|
import ContactIconBlock from "@components/ui/blocks/ContactIconBlock.astro";
|
||||||
import TextInput from "../ui/forms/input/TextInput.astro";
|
import TextInput from "@components/ui/forms/input/TextInput.astro";
|
||||||
import EmailContactInput from "../ui/forms/input/EmailContactInput.astro";
|
import EmailContactInput from "@components/ui/forms/input/EmailContactInput.astro";
|
||||||
import PhoneInput from "../ui/forms/input/PhoneInput.astro";
|
import PhoneInput from "@components/ui/forms/input/PhoneInput.astro";
|
||||||
import TextAreaInput from "../ui/forms/input/TextAreaInput.astro";
|
import TextAreaInput from "@components/ui/forms/input/TextAreaInput.astro";
|
||||||
import Icon from "../ui/icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.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";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
// Import the necessary AccordionItem component and JSON data
|
// Import the necessary AccordionItem component and JSON data
|
||||||
import AccordionItem from "../ui/blocks/AccordionItem.astro";
|
import AccordionItem from "@components/ui/blocks/AccordionItem.astro";
|
||||||
|
|
||||||
// Define props from Astro
|
// Define props from Astro
|
||||||
const { title, faqs } = Astro.props;
|
const { title, faqs } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies
|
// Import the necessary dependencies
|
||||||
import FooterSocialLink from "../ui/links/FooterSocialLink.astro";
|
import FooterSocialLink from "@components/ui/links/FooterSocialLink.astro";
|
||||||
import EmailFooterInput from "../ui/forms/input/EmailFooterInput.astro";
|
import EmailFooterInput from "@components/ui/forms/input/EmailFooterInput.astro";
|
||||||
import enStrings from "@/utils/navigation.ts";
|
import enStrings from "@utils/navigation.ts";
|
||||||
import frStrings from "@/utils/fr/navigation.ts";
|
import frStrings from "@utils/fr/navigation.ts";
|
||||||
import Icon from "../ui/icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
import BrandLogo from "@/components/BrandLogo.astro";
|
import BrandLogo from "@components/BrandLogo.astro";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
// Select the correct translation based on the page's lang prop:
|
// Select the correct translation based on the page's lang prop:
|
||||||
const strings = Astro.currentLocale === "fr" ? frStrings : enStrings;
|
const strings = Astro.currentLocale === "fr" ? frStrings : enStrings;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
//Import relevant dependencies
|
//Import relevant dependencies
|
||||||
import ThemeIcon from "../ThemeIcon.astro";
|
import ThemeIcon from "@components/ThemeIcon.astro";
|
||||||
import NavLink from "../ui/links/NavLink.astro";
|
import NavLink from "@components/ui/links/NavLink.astro";
|
||||||
import Authentication from "./Authentication.astro";
|
import Authentication from "./Authentication.astro";
|
||||||
import enStrings from "@/utils/navigation.ts";
|
import enStrings from "@utils/navigation.ts";
|
||||||
import frStrings from "@/utils/fr/navigation.ts";
|
import frStrings from "@utils/fr/navigation.ts";
|
||||||
import BrandLogo from "../BrandLogo.astro";
|
import BrandLogo from "@components/BrandLogo.astro";
|
||||||
import LanguagePicker from "../ui/LanguagePicker.astro";
|
import LanguagePicker from "@components/ui/LanguagePicker.astro";
|
||||||
|
|
||||||
// Select the correct translation based on the page's lang prop:
|
// Select the correct translation based on the page's lang prop:
|
||||||
const strings = Astro.currentLocale === "fr" ? frStrings : enStrings;
|
const strings = Astro.currentLocale === "fr" ? frStrings : enStrings;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies
|
// Import the necessary dependencies
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import IconBlock from "../../ui/blocks/IconBlock.astro";
|
import IconBlock from "@components/ui/blocks/IconBlock.astro";
|
||||||
import Icon from "../../ui/icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
|
|
||||||
interface Feature {
|
interface Feature {
|
||||||
heading: string;
|
heading: string;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies
|
// Import the necessary dependencies
|
||||||
import TabNav from "../../ui/blocks/TabNav.astro";
|
import TabNav from "@components/ui/blocks/TabNav.astro";
|
||||||
import TabContent from "../../ui/blocks/TabContent.astro";
|
import TabContent from "@components/ui/blocks/TabContent.astro";
|
||||||
import Icon from "../../ui/icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
|
|
||||||
// Define props from Astro
|
// Define props from Astro
|
||||||
const { title, tabs } = Astro.props;
|
const { title, tabs } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import the necessary components
|
// Import the necessary components
|
||||||
import StatsBig from "../../ui/blocks/StatsBig.astro";
|
import StatsBig from "@components/ui/blocks/StatsBig.astro";
|
||||||
import StatsSmall from "../../ui/blocks/StatsSmall.astro";
|
import StatsSmall from "@components/ui/blocks/StatsSmall.astro";
|
||||||
|
|
||||||
const { title, subTitle, stats, mainStatTitle, mainStatSubTitle } = Astro.props;
|
const { title, subTitle, stats, mainStatTitle, mainStatSubTitle } = Astro.props;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import product5 from "@/images/features-image.avif";
|
import product5 from "@images/features-image.avif";
|
||||||
|
|
||||||
// Define props from Astro
|
// Define props from Astro
|
||||||
const { title, subTitle, benefits } = Astro.props;
|
const { title, subTitle, benefits } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies.
|
// Import the necessary dependencies.
|
||||||
import AuthBtn from "../../ui/buttons/AuthBtn.astro";
|
import AuthBtn from "@components/ui/buttons/AuthBtn.astro";
|
||||||
import ContactIconBlock from "../../ui/blocks/ContactIconBlock.astro";
|
import ContactIconBlock from "@components/ui/blocks/ContactIconBlock.astro";
|
||||||
import TextInput from "../../ui/forms/input/TextInput.astro";
|
import TextInput from "@components/ui/forms/input/TextInput.astro";
|
||||||
import EmailContactInput from "../../ui/forms/input/EmailContactInput.astro";
|
import EmailContactInput from "@components/ui/forms/input/EmailContactInput.astro";
|
||||||
import PhoneInput from "../../ui/forms/input/PhoneInput.astro";
|
import PhoneInput from "@components/ui/forms/input/PhoneInput.astro";
|
||||||
import TextAreaInput from "../../ui/forms/input/TextAreaInput.astro";
|
import TextAreaInput from "@components/ui/forms/input/TextAreaInput.astro";
|
||||||
import Icon from "../../ui/icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
|
|
||||||
// Define the variables that will be used in this component
|
// Define the variables that will be used in this component
|
||||||
const title: string = "Contactez-nous";
|
const title: string = "Contactez-nous";
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies
|
// Import the necessary dependencies
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import PrimaryCTA from "../../ui/buttons/PrimaryCTA.astro";
|
import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro";
|
||||||
import SecondaryCTA from "../../ui/buttons/SecondaryCTA.astro";
|
import SecondaryCTA from "@components/ui/buttons/SecondaryCTA.astro";
|
||||||
import ReviewComponent from "../../ui/blocks/ReviewComponent.astro";
|
import ReviewComponent from "@components/ui/blocks/ReviewComponent.astro";
|
||||||
|
|
||||||
// Define props from Astro
|
// Define props from Astro
|
||||||
const {
|
const {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
// Import the necessary dependencies
|
// Import the necessary dependencies
|
||||||
import GithubBtn from "../../ui/buttons/GithubBtn.astro";
|
import GithubBtn from "@components/ui/buttons/GithubBtn.astro";
|
||||||
|
|
||||||
// Define props from Astro
|
// Define props from Astro
|
||||||
const { title, subTitle, url } = Astro.props;
|
const { title, subTitle, url } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// 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 "@components/ui/buttons/SecondaryCTA.astro";
|
||||||
import Icon from "../../ui/icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
|
|
||||||
// Define props from Astro
|
// Define props from Astro
|
||||||
const { pricing } = Astro.props;
|
const { pricing } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import { languages } from "@/utils//ui";
|
import { languages } from "@utils//ui";
|
||||||
import Icon from "./icons/Icon.astro";
|
import Icon from "./icons/Icon.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
// Define props from Astro
|
// Define props from Astro
|
||||||
const { id, collapseId, question, answer, first } = Astro.props;
|
const { id, collapseId, question, answer, first } = Astro.props;
|
||||||
// Define TypeScript interface for props
|
// Define TypeScript interface for props
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import the necessary modules
|
// Import the necessary modules
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import PrimaryCTA from "../buttons/PrimaryCTA.astro";
|
import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro";
|
||||||
// Destructure the props passed to the Astro component
|
// Destructure the props passed to the Astro component
|
||||||
const { title, subTitle, btnExists, btnTitle, btnURL, img, imgAlt } =
|
const { title, subTitle, btnExists, btnTitle, btnURL, img, imgAlt } =
|
||||||
Astro.props;
|
Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
// Import PrimaryCTA component
|
// Import PrimaryCTA component
|
||||||
import PrimaryCTA from "../buttons/PrimaryCTA.astro";
|
import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro";
|
||||||
|
|
||||||
// Destructure the props passed to the Astro component
|
// Destructure the props passed to the Astro component
|
||||||
const { title, subTitle, btnExists, btnTitle, btnURL } = Astro.props;
|
const { title, subTitle, btnExists, btnTitle, btnURL } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
import Avatar from "../../ui/avatars/Avatar.astro";
|
import Avatar from "@components/ui/avatars/Avatar.astro";
|
||||||
import FullStar from "../../ui/stars/FullStar.astro";
|
import FullStar from "@components/ui/stars/FullStar.astro";
|
||||||
import HalfStar from "../../ui/stars/HalfStar.astro";
|
import HalfStar from "@components/ui/stars/HalfStar.astro";
|
||||||
|
|
||||||
const { avatars, starCount = 0, rating, reviews } = Astro.props;
|
const { avatars, starCount = 0, rating, reviews } = Astro.props;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import the required modules
|
// Import the required modules
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import PrimaryCTA from "../buttons/PrimaryCTA.astro";
|
import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro";
|
||||||
// Extract properties from Astro.props
|
// Extract properties from Astro.props
|
||||||
const {
|
const {
|
||||||
title,
|
title,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
|
|
||||||
const { count, description, index } = Astro.props;
|
const { count, description, index } = Astro.props;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
// Destructure the properties from Astro.props
|
// Destructure the properties from Astro.props
|
||||||
const { title, id, noArrow } = Astro.props;
|
const { title, id, noArrow } = Astro.props;
|
||||||
// Define TypeScript interface for the properties
|
// Define TypeScript interface for the properties
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
const { title, url } = Astro.props;
|
const { title, url } = Astro.props;
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
// Destructure the properties from Astro.props
|
// Destructure the properties from Astro.props
|
||||||
const { title, url, noArrow } = Astro.props;
|
const { title, url, noArrow } = Astro.props;
|
||||||
// Define TypeScript interface for the properties
|
// Define TypeScript interface for the properties
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
// Destructure the properties from Astro.props
|
// Destructure the properties from Astro.props
|
||||||
const { pageTitle } = Astro.props;
|
const { pageTitle } = Astro.props;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
// Import necessary components and utilities
|
// Import necessary components and utilities
|
||||||
import AvatarBlog from "../avatars/AvatarBlog.astro";
|
import AvatarBlog from "@components/ui/avatars/AvatarBlog.astro";
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import { formatDate } from "@/utils/utils";
|
import { formatDate } from "@utils/utils";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
|
|
||||||
const { blogEntry } = Astro.props;
|
const { blogEntry } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
// Import all required components and utilities
|
// Import all required components and utilities
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
import AvatarBlogLarge from "../avatars/AvatarBlogLarge.astro";
|
import AvatarBlogLarge from "@components/ui/avatars/AvatarBlogLarge.astro";
|
||||||
import PrimaryCTA from "../buttons/PrimaryCTA.astro";
|
import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro";
|
||||||
|
|
||||||
const { blogEntry } = Astro.props;
|
const { blogEntry } = Astro.props;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import necessary modules and utilities
|
// Import necessary modules and utilities
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
|
|
||||||
const { insightEntry } = Astro.props;
|
const { insightEntry } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import necessary modules and utilities
|
// Import necessary modules and utilities
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import { formatDate } from "@/utils/utils";
|
import { formatDate } from "@utils/utils";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
|
|
||||||
const { blogEntry } = Astro.props;
|
const { blogEntry } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import necessary modules and utilities
|
// Import necessary modules and utilities
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
|
|
||||||
const { product } = Astro.props;
|
const { product } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import necessary modules and utilities
|
// Import necessary modules and utilities
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import Icon from "../icons/Icon.astro";
|
import Icon from "@components/ui/icons/Icon.astro";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
|
|
||||||
const { product } = Astro.props;
|
const { product } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
import EmailInput from "./input/EmailInput.astro";
|
import EmailInput from "./input/EmailInput.astro";
|
||||||
import PasswordInput from "./input/PasswordInput.astro";
|
import PasswordInput from "./input/PasswordInput.astro";
|
||||||
import Checkbox from "./input/Checkbox.astro";
|
import Checkbox from "./input/Checkbox.astro";
|
||||||
import AuthBtn from "../buttons/AuthBtn.astro";
|
import AuthBtn from "@components/ui/buttons/AuthBtn.astro";
|
||||||
import GoogleBtn from "../buttons/GoogleBtn.astro";
|
import GoogleBtn from "@components/ui/buttons/GoogleBtn.astro";
|
||||||
|
|
||||||
// Variables for customization of the LoginModal Component
|
// Variables for customization of the LoginModal Component
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import necessary components from individual files
|
// Import necessary components from individual files
|
||||||
import EmailInput from "./input/EmailInput.astro";
|
import EmailInput from "./input/EmailInput.astro";
|
||||||
import AuthBtn from "../buttons/AuthBtn.astro";
|
import AuthBtn from "@components/ui/buttons/AuthBtn.astro";
|
||||||
|
|
||||||
// Config object for customization of the component
|
// Config object for customization of the component
|
||||||
const config = {
|
const config = {
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
import EmailInput from "./input/EmailInput.astro";
|
import EmailInput from "./input/EmailInput.astro";
|
||||||
import PasswordInput from "./input/PasswordInput.astro";
|
import PasswordInput from "./input/PasswordInput.astro";
|
||||||
import Checkbox from "./input/Checkbox.astro";
|
import Checkbox from "./input/Checkbox.astro";
|
||||||
import GoogleBtn from "../buttons/GoogleBtn.astro";
|
import GoogleBtn from "@components/ui/buttons/GoogleBtn.astro";
|
||||||
import AuthBtn from "../buttons/AuthBtn.astro";
|
import AuthBtn from "@components/ui/buttons/AuthBtn.astro";
|
||||||
// Config object for customization of the component
|
// Config object for customization of the component
|
||||||
const config = {
|
const config = {
|
||||||
id: "hs-toggle-between-modals-register-modal", // Modal identifier
|
id: "hs-toggle-between-modals-register-modal", // Modal identifier
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
import mainLogo from "@/images/starlight/screwfast_logo_dark.svg?raw";
|
import mainLogo from "@images/starlight/screwfast_logo_dark.svg?raw";
|
||||||
import docsLogo from "@/images/starlight/docs_logo.svg?raw";
|
import docsLogo from "@images/starlight/docs_logo.svg?raw";
|
||||||
import type { Props } from "@astrojs/starlight/props";
|
import type { Props } from "@astrojs/starlight/props";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
// Importing necessary components
|
// Importing necessary components
|
||||||
import Meta from "@/components/Meta.astro";
|
import Meta from "@components/Meta.astro";
|
||||||
import Navbar from "@/components/sections/Navbar.astro";
|
import Navbar from "@components/sections/Navbar.astro";
|
||||||
import FooterSection from "@/components/sections/FooterSection.astro";
|
import FooterSection from "@components/sections/FooterSection.astro";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
// Setting expected props
|
// Setting expected props
|
||||||
const { title = SITE.title, meta, structuredData, lang = "en" } = Astro.props;
|
const { title = SITE.title, meta, structuredData, lang = "en" } = Astro.props;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
// Import section components
|
// Import section components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import Btn404 from "@/components/ui/buttons/Btn404.astro";
|
import Btn404 from "@components/ui/buttons/Btn404.astro";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
const pageTitle: string = `Page Not Found | ${SITE.title}`;
|
const pageTitle: string = `Page Not Found | ${SITE.title}`;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
---
|
---
|
||||||
// Import necessary components and utilities
|
// Import necessary components and utilities
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import AvatarBlogLarge from "@/components/ui/avatars/AvatarBlogLarge.astro";
|
import AvatarBlogLarge from "@components/ui/avatars/AvatarBlogLarge.astro";
|
||||||
import CardRelated from "@/components/ui/cards/CardRelated.astro";
|
import CardRelated from "@components/ui/cards/CardRelated.astro";
|
||||||
import Bookmark from "@/components/ui/buttons/Bookmark.astro";
|
import Bookmark from "@components/ui/buttons/Bookmark.astro";
|
||||||
import SocialShare from "@/components/ui/buttons/SocialShare.astro";
|
import SocialShare from "@components/ui/buttons/SocialShare.astro";
|
||||||
import PostFeedback from "@/components/ui/feedback/PostFeedback.astro";
|
import PostFeedback from "@components/ui/feedback/PostFeedback.astro";
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import { capitalize, formatDate } from "@/utils/utils";
|
import { capitalize, formatDate } from "@utils/utils";
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
// getStaticPaths is used to pre-render all routes based on the blog posts
|
// getStaticPaths is used to pre-render all routes based on the blog posts
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
// Import necessary components, modules and types
|
// Import necessary components, modules and types
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import CardBlog from "@/components/ui/cards/CardBlog.astro";
|
import CardBlog from "@components/ui/cards/CardBlog.astro";
|
||||||
import CardBlogRecent from "@/components/ui/cards/CardBlogRecent.astro";
|
import CardBlogRecent from "@components/ui/cards/CardBlogRecent.astro";
|
||||||
import CardInsight from "@/components/ui/cards/CardInsight.astro";
|
import CardInsight from "@components/ui/cards/CardInsight.astro";
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
// Get all blogs post and sort them based on publish date
|
// Get all blogs post and sort them based on publish date
|
||||||
const blogPosts: CollectionEntry<"blog">[] = (await getCollection("blog")).sort(
|
const blogPosts: CollectionEntry<"blog">[] = (await getCollection("blog")).sort(
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
// Import the necessary components
|
// Import the necessary components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import ContactSection from "@/components/sections/ContactSection.astro";
|
import ContactSection from "@components/sections/ContactSection.astro";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
const pageTitle: string = `Contact | ${SITE.title}`;
|
const pageTitle: string = `Contact | ${SITE.title}`;
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import section components
|
// Import section components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import Btn404 from "@/components/ui/buttons/Btn404.astro";
|
import Btn404 from "@components/ui/buttons/Btn404.astro";
|
||||||
|
|
||||||
// Define variables for page content
|
// Define variables for page content
|
||||||
const title: string = "404";
|
const title: string = "404";
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
// Import necessary components, modules and types
|
// Import necessary components, modules and types
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import CardBlog from "@/components/ui/cards/CardBlog.astro";
|
import CardBlog from "@components/ui/cards/CardBlog.astro";
|
||||||
import CardBlogRecent from "@/components/ui/cards/CardBlogRecent.astro";
|
import CardBlogRecent from "@components/ui/cards/CardBlogRecent.astro";
|
||||||
import CardInsight from "@/components/ui/cards/CardInsight.astro";
|
import CardInsight from "@components/ui/cards/CardInsight.astro";
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
// Get all blogs post and sort them based on publish date
|
// Get all blogs post and sort them based on publish date
|
||||||
const blogPosts: CollectionEntry<"blog">[] = (await getCollection("blog")).sort(
|
const blogPosts: CollectionEntry<"blog">[] = (await getCollection("blog")).sort(
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
// Import the necessary components
|
// Import the necessary components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import ContactSection from "@/components/sections/fr/ContactSection_fr.astro";
|
import ContactSection from "@components/sections/fr/ContactSection_fr.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
<!--Utilizing MainLayout for the outer layout of the page, and defining meta for SEO purposes-->
|
<!--Utilizing MainLayout for the outer layout of the page, and defining meta for SEO purposes-->
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
---
|
---
|
||||||
// Import the necessary components
|
// Import the necessary components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import HeroSection from "@/components/sections/landing/HeroSection.astro";
|
import HeroSection from "@components/sections/landing/HeroSection.astro";
|
||||||
import HeroSectionAlt from "@/components/sections/landing/HeroSectionAlt.astro";
|
import HeroSectionAlt from "@components/sections/landing/HeroSectionAlt.astro";
|
||||||
import ClientsSection from "@/components/sections/landing/ClientsSection.astro";
|
import ClientsSection from "@components/sections/landing/ClientsSection.astro";
|
||||||
import FeaturesGeneral from "@/components/sections/features/FeaturesGeneral.astro";
|
import FeaturesGeneral from "@components/sections/features/FeaturesGeneral.astro";
|
||||||
import FeaturesNavs from "@/components/sections/features/FeaturesNavs.astro";
|
import FeaturesNavs from "@components/sections/features/FeaturesNavs.astro";
|
||||||
import TestimonialsSection from "@/components/sections/testimonials/TestimonialsSection.astro";
|
import TestimonialsSection from "@components/sections/testimonials/TestimonialsSection.astro";
|
||||||
import PricingSection from "@/components/sections/pricing/PricingSection.astro";
|
import PricingSection from "@components/sections/pricing/PricingSection.astro";
|
||||||
import FAQ from "@/components/sections/FAQ.astro";
|
import FAQ from "@components/sections/FAQ.astro";
|
||||||
import AnnouncementBanner from "@/components/ui/banners/AnnouncementBanner.astro";
|
import AnnouncementBanner from "@components/ui/banners/AnnouncementBanner.astro";
|
||||||
import heroImage from "@/images/hero-image.avif";
|
import heroImage from "@images/hero-image.avif";
|
||||||
import faqs from "@/data_files/fr/faqs.json";
|
import faqs from "@data/fr/faqs.json";
|
||||||
import features from "@/data_files/fr/features.json";
|
import features from "@data/fr/features.json";
|
||||||
import pricing from "@/data_files/fr/pricing.json";
|
import pricing from "@data/fr/pricing.json";
|
||||||
import featureImage from "@/images/features-image.avif";
|
import featureImage from "@images/features-image.avif";
|
||||||
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";
|
||||||
import { getRelativeLocaleUrl } from 'astro:i18n';
|
import { getRelativeLocaleUrl } from 'astro:i18n';
|
||||||
|
|
||||||
const avatarSrcs: Array<string> = [
|
const avatarSrcs: Array<string> = [
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
// Importing necessary components
|
// Importing necessary components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import PrimaryCTA from "@/components/ui/buttons/PrimaryCTA.astro";
|
import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro";
|
||||||
import CardSmall from "@/components/ui/cards/CardSmall.astro";
|
import CardSmall from "@components/ui/cards/CardSmall.astro";
|
||||||
import CardWide from "@/components/ui/cards/CardWide.astro";
|
import CardWide from "@components/ui/cards/CardWide.astro";
|
||||||
import FeaturesStatsAlt from "@/components/sections/features/FeaturesStatsAlt.astro";
|
import FeaturesStatsAlt from "@components/sections/features/FeaturesStatsAlt.astro";
|
||||||
import TestimonialsSectionAlt from "@/components/sections/testimonials/TestimonialsSectionAlt.astro";
|
import TestimonialsSectionAlt from "@components/sections/testimonials/TestimonialsSectionAlt.astro";
|
||||||
|
|
||||||
// Importing necessary functions from Astro
|
// Importing necessary functions from Astro
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
---
|
---
|
||||||
// Import necessary components
|
// Import necessary components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import MainSection from "@/components/ui/blocks/MainSection.astro";
|
import MainSection from "@components/ui/blocks/MainSection.astro";
|
||||||
import LeftSection from "@/components/ui/blocks/LeftSection.astro";
|
import LeftSection from "@components/ui/blocks/LeftSection.astro";
|
||||||
import RightSection from "@/components/ui/blocks/RightSection.astro";
|
import RightSection from "@components/ui/blocks/RightSection.astro";
|
||||||
import FeaturesStats from "@/components/sections/features/FeaturesStats.astro";
|
import FeaturesStats from "@components/sections/features/FeaturesStats.astro";
|
||||||
import { getRelativeLocaleUrl } from 'astro:i18n';
|
import { getRelativeLocaleUrl } from 'astro:i18n';
|
||||||
|
|
||||||
// Import necessary images
|
// Import necessary images
|
||||||
import blueprints from "@/images/blueprints-image.avif";
|
import blueprints from "@images/blueprints-image.avif";
|
||||||
import personWorking from "@/images/person-working.avif";
|
import personWorking from "@images/person-working.avif";
|
||||||
import beforeAfter from "@/images/before-after.avif";
|
import beforeAfter from "@images/before-after.avif";
|
||||||
import constructionWorkers from "@/images/construction-workers.avif";
|
import constructionWorkers from "@images/construction-workers.avif";
|
||||||
import aerialView from "@/images/aerial-view.avif";
|
import aerialView from "@images/aerial-view.avif";
|
||||||
import usingTools from "@/images/using-tools.avif";
|
import usingTools from "@images/using-tools.avif";
|
||||||
import progressBuilding from "@/images/progress-building.avif";
|
import progressBuilding from "@images/progress-building.avif";
|
||||||
import underConstruction from "@/images/under-construction.avif";
|
import underConstruction from "@images/under-construction.avif";
|
||||||
|
|
||||||
interface Article {
|
interface Article {
|
||||||
isRightSection: boolean;
|
isRightSection: boolean;
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
---
|
---
|
||||||
// Import the necessary components
|
// Import the necessary components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import HeroSection from "@/components/sections/landing/HeroSection.astro";
|
import HeroSection from "@components/sections/landing/HeroSection.astro";
|
||||||
import HeroSectionAlt from "@/components/sections/landing/HeroSectionAlt.astro";
|
import HeroSectionAlt from "@components/sections/landing/HeroSectionAlt.astro";
|
||||||
import ClientsSection from "@/components/sections/landing/ClientsSection.astro";
|
import ClientsSection from "@components/sections/landing/ClientsSection.astro";
|
||||||
import FeaturesGeneral from "@/components/sections/features/FeaturesGeneral.astro";
|
import FeaturesGeneral from "@components/sections/features/FeaturesGeneral.astro";
|
||||||
import FeaturesNavs from "@/components/sections/features/FeaturesNavs.astro";
|
import FeaturesNavs from "@components/sections/features/FeaturesNavs.astro";
|
||||||
import TestimonialsSection from "@/components/sections/testimonials/TestimonialsSection.astro";
|
import TestimonialsSection from "@components/sections/testimonials/TestimonialsSection.astro";
|
||||||
import PricingSection from "@/components/sections/pricing/PricingSection.astro";
|
import PricingSection from "@components/sections/pricing/PricingSection.astro";
|
||||||
import FAQ from "@/components/sections/FAQ.astro";
|
import FAQ from "@components/sections/FAQ.astro";
|
||||||
import AnnouncementBanner from "@/components/ui/banners/AnnouncementBanner.astro";
|
import AnnouncementBanner from "@components/ui/banners/AnnouncementBanner.astro";
|
||||||
import heroImage from "@/images/hero-image.avif";
|
import heroImage from "@images/hero-image.avif";
|
||||||
import faqs from "@/data_files/faqs.json";
|
import faqs from "@data/faqs.json";
|
||||||
import features from "@/data_files/features.json";
|
import features from "@data/features.json";
|
||||||
import pricing from "@/data_files/pricing.json";
|
import pricing from "@data/pricing.json";
|
||||||
import featureImage from "@/images/features-image.avif";
|
import featureImage from "@images/features-image.avif";
|
||||||
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";
|
||||||
|
|
||||||
const avatarSrcs: Array<string> = [
|
const avatarSrcs: Array<string> = [
|
||||||
"https://images.unsplash.com/photo-1568602471122-7832951cc4c5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=facearea&facepad=2&w=300&h=300&q=80",
|
"https://images.unsplash.com/photo-1568602471122-7832951cc4c5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=facearea&facepad=2&w=300&h=300&q=80",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
// Import section components
|
// Import section components
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
// Import section components
|
// Import section components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import ProductTabBtn from "@/components/ui/buttons/ProductTabBtn.astro";
|
import ProductTabBtn from "@components/ui/buttons/ProductTabBtn.astro";
|
||||||
import PrimaryCTA from "@/components/ui/buttons/PrimaryCTA.astro";
|
import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro";
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
// Global declaration for gsap animation library
|
// Global declaration for gsap animation library
|
||||||
declare global {
|
declare global {
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
---
|
---
|
||||||
// Importing necessary components
|
// Importing necessary components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import PrimaryCTA from "@/components/ui/buttons/PrimaryCTA.astro";
|
import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro";
|
||||||
import CardSmall from "@/components/ui/cards/CardSmall.astro";
|
import CardSmall from "@components/ui/cards/CardSmall.astro";
|
||||||
import CardWide from "@/components/ui/cards/CardWide.astro";
|
import CardWide from "@components/ui/cards/CardWide.astro";
|
||||||
import FeaturesStatsAlt from "@/components/sections/features/FeaturesStatsAlt.astro";
|
import FeaturesStatsAlt from "@components/sections/features/FeaturesStatsAlt.astro";
|
||||||
import TestimonialsSectionAlt from "@/components/sections/testimonials/TestimonialsSectionAlt.astro";
|
import TestimonialsSectionAlt from "@components/sections/testimonials/TestimonialsSectionAlt.astro";
|
||||||
|
|
||||||
// Importing necessary functions from Astro
|
// Importing necessary functions from Astro
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
import type { CollectionEntry } from "astro:content";
|
import type { CollectionEntry } from "astro:content";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
// Fetching all the product related content and sorting it by main.id
|
// Fetching all the product related content and sorting it by main.id
|
||||||
const product: CollectionEntry<"products">[] = (
|
const product: CollectionEntry<"products">[] = (
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
---
|
---
|
||||||
// Import necessary components
|
// Import necessary components
|
||||||
import MainLayout from "@/layouts/MainLayout.astro";
|
import MainLayout from "@/layouts/MainLayout.astro";
|
||||||
import MainSection from "@/components/ui/blocks/MainSection.astro";
|
import MainSection from "@components/ui/blocks/MainSection.astro";
|
||||||
import LeftSection from "@/components/ui/blocks/LeftSection.astro";
|
import LeftSection from "@components/ui/blocks/LeftSection.astro";
|
||||||
import RightSection from "@/components/ui/blocks/RightSection.astro";
|
import RightSection from "@components/ui/blocks/RightSection.astro";
|
||||||
import FeaturesStats from "@/components/sections/features/FeaturesStats.astro";
|
import FeaturesStats from "@components/sections/features/FeaturesStats.astro";
|
||||||
|
|
||||||
// Import necessary images
|
// Import necessary images
|
||||||
import blueprints from "@/images/blueprints-image.avif";
|
import blueprints from "@images/blueprints-image.avif";
|
||||||
import personWorking from "@/images/person-working.avif";
|
import personWorking from "@images/person-working.avif";
|
||||||
import beforeAfter from "@/images/before-after.avif";
|
import beforeAfter from "@images/before-after.avif";
|
||||||
import constructionWorkers from "@/images/construction-workers.avif";
|
import constructionWorkers from "@images/construction-workers.avif";
|
||||||
import aerialView from "@/images/aerial-view.avif";
|
import aerialView from "@images/aerial-view.avif";
|
||||||
import usingTools from "@/images/using-tools.avif";
|
import usingTools from "@images/using-tools.avif";
|
||||||
import progressBuilding from "@/images/progress-building.avif";
|
import progressBuilding from "@images/progress-building.avif";
|
||||||
import underConstruction from "@/images/under-construction.avif";
|
import underConstruction from "@images/under-construction.avif";
|
||||||
import { SITE } from "@/data_files/constants";
|
import { SITE } from "@data/constants";
|
||||||
|
|
||||||
interface Article {
|
interface Article {
|
||||||
isRightSection: boolean;
|
isRightSection: boolean;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,13 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["src/*"]
|
"@/*": ["src/*"],
|
||||||
|
"@components/*": ["src/components/*"],
|
||||||
|
"@content/*": ["src/content/*"],
|
||||||
|
"@data/*": ["src/data_files/*"],
|
||||||
|
"@images/*": ["src/images/*"],
|
||||||
|
"@styles/*": ["src/styles/*"],
|
||||||
|
"@utils/*": ["src/utils/*"]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue