Skip to content

Commit f97a6c5

Browse files
committed
feat: favicons
1 parent a7bf9ce commit f97a6c5

17 files changed

+65
-13
lines changed

app/android-chrome-192x192.svg

Lines changed: 1 addition & 0 deletions
Loading

app/android-chrome-512x512.svg

Lines changed: 1 addition & 0 deletions
Loading

app/apple-touch-icon.png

1.73 KB
Loading

app/apple-touch-icon.svg

Lines changed: 1 addition & 0 deletions
Loading

app/favicon-16x16.svg

Lines changed: 1 addition & 0 deletions
Loading

app/favicon-32x32.svg

Lines changed: 1 addition & 0 deletions
Loading

app/favicon.ico

-21.1 KB
Binary file not shown.

app/favicon.svg

Lines changed: 1 addition & 0 deletions
Loading

app/layout.tsx

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { Metadata } from 'next'
1+
import type { Metadata, Viewport } from 'next'
22
import { Geist, Geist_Mono } from 'next/font/google'
33
import './globals.css'
44
import { Toaster } from '@/components/ui/toaster'
5-
import { SITE_NAME } from '@/lib/consts'
5+
import { SITE_DESCRIPTION, SITE_NAME } from '@/lib/consts'
66

77
const 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+
1724
export 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

2354
export 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
)

components/nav-user.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ export function NavUser({
4040
})
4141
}
4242
function onError(event: Event) {
43-
toast({
44-
title: 'Error',
45-
description: JSON.stringify(event),
46-
variant: 'destructive',
47-
})
43+
console.warn('Error in notification stream:', event)
4844
}
4945

5046
const cleanup = streamNotification(user.id, {

0 commit comments

Comments
 (0)