diff --git a/resources/icons/icon512_maskable.png b/resources/icons/icon512_maskable.png new file mode 100644 index 000000000..8572710e1 Binary files /dev/null and b/resources/icons/icon512_maskable.png differ diff --git a/resources/icons/icon512_rounded.png b/resources/icons/icon512_rounded.png new file mode 100644 index 000000000..b2d79f64f Binary files /dev/null and b/resources/icons/icon512_rounded.png differ diff --git a/resources/manifest.json b/resources/manifest.json new file mode 100644 index 000000000..4e862662f --- /dev/null +++ b/resources/manifest.json @@ -0,0 +1,25 @@ +{ + "icons": [ + { + "purpose": "maskable", + "sizes": "512x512", + "src": "/icons/icon512_maskable.png", + "type": "image/png" + }, + { + "purpose": "any", + "sizes": "512x512", + "src": "/icons/icon512_rounded.png", + "type": "image/png" + } + ], + "orientation": "portrait", + "display_override": ["fullscreen", "minimal-ui"], + "display": "standalone", + "dir": "auto", + "lang": "en", + "name": "OpenFront.io", + "short_name": "OpenFront", + "start_url": "/", + "id": "/" +} diff --git a/src/client/FlagInput.ts b/src/client/FlagInput.ts index e867d58aa..b733cf6ca 100644 --- a/src/client/FlagInput.ts +++ b/src/client/FlagInput.ts @@ -13,71 +13,6 @@ export class FlagInput extends LitElement { private userSettings: UserSettings = new UserSettings(); static styles = css` - .dark-mode .flag-button { - background: rgba(55, 65, 81, 0.7); - } - - .flag-modal { - display: flex; - flex-direction: column; - gap: 0.5rem; - position: absolute; - top: 60px; - left: 0; - width: 560px; - height: 500px; - max-height: 50vh; - background-color: rgb(35 35 35 / 0.8); - -webkit-backdrop-filter: blur(12px); - backdrop-filter: blur(12px); - padding: 10px; - border-radius: 8px; - z-index: 3; - } - - .flag-search { - height: 2rem; - border-radius: 8px; - border: none; - text-align: center; - font-size: 1.3rem; - } - - .dark-mode .flag-search { - background: rgb(55, 65, 81); - color: white; - border: 1px solid rgb(209, 213, 219); - } - - .flag-dropdown { - overflow-y: auto; - overflow-x: hidden; - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: space-evenly; - gap: 1rem; - } - - .dropdown-item { - opacity: 0.7; - width: calc(100% / 4 - 15px); - text-align: center; - color: white; - cursor: pointer; - border: none; - background: none; - } - - .dropdown-item:hover { - opacity: 1; - } - - .country-flag { - width: 100%; - height: auto; - } - @media (max-width: 768px) { .flag-modal { width: 80vw; @@ -156,7 +91,7 @@ export class FlagInput extends LitElement { ${this.showModal ? html`