From bd51ba55755cd802d5df38b542aa4f1e33474dec Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Thu, 9 Dec 2021 06:56:20 +0530 Subject: [PATCH 01/36] Update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 048a17d7..d93dfafa 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "intersection-observer": "^0.12.0", "minimatch": "^3.0.4", "next": "^12.0.7", + "next-themes": "^0.0.15", "postcss": "^8.4.4", "postcss-focus-visible": "^5.0.0", "postcss-import": "^14.0.2", From b1d3b4f534cef8ed0a115d44653e346ece5ec2d0 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Thu, 9 Dec 2021 06:56:34 +0530 Subject: [PATCH 02/36] Update yarn.lock --- yarn.lock | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yarn.lock b/yarn.lock index 8f559c7f..f6c31174 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4697,6 +4697,11 @@ neo-async@^2.6.2: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== +next-themes@^0.0.15: + version "0.0.15" + resolved "https://registry.yarnpkg.com/next-themes/-/next-themes-0.0.15.tgz#ab0cee69cd763b77d41211f631e108beab39bf7d" + integrity sha512-LTmtqYi03c4gMTJmWwVK9XkHL7h0/+XrtR970Ujvtu3s0kZNeJN24aJsi4rkZOI8i19+qq6f8j+8Duwy5jqcrQ== + next@^12.0.7: version "12.0.7" resolved "https://registry.yarnpkg.com/next/-/next-12.0.7.tgz#33ebf229b81b06e583ab5ae7613cffe1ca2103fc" From 0e0cc1826c55a35fd597f161618fc90ba2ced1ae Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Thu, 9 Dec 2021 06:57:52 +0530 Subject: [PATCH 03/36] Update _app.js Add ThemeProvider --- src/pages/_app.js | 65 +++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/src/pages/_app.js b/src/pages/_app.js index 9035e81a..505065a2 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -5,6 +5,7 @@ import ProgressBar from '@badrap/bar-of-progress' import { ResizeObserver } from '@juggle/resize-observer' import 'focus-visible' import 'intersection-observer' +import { ThemeProvider } from 'next-themes' import Head from 'next/head' import Router from 'next/router' import { Fragment, useEffect, useState } from 'react' @@ -50,7 +51,7 @@ export default function App({ Component, pageProps, router }) { return () => { Router.events.off('routeChangeComplete', handleRouteChange) } - }, [navIsOpen],[router.events]) + }, [navIsOpen], [router.events]) const Layout = Component.layoutProps?.Layout || Fragment const layoutProps = Component.layoutProps?.Layout @@ -65,36 +66,38 @@ export default function App({ Component, pageProps, router }) { return ( <> -
-
-
-
-
-
-
-
-
-
-
-
- {router.pathname !== '/' && (
-
+
Learn{' '}
Java
@@ -115,7 +117,7 @@ export default function Home() {