aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/PlayView.vue
blob: a3a572e653d45330114a2621c70e6a0c9f0f9246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<script lang="ts">
import { ElNotification } from 'element-plus';

export default {
    data() {
        return {
            developerModeClicks: 0
        }
    },
    methods: {
        activateDeveloperMode() {
            this.developerModeClicks += 1;
            if (this.developerModeClicks === 6) {
                this.$store.state.developer_mode = true;
                ElNotification({
                    title: 'Watch out!',
                    message: 'Developer mode enabled.',
                    type: 'info',
                    position: 'bottom-right'
                });
            }
        }
    }
};
</script>

<template>
    <div class="fc_launch__container">
        <div class="fc_title">Northstar</div>
        <div class="fc_northstar__version" @click="activateDeveloperMode">
            v{{ $store.state.installed_northstar_version }}
        </div>
        <el-button type="primary" size="large">Launch game</el-button>
    </div>
</template>

<style scoped>
.fc_launch__container {
    margin: 50px;
    position: fixed;
    bottom: 0;
}

/* Buttons */
button {
    text-transform: uppercase;
    border-radius: 2px;
    padding: 30px;
    font-size: 15px;
}

/* Titles */
.fc_title {
    color: white;
    font-size: 50px;
    font-weight: bold;
}

.fc_northstar__version {
    color: rgb(168, 168, 168);
    margin-bottom: 20px;
}
</style>