Add link to studio on homepage
This commit is contained in:
parent
48171d30f5
commit
2835f28398
2 changed files with 27 additions and 7 deletions
|
@ -11,6 +11,9 @@ import { ImmutableStore } from "../Logic/UIEventSource"
|
|||
import { OsmConnection } from "../Logic/Osm/OsmConnection"
|
||||
import { QueryParameters } from "../Logic/Web/QueryParameters"
|
||||
import { OsmConnectionFeatureSwitches } from "../Logic/State/FeatureSwitchState"
|
||||
import { SubtleButton } from "./Base/SubtleButton"
|
||||
import Svg from "../Svg"
|
||||
import Link from "./Base/Link"
|
||||
|
||||
export default class AllThemesGui {
|
||||
setup() {
|
||||
|
@ -35,10 +38,20 @@ export default class AllThemesGui {
|
|||
new Combine([
|
||||
intro,
|
||||
new MoreScreen(state, true),
|
||||
new LoginToggle(undefined, Translations.t.index.logIn, {
|
||||
osmConnection,
|
||||
featureSwitchUserbadge: new ImmutableStore(true),
|
||||
}).SetClass("flex justify-center w-full"),
|
||||
new LoginToggle(
|
||||
new Link(
|
||||
new Combine([
|
||||
Svg.pencil_svg().SetClass("w-6 h-6 mr-2"),
|
||||
Translations.t.general.morescreen.createYourOwnTheme,
|
||||
]).SetClass("flex p-2"),
|
||||
window.location.protocol + "//" + window.location.host + "/studio.html"
|
||||
).SetClass("w-full h-fit button"),
|
||||
Translations.t.index.logIn,
|
||||
{
|
||||
osmConnection,
|
||||
featureSwitchUserbadge: new ImmutableStore(true),
|
||||
}
|
||||
).SetClass("flex justify-center w-full"),
|
||||
Translations.t.general.aboutMapComplete.intro.SetClass("link-underline"),
|
||||
new FixedUiElement("v" + Constants.vNumber).SetClass("block"),
|
||||
])
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
import EditTheme from "./Studio/EditTheme.svelte"
|
||||
import * as meta from "../../package.json"
|
||||
import Checkbox from "./Base/Checkbox.svelte"
|
||||
import { Utils } from "../Utils";
|
||||
import Translations from "./i18n/Translations";
|
||||
import Tr from "./Base/Tr.svelte";
|
||||
|
||||
export let studioUrl =
|
||||
window.location.hostname === "127.0.0.2"
|
||||
|
@ -184,15 +187,19 @@
|
|||
>
|
||||
Create a new theme
|
||||
</NextButton>
|
||||
<NextButton
|
||||
clss="small"
|
||||
<button
|
||||
class="small"
|
||||
on:click={() => {
|
||||
showIntro.setData("intro")
|
||||
}}
|
||||
>
|
||||
<QuestionMarkCircleIcon class="h-6 w-6" />
|
||||
Show the introduction again
|
||||
</NextButton>
|
||||
</button>
|
||||
<a class="flex button" href={Utils.HomepageLink()}>
|
||||
<img class="h-6 w-6" src="./assets/svg/add.svg" />
|
||||
<Tr t={Translations.t.general.backToIndex} />
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<Checkbox selected={expertMode}>Enable more options (expert mode)</Checkbox>
|
||||
|
|
Loading…
Reference in a new issue