Styled login
This commit is contained in:
parent
0349a4ad4a
commit
efb0088ebf
2 changed files with 33 additions and 23 deletions
11
src/App.vue
11
src/App.vue
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<h1>Test</h1>
|
|
||||||
<router-view/>
|
<router-view/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -12,12 +11,8 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#app {
|
body {
|
||||||
font-family: 'Avenir', Helvetica, Arial, sans-serif;
|
background: #f5f5f5;
|
||||||
-webkit-font-smoothing: antialiased;
|
min-height: 100vh;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
text-align: center;
|
|
||||||
color: #2c3e50;
|
|
||||||
margin-top: 60px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,20 +1,35 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="container has-text-centered">
|
||||||
<h2>
|
<div class="column is-4 is-offset-4">
|
||||||
Login
|
<h2 class="title">Login</h2>
|
||||||
</h2>
|
<div class="box">
|
||||||
<form id="loginform" @submit.prevent="submit">
|
<form id="loginform" @submit.prevent="submit">
|
||||||
<input type="text" name="username" placeholder="Username" v-model="credentials.username" required>
|
<div class="field">
|
||||||
<input type="password" name="password" placeholder="Password" v-model="credentials.password" required>
|
<div class="control">
|
||||||
<button type="submit" class="ui fluid large blue submit button">Login</button>
|
<input type="text" class="input" name="username" placeholder="Username" v-model="credentials.username" required>
|
||||||
<div class="ui info message" v-if="loading">
|
</div>
|
||||||
<icon name="refresh" spin></icon>
|
</div>
|
||||||
Loading...
|
<div class="field">
|
||||||
|
<div class="control">
|
||||||
|
<input type="password" class="input" name="password" placeholder="Password" v-model="credentials.password" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field is-grouped">
|
||||||
|
<div class="control">
|
||||||
|
<button type="submit" class="button is-link">Login</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="notification is-info" v-if="loading">
|
||||||
|
Loading...
|
||||||
|
</div>
|
||||||
|
<div class="notification is-danger" v-if="error">
|
||||||
|
{{ error }}
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="ui error message" v-if="error" style="display: block;">
|
</div>
|
||||||
{{ error }}
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue