added redirect to Chinese version

This commit is contained in:
Steffen 2022-04-08 11:02:13 +02:00
parent 4bd7ecbe03
commit 75dd02c6a3
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
3 changed files with 56 additions and 17 deletions

View File

@ -2,6 +2,7 @@
### Version 2.15.4 ### Version 2.15.4
- fixed flickering of add reminder token - fixed flickering of add reminder token
- added redirect to Chinese version
--- ---

BIN
src/assets/gstone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -1,27 +1,43 @@
<template> <template>
<div class="intro"> <div class="intro">
<img src="static/apple-icon.png" alt="" /> <img src="static/apple-icon.png" alt="" class="logo" />
<div>
Welcome to the (unofficial) Welcome to the (unofficial)
<b>Virtual Town Square and Grimoire</b> for Blood on the Clocktower! Please <b>Virtual Town Square and Grimoire</b> for Blood on the Clocktower!
add more players through the Please add more players through the
<span class="button" @click="toggleMenu"> <span class="button" @click="toggleMenu">
<font-awesome-icon icon="cog" /> Menu <font-awesome-icon icon="cog" /> Menu
</span> </span>
on the top right or by pressing <b>[A]</b>. You can also join a game session on the top right or by pressing <b>[A]</b>. You can also join a game
by pressing <b>[J]</b>.<br /> session by pressing <b>[J]</b>.<br />
<div class="footer"> <div class="footer">
This project is free and open source and can be found on This project is free and open source and can be found on
<a href="https://github.com/bra1n/townsquare" target="_blank">GitHub</a>. <a href="https://github.com/bra1n/townsquare" target="_blank">GitHub</a
It is not affiliated with The Pandemonium Institute. "Blood on the >. It is not affiliated with The Pandemonium Institute. "Blood on the
Clocktower" is a trademark of Steven Medway and The Pandemonium Institute. Clocktower" is a trademark of Steven Medway and The Pandemonium
Institute.
</div> </div>
</div> </div>
<a
class="redirect"
v-if="language === 'zh-CN'"
href="https://clocktower.gstonegames.com"
>
<img src="../assets/gstone.png" class="gstone" alt="" />
你想使用中文版魔典吗
</a>
</div>
</template> </template>
<script> <script>
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
export default { export default {
data() {
return {
language: window.navigator.userLanguage || window.navigator.language
};
},
methods: mapMutations(["toggleMenu"]) methods: mapMutations(["toggleMenu"])
}; };
</script> </script>
@ -38,15 +54,37 @@ export default {
border: 3px solid black; border: 3px solid black;
border-radius: 10px; border-radius: 10px;
z-index: 3; z-index: 3;
display: flex;
justify-content: center;
a { a {
color: white; color: white;
} }
a.redirect {
display: block;
text-decoration: none;
position: absolute;
top: 100%;
margin-top: 2vh;
padding: 10px;
background: rgba(0, 0, 0, 0.5);
border: 3px solid black;
border-radius: 10px;
&:hover {
color: red;
}
img { img {
width: 120px;
display: block;
margin: auto;
margin-bottom: 1vh;
}
}
img.logo {
position: absolute; position: absolute;
bottom: 100%; bottom: 100%;
left: 50%;
width: 25vh; width: 25vh;
margin-left: -12.5vh;
margin-bottom: 2vh; margin-bottom: 2vh;
max-width: 192px; max-width: 192px;
border-radius: 50%; border-radius: 50%;