This commit is contained in:
1 parent
8efd032cc6
commit
df38dccbf1
735 files changed
+128321
-120870
No files matched your search
+20
-12
@@ -5,17 +5,25 @@ import { siteSettings } from "@/lib/services/site-settings";
|
||||
// settings but the rewrite ships a real, themeable manifest). Name + theme
|
||||
// colour follow the live website_settings; falls back to defaults with no DB.
|
||||
export default async function manifest(): Promise<MetadataRoute.Manifest> {
|
||||
const name = (await siteSettings.get("hotel_name", "Atom")) ?? "Atom";
|
||||
const theme = (await siteSettings.get("color_primary", "#f59e0b")) ?? "#f59e0b";
|
||||
const name = (await siteSettings.get("hotel_name", "Atom")) ?? "Atom";
|
||||
const theme =
|
||||
(await siteSettings.get("color_primary", "#f59e0b")) ?? "#f59e0b";
|
||||
|
||||
return {
|
||||
name,
|
||||
short_name: name,
|
||||
description: `${name} — a Habbo retro hotel.`,
|
||||
start_url: "/",
|
||||
display: "standalone",
|
||||
background_color: "#0f1117",
|
||||
theme_color: theme,
|
||||
icons: [{ src: "/assets/images/home_icon.gif", sizes: "any", type: "image/gif", purpose: "any" }],
|
||||
};
|
||||
return {
|
||||
name,
|
||||
short_name: name,
|
||||
description: `${name} — a Habbo retro hotel.`,
|
||||
start_url: "/",
|
||||
display: "standalone",
|
||||
background_color: "#0f1117",
|
||||
theme_color: theme,
|
||||
icons: [
|
||||
{
|
||||
src: "/assets/images/home_icon.gif",
|
||||
sizes: "any",
|
||||
type: "image/gif",
|
||||
purpose: "any",
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user