workadventure/front/src/Components/Menu/CreateMapSubMenu.svelte

55 lines
1.7 KiB
Svelte
Raw Normal View History

2021-08-09 14:49:17 +02:00
<script lang="ts">
2021-08-18 11:15:46 +02:00
function goToGettingStarted() {
2021-08-09 14:49:17 +02:00
//The redirection must be only on workadventu.re domain
//To day the domain staging cannot be use by customer
const sparkHost = "https://workadventu.re/getting-started";
window.open(sparkHost, "_blank");
}
2021-08-18 11:15:46 +02:00
function goToBuildingMap() {
2021-08-09 14:49:17 +02:00
//The redirection must be only on workadventu.re domain
//The scripting API function could change on other domain and that could break map created with the old function
2021-08-18 11:15:46 +02:00
const sparkHost = "https://workadventu.re/map-building";
2021-08-09 14:49:17 +02:00
window.open(sparkHost, "_blank");
}
</script>
<div class="create-map-main">
2021-08-17 14:44:43 +02:00
<section class="container-overflow">
<section>
2021-08-18 11:15:46 +02:00
<h3>Getting started</h3>
2021-08-17 14:44:43 +02:00
<p>
WorkAdventure allows you to create an online space to communicate spontaneously with others.
And it all starts with creating your own space. Choose from a large selection of prefabricated maps by our team.
</p>
2021-08-18 11:15:46 +02:00
<button type="button" class="nes-btn is-primary" on:click={goToGettingStarted}>Getting started</button>
2021-08-17 14:44:43 +02:00
</section>
<section>
2021-08-18 11:15:46 +02:00
<h3>Create your map</h3>
<p>You can also create your own custom map by following the step of the documentation.</p>
<button type="button" class="nes-btn" on:click={goToBuildingMap}>Create your map</button>
2021-08-17 14:44:43 +02:00
</section>
2021-08-09 14:49:17 +02:00
</section>
</div>
<style lang="scss">
div.create-map-main {
height: calc(100% - 56px);
text-align: center;
2021-08-17 14:44:43 +02:00
section {
margin-bottom: 50px;
}
section.container-overflow {
height: 100%;
margin: 0;
padding: 0;
overflow: auto;
}
2021-08-09 14:49:17 +02:00
}
</style>