Files
FiDA_Front/src/views/login/index.vue

65 lines
1.2 KiB
Vue
Raw Normal View History

2026-02-02 14:12:23 +08:00
<template>
2026-02-04 10:01:50 +08:00
<div class="index background-pink">
<div class="header">
<p class="split"></p>
2026-02-04 17:00:58 +08:00
<button class="login" @click="onLogin">{{ $t('Login.Login') }}</button>
<button class="register" @click="onRegister">{{ $t('Login.SignUp') }}</button>
2026-02-04 10:01:50 +08:00
</div>
</div>
2026-02-02 14:12:23 +08:00
</template>
<script setup lang="ts">
import { computed } from 'vue'
2026-02-04 10:01:50 +08:00
import { useRouter } from 'vue-router'
const router = useRouter()
const onLogin = () => {
router.push({ name: 'login' })
}
const onRegister = () => {
router.push({ name: 'register' })
}
2026-02-02 14:12:23 +08:00
</script>
<style lang="less" scoped>
2026-02-04 10:01:50 +08:00
.index {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
> .header {
position: absolute;
top: 3rem;
left: 0;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
> .split {
margin: 0 auto;
}
> button {
margin-right: 3rem;
width: 20rem;
height: 5.2rem;
border-radius: 5rem;
border: none;
outline: none;
font-size: 2.2rem;
font-weight: 600;
2026-02-05 10:45:02 +08:00
font-family: SemiBold;
2026-02-04 10:01:50 +08:00
&:active {
opacity: 0.8;
}
}
> .login {
background-color: #ff7a51;
color: #fff;
}
> .register {
background-color: #fff;
color: #232323;
}
}
}
2026-02-02 14:12:23 +08:00
</style>