From e9c99a2ed481346a7a06a0c4881ce370f931beb9 Mon Sep 17 00:00:00 2001 From: pooranjoyb Date: Tue, 24 Oct 2023 21:43:18 +0530 Subject: [PATCH] Updated Components & added Nav+Footer for /projects --- src/Components copy/Blog.jsx | 68 ---- src/Components copy/BlogPage.jsx | 8 - src/Components copy/Blogs.jsx | 101 ------ src/Components copy/Contact.jsx | 166 --------- src/Components copy/Footer.jsx | 108 ------ src/Components copy/Home.jsx | 111 ------ src/Components copy/Loader.jsx | 9 - src/Components copy/MobileApp.jsx | 21 -- src/Components copy/Navbar.jsx | 62 ---- src/Components copy/Projects.jsx | 74 ---- src/Components copy/Team.jsx | 565 ------------------------------ src/Components copy/Vision.jsx | 87 ----- src/Components copy/gototop.jsx | 43 --- src/Components/Projects.jsx | 15 +- 14 files changed, 10 insertions(+), 1428 deletions(-) delete mode 100644 src/Components copy/Blog.jsx delete mode 100644 src/Components copy/BlogPage.jsx delete mode 100644 src/Components copy/Blogs.jsx delete mode 100644 src/Components copy/Contact.jsx delete mode 100644 src/Components copy/Footer.jsx delete mode 100644 src/Components copy/Home.jsx delete mode 100644 src/Components copy/Loader.jsx delete mode 100644 src/Components copy/MobileApp.jsx delete mode 100644 src/Components copy/Navbar.jsx delete mode 100644 src/Components copy/Projects.jsx delete mode 100644 src/Components copy/Team.jsx delete mode 100644 src/Components copy/Vision.jsx delete mode 100644 src/Components copy/gototop.jsx diff --git a/src/Components copy/Blog.jsx b/src/Components copy/Blog.jsx deleted file mode 100644 index c1ac055..0000000 --- a/src/Components copy/Blog.jsx +++ /dev/null @@ -1,68 +0,0 @@ -import { useEffect, useState } from "react"; -import Navbar from "./Navbar"; -import axios from "axios"; -import { useParams } from "react-router-dom"; -import moment from "moment"; -import Footer from "./Footer"; -import { Loader } from "./Loader"; - -export default function Blog() { - const [blog, setBlog] = useState(null); - const params = useParams(); - useEffect(() => { - const fetchBlog = async () => { - await axios - .get( - `https://www.googleapis.com/blogger/v3/blogs/3771334625318012412/posts/${ - params.id - }?key=${import.meta.env.VITE_API_KEY}` - ) - .then((res) => setBlog(res.data)) - .catch((err) => err); - }; - fetchBlog(); - }, []); - return ( - <> - - {blog === null ? ( - - ) : ( -
-
-

- {blog.title} -

- -

- {blog.author.displayName[0]} -

-
- - Written By {blog.author.displayName} - - - {moment(blog.published).startOf("hour").fromNow()} - -
-
-
-

-

-
- )} -