Skip to content

Commit

Permalink
feat: added LoginView.vue.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteyebrw committed Nov 10, 2024
1 parent 2d7b623 commit 424cc8a
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/frontend/src/router/routes.js
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 },
];
57 changes: 57 additions & 0 deletions packages/frontend/src/views/LoginView/LoginView.vue
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>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const handleSubmit = () => {
<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.firstName"
Expand Down

0 comments on commit 424cc8a

Please sign in to comment.