From 737adb7c73d37ac7536d00ea95649e30f817a835 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Mon, 7 Feb 2022 00:12:10 +0530 Subject: [PATCH 01/10] Delete Vercel.js --- src/components/Vercel.js | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/components/Vercel.js diff --git a/src/components/Vercel.js b/src/components/Vercel.js deleted file mode 100644 index 61e95321..00000000 --- a/src/components/Vercel.js +++ /dev/null @@ -1,10 +0,0 @@ -export function Vercel(props) { - return ( - - - - ) -} From 11cae048b7ecea6c5b8416eb10fd60dd2706b497 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Mon, 7 Feb 2022 00:12:18 +0530 Subject: [PATCH 02/10] Delete LogoMark.js --- src/components/LogoMark.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/components/LogoMark.js diff --git a/src/components/LogoMark.js b/src/components/LogoMark.js deleted file mode 100644 index 4c470477..00000000 --- a/src/components/LogoMark.js +++ /dev/null @@ -1,18 +0,0 @@ -export function LogoMark(props) { - return ( - - - - - ) -} From 39d230ce65e90df6efac75c9f5ab9a70b77d4782 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Mon, 7 Feb 2022 00:12:37 +0530 Subject: [PATCH 03/10] Update redirects.json --- redirects.json | 49 +++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/redirects.json b/redirects.json index 999d445e..e5a21cf9 100644 --- a/redirects.json +++ b/redirects.json @@ -1,14 +1,47 @@ [ - { "source": "/docs/what-is-javaistic", "destination": "/", "permanent": false }, + { + "source": "/blog", + "destination": "https://blog-javaistic.vercel.app/", + "permanent": false + }, + { + "source": "/changelog", + "destination": "https://changelog-javaistic.vercel.app/", + "permanent": false + }, + { + "source": "/community", + "destination": "https://discord.gg/RkHJqvK9r8", + "permanent": false + }, + { + "source": "/discord", + "destination": "https://discord.gg/RkHJqvK9r8", + "permanent": false + }, + { + "source": "/docs/what-is-javaistic", + "destination": "/", + "permanent": false + }, { "source": "/forum", "destination": "https://github.com/javaistic/javaistic/discussions", "permanent": false }, - { "source": "/community", "destination": "https://discord.gg/RkHJqvK9r8", "permanent": false }, - { "source": "/changelog", "destination": "https://javaistic-changelog.vercel.app/", "permanent": false }, - { "source": "/license", "destination": "https://raw.githubusercontent.com/javaistic/javaistic/main/LICENSE", "permanent": false }, - { "source": "/discord", "destination": "https://discord.gg/RkHJqvK9r8", "permanent": false }, - { "source": "/status", "destination": "https://javaistic.betteruptime.com/", "permanent": false }, - { "source": "/stats", "destination": "https://javaistic.betteruptime.com/", "permanent": false } -] + { + "source": "/license", + "destination": "https://raw.githubusercontent.com/javaistic/javaistic/main/LICENSE", + "permanent": false + }, + { + "source": "/stats", + "destination": "https://javaistic.betteruptime.com/", + "permanent": false + }, + { + "source": "/status", + "destination": "https://javaistic.betteruptime.com/", + "permanent": false + } +] \ No newline at end of file From 81168d83f7b41fd344966f374130a9c633637570 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Mon, 7 Feb 2022 00:12:51 +0530 Subject: [PATCH 04/10] Update Header.js --- src/components/Header.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Header.js b/src/components/Header.js index e4999531..b2841b11 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -3,8 +3,8 @@ import { Search } from '@/components/Search' import clsx from 'clsx' import Link from 'next/link' import Router from 'next/router' -import ThemeChanger from './ThemeChanger' import MenuButton from './home/Menu' +import ThemeChanger from './ThemeChanger' export function Header({ navIsOpen, onNavToggle }) { return ( @@ -29,7 +29,6 @@ export function Header({ navIsOpen, onNavToggle }) {
- Date: Mon, 7 Feb 2022 00:13:02 +0530 Subject: [PATCH 05/10] Update Hero.js --- src/components/home/Hero.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/home/Hero.js b/src/components/home/Hero.js index 5fd1ea22..bd9a10b9 100644 --- a/src/components/home/Hero.js +++ b/src/components/home/Hero.js @@ -37,7 +37,8 @@ const { lines } = tokenizeWithLines.java(`class BinarySearch { else System.out.println("Element found at index " + result); } -}`) +} +`) function CompletionDemo() { const { ref } = useInView({ threshold: 0.5, triggerOnce: true }) From 62403a4532a07d6c987638c0a3519322d103b43e Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Mon, 7 Feb 2022 00:13:26 +0530 Subject: [PATCH 06/10] Create Logos.js Add different logos in one file. --- src/components/Logos.js | 92 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 src/components/Logos.js diff --git a/src/components/Logos.js b/src/components/Logos.js new file mode 100644 index 00000000..e7e46230 --- /dev/null +++ b/src/components/Logos.js @@ -0,0 +1,92 @@ +export function GitHub(props) { + return ( + + + + ) +} + +export function Twitter(props) { + return ( + + + + ) +} + +export function Vercel(props) { + return ( + + + + ) +} + +export function IndianFlag(props) { + return ( + + + + + + + + + + + + + + + + + + ) +} From 81d1ca7a283eed038bcffe8dd52ec483b4cec137 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Mon, 7 Feb 2022 00:13:30 +0530 Subject: [PATCH 07/10] Update Logo.js --- src/components/Logo.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/components/Logo.js b/src/components/Logo.js index 86a7d4fa..dba734be 100644 --- a/src/components/Logo.js +++ b/src/components/Logo.js @@ -16,3 +16,22 @@ export function Logo(props) { ) } + +export function LogoMark(props) { + return ( + + + + + ) +} From c33c98c412ccbcb7a2162a4d2c2f678b17807c5c Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Mon, 7 Feb 2022 00:13:55 +0530 Subject: [PATCH 08/10] Update SidebarLayout.js --- src/layouts/SidebarLayout.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/SidebarLayout.js b/src/layouts/SidebarLayout.js index 1a4c5dd1..72a0e7af 100644 --- a/src/layouts/SidebarLayout.js +++ b/src/layouts/SidebarLayout.js @@ -201,7 +201,7 @@ function TopLevelNav() { Programs } > - Practice + Blog Date: Mon, 7 Feb 2022 00:14:46 +0530 Subject: [PATCH 09/10] Update ContentsLayout.js Add Arrow Icons in place of arrow symbols --- src/layouts/ContentsLayout.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/layouts/ContentsLayout.js b/src/layouts/ContentsLayout.js index 44a5b3e0..885442d6 100644 --- a/src/layouts/ContentsLayout.js +++ b/src/layouts/ContentsLayout.js @@ -2,6 +2,7 @@ import { ClassTable } from '@/components/ClassTable' import { PageHeader } from '@/components/PageHeader' import { usePrevNext } from '@/hooks/usePrevNext' import { SidebarContext, SidebarLayout } from '@/layouts/SidebarLayout' +import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/outline' import clsx from 'clsx' import Link from 'next/link' import { useRouter } from 'next/router' @@ -191,21 +192,17 @@ export function ContentsLayout({ children, meta, classes, tableOfContents }) {
{prev && ( - - + + {prev.shortTitle || prev.title} )} {next && ( - + {next.shortTitle || next.title} - + )} From af17517d6195cb1e4e3eced8fc2fbb678fd46833 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Mon, 7 Feb 2022 00:15:24 +0530 Subject: [PATCH 10/10] Update Footer.js --- src/components/home/Footer.js | 48 +++++++++-------------------------- 1 file changed, 12 insertions(+), 36 deletions(-) diff --git a/src/components/home/Footer.js b/src/components/home/Footer.js index 495517ad..6b2a8299 100644 --- a/src/components/home/Footer.js +++ b/src/components/home/Footer.js @@ -1,37 +1,11 @@ import { Logo } from '@/components/Logo' -import { Vercel } from '@/components/Vercel' +import { GitHub, Twitter, Vercel } from '@/components/Logos' import { documentationNav } from '@/navs/documentation' import { programsNav } from '@/navs/program' import clsx from 'clsx' import Link from 'next/link' import styles from './Footer.module.css' -const GitHub = () => ( - - - -) - -const Twitter = () => ( - - - -) - const footerNav = { 'Getting started': { className: 'row-span-2', @@ -56,7 +30,7 @@ const footerNav = { items: [ { title: 'Brand', href: '/brand' }, { title: 'Sponsors', href: '/sponsors' }, - { title: 'Changelog', href: 'https://javaistic-changelog.vercel.app/' }, + { title: 'Changelog', href: '/changelog' }, { title: 'Open Source', href: '/' }, ], }, @@ -65,7 +39,7 @@ const footerNav = { { title: 'GitHub', href: 'https://github.com/javaistic/javaistic' }, { title: 'Discord', href: '/discord' }, { title: 'Twitter', href: 'https://twitter.com/javaistic' }, - { title: 'Blog', href: '/' }, + { title: 'Blog', href: '/blog' }, ], }, } @@ -75,18 +49,18 @@ export function Footer() {