profile component
This commit is contained in:
@@ -30,9 +30,8 @@
|
||||
<router-view />
|
||||
</ul>
|
||||
|
||||
<button class="btn btn-outline-secondary me-2" type="submit">
|
||||
Profil
|
||||
</button>
|
||||
<router-link class="btn btn-outline-secondary me-2" to="/profile">Profil</router-link>
|
||||
|
||||
<button class="btn btn-primary" type="submit" @click="doLogout">
|
||||
Logout
|
||||
</button>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<Navbar />
|
||||
|
||||
<div class="container" style="height: 100vh">
|
||||
<div class="card">
|
||||
<div class="card-header">Profil</div>
|
||||
<div class="card-body">
|
||||
<p>nama</p>
|
||||
<p>email</p>
|
||||
<p>ic</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<p>*Sila hubungi *** jika terdapat masalah</p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<Footer />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Navbar from "./Navbar.vue";
|
||||
import Footer from "./Footer.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Navbar,
|
||||
Footer,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -5,6 +5,7 @@ import Dashboard from './../components/Dashboard.vue';
|
||||
import Cart from './../components/Cart.vue';
|
||||
import List from './../components/List.vue'
|
||||
import Pay from './../components/Pay.vue'
|
||||
import Profile from './../components/Profile.vue'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -47,6 +48,13 @@ const routes = [
|
||||
component: Pay,
|
||||
meta: { requiresAuth: true }
|
||||
|
||||
},
|
||||
{
|
||||
path: '/profile',
|
||||
name: 'Profile',
|
||||
component: Profile,
|
||||
meta: { requiresAuth: true }
|
||||
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user