Skip to content

Commit

Permalink
đź‘€ Add PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
newtoallofthis123 committed Mar 18, 2023
1 parent 194bebb commit c4b133f
Show file tree
Hide file tree
Showing 17 changed files with 7,103 additions and 22 deletions.
15 changes: 10 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}
const withPWA = require('next-pwa')({
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development'
})

module.exports = nextConfig
module.exports = withPWA({
// next.js config
reactStrictMode: true,
})
3,675 changes: 3,662 additions & 13 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"eslint": "8.36.0",
"eslint-config-next": "13.2.4",
"next": "13.2.4",
"next-pwa": "^5.6.0",
"react": "18.2.0",
"react-dom": "18.2.0"
}
Expand Down
33 changes: 32 additions & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,38 @@ import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html lang="en">
<Head />
<Head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#f1fa00" />
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="title" content="NoobScience"/>
<meta name="description" content="Hi! I am Ishan. I am a Student and Open Source Enthusiast. This is my personal portfolio website. I Like to Code Stuff. Check out my work!"/>
<meta name="title" content="NoobScience"/>
<meta name="keywords" content="noobscience, NoobScience, newtoallofthis123, technology, website"/>
<meta name="robots" content="index, follow, archive"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="language" content="English"/>
<meta name="author" content="NoobScience"/>

<meta property="og:type" content="website"/>
<meta property="og:url" content="https://new.noobscience.rocks/" />
<meta property="og:title" content="NoobScience"/>
<meta property="og:description" content="Student and Open Source Enthusiast. I Like to Code Stuff. Check out my work!"/>
<meta property="og:image" content="/assets/banner.png"/>
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="canonical" href="https://new.noobscience.rocks" />
<link rel="manifest" href="/manifest.json" />
<link rel="mask-icon" href="/favicon.ico" color="#f1fa00" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:wght@100;400&family=Raleway&family=Poppins&family=Roboto+Condensed:wght@700&display=swap"
rel="stylesheet" />
</Head>
<body>
<Main />
<NextScript />
Expand Down
Binary file added public/assets/banner.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,352 changes: 3,352 additions & 0 deletions public/assets/banner.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/logo192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "NoobScience",
"name": "NoobScience",
"start_url": ".",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
16 changes: 16 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->


<url>
<loc>https://newtoallofthis123.github.io/About/</loc>
<lastmod>2022-11-29T03:23:16+00:00</lastmod>
</url>


</urlset>
1 change: 1 addition & 0 deletions public/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/thirteen.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

1 change: 1 addition & 0 deletions public/workbox-588899ac.js

Large diffs are not rendered by default.

1 comment on commit c4b133f

@vercel
Copy link

@vercel vercel bot commented on c4b133f Mar 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.