-
Notifications
You must be signed in to change notification settings - Fork 17
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
Showing
11 changed files
with
111 additions
and
100 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
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
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,9 +1,9 @@ | ||
import { createMedia } from '@artsy/fresnel' | ||
import { createMedia } from '@artsy/fresnel'; | ||
|
||
const ExampleAppMedia = createMedia({ | ||
breakpoints: { xs: 0, sm: 640, md: 768, lg: 1024, xl: 1280 }, | ||
}) | ||
}); | ||
|
||
export const mediaStyles = ExampleAppMedia.createMediaStyle() | ||
export const mediaStyles = ExampleAppMedia.createMediaStyle(); | ||
|
||
export const { Media, MediaContextProvider } = ExampleAppMedia | ||
export const { Media, MediaContextProvider } = ExampleAppMedia; |
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,33 +1,32 @@ | ||
import Layout from '../components/Layout' | ||
import NotFoundAnything from '../components/NotFoundAnything' | ||
import type { NextPage } from 'next' | ||
import { useRouter } from 'next/router' | ||
import copy from '../public/img/copy.svg' | ||
import { CopyText } from '../utils/copyText' | ||
import Image from 'next/image' | ||
import Layout from '../components/Layout'; | ||
import NotFoundAnything from '../components/NotFoundAnything'; | ||
import type { NextPage } from 'next'; | ||
import { useRouter } from 'next/router'; | ||
import copy from '../public/img/copy.svg'; | ||
import { CopyText } from '../utils/copyText'; | ||
import Image from 'next/image'; | ||
|
||
const NotFound: NextPage = () => { | ||
const router = useRouter() | ||
const { query }: { query?: string } = router.query | ||
const router = useRouter(); | ||
const { query }: { query?: string } = router.query; | ||
return ( | ||
<Layout pageTitle="404-Not Found"> | ||
<Layout title="404-Not Found"> | ||
{query != null && ( | ||
<div className="flex items-center text-base font-bold mb-3 lg:mb-6 lg:text-28"> | ||
search results: <span className="font-normal ml-1">{query}</span> | ||
<button | ||
onClick={(e) => { | ||
e.stopPropagation() | ||
CopyText(query) | ||
e.stopPropagation(); | ||
CopyText(query); | ||
}} | ||
className="group relative cursor-pointer" | ||
> | ||
className="group relative cursor-pointer"> | ||
<Image src={copy} alt="copy_to_clipboard" /> | ||
</button> | ||
</div> | ||
)} | ||
<NotFoundAnything /> | ||
</Layout> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
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,22 +1,17 @@ | ||
import '../styles/globals.css' | ||
import type { AppProps } from 'next/app' | ||
import NextNProgress from 'nextjs-progressbar' | ||
import { ReactNode } from 'react' | ||
import 'react-toastify/dist/ReactToastify.css' | ||
import { ToastContainer } from 'react-toastify' | ||
import '../styles/globals.css'; | ||
import type { AppProps } from 'next/app'; | ||
import NextNProgress from 'nextjs-progressbar'; | ||
import { ReactNode } from 'react'; | ||
import 'react-toastify/dist/ReactToastify.css'; | ||
import { ToastContainer } from 'react-toastify'; | ||
|
||
export default function App ({ Component, pageProps }: AppProps): ReactNode { | ||
export default function App({ Component, pageProps }: AppProps): ReactNode { | ||
return ( | ||
<> | ||
<NextNProgress | ||
color="#00A9BB" | ||
height={2} | ||
showOnShallow={true} | ||
/> | ||
<NextNProgress color="#00A9BB" height={2} showOnShallow={true} /> | ||
|
||
<Component {...pageProps} /> | ||
<ToastContainer /> | ||
|
||
</> | ||
) | ||
); | ||
} |
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
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