source:
ReserveNGo-frontend/src/components/Project/Locale_details.vue
Last change on this file was d9884b2, checked in by , 3 months ago | |
---|---|
|
|
File size: 950 bytes |
Rev | Line | |
---|---|---|
[590f667] | 1 | <script> |
2 | ||
3 | ||
[f9ef3e8] | 4 | import { restaurantStore } from '@/PiniaStores/restaurantStore.js' |
5 | ||
[590f667] | 6 | export default { |
7 | data(){ | |
8 | return { | |
9 | restaurant:{ | |
10 | name: '', | |
11 | address: '' | |
[f9ef3e8] | 12 | }, |
13 | restaurantStore: restaurantStore() | |
[590f667] | 14 | } |
15 | } | |
16 | } | |
17 | ||
18 | </script> | |
19 | ||
20 | <template> | |
[f49ddda] | 21 | <div id="container" class="px-5 py-2"> |
[590f667] | 22 | <p>Local details...</p> |
[f9ef3e8] | 23 | <p>Working hours: {{restaurantStore.workingHours}}</p> |
[ff641e1] | 24 | <ul v-for="service in restaurantStore.availableServices" :key="service"> |
25 | <li>{{service}}</li> | |
[590f667] | 26 | </ul> |
27 | <p>Average rating...</p> | |
[17db9d2] | 28 | <router-link to="/more_details"> |
[590f667] | 29 | <button class="btn btn-dark">More details</button> |
[17db9d2] | 30 | </router-link> |
[590f667] | 31 | <button class="btn btn-dark ms-2">Make reservation</button> |
32 | </div> | |
33 | </template> | |
34 | ||
35 | <style scoped> | |
36 | ||
37 | #container { | |
38 | ||
39 | font-size: 20px; | |
[f49ddda] | 40 | margin: 30px auto; |
41 | border: transparent; | |
42 | /*border-radius: 10px;*/ | |
43 | border-left: 3px solid #8377D1; | |
[d9884b2] | 44 | background-color: #FBFFF1; |
[f49ddda] | 45 | |
[590f667] | 46 | |
47 | } | |
48 | ||
49 | </style> |
Note:
See TracBrowser
for help on using the repository browser.