add an authentication page
This commit is contained in:
parent
b18c0f86c2
commit
c950513730
|
@ -0,0 +1,56 @@
|
||||||
|
<template>
|
||||||
|
<base-card>
|
||||||
|
<form @submit.prevent="">
|
||||||
|
<div class="form-control">
|
||||||
|
<label for="email">E-Mail</label>
|
||||||
|
<input type="email" id="email" />
|
||||||
|
</div>
|
||||||
|
<div class="form-control">
|
||||||
|
<label for="password">Password</label>
|
||||||
|
<input type="password" id="password" />
|
||||||
|
</div>
|
||||||
|
<base-button>Login</base-button>
|
||||||
|
<base-button type="button" mode="flat">Signup instead</base-button>
|
||||||
|
</form>
|
||||||
|
</base-card>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import BaseCard from '../../components/ui/BaseCard.vue';
|
||||||
|
export default {
|
||||||
|
components: { BaseCard }
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
form {
|
||||||
|
margin: 1rem;
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control {
|
||||||
|
margin: 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
textarea {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
font: inherit;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
padding: 0.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:focus,
|
||||||
|
textarea:focus {
|
||||||
|
border-color: #3d008d;
|
||||||
|
background-color: #faf6ff;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,5 +1,6 @@
|
||||||
import { createRouter, createWebHistory } from 'vue-router';
|
import { createRouter, createWebHistory } from 'vue-router';
|
||||||
|
|
||||||
|
import UserAuth from '../pages/auth/UserAuth';
|
||||||
import CoachDetails from '../pages/coaches/CoachDetails';
|
import CoachDetails from '../pages/coaches/CoachDetails';
|
||||||
import CoachesList from '../pages/coaches/CoachesList';
|
import CoachesList from '../pages/coaches/CoachesList';
|
||||||
import CoachRegistration from '../pages/coaches/CoachRegistration';
|
import CoachRegistration from '../pages/coaches/CoachRegistration';
|
||||||
|
@ -20,6 +21,7 @@ const router = createRouter({
|
||||||
},
|
},
|
||||||
{ path: '/register', component: CoachRegistration },
|
{ path: '/register', component: CoachRegistration },
|
||||||
{ path: '/requests', component: RequestsRecieved },
|
{ path: '/requests', component: RequestsRecieved },
|
||||||
|
{ path: '/auth', component: UserAuth },
|
||||||
{ path: '/:notFound(.*)', component: NotFound }
|
{ path: '/:notFound(.*)', component: NotFound }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
Reference in New Issue