mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
new logo and styling tweaks
This commit is contained in:
parent
adf601c572
commit
e56dccc7f1
33 changed files with 533 additions and 21 deletions
29
src/pages/browserconfig.xml.jsx
Normal file
29
src/pages/browserconfig.xml.jsx
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { getSettings } from "utils/config/config";
|
||||
import themes from "utils/styles/themes";
|
||||
|
||||
export async function getServerSideProps({ res }) {
|
||||
const settings = getSettings();
|
||||
|
||||
const color = settings.color || "slate";
|
||||
const theme = settings.theme || "dark";
|
||||
|
||||
const xml = `<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="/mstile-150x150.png?v=2"/>
|
||||
<TileColor>${themes[color][theme]}</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>`;
|
||||
|
||||
res.setHeader("Content-Type", "text/xml");
|
||||
res.write(xml);
|
||||
res.end();
|
||||
|
||||
return {
|
||||
props: {},
|
||||
};
|
||||
}
|
||||
|
||||
export default function BrowserConfig() {}
|
Loading…
Add table
Add a link
Reference in a new issue