feat: new favicons and minor fixes

This commit is contained in:
kilyabin
2025-11-26 00:35:58 +04:00
parent 423178aefb
commit 2225851177
20 changed files with 85 additions and 31 deletions

BIN
src/app/apple-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
src/app/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

3
src/app/icon0.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 76 KiB

BIN
src/app/icon1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

32
src/app/layout.tsx Normal file
View File

@@ -0,0 +1,32 @@
import type { Metadata } from 'next'
import React from 'react'
export const metadata: Metadata = {
appleWebApp: {
title: 'Расписание КС',
},
icons: {
icon: [
{ url: '/favicon.ico' },
{ url: '/icon1.png', sizes: '32x32', type: 'image/png' },
{ url: '/icon0.svg', type: 'image/svg+xml' },
],
apple: [
{ url: '/apple-touch-icon.png' },
],
},
manifest: '/site.webmanifest',
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="ru">
<body>{children}</body>
</html>
)
}

21
src/app/manifest.json Normal file
View File

@@ -0,0 +1,21 @@
{
"name": "Расписание КС ПГУТИ",
"short_name": "Расписание КС",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#bc7b7b",
"background_color": "#3e0000",
"display": "standalone"
}