Add 404 page

This commit is contained in:
Sumire Isshiki 2024-02-27 18:47:28 +09:00
parent 0438388041
commit 0a014a7727
3 changed files with 38 additions and 1 deletions

26
404.html Normal file
View File

@ -0,0 +1,26 @@
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/webp" href="/avatar.webp" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>yude.jp</title>
<meta property="og:title" content="yude のページ">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.yude.jp/">
<meta property="og:image" content="https://www.yude.jp/avatar.png">
<meta property="og:site_name" content="yude.jp">
<meta property="og:locale" content="ja_JP">
<style>
body {
background-color: rgb(23 23 23);
color: white;
}
</style>
</head>
<body>
<div style="text-align: center">
<h1>404 Not Found</h1>
</div>
</body>
</html>

View File

@ -25,6 +25,7 @@
"tailwindcss": "^3.4.1"
},
"devDependencies": {
"@types/bun": "^1.0.7",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.14.0",

View File

@ -1,7 +1,17 @@
import { defineConfig } from 'vite'
import { resolve } from "path";
import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
404: resolve(__dirname, '404.html'),
}
}
}
}
)