1- import type { Metadata } from 'next'
1+ import type { Metadata , Viewport } from 'next'
22import { Geist , Geist_Mono } from 'next/font/google'
33import './globals.css'
44import { Toaster } from '@/components/ui/toaster'
5- import { SITE_NAME } from '@/lib/consts'
5+ import { SITE_DESCRIPTION , SITE_NAME } from '@/lib/consts'
66
77const geistSans = Geist ( {
88 variable : '--font-geist-sans' ,
@@ -14,10 +14,41 @@ const geistMono = Geist_Mono({
1414 subsets : [ 'latin' ] ,
1515} )
1616
17+ export const viewport : Viewport = {
18+ width : 'device-width' ,
19+ initialScale : 1 ,
20+ themeColor : '#16a34a' ,
21+ colorScheme : 'light dark' ,
22+ }
23+
1724export const metadata : Metadata = {
1825 title : SITE_NAME ,
19- description : 'A simple and powerful library management system' ,
26+ description : SITE_DESCRIPTION ,
2027 metadataBase : new URL ( process . env . APP_URL ! ) ,
28+ keywords : [
29+ 'library management' ,
30+ 'book tracking' ,
31+ 'digital library' ,
32+ 'catalog system' ,
33+ 'book management software' ,
34+ ] ,
35+ authors : [ { name : 'Aung Myint Myat Oo' , url : 'https://github.com/agmmtoo' } ] ,
36+ creator : SITE_NAME ,
37+ publisher : SITE_NAME ,
38+ robots : {
39+ index : true ,
40+ follow : true ,
41+ googleBot : {
42+ index : true ,
43+ follow : true ,
44+ 'max-image-preview' : 'large' ,
45+ 'max-snippet' : - 1 ,
46+ } ,
47+ } ,
48+ icons : {
49+ icon : '/favicon.ico' ,
50+ } ,
51+ category : 'BusinessApplication' ,
2152}
2253
2354export default function RootLayout ( {
@@ -33,6 +64,24 @@ export default function RootLayout({
3364 >
3465 { children }
3566 < Toaster />
67+
68+ < script
69+ type = "application/ld+json"
70+ dangerouslySetInnerHTML = { {
71+ __html : JSON . stringify ( {
72+ '@context' : 'https://schema.org' ,
73+ '@type' : 'SoftwareApplication' ,
74+ name : SITE_NAME ,
75+ applicationCategory : 'BusinessApplication' ,
76+ operatingSystem : 'Web' ,
77+ offers : {
78+ '@type' : 'Offer' ,
79+ price : '0' ,
80+ priceCurrency : 'MMK' ,
81+ } ,
82+ } ) ,
83+ } }
84+ />
3685 </ body >
3786 </ html >
3887 )
0 commit comments