generated from moevm/nsql-clean-tempate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d7b623
commit 424cc8a
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
const RegistrationView = () => import('../views/RegistrationView/RegistrationView.vue'); | ||
const LoginView = () => import('../views/LoginView/LoginView.vue'); | ||
|
||
export const routes = [ | ||
{ path: '/registration', component: RegistrationView }, | ||
{ path: '/login', component: LoginView }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<script setup> | ||
import { reactive } from 'vue'; | ||
const user = reactive({ | ||
email: '', | ||
password: '' | ||
}); | ||
const handleSubmit = () => { | ||
}; | ||
</script> | ||
|
||
<template> | ||
<v-sheet width="400px"> | ||
<v-form @submit.prevent="handleSubmit"> | ||
<v-container> | ||
<v-col> | ||
<v-row justify="center"> | ||
<h3 class="text-h3">Вход</h3> | ||
</v-row> | ||
<v-row> | ||
<v-text-field | ||
v-model="user.email" | ||
label="E-mail" | ||
required | ||
></v-text-field> | ||
</v-row> | ||
|
||
<v-row> | ||
<v-text-field | ||
v-model="user.password" | ||
label="Password" | ||
required | ||
></v-text-field> | ||
</v-row> | ||
|
||
<v-row justify="center"> | ||
<v-btn type="submit"> | ||
Авторизоваться | ||
</v-btn> | ||
</v-row> | ||
|
||
<v-row justify="center"> | ||
<span class="text-subtitle-1"> | ||
Уже нет аккаунта? | ||
<router-link to="/registration">Зарегистрироваться</router-link> | ||
</span> | ||
</v-row> | ||
</v-col> | ||
</v-container> | ||
</v-form> | ||
</v-sheet> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters