From 164a0f5da4fb86e630f6746c7cdd55c1d8899885 Mon Sep 17 00:00:00 2001 From: Akash Singh Date: Sun, 4 Feb 2024 16:57:40 +0530 Subject: [PATCH] Add PrepVerse files --- .../2024-02-01-history-of-bharatvarsha.md | 2 +- .../blog/2024-02-02-history-of-universe.md | 2 +- documentation/docusaurus.config.js | 2 +- .../components/blog/blog-post-page/index.js | 44 +- .../blog/featured-blog-post-item/index.js | 13 +- documentation/src/pages/index.tsx | 3 +- .../src/refine-theme/blog-footer.tsx | 452 +++++++++--------- documentation/src/refine-theme/footer-data.ts | 64 --- .../{footer-datas.tsx => footer-data.tsx} | 9 +- .../src/refine-theme/landing-footer.tsx | 332 +++++++------ documentation/src/theme/BlogPostItem/index.js | 9 +- documentation/static/CNAME | 2 +- documentation/static/robots.txt | 2 +- 13 files changed, 465 insertions(+), 471 deletions(-) delete mode 100644 documentation/src/refine-theme/footer-data.ts rename documentation/src/refine-theme/{footer-datas.tsx => footer-data.tsx} (93%) diff --git a/documentation/blog/2024-02-01-history-of-bharatvarsha.md b/documentation/blog/2024-02-01-history-of-bharatvarsha.md index 40c8d6d2..d8525f87 100644 --- a/documentation/blog/2024-02-01-history-of-bharatvarsha.md +++ b/documentation/blog/2024-02-01-history-of-bharatvarsha.md @@ -5,7 +5,7 @@ slug: bharatvarsha authors: AkashSingh3031 tags: [Bharatvarsha, Jambudweep, Bharatkhand, Bharat, Hindustan, Aryavarta, Ajnabhavarsh, Tenjiku, India] is_featured: true -image: https://github.com/AkashSingh3031.png +image: https://sc0.blr1.digitaloceanspaces.com/large/805990-article-dhyrizbzrt-1459438492.jpeg hide_table_of_contents: false --- diff --git a/documentation/blog/2024-02-02-history-of-universe.md b/documentation/blog/2024-02-02-history-of-universe.md index 6f1ba9d6..13659e71 100644 --- a/documentation/blog/2024-02-02-history-of-universe.md +++ b/documentation/blog/2024-02-02-history-of-universe.md @@ -5,7 +5,7 @@ slug: universe authors: AkashSingh3031 tags: [Universe, Bharat] is_featured: false -image: https://github.com/AkashSingh3031.png +image: https://www.astronomy.com/wp-content/uploads/sites/2/2021/09/ASYIF0121_02.jpg hide_table_of_contents: false --- diff --git a/documentation/docusaurus.config.js b/documentation/docusaurus.config.js index b1b864c5..d467cef4 100644 --- a/documentation/docusaurus.config.js +++ b/documentation/docusaurus.config.js @@ -38,7 +38,7 @@ const siteConfig = { process.env.DISABLE_VERSIONING === "true", versions: { current: { - label: "CSE Preparation", + label: "DSA", }, }, lastVersion: "current", diff --git a/documentation/src/components/blog/blog-post-page/index.js b/documentation/src/components/blog/blog-post-page/index.js index bb70a4e5..0e56564f 100644 --- a/documentation/src/components/blog/blog-post-page/index.js +++ b/documentation/src/components/blog/blog-post-page/index.js @@ -6,12 +6,18 @@ import MDXContent from "@theme/MDXContent"; import BlogPostItemContainer from "@theme/BlogPostItem/Container"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import { + LinkedinIcon, LinkedinShareButton, - RedditShareButton, - TwitterShareButton, TwitterIcon, + TwitterShareButton, + TelegramIcon, + TelegramShareButton, + FacebookIcon, + FacebookShareButton, + InstapaperIcon, + InstapaperShareButton, RedditIcon, - LinkedinIcon, + RedditShareButton, } from "react-share"; import clsx from "clsx"; @@ -74,6 +80,7 @@ export const BlogPostPageView = ({ children }) => { title={title} source={url} summary={description} + hashtags={tags.map((tag) => tag.label)} className="flex" > @@ -82,24 +89,41 @@ export const BlogPostPageView = ({ children }) => { windowWidth={750} windowHeight={800} url={url + permalink} - className="flex" title={title} hashtags={tags.map((tag) => tag.label)} + className="flex" > + tag.label)} + className="flex" + > + + + tag.label)} + className="flex" + > + + - {/*
+
{title} -
*/} +
{ return ( - {/*
+
{title} -
*/} +
- +
diff --git a/documentation/src/refine-theme/blog-footer.tsx b/documentation/src/refine-theme/blog-footer.tsx index a4d24fb9..3b9445b3 100644 --- a/documentation/src/refine-theme/blog-footer.tsx +++ b/documentation/src/refine-theme/blog-footer.tsx @@ -1,227 +1,233 @@ -import { useColorMode } from "@docusaurus/theme-common"; -import clsx from "clsx"; import React from "react"; -import { openFigma } from "../utils/open-figma"; -import { footerDescription, menuItems, socialLinks } from "./footer-datas"; -import { HeartOutlinedIcon } from "./icons/heart-outlined"; -import { RefineLogoIcon } from "./icons/refine-logo"; -import { PrepVerseLogoIcon } from "./icons/prepverse-logo"; +import { LandingFooter } from "./landing-footer"; export const BlogFooter = () => { - const { colorMode } = useColorMode(); - - return ( - <> -
-
-
- -
-
-
- {footerDescription} -
-
- {menuItems.map((menu) => ( -
-
- {menu.label} -
-
- {menu.items.map((item) => ( - - {item.label} - - ))} -
-
- ))} -
-
-
- Contact -
- -
-
-
-
-
-
-
-
-
- Copyright © 2023 PrepVerse{" "} -

- Built with Docusaurus & refine. -
-
- - Connect with me on - -
- {socialLinks.map(({ href, icon: Icon }) => ( - - - - ))} -
-
-
-
- - ); + return ; }; + +// import { useColorMode } from "@docusaurus/theme-common"; +// import clsx from "clsx"; +// import React from "react"; +// import { openFigma } from "../utils/open-figma"; +// import { footerDescription, menuItems, socialLinks } from "./footer-data"; +// import { HeartOutlinedIcon } from "./icons/heart-outlined"; +// import { PrepVerseLogoIcon } from "./icons/prepverse-logo"; + +// export const BlogFooter = () => { +// const { colorMode } = useColorMode(); + +// return ( +// <> +//
+//
+//
+// +//
+//
+//
+// {footerDescription} +//
+//
+// {menuItems.map((menu) => ( +//
+//
+// {menu.label} +//
+//
+// {menu.items.map((item) => ( +// +// {item.label} +// +// ))} +//
+//
+// ))} +//
+//
+//
+// Contact +//
+// +//
+//
+//
+//
+//
+//
+//
+//
+//
+// Copyright © 2023 PrepVerse{" "} +//

+// Built with Docusaurus & refine. +//
+//
+// +// Connect with me on +// +//
+// {socialLinks.map(({ href, icon: Icon }) => ( +// +// +// +// ))} +//
+//
+//
+//
+// +// ); +// }; diff --git a/documentation/src/refine-theme/footer-data.ts b/documentation/src/refine-theme/footer-data.ts deleted file mode 100644 index c0b7c421..00000000 --- a/documentation/src/refine-theme/footer-data.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { FooterDiscordIcon } from "./icons/footer-discord"; -import { FooterGithubIcon } from "./icons/footer-github"; -import { FooterLinkedinIcon } from "./icons/footer-linkedin"; -import { FooterRedditIcon } from "./icons/footer-reddit"; -import { FooterTwitterIcon } from "./icons/footer-twitter"; - -export const menuItems = [ - { - label: "Resources", - items: [ - { - label: "Getting Started", - href: "/docs", - }, - { - label: "Blog", - href: "/blog", - }, - ], - }, - { - label: "Product", - items: [ - { - label: "CodePoint", - href: "https://prepverse.github.io/CodePoint", - }, - { - label: "LeetVerse", - href: "https://prepverse.github.io/LeetVerse", - }, - ], - }, - { - label: "About", - items: [ - { - label: "About Me", - href: "/about", - }, - { - label: "Portfolio", - href: "https://prepverse.github.io/portfolio", - }, - ], - }, -]; - -export const footerDescription = `Thank you for visiting, Connect with me over socials.`; - -export const socialLinks = [ - { - icon: FooterGithubIcon, - href: "https://github.com/AkashSingh3031", - }, - { - icon: FooterTwitterIcon, - href: "https://twitter.com/akashsingh3031", - }, - { - icon: FooterLinkedinIcon, - href: "https://www.linkedin.com/in/akashsingh3031", - }, -]; diff --git a/documentation/src/refine-theme/footer-datas.tsx b/documentation/src/refine-theme/footer-data.tsx similarity index 93% rename from documentation/src/refine-theme/footer-datas.tsx rename to documentation/src/refine-theme/footer-data.tsx index 9690ab83..fc3faa13 100644 --- a/documentation/src/refine-theme/footer-datas.tsx +++ b/documentation/src/refine-theme/footer-data.tsx @@ -44,6 +44,7 @@ export const menuItems = [ }, { label: "Portfolio", + icon: , href: "https://prepverse.github.io/portfolio", }, ], @@ -55,10 +56,10 @@ export const secondaryMenuItems = [ // label: "Terms & Conditions", // href: "#", // }, - { - label: "Privacy Policy", - href: "/privacy-policy", - }, + // { + // label: "Privacy Policy", + // href: "/privacy-policy", + // }, { label: "License", href: "https://github.com/AkashSingh3031/The-Complete-FAANG-Preparation/blob/master/LICENSE", diff --git a/documentation/src/refine-theme/landing-footer.tsx b/documentation/src/refine-theme/landing-footer.tsx index fd43583e..66045cff 100644 --- a/documentation/src/refine-theme/landing-footer.tsx +++ b/documentation/src/refine-theme/landing-footer.tsx @@ -1,7 +1,8 @@ import clsx from "clsx"; import React from "react"; +import Link from "@docusaurus/Link"; import { openFigma } from "../utils/open-figma"; -import { footerDescription, menuItems, socialLinks } from "./footer-data"; +import { menuItems, secondaryMenuItems, socialLinks } from "./footer-data"; import { HeartOutlinedIcon } from "./icons/heart-outlined"; import { PrepVerseLogoIcon } from "./icons/prepverse-logo"; @@ -24,20 +25,25 @@ export const LandingFooter = () => { "text-gray-900 dark:text-gray-0", )} > - PrepVerse Development Inc. + Contacts
-
- -
+ +91 9794423031 + { "landing-lg:text-right", )} > - Join us on + Connect with me on
{ ); return ( - <> + ); }; diff --git a/documentation/src/theme/BlogPostItem/index.js b/documentation/src/theme/BlogPostItem/index.js index 2e6d692d..d1d432e6 100644 --- a/documentation/src/theme/BlogPostItem/index.js +++ b/documentation/src/theme/BlogPostItem/index.js @@ -24,17 +24,14 @@ export default function BlogPostItem({ className }) {
- {/*
+
{title} -
*/} +
diff --git a/documentation/static/CNAME b/documentation/static/CNAME index f211f1fe..1aec5ac6 100644 --- a/documentation/static/CNAME +++ b/documentation/static/CNAME @@ -1 +1 @@ -refine.dev \ No newline at end of file +prepverse.github.io \ No newline at end of file diff --git a/documentation/static/robots.txt b/documentation/static/robots.txt index 13cb06fb..d1a6c4e8 100644 --- a/documentation/static/robots.txt +++ b/documentation/static/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: https://refine.dev/sitemap.xml \ No newline at end of file +Sitemap: https://prepverse.github.io/sitemap.xml \ No newline at end of file