Skip to content

Instantly share code, notes, and snippets.

@Serhansolo
Created March 30, 2020 23:19
Show Gist options
  • Save Serhansolo/ce6932907120f202dd84b12ad029082a to your computer and use it in GitHub Desktop.
Save Serhansolo/ce6932907120f202dd84b12ad029082a to your computer and use it in GitHub Desktop.
<div class="columns">
<div class="column is-half is-offset-one-quarter">
<div class="card">
<div class="card-content">
<form>
<div class="field">
<label class="label">E-mail</label>
<div class="control">
<input
v-model="email"
class="input"
type="text"
autocomplete="email"
placeholder="[email protected]"
/>
</div>
</div>
<div class="field">
<label class="label">Password</label>
<div class="control">
<input
v-model="password"
class="input"
type="password"
autocomplete="current-password"
placeholder="Password"
/>
</div>
</div>
<div class="field">
<p class="control">
<button @click.prevent="signIn()" class="button is-success">
Login
</button>
</p>
</div>
</form>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
email: null,
password: null,
validationErrors: []
};
},
methods: {
signIn() {
console.log("sign in", this.email, this.password);
}
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment