-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): changes in SEO across entire app
- Loading branch information
1 parent
36cf766
commit 712903b
Showing
30 changed files
with
353 additions
and
93 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 +1 @@ | ||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} | ||
{"name":"notByte website","short_name":"notByte","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png", "purpose": "any"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png", "purpose": "maskable"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from "react"; | ||
|
||
const NotFound = () => { | ||
return ( | ||
<div className="h-[100vh] flex justify-center items-center text-7xl"> | ||
<h1>not found</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
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
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,6 +1,46 @@ | ||
//opengraph image creation for dynamic metadata | ||
import { projects } from "@/lib/data/projects/projectsData"; | ||
import React from "react"; | ||
import { ImageResponse } from "next/og"; | ||
import Image from "next/image"; | ||
|
||
export default function Opengraph() { | ||
return <div>opengraph-image</div>; | ||
interface PageProps { | ||
params: { | ||
projectID: number; | ||
}; | ||
} | ||
|
||
export const size = { | ||
width: 500, | ||
height: 500, | ||
}; | ||
|
||
export default function og({ params }: PageProps) { | ||
const id = params.projectID; | ||
const project = projects.find((item) => item.id == id); | ||
|
||
if (!project) { | ||
return new ImageResponse( | ||
( | ||
<Image | ||
src={"/logo-black.png"} | ||
alt={"profile does not exist"} | ||
width={500} | ||
height={500} | ||
/> | ||
), | ||
size | ||
); | ||
} | ||
return new ImageResponse( | ||
( | ||
<Image | ||
src={project.bannerUrl} | ||
alt={project.title} | ||
width={500} | ||
height={500} | ||
/> | ||
), | ||
{ width: 1024, height: 500 } | ||
); | ||
} |
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
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
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
24 changes: 0 additions & 24 deletions
24
src/components/Pages/Project/components/Feedback/index.tsx
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
src/components/Pages/Project/components/Gallery/Dialog/helper.ts
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Dimmension } from "./model"; | ||
|
||
export const shouldImageBeScaled = (dimmensions: Dimmension) => { | ||
if (dimmensions.width * 0.7 < dimmensions.height) return true; | ||
else return false; | ||
}; |
Oops, something went wrong.