1
0
Fork 0

Add login and register as example forms

master
Dario Ernst 9 years ago
parent 6459e0eafc
commit 44d9788265

@ -26,8 +26,11 @@
<q-drawer-link to="/"> <q-drawer-link to="/">
Start Start
</q-drawer-link> </q-drawer-link>
<q-drawer-link to="/foo"> <q-drawer-link to="/register">
Foo Register
</q-drawer-link>
<q-drawer-link to="/login">
Login
</q-drawer-link> </q-drawer-link>
</div> </div>

@ -1,11 +0,0 @@
<template>
<div>
Foo {{ $route.params.id }}
</div>
</template>
<script>
</script>
<style lang="stylus">
</style>

@ -0,0 +1,41 @@
<template>
<div>
<div class="layout-padding">
<p>
Wubwub explanation
</p>
<div class="item multiple-lines">
<i class="item-primary">account_circle</i>
<div class="item-content">
<div class="floating-label">
<input required class="full-width">
<label>Username</label>
</div>
</div>
<div class="item-content">
<div class="floating-label">
<input required class="full-width" type="password">
<label>Password</label>
</div>
</div>
<div class="item-content">
<div class="floating-label">
<button class="primary">
<i class="on-left">check_circle</i> Login
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
</script>
<style lang="stylus">
</style>

@ -0,0 +1,46 @@
<template>
<div>
<div class="layout-padding">
<p>
Wubwub explanation
</p>
<div class="item multiple-lines">
<i class="item-primary">event_seat</i>
<div class="item-content">
<div class="floating-label">
<input required class="full-width">
<label>Username</label>
</div>
</div>
<div class="item-content">
<div class="floating-label">
<input required class="full-width" type="password">
<label>Password</label>
</div>
</div>
<div class="item-content">
<div class="floating-label">
<input required class="full-width">
<label>E-Mail</label>
</div>
</div>
<div class="item-content">
<div class="floating-label">
<button class="primary">
<i class="on-left">check_circle</i> Register
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
</script>
<style lang="stylus">
</style>

@ -8,25 +8,14 @@ function load (component) {
} }
export default new VueRouter({ export default new VueRouter({
/*
* NOTE! VueRouter "history" mode DOESN'T works for Cordova builds,
* it is only to be used only for websites.
*
* If you decide to go with "history" mode, please also open /config/index.js
* and set "build.publicPath" to something other than an empty string.
* Example: '/' instead of current ''
*
* If switching back to default "hash" mode, don't forget to set the
* build publicPath back to '' so Cordova builds work again.
*/
routes: [ routes: [
{ {
path: '/', path: '/',
component: load('Index'), component: load('Index'),
children: [ children: [
{ path: '', component: load('index/main') }, { path: '', component: load('index/main') },
{ path: 'foo', component: load('index/foo') } { path: 'login', component: load('index/login') },
{ path: 'register', component: load('index/register') }
] ]
} }
] ]

Loading…
Cancel
Save