[590f667] | 1 | <script>
|
---|
| 2 |
|
---|
| 3 |
|
---|
[17bf12d] | 4 | import { userStore } from '@/PiniaStores/UserStore.js'
|
---|
[2a2614e] | 5 | import logout_ from '@/components/Project/logout_.vue'
|
---|
| 6 |
|
---|
[17bf12d] | 7 |
|
---|
| 8 | export default {
|
---|
| 9 | data() {
|
---|
| 10 | return {
|
---|
| 11 | userStore_: userStore()
|
---|
| 12 | }
|
---|
[2a2614e] | 13 | },
|
---|
| 14 | components: {
|
---|
| 15 | logout_
|
---|
[17bf12d] | 16 | }
|
---|
[2a2614e] | 17 |
|
---|
[17bf12d] | 18 | }
|
---|
[590f667] | 19 |
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | </script>
|
---|
| 23 |
|
---|
| 24 | <template>
|
---|
| 25 |
|
---|
| 26 | <!-- <div class="container-fluid bg-primary">
|
---|
| 27 | <div class="row align-items-center">
|
---|
| 28 |
|
---|
| 29 | <div class="col-8">
|
---|
| 30 | <img src="/src/assets/logo.png" alt="Logo could not be found." />
|
---|
| 31 | </div>
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | <div class="col-4">
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | <a href="" class="btn btn-danger btn-sm ">Омилени Локали</a>
|
---|
| 38 |
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | <a href="" class="btn btn-danger btn-sm ">Твојте Резервации</a>
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | <a href="" class="btn btn-danger btn-sm ">Login</a>
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | </div>
|
---|
| 50 | <!– <p class="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque.</p>
|
---|
| 51 | <p class="lead text-end">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
|
---|
| 52 | <p class="lead text-center text-warning bg-primary">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>–>
|
---|
| 53 |
|
---|
| 54 | <!– <p class="container-lg">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Est, quos?</p>–>
|
---|
| 55 | </div>
|
---|
| 56 | </div>-->
|
---|
| 57 | <!-- navbar -->
|
---|
| 58 |
|
---|
[17db9d2] | 59 | <nav class="navbar navbar-expand-md navbar-light pt-1 pb-1 ">
|
---|
[590f667] | 60 | <div class="container-xxl">
|
---|
| 61 | <!-- navbar brand / title -->
|
---|
| 62 |
|
---|
| 63 | <router-link to="/" class="navbar-brand">
|
---|
[d9884b2] | 64 | <img src="/src/assets/rng_logo.png" alt="Logo could not be found." />
|
---|
| 65 | <span class="fw-bold ms-2">
|
---|
[590f667] | 66 | Reserve And Go
|
---|
| 67 | </span>
|
---|
| 68 | </router-link>
|
---|
| 69 |
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 | <!-- navbar links -->
|
---|
| 73 | <div class="collapse navbar-collapse justify-content-end align-center" id="main-nav">
|
---|
[17bf12d] | 74 |
|
---|
[590f667] | 75 | <ul class="navbar-nav">
|
---|
[17bf12d] | 76 |
|
---|
[590f667] | 77 | <li class="nav-item">
|
---|
[17bf12d] | 78 | <router-link v-if="this.userStore_.data.role==='ROLE_CUSTOMER'" to="/favourite_locals" class="nav-link">Favourite locals </router-link>
|
---|
[590f667] | 79 | </li>
|
---|
| 80 | <li class="nav-item">
|
---|
[17bf12d] | 81 | <router-link v-if="this.userStore_.data.role==='ROLE_CUSTOMER'" to="/my_reservations" class="nav-link">My reservations </router-link>
|
---|
[590f667] | 82 | </li>
|
---|
[17bf12d] | 83 |
|
---|
[590f667] | 84 | <li class="nav-item ms-2 d-none d-md-inline">
|
---|
[f9ef3e8] | 85 | <router-link to="/login" >
|
---|
[2a2614e] | 86 | <a v-if="userStore_.data.role==='UN_AUTHENTICATED'" class="btn btn-dark">Login</a>
|
---|
[590f667] | 87 | </router-link>
|
---|
| 88 | <router-link to="/register">
|
---|
[2a2614e] | 89 | <a v-if="userStore_.data.role==='UN_AUTHENTICATED'" class="btn btn-dark ms-2">Register</a>
|
---|
[590f667] | 90 | </router-link>
|
---|
[dad25fc] | 91 | <router-link to="/addRestaurant">
|
---|
| 92 | <a v-if="userStore_.data.role==='ROLE_LOCAL_MANAGER' || userStore_.data.role==='ROLE_ADMIN'" class="btn btn-dark me-2">Add Restaurant</a>
|
---|
| 93 | </router-link>
|
---|
[2a2614e] | 94 | <logout_></logout_>
|
---|
[590f667] | 95 | </li>
|
---|
| 96 |
|
---|
| 97 | </ul>
|
---|
| 98 | </div>
|
---|
| 99 | </div>
|
---|
| 100 | </nav>
|
---|
| 101 | </template>
|
---|
| 102 |
|
---|
| 103 | <style scoped>
|
---|
| 104 |
|
---|
| 105 | #login {
|
---|
| 106 | float: right;
|
---|
| 107 | padding: 2%;
|
---|
| 108 |
|
---|
| 109 | }
|
---|
| 110 |
|
---|
[ff641e1] | 111 |
|
---|
[f9ef3e8] | 112 | nav{
|
---|
| 113 | background: #8377D1;
|
---|
[17db9d2] | 114 | height: 80px;
|
---|
| 115 | }
|
---|
| 116 |
|
---|
| 117 | .btn{
|
---|
| 118 | height: 40px;
|
---|
| 119 | margin-top: 5px;
|
---|
| 120 | }
|
---|
| 121 |
|
---|
| 122 | img{
|
---|
[d9884b2] | 123 | height: 70px;
|
---|
[f9ef3e8] | 124 | }
|
---|
| 125 |
|
---|
[590f667] | 126 |
|
---|
| 127 |
|
---|
| 128 | </style>
|
---|