File tree Expand file tree Collapse file tree 5 files changed +18
-6
lines changed
Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ import RedditIcon from "@/public/icons/reddit.svg";
66import DiscordIcon from "@/public/icons/discord.svg" ;
77import FooterLink from "@/src/components/footer/FooterLink" ;
88import Header from "@/src/components/header/Header" ;
9+ import { Metadata } from "next" ;
10+
11+ export const metadata : Metadata = {
12+ openGraph : {
13+ siteName : "Zendoc" ,
14+ images : [ { url : "https://zendoc.io/icon.png" } ] ,
15+ } ,
16+ } ;
917
1018export default function DefaultLayout ( {
1119 children,
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export default function UnsubscribeNewsletter() {
117117
118118 return (
119119 < div className = "min-h-[calc(76vh)]" >
120- < div className = "mx-auto max-w-4xl bg-white p-8 pb-12 pt-24 text-gray-800" >
120+ < div className = "mx-auto max-w-4xl bg-white px-4 pb-12 pt-24 text-gray-800" >
121121 < h1 className = "mb-6 text-3xl font-bold" > Unsubscribe from Newsletter</ h1 >
122122
123123 < div className = "mb-8" >
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export default function VerifyNewsletter() {
8686
8787 return (
8888 < div className = "min-h-[calc(76vh)]" >
89- < div className = "mx-auto max-w-4xl bg-white p-8 pb-12 pt-24 text-gray-800" >
89+ < div className = "mx-auto max-w-4xl bg-white px-4 pb-12 pt-24 text-gray-800" >
9090 < h1 className = "mb-6 text-3xl font-bold" > Email Verification</ h1 >
9191
9292 < div className = "mb-10" >
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ export const metadata: Metadata = {
1515 title : "Zendoc - Automate your Documentation" ,
1616 description :
1717 "Use Zendoc to automate your documentation and keep track of your infrastructure." ,
18+ openGraph : {
19+ siteName : "Zendoc" ,
20+ images : [ { url : "https://zendoc.io/icon.png" } ] ,
21+ } ,
1822} ;
1923
2024export default function Home ( ) {
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ export class CryptService {
44 constructor ( ) { }
55
66 encrypt ( data : string ) : string | null {
7- if ( ! process . env . ENCYRPTION_KEY || process . env . ENCRYPTION_KEY === "" ) {
7+ if ( ! process . env . ENCRYPTION_KEY || process . env . ENCRYPTION_KEY === "" ) {
88 return null ;
99 }
1010
11- const key = Buffer . from ( process . env . ENCYRPTION_KEY . trim ( ) , "hex" ) ;
11+ const key = Buffer . from ( process . env . ENCRYPTION_KEY . trim ( ) , "hex" ) ;
1212
1313 const iv = crypto . randomBytes ( 16 ) ;
1414 const algorithm = "aes-256-cbc" ;
@@ -19,7 +19,7 @@ export class CryptService {
1919 }
2020
2121 decrypt ( data : string ) : string | null {
22- if ( ! process . env . ENCYRPTION_KEY || process . env . ENCRYPTION_KEY === "" ) {
22+ if ( ! process . env . ENCRYPTION_KEY || process . env . ENCRYPTION_KEY === "" ) {
2323 return null ;
2424 }
2525
@@ -28,7 +28,7 @@ export class CryptService {
2828 return null ;
2929 }
3030
31- const key = Buffer . from ( process . env . ENCYRPTION_KEY . trim ( ) , "hex" ) ;
31+ const key = Buffer . from ( process . env . ENCRYPTION_KEY . trim ( ) , "hex" ) ;
3232 const iv = Buffer . from ( splitData [ 0 ] . trim ( ) , "hex" ) ;
3333
3434 const algorithm = "aes-256-cbc" ;
You can’t perform that action at this time.
0 commit comments