Add first version of the food theme

This commit is contained in:
Pieter Vander Vennet 2021-09-02 21:22:34 +02:00
parent 23af637a81
commit 92e8f3f89d
20 changed files with 629 additions and 30 deletions

View file

@ -21,6 +21,7 @@ import * as L from "leaflet";
import ValidatedTextField from "./UI/Input/ValidatedTextField";
import AvailableBaseLayers from "./Logic/Actors/AvailableBaseLayers";
import LayoutConfig from "./Models/ThemeConfig/LayoutConfig";
import Constants from "./Models/Constants";
// Workaround for a stupid crash: inject some functions which would give stupid circular dependencies or crash the other nodejs scripts
SimpleMetaTagger.coder = new CountryCoder("https://pietervdvn.github.io/latlon2country/");
@ -159,7 +160,8 @@ if (layoutFromBase64.startsWith("http")) {
new FixedUiElement("").AttachTo("centermessage")
State.state = new State(undefined);
new Combine([new MoreScreen(true),
Translations.t.general.aboutMapcomplete.SetClass("link-underline")
Translations.t.general.aboutMapcomplete.SetClass("link-underline"),
new FixedUiElement("v"+Constants.vNumber)
]).SetClass("block m-5 lg:w-3/4 lg:ml-40")
.SetStyle("pointer-events: all;")
.AttachTo("topleft-tools");