Skip to content

Commit

Permalink
Tutorial Integration (#30)
Browse files Browse the repository at this point in the history
A button in the landing page has been added to access the tutorial on
demand.
  • Loading branch information
13on4rd authored Oct 28, 2024
1 parent 400b238 commit 80a360b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sonarqube-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
build:
name: Build
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
Expand Down
17 changes: 17 additions & 0 deletions src/views/StartView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ getActiveCourses()
courseFetchFailed.value = true;
});
const tutorial: ButtonElement = {
title: 'Tutorial',
subtitle: 'learn the core game mechanics',
description: '',
color: setupColor,
};
const worldGeneration: ButtonElement = {
title: 'World Generation',
subtitle: 'generate new worlds',
Expand Down Expand Up @@ -111,6 +118,16 @@ function openSite(url: string) {
</div>
</div>
</div>
<div class="d-flex flex-wrap justify-content-start">
<ButtonBox
:color="tutorial.color"
:description="tutorial.description"
@click="openSite(config.overworldBaseUrl + '1' + '&tutorial')"
>
<template #title>{{ tutorial.title }}</template>
<template #subtitle>{{ tutorial.subtitle }}</template>
</ButtonBox>
</div>
</div>

<div v-if="store.state.roles.includes('lecturer')">
Expand Down

0 comments on commit 80a360b

Please sign in to comment.