Skip to content

Commit

Permalink
Convert site to a optimized and installable PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjid committed Jan 7, 2024
1 parent dd7da50 commit 8cdffaa
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 1 deletion.
Binary file added public/Shunjid128.png
Loading
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/Shunjid144.png
Loading
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/Shunjid192.png
Loading
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/Shunjid256.png
Loading
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/Shunjid384.png
Loading
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/Shunjid512.png
Loading
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/apple-icon.png
Loading
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/favicon.ico
Binary file not shown.
Binary file removed src/app/favicon.ico
Binary file not shown.
46 changes: 46 additions & 0 deletions src/app/manifest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { MetadataRoute } from "next";

export default function manifest(): MetadataRoute.Manifest {
return {
name: "Shunjid",
short_name: "Shunjid",
lang: "en-US",
start_url: "/",
display: "standalone",
theme_color: "#512cd4",
background_color: "#FFFFFF",
prefer_related_applications: true,
icons: [
{
src: "Shunjid128.png",
sizes: "128x128",
purpose: "any",
},
{
src: "Shunjid144.png",
sizes: "144x144",
purpose: "any",
},
{
src: "Shunjid192.png",
sizes: "192x192",
purpose: "any",
},
{
src: "Shunjid256.png",
sizes: "256x256",
purpose: "any",
},
{
src: "Shunjid384.png",
sizes: "384x384",
purpose: "any",
},
{
src: "Shunjid512.png",
sizes: "512x512",
purpose: "maskable",
},
],
};
}
11 changes: 10 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Metadata } from "next";
import { Metadata, Viewport } from "next";

import { resume } from "@/data";

Expand Down Expand Up @@ -31,6 +31,15 @@ export const metadata: Metadata = {
"সানজিদ রহমান",
"সানজিদ সৌরভ",
],
icons: {
icon: ["/favicon.ico?v=4"],
apple: ["/apple-icon.png?v=4"],
shortcut: ["/apple-icon.png"],
},
};

export const viewport: Viewport = {
themeColor: "#512cd4",
};

export default function Page() {
Expand Down

0 comments on commit 8cdffaa

Please sign in to comment.