diff --git a/.gitignore b/.gitignore index c5a346f..36c3449 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,14 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +# PWA files + +**/public/sw.js +**/public/workbox-*.js +**/public/worker-*.js +**/public/sw.js.map +**/public/workbox-*.js.map +**/public/worker-*.js.map +**/public/fallback-*.js.map +**/public/fallback-*.js \ No newline at end of file diff --git a/layout/Layout.tsx b/layout/Layout.tsx index 55d429e..026679b 100644 --- a/layout/Layout.tsx +++ b/layout/Layout.tsx @@ -12,7 +12,7 @@ interface Props extends React.HTMLAttributes { const Layout: React.FC = ({ title = "Snippng | snippets to png", - description = " Create and share beautiful images of your source code.", + description = "Create and share beautiful images of your source code.", className, ...props }) => { @@ -24,19 +24,8 @@ const Layout: React.FC = ({ - - - - -
- - - - - - + <> + + + + + + + + + + + ); } diff --git a/pages/_document.tsx b/pages/_document.tsx index 9974397..074d8aa 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -64,8 +64,19 @@ export default function Document() { return ( + + + + + + + + + + + + + + + + + + + + + + +