Skip to content

Commit 867143e

Browse files
author
Gareth Redfern
committed
move form class names to outer component
1 parent 5d2a69b commit 867143e

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

src/components/LoginForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<form @submit.prevent="login" class="p-5 bg-white border rounded shadow">
2+
<form @submit.prevent="login">
33
<BaseInput
44
type="email"
55
label="Email"

src/components/RegisterForm.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<form
3-
@submit.prevent="registerUser"
4-
class="p-5 bg-white border rounded shadow"
5-
>
2+
<form @submit.prevent="registerUser">
63
<div class="mb-2">
74
<label for="name" class="text-sm text-gray-500">Name</label>
85
<input

src/views/Login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="max-w-sm p-5 m-auto">
33
<h2 class="mb-4 text-xl font-bold text-center">Login</h2>
4-
<LoginForm />
4+
<LoginForm class="p-5 bg-white border rounded shadow" />
55
<p class="mt-2 text-center text-gray-500">
66
<router-link
77
to="/register"

src/views/Register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="max-w-sm p-5 m-auto">
33
<h2 class="mb-4 text-xl font-bold text-center">Register</h2>
4-
<RegisterForm />
4+
<RegisterForm class="p-5 bg-white border rounded shadow" />
55
</div>
66
</template>
77

0 commit comments

Comments
 (0)