2021-09-08 08:58:58 +08:00
|
|
|
<template>
|
|
|
|
<div class="home">
|
2021-09-09 05:16:10 +08:00
|
|
|
<!-- Logo -->
|
|
|
|
<img class="logo" alt="Vue logo" src="../assets/logo.png" />
|
2022-03-23 22:56:06 +08:00
|
|
|
<HelloWorld :msg="t('homepage.welcome')" />
|
2021-09-09 05:16:10 +08:00
|
|
|
<!-- Bottom button -->
|
|
|
|
<!-- 底部按钮 -->
|
|
|
|
<div class="link">
|
2021-09-09 18:39:31 +08:00
|
|
|
<OpenLink
|
2021-10-06 01:04:25 +08:00
|
|
|
href="https://wails.io/docs/gettingstarted/installation"
|
2021-09-09 18:39:31 +08:00
|
|
|
class="btn start"
|
2022-03-23 22:56:06 +08:00
|
|
|
>{{ t("homepage.getting-started") }}</OpenLink
|
2021-11-15 03:07:00 +08:00
|
|
|
>
|
2021-09-09 05:16:10 +08:00
|
|
|
<OpenLink
|
|
|
|
href="https://github.com/misitebao/wails-template-vue"
|
|
|
|
class="btn star"
|
2022-03-23 22:56:06 +08:00
|
|
|
>{{ t("homepage.star-me") }}</OpenLink
|
2021-11-15 03:07:00 +08:00
|
|
|
>
|
2021-09-09 05:16:10 +08:00
|
|
|
</div>
|
2021-09-08 08:58:58 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-03-23 22:56:06 +08:00
|
|
|
import { useI18n } from "vue-i18n";
|
2021-09-08 08:58:58 +08:00
|
|
|
import HelloWorld from "@/components/HelloWorld.vue";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: "Home",
|
|
|
|
components: {
|
2021-11-15 03:07:00 +08:00
|
|
|
HelloWorld,
|
2021-09-08 08:58:58 +08:00
|
|
|
},
|
|
|
|
setup() {
|
2022-03-23 22:56:06 +08:00
|
|
|
const { t } = useI18n();
|
|
|
|
return {
|
|
|
|
t,
|
|
|
|
};
|
2021-09-08 08:58:58 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
2021-09-09 18:39:31 +08:00
|
|
|
<style lang="scss">
|
|
|
|
.home {
|
|
|
|
.logo {
|
|
|
|
display: block;
|
|
|
|
width: 620px;
|
|
|
|
height: 280px;
|
2021-09-09 19:46:57 +08:00
|
|
|
margin: 10px auto 10px;
|
2021-09-09 05:16:10 +08:00
|
|
|
}
|
2021-09-09 18:39:31 +08:00
|
|
|
.link {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-09-09 19:55:07 +08:00
|
|
|
margin: 18px auto;
|
2021-09-09 18:39:31 +08:00
|
|
|
.btn {
|
2021-09-09 12:09:20 +08:00
|
|
|
display: block;
|
|
|
|
width: 150px;
|
|
|
|
height: 50px;
|
|
|
|
line-height: 50px;
|
2021-09-09 19:46:57 +08:00
|
|
|
padding: 0 5px;
|
2021-09-09 19:55:07 +08:00
|
|
|
margin: 0 30px;
|
2021-09-09 12:09:20 +08:00
|
|
|
border-radius: 8px;
|
|
|
|
text-align: center;
|
|
|
|
font-weight: 700;
|
|
|
|
font-size: 16px;
|
|
|
|
white-space: nowrap;
|
2021-09-09 05:16:10 +08:00
|
|
|
text-decoration: none;
|
2021-09-09 12:09:20 +08:00
|
|
|
cursor: pointer;
|
2021-09-09 18:39:31 +08:00
|
|
|
&.start {
|
|
|
|
background-color: #fd0404;
|
|
|
|
color: #ffffff;
|
|
|
|
&:hover {
|
|
|
|
background-color: #ec2e2e;
|
2021-09-09 05:16:10 +08:00
|
|
|
}
|
|
|
|
}
|
2021-09-09 18:39:31 +08:00
|
|
|
&.star {
|
|
|
|
background-color: #ffffff;
|
|
|
|
color: #fd0404;
|
|
|
|
&:hover {
|
|
|
|
background-color: #f3f3f3;
|
2021-09-09 05:16:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|