Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel372 committed May 2, 2024
1 parent b5abaa7 commit c88b8d6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
6 changes: 0 additions & 6 deletions src/pages/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<footer className={`${ThemeForComponent} border border-b-0 border-x-0`}>
<nav className=" flex justify-around w-full h-16 items-center">
Developed by Gabriel Brandão
</nav>


</footer>)

}

export default Footer
7 changes: 0 additions & 7 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
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 (
<MyContextProvider>
<Layout>
<Component {...pageProps} />
</Layout>
</MyContextProvider>


)
}
3 changes: 1 addition & 2 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import { Html, Head, Main, NextScript } from "next/document";

export default function Document() {


return (
<Html lang="en">
<Head>

<title>PORTFOLIO|GABRIEL BRANDÃO</title>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin='anonymous'/>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet"/>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"] });

Expand Down

0 comments on commit c88b8d6

Please sign in to comment.