fix: favicon and background image serving
@@ -27,7 +27,7 @@ export function AuthLayout({ title, description, children }: AuthLayoutProps) {
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="hidden lg:block lg:flex-1 dither-xl bg-cover bg-center"
|
className="hidden lg:block lg:flex-1 dither-xl bg-cover bg-center"
|
||||||
style={{ backgroundImage: "url(/background.jpg)" }}
|
style={{ backgroundImage: "url(/images/background.jpg)" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -41,6 +41,12 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
|||||||
<head>
|
<head>
|
||||||
<meta charSet="utf-8" />
|
<meta charSet="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||||
|
<link rel="icon" type="image/png" href="/images/favicon/favicon-96x96.png" sizes="96x96" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/images/favicon/favicon.svg" />
|
||||||
|
<link rel="shortcut icon" href="/images/favicon/favicon.ico" />
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicon/apple-touch-icon.png" />
|
||||||
|
<meta name="apple-mobile-web-app-title" content="Ironmount" />
|
||||||
|
<link rel="manifest" href="/images/favicon/site.webmanifest" />
|
||||||
<Meta />
|
<Meta />
|
||||||
<Links />
|
<Links />
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
BIN
apps/client/public/images/favicon/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
apps/client/public/images/favicon/favicon-96x96.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
apps/client/public/images/favicon/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
3
apps/client/public/images/favicon/favicon.svg
Normal file
|
After Width: | Height: | Size: 13 KiB |
21
apps/client/public/images/favicon/site.webmanifest
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"name": "Ironmount",
|
||||||
|
"short_name": "Ironmount",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "/images/favicon/web-app-manifest-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "maskable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/images/favicon/web-app-manifest-512x512.png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "maskable"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"theme_color": "#1b1b1b",
|
||||||
|
"background_color": "#1b1b1b",
|
||||||
|
"display": "standalone"
|
||||||
|
}
|
||||||
BIN
apps/client/public/images/favicon/web-app-manifest-192x192.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
apps/client/public/images/favicon/web-app-manifest-512x512.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
@@ -42,6 +42,7 @@ const app = new Hono()
|
|||||||
.route("/api/v1/repositories", repositoriesController.use(requireAuth))
|
.route("/api/v1/repositories", repositoriesController.use(requireAuth))
|
||||||
.route("/api/v1/backups", backupScheduleController.use(requireAuth))
|
.route("/api/v1/backups", backupScheduleController.use(requireAuth))
|
||||||
.get("/assets/*", serveStatic({ root: "./assets/frontend" }))
|
.get("/assets/*", serveStatic({ root: "./assets/frontend" }))
|
||||||
|
.get("/images/*", serveStatic({ root: "./assets/frontend" }))
|
||||||
.get("*", serveStatic({ path: "./assets/frontend/index.html" }));
|
.get("*", serveStatic({ path: "./assets/frontend/index.html" }));
|
||||||
|
|
||||||
app.get("/api/v1/openapi.json", generalDescriptor(app));
|
app.get("/api/v1/openapi.json", generalDescriptor(app));
|
||||||
|
|||||||
BIN
assets/im-favicon.png
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
assets/im.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |