From c88b8d602efa21f0ddb5d0ba6d48271f7ea38b1c Mon Sep 17 00:00:00 2001 From: Gabriel372 Date: Wed, 1 May 2024 22:04:30 -0300 Subject: [PATCH] update --- src/pages/Footer.tsx | 6 ------ src/pages/_app.tsx | 7 ------- src/pages/_document.tsx | 3 +-- src/pages/index.tsx | 2 -- 4 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/pages/Footer.tsx b/src/pages/Footer.tsx index 2c16abf..bdd65ac 100644 --- a/src/pages/Footer.tsx +++ b/src/pages/Footer.tsx @@ -5,18 +5,12 @@ import { TstateTheme } from "@/types/Types"; function Footer() { const {ThemeIsDark} = useContext(MyContext) as TstateTheme ; const ThemeForComponent = ThemeIsDark ? 'bg-gradient-to-b from-black to-gray-600 text-white duration-500 border-t-gray-800 ':'duration-500 bg-gradient-to-t from-gray-600 to-white border-t-0' -//const ThemeForComponent = ThemeIsDark ? 'text-white bg-gradient-to-t from-black to-gray-400 duration-700 border-b-gray-800 border border-t-0 border-x-0':'duration-800 bg-gradient-to-b from-gray-600 to-white' - - return () - } export default Footer diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index e1f0ed6..58d7c06 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,14 +1,9 @@ import "@/styles/globals.css"; import type { AppProps } from "next/app"; import Layout from "@/layout/Layout"; -import { useContext } from "react"; -import { TstateTheme } from "@/types/Types"; -import { MyContext } from "@/context/MyContext"; import { MyContextProvider } from "@/context/MyContext"; export default function App({ Component, pageProps }: AppProps) { - const {ThemeIsDark} = useContext(MyContext) as TstateTheme ; - return ( @@ -16,7 +11,5 @@ export default function App({ Component, pageProps }: AppProps) { - - ) } diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 4401a5b..5fb6ab6 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -2,11 +2,10 @@ import { Html, Head, Main, NextScript } from "next/document"; export default function Document() { - return ( - + PORTFOLIO|GABRIEL BRANDÃO diff --git a/src/pages/index.tsx b/src/pages/index.tsx index dc11e47..8f00ffc 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -3,8 +3,6 @@ import MyProjects from "@/components/MyProjects"; import MyTechs from "@/components/MyTechs"; import AboutMe from "@/components/AboutMe"; import MyTechsForMobile from "@/components/MyTechsForMobile"; -// import MyContextProvider from "@/context/MyContext"; -import { MyContextProvider } from "@/context/MyContext"; const inter = Inter({ subsets: ["latin"] });