Compare commits

..

2 Commits

Author SHA1 Message Date
Gavin McDonald
a15b80c23e favicons and such 2025-05-09 09:30:54 -04:00
Gavin McDonald
2108324cf4 a bit less logging 2025-05-08 18:17:55 -04:00
18 changed files with 55 additions and 1 deletions

BIN
app/apple-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
app/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
app/icon0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

3
app/icon1.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@@ -23,6 +23,10 @@ const cinzel = Cinzel_Decorative({
export const metadata: Metadata = {
title: 'Tarokka',
description: 'Fortune telling for D&Ds Curse of Strahd',
appleWebApp: {
title: 'Tarokka',
statusBarStyle: 'black-translucent',
},
};
export default function RootLayout({

22
app/manifest.json Normal file
View File

@@ -0,0 +1,22 @@
{
"name": "Tarokka",
"short_name": "Tarokka",
"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": "#000000",
"background_color": "#000000",
"display": "standalone"
}

BIN
app/opengraph-image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 KiB

BIN
app/twitter-image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 KiB

View File

@@ -213,7 +213,7 @@ export default class GameStore {
}
deleteGame(game: GameState): void {
console.log(Date.now(), 'DELETE', game);
console.log(Date.now(), 'DELETE', game.dmID, game.spectatorID);
this.dms.delete(game.dmID);
this.spectators.delete(game.spectatorID);

25
middleware.ts Normal file
View File

@@ -0,0 +1,25 @@
import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';
export function middleware(request: NextRequest) {
const url = request.nextUrl;
const slug = url.pathname.slice(1);
const blocked = [
'apple-icon.png',
'favicon.ico',
'icon0.svg',
'icon1.png',
'manifest.json',
'opengraph-image.png',
'twitter-image.png',
'web-app-manifest-192x192.png',
'web-app-manifest-512x512.png',
];
if (blocked.includes(slug)) {
return NextResponse.rewrite(request.url);
}
return NextResponse.next();
}

BIN
public/img/tarokka.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB