diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..cc65088 Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/banner.svg b/public/banner.svg new file mode 100644 index 0000000..db8bdf6 --- /dev/null +++ b/public/banner.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/public/favicon-96x96.png b/public/favicon-96x96.png new file mode 100644 index 0000000..a907c81 Binary files /dev/null and b/public/favicon-96x96.png differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..d70ba4d Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..7d993fd --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1 @@ +RealFaviconGeneratorhttps://realfavicongenerator.net \ No newline at end of file diff --git a/public/logo_light.svg b/public/logo_light.svg new file mode 100644 index 0000000..b0ffe4f --- /dev/null +++ b/public/logo_light.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/public/logo_tinted.svg b/public/logo_tinted.svg new file mode 100644 index 0000000..a706ae8 --- /dev/null +++ b/public/logo_tinted.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..06825f7 --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,24 @@ +{ + "name": "Friendly", + "short_name": "Friendly", + "description": "Private social network. Make new friends!", + "id" : "friendly_web_app", + "start_url": "/", + "display": "minimal-ui", + "background_color": "#f2f7ff", + "theme_color": "#007aff", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any" + } + ] +} \ No newline at end of file diff --git a/public/web-app-manifest-192x192.png b/public/web-app-manifest-192x192.png new file mode 100644 index 0000000..d5a1b76 Binary files /dev/null and b/public/web-app-manifest-192x192.png differ diff --git a/public/web-app-manifest-512x512.png b/public/web-app-manifest-512x512.png new file mode 100644 index 0000000..401fedf Binary files /dev/null and b/public/web-app-manifest-512x512.png differ diff --git a/src/app/favicon.ico b/src/app/favicon.ico index 718d6fe..a15bb44 100644 Binary files a/src/app/favicon.ico and b/src/app/favicon.ico differ diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d1a4dd3..c93bc1c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -9,6 +9,7 @@ import {SessionProvider} from '@/components/session-provider'; export const metadata: Metadata = { title: 'Friendly Web', description: 'Web client for Friendly', + manifest: '/manifest.json', }; export default function RootLayout({ @@ -23,6 +24,10 @@ export default function RootLayout({ name="viewport" content="initial-scale=1, width=device-width" /> + + + + diff --git a/src/lib/cookies.ts b/src/lib/cookies.ts index 9eeceb8..a4b65fc 100644 --- a/src/lib/cookies.ts +++ b/src/lib/cookies.ts @@ -7,7 +7,7 @@ export function setCookie(key: string, value: T, days: number = 7): void { const expires = `expires=${date.toUTCString()}`; const stringValue = JSON.stringify(value); - document.cookie = `${key}=${encodeURIComponent(stringValue)}; ${expires}; path=/; SameSite=Lax`; + document.cookie = `${key}=${encodeURIComponent(stringValue)}; ${expires}; path=/; SameSite=None; Secure`; } export function getCookie(key: string): T | null {