favicons and such
BIN
app/apple-icon.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
app/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
app/icon0.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
3
app/icon1.svg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
@@ -23,6 +23,10 @@ const cinzel = Cinzel_Decorative({
|
||||
export const metadata: Metadata = {
|
||||
title: 'Tarokka',
|
||||
description: 'Fortune telling for D&D’s Curse of Strahd',
|
||||
appleWebApp: {
|
||||
title: 'Tarokka',
|
||||
statusBarStyle: 'black-translucent',
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
|
||||
22
app/manifest.json
Normal 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
|
After Width: | Height: | Size: 606 KiB |
BIN
app/twitter-image.png
Normal file
|
After Width: | Height: | Size: 427 KiB |
25
middleware.ts
Normal 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
|
After Width: | Height: | Size: 1.6 MiB |
BIN
public/img/tarokka_1024x512.webp
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
public/img/tarokka_1200x630.webp
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
public/img/tarokka_round_solid.png
Normal file
|
After Width: | Height: | Size: 938 KiB |
BIN
public/img/tarokka_round_solid.webp
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
public/img/tarokka_transparent.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
public/web-app-manifest-192x192.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
public/web-app-manifest-512x512.png
Normal file
|
After Width: | Height: | Size: 302 KiB |