-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70eed80
commit 9e581fb
Showing
35 changed files
with
1,662 additions
and
1,542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"presets": ["next/babel"], | ||
"plugins": [["styled-components", { "ssr": true }]] | ||
} | ||
{ | ||
"presets": ["next/babel"], | ||
"plugins": [["styled-components", { "ssr": true }]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"extends": "next", | ||
"rules": { | ||
"@next/next/no-img-element": "off", | ||
"@next/next/no-document-import-in-page": "off" | ||
} | ||
} | ||
"extends": "next", | ||
"rules": { | ||
"@next/next/no-img-element": "off", | ||
"@next/next/no-document-import-in-page": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
import { ApolloClient, InMemoryCache, createHttpLink } from "@apollo/client"; | ||
import { setContext } from '@apollo/client/link/context'; | ||
|
||
const { GITHUB_TOKEN } = process.env | ||
|
||
// Create the http link | ||
const httpLink = createHttpLink({ | ||
uri: 'https://api.github.com/graphql', | ||
}); | ||
|
||
// Generate and set the header with the auth details | ||
const authLink = setContext((_, { headers }) => { | ||
// get the authentication token from env variables if it exists | ||
const token = GITHUB_TOKEN | ||
|
||
// return the headers to the context so httpLink can read them | ||
return { | ||
headers: { | ||
...headers, | ||
authorization: `Bearer ${token}`, | ||
} | ||
} | ||
}); | ||
|
||
// Generate your client with the authLink and httpLink | ||
export const client = new ApolloClient({ | ||
cache: new InMemoryCache(), | ||
link: authLink.concat(httpLink) | ||
}); | ||
import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client'; | ||
import { setContext } from '@apollo/client/link/context'; | ||
|
||
const { GITHUB_TOKEN } = process.env; | ||
|
||
// Create the http link | ||
const httpLink = createHttpLink({ | ||
uri: 'https://api.github.com/graphql', | ||
}); | ||
|
||
// Generate and set the header with the auth details | ||
const authLink = setContext((_, { headers }) => { | ||
// get the authentication token from env variables if it exists | ||
const token = GITHUB_TOKEN; | ||
|
||
// return the headers to the context so httpLink can read them | ||
return { | ||
headers: { | ||
...headers, | ||
authorization: `Bearer ${token}`, | ||
}, | ||
}; | ||
}); | ||
|
||
// Generate your client with the authLink and httpLink | ||
export const client = new ApolloClient({ | ||
cache: new InMemoryCache(), | ||
link: authLink.concat(httpLink), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
import Link from 'next/link' | ||
import React from 'react' | ||
import { BiArrowBack } from 'react-icons/bi' | ||
import Link from 'next/link'; | ||
import React from 'react'; | ||
import { BiArrowBack } from 'react-icons/bi'; | ||
|
||
const NotFound = ({ image, message }) => { | ||
return ( | ||
<div className='min-h-[calc(100vh-48px)] h-full w-full flex justify-center items-center flex-col gap-12 p-2 md:p-10 lg:p-20'> | ||
<img | ||
src={`/svg/${image}.svg`} | ||
alt="not found" | ||
className='w-full max-w-[500px]' | ||
/> | ||
<p className='text-center'>{message}</p> | ||
<Link href='/'> | ||
<a className="bg-purple-mid flex justify-center items-center gap-2 text-white px-5 py-2 text-lg rounded-lg"> | ||
<BiArrowBack />Back to home | ||
</a> | ||
</Link> | ||
</div> | ||
) | ||
} | ||
return ( | ||
<div className="min-h-[calc(100vh-48px)] h-full w-full flex justify-center items-center flex-col gap-12 p-2 md:p-10 lg:p-20"> | ||
<img | ||
src={`/svg/${image}.svg`} | ||
alt="not found" | ||
className="w-full max-w-[500px]" | ||
/> | ||
<p className="text-center">{message}</p> | ||
<Link href="/"> | ||
<a className="bg-purple-mid flex justify-center items-center gap-2 text-white px-5 py-2 text-lg rounded-lg"> | ||
<BiArrowBack /> | ||
Back to home | ||
</a> | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotFound | ||
export default NotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer className='p-3 flex justify-center items-center gap-1 flex-col sm:flex-row bg-white'> | ||
<span> | ||
© {new Date().getFullYear()} by | ||
<a | ||
className='ml-1 font-semibold' | ||
href="https://www.mridul.tech/" | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
Mridul | ||
</a> | ||
. | ||
</span> | ||
<span>Made with ❤ {'& '} | ||
<a | ||
className='ml-1 font-semibold' | ||
href="https://github.com/Mridul2820/git-o-get" | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
{'<Code/>'} | ||
</a> | ||
</span> | ||
</footer> | ||
) | ||
} | ||
return ( | ||
<footer className="p-3 flex justify-center items-center gap-1 flex-col sm:flex-row bg-white"> | ||
<span> | ||
© {new Date().getFullYear()} by | ||
<a | ||
className="ml-1 font-semibold" | ||
href="https://www.mridul.tech/" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Mridul | ||
</a> | ||
. | ||
</span> | ||
<span> | ||
Made with ❤ {'& '} | ||
<a | ||
className="ml-1 font-semibold" | ||
href="https://github.com/Mridul2820/git-o-get" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
{'<Code/>'} | ||
</a> | ||
</span> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer | ||
export default Footer; |
Oops, something went wrong.
9e581fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
git-to-get – ./
git-to-get-git-main-mridul28.vercel.app
git-to-get-mridul28.vercel.app
git-o-get.mridul.tech