forked from MapComplete/MapComplete
		
	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 { OsmConnection } from "../Logic/Osm/OsmConnection"
 | 
				
			||||||
import { QueryParameters } from "../Logic/Web/QueryParameters"
 | 
					import { QueryParameters } from "../Logic/Web/QueryParameters"
 | 
				
			||||||
import { OsmConnectionFeatureSwitches } from "../Logic/State/FeatureSwitchState"
 | 
					import { OsmConnectionFeatureSwitches } from "../Logic/State/FeatureSwitchState"
 | 
				
			||||||
 | 
					import { SubtleButton } from "./Base/SubtleButton"
 | 
				
			||||||
 | 
					import Svg from "../Svg"
 | 
				
			||||||
 | 
					import Link from "./Base/Link"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default class AllThemesGui {
 | 
					export default class AllThemesGui {
 | 
				
			||||||
    setup() {
 | 
					    setup() {
 | 
				
			||||||
| 
						 | 
					@ -35,10 +38,20 @@ export default class AllThemesGui {
 | 
				
			||||||
            new Combine([
 | 
					            new Combine([
 | 
				
			||||||
                intro,
 | 
					                intro,
 | 
				
			||||||
                new MoreScreen(state, true),
 | 
					                new MoreScreen(state, true),
 | 
				
			||||||
                new LoginToggle(undefined, Translations.t.index.logIn, {
 | 
					                new LoginToggle(
 | 
				
			||||||
                    osmConnection,
 | 
					                    new Link(
 | 
				
			||||||
                    featureSwitchUserbadge: new ImmutableStore(true),
 | 
					                        new Combine([
 | 
				
			||||||
                }).SetClass("flex justify-center w-full"),
 | 
					                            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"),
 | 
					                Translations.t.general.aboutMapComplete.intro.SetClass("link-underline"),
 | 
				
			||||||
                new FixedUiElement("v" + Constants.vNumber).SetClass("block"),
 | 
					                new FixedUiElement("v" + Constants.vNumber).SetClass("block"),
 | 
				
			||||||
            ])
 | 
					            ])
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,6 +26,9 @@
 | 
				
			||||||
  import EditTheme from "./Studio/EditTheme.svelte"
 | 
					  import EditTheme from "./Studio/EditTheme.svelte"
 | 
				
			||||||
  import * as meta from "../../package.json"
 | 
					  import * as meta from "../../package.json"
 | 
				
			||||||
  import Checkbox from "./Base/Checkbox.svelte"
 | 
					  import Checkbox from "./Base/Checkbox.svelte"
 | 
				
			||||||
 | 
					  import { Utils } from "../Utils";
 | 
				
			||||||
 | 
					  import Translations from "./i18n/Translations";
 | 
				
			||||||
 | 
					  import Tr from "./Base/Tr.svelte";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  export let studioUrl =
 | 
					  export let studioUrl =
 | 
				
			||||||
    window.location.hostname === "127.0.0.2"
 | 
					    window.location.hostname === "127.0.0.2"
 | 
				
			||||||
| 
						 | 
					@ -184,15 +187,19 @@
 | 
				
			||||||
          >
 | 
					          >
 | 
				
			||||||
            Create a new theme
 | 
					            Create a new theme
 | 
				
			||||||
          </NextButton>
 | 
					          </NextButton>
 | 
				
			||||||
          <NextButton
 | 
					          <button
 | 
				
			||||||
            clss="small"
 | 
					            class="small"
 | 
				
			||||||
            on:click={() => {
 | 
					            on:click={() => {
 | 
				
			||||||
              showIntro.setData("intro")
 | 
					              showIntro.setData("intro")
 | 
				
			||||||
            }}
 | 
					            }}
 | 
				
			||||||
          >
 | 
					          >
 | 
				
			||||||
            <QuestionMarkCircleIcon class="h-6 w-6" />
 | 
					            <QuestionMarkCircleIcon class="h-6 w-6" />
 | 
				
			||||||
            Show the introduction again
 | 
					            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>
 | 
				
			||||||
        <div>
 | 
					        <div>
 | 
				
			||||||
          <Checkbox selected={expertMode}>Enable more options (expert mode)</Checkbox>
 | 
					          <Checkbox selected={expertMode}>Enable more options (expert mode)</Checkbox>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue