diff --git a/src/APP/index.js b/src/APP/index.js index 7288a6ae..bc5d243f 100644 --- a/src/APP/index.js +++ b/src/APP/index.js @@ -27,7 +27,7 @@ import GalleryPage from "./pages/gallery/GalleryPage"; import LandingPage from "./pages/landingPage/LandingPage"; import Layout from "./pages/Layout"; import Products from "./pages/products2/Products"; -import Resources from "./pages/resources/Resources"; +import Resources from "./pages/resources2/Resources"; import Homepage from "./pages/shop/Homepage"; import Checkout from "./pages/shop/OrderSummaryPage"; import ProductDisplay from "./pages/shop/ProductDisplayPage"; diff --git a/src/APP/pages/resources/Resources.jsx b/src/APP/pages/resources/Resources.jsx deleted file mode 100644 index 62d1efa9..00000000 --- a/src/APP/pages/resources/Resources.jsx +++ /dev/null @@ -1,12 +0,0 @@ -import { HeroSection, ResourcesSection } from "./sections"; - -const Resources = () => { - return ( -
- - -
- ); -}; - -export default Resources; diff --git a/src/APP/pages/resources/sections/HeroSection.jsx b/src/APP/pages/resources/sections/HeroSection.jsx deleted file mode 100644 index 48c94e84..00000000 --- a/src/APP/pages/resources/sections/HeroSection.jsx +++ /dev/null @@ -1,63 +0,0 @@ -// <<<<<<< felix-blog-page-build -import { earth_moon } from "../../../../assets/images/resources-page"; - -const HeroSection = () => { - return ( -
-
-
Resources
- -

- Discover{" "} - tech tools and resources to - boost your productivity -

-

- Master the art of tech with our expert guides, tutorials, and - step-by-step instructions to help you develop proficiency and - confidence in the world of technology. -

-
- - earth & moon -
- ); -}; - -export default HeroSection; -// ======= -// import { earth_moon } from "../../../../assets/images/resources-page"; - -// const HeroSection = () => { -// return ( -//
-//
-//
Resources
- -//

-// Discover{" "} -// tech tools and resources to -// boost your productivity -//

-//

-// Master the art of tech with our expert guides, tutorials, and -// step-by-step instructions to help you develop proficiency and -// confidence in the world of technology. -//

-//
- -// earth & moon -//
-// ); -// }; - -// export default HeroSection; -// >>>>>>> main diff --git a/src/APP/pages/resources/sections/ResourceCard.jsx b/src/APP/pages/resources/sections/ResourceCard.jsx deleted file mode 100644 index df33f82f..00000000 --- a/src/APP/pages/resources/sections/ResourceCard.jsx +++ /dev/null @@ -1,32 +0,0 @@ -import React from "react"; -import { Link } from "react-router-dom"; -import { tools } from "../../../../assets/images/resources-page"; - -import { arrowRight } from "../../../../assets/images/resources-page"; - -const ResourceCard = ({ resource }) => { - const { id, name, description } = resource; - return ( -
-
- {name} -
- -

{name}

- -

{description}

- - - {/* */} - -
- ); -}; - -export default ResourceCard; diff --git a/src/APP/pages/resources/sections/ResourcesSection.jsx b/src/APP/pages/resources/sections/ResourcesSection.jsx deleted file mode 100644 index dde13f5d..00000000 --- a/src/APP/pages/resources/sections/ResourcesSection.jsx +++ /dev/null @@ -1,57 +0,0 @@ -import React, { useState } from "react"; -import { search } from "../../../../assets/images/resources-page"; -import ResourceCard from "./ResourceCard"; -import useResourcesData from "../../../../hooks/Queries/resources/useResourcesData"; - -function ResourcesSection() { - const [searchText, setSearchText] = useState(""); - const { - data: resourceTypes, - isLoading, - isError, - isSuccess, - } = useResourcesData(); - - const handleSearch = (e) => { - e.preventDefault(); - console.log(searchText); - }; - - return ( - <> - {isError &&

Error loading resource categories!

} - {isLoading &&

Loading resource categories...

} - {isSuccess && ( - <> -
-
- setSearchText(e.target.value)} - /> - search -
- -
- {resourceTypes && Array.isArray(resourceTypes) - ? resourceTypes.map((resource) => ( - - )) - : ""} -
-
- - )} - - ); -} - -export default ResourcesSection; diff --git a/src/APP/pages/resources/sections/index.js b/src/APP/pages/resources/sections/index.js deleted file mode 100644 index 123ea04a..00000000 --- a/src/APP/pages/resources/sections/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import { default as HeroSection } from "./HeroSection"; -import { default as ResourcesSection } from "./ResourcesSection"; -import { default as ResourceCard } from "./ResourceCard"; - -export { HeroSection, ResourceCard, ResourcesSection };