File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ framework: vue
1111
1212In this post we will make a tour card that will allow us to display all our listings.
1313
14- Create a cards directory and create TourCard.vue file:
14+ Create a ` cards ` directory and create ` TourCard.vue ` file:
1515
1616``` javascript
1717< template>
@@ -50,10 +50,26 @@ export default {
5050
5151```
5252
53- 🔇 Here we have a div that is styled accordingly to look like a card, which will accept props.
53+ 🔇 Here we have a ` div ` that is styled accordingly to look like a card, which will accept props.
5454
5555🔇 It also uses Ant Design's ` <Rate/> ` component so we can display the rating of the listing.
5656
57+ Next off we need to add Ant Design because we will use it's tabs component to create the checkout screen.
58+
59+ ```
60+ $ yarn add ant-design-vue
61+ ```
62+
63+ Then next head over to the ` main.js ` file to register it globally:
64+
65+ ```
66+ import { Tabs} from "ant-design-vue";
67+ import "ant-design-vue/dist/antd.css";
68+
69+ Vue.use(Tabs);
70+
71+ ```
72+
5773Once you're done, it will look like this:
5874
5975![ tour-card] ( /uploads/tourcard.png )
Original file line number Diff line number Diff line change @@ -47,22 +47,6 @@ mutation MAKE_A_BOOKING(
4747
4848```
4949
50- Next off we need to add Ant Design because we will use it's tabs component to create the checkout screen.
51-
52- ```
53- $ yarn add ant-design-vue
54- ```
55-
56- Then next head over to the ` main.js ` file to register it globally:
57-
58- ```
59- import { Tabs} from "ant-design-vue";
60- import "ant-design-vue/dist/antd.css";
61-
62- Vue.use(Tabs);
63-
64- ```
65-
6650Lastly, lets add a route for the Booking page in the ` router.js ` file:
6751
6852```
You can’t perform that action at this time.
0 commit comments