|
1 | 1 | <template> |
2 | | - <!-- eslint-disable --> |
| 2 | + <!-- eslint-disable max-len --> |
3 | 3 | <div class="profileContainer"> |
4 | 4 | <div id="sliderScoreContainer" class="text-center w-full rounded-lt-md heatScore relative h-6"> |
5 | 5 | <div id="sliderScore" class="bg-purple-matcha absolute top-0 flex flex-col items-center justify-center h-12 w-auto rounded-b-md"> |
|
33 | 33 | </div> |
34 | 34 | </div> |
35 | 35 | <div class="text-center flex flex-col mx-auto p-8 border-b"> |
36 | | - <div class="w-full flex justify-center items-center bg-purple-matcha py-4 rounded-lg cursor-pointer"> |
37 | | - <img src="../../../assets/heart.png" class="h-8"> |
38 | | - <h1 class="text-white-matcha text-2xl ml-2 font-bold">Like</h1> |
39 | | - </div> |
40 | | - <div class="w-full flex justify-center items-center bg-purple-matcha mt-8 py-4 rounded-lg cursor-pointer"> |
41 | | - <img src="../../../assets/superLike.png" class="h-8"> |
42 | | - <h1 class="text-white-matcha text-2xl ml-2 font-bold">Super Like</h1> |
43 | | - </div> |
44 | | - <h1 class="text-purple-matcha text-sm mt-2">Worth 10 likes, and {{user.first_name}} sees your extra interest</h1> |
| 36 | + <LikeButton |
| 37 | + v-bind:startImage="likeImage" |
| 38 | + v-bind:hoverImage="likeImageHover" |
| 39 | + v-bind:clickedImage="likeImageClicked" |
| 40 | + v-bind:text="'Like'" |
| 41 | + v-bind:textRevert="'Unlike'"></LikeButton> |
| 42 | + <LikeButton |
| 43 | + class="mt-8" |
| 44 | + v-bind:startImage="superLikeImage" |
| 45 | + v-bind:hoverImage="superLikeImageHover" |
| 46 | + v-bind:clickedImage="superLikeImageClicked" |
| 47 | + v-bind:text="'Super Like'" |
| 48 | + v-bind:textRevert="'Unlike'" |
| 49 | + v-bind:description="`Worth 10 likes, and ${user.first_name} sees your extra interest`"></LikeButton> |
45 | 50 | </div> |
46 | | - <div class="text-center p-8 border-b cursor-pointer relative"> |
| 51 | + <div class="text-center p-8 border-b relative"> |
47 | 52 | <DropdownDisplayChoice |
48 | 53 | v-on:save-single-choice="saveSingleChoice" |
49 | 54 | class="max-w-xs mx-auto" |
|
52 | 57 | v-bind:options="['harassment', 'bot', 'spam', 'inappropriate content']"></DropdownDisplayChoice> |
53 | 58 | <h1 class="onboarding-sub-container-content-button-outline mx-auto">Report</h1> |
54 | 59 | </div> |
55 | | - <div class="text-center p-8 cursor-pointer"> |
| 60 | + <div class="text-center p-8"> |
56 | 61 | <h1 class="onboarding-sub-container-content-button-outline text-red-500 mt-0 border-red-500 mx-auto">Block</h1> |
57 | 62 | <h1 class="mx-auto mt-2 text-sm text-gray-600">Don't suggest this user and stop notifications</h1> |
58 | 63 | </div> |
|
61 | 66 |
|
62 | 67 | <script> |
63 | 68 | import DropdownDisplayChoice from '@/components/shared/DropdownDisplayChoice.vue'; |
| 69 | +import LikeButton from '@/components/app/users/LikeButton.vue'; |
| 70 | +import likeImage from '../../../assets/like.png'; |
| 71 | +import likeImageHover from '../../../assets/likeHover.png'; |
| 72 | +import likeImageClicked from '../../../assets/likeClicked.png'; |
| 73 | +import superLikeImage from '../../../assets/superLike.png'; |
| 74 | +import superLikeImageHover from '../../../assets/superLikeImageHover.png'; |
| 75 | +import superLikeImageClicked from '../../../assets/superLikeImageClicked.png'; |
64 | 76 |
|
65 | 77 | export default { |
66 | 78 | props: ['user'], |
67 | 79 | components: { |
| 80 | + LikeButton, |
68 | 81 | DropdownDisplayChoice, |
69 | 82 | }, |
70 | 83 | data: () => ({ |
71 | 84 | userInterests: [], |
| 85 | + likeImage, |
| 86 | + likeImageHover, |
| 87 | + likeImageClicked, |
| 88 | + superLikeImage, |
| 89 | + superLikeImageHover, |
| 90 | + superLikeImageClicked, |
72 | 91 | }), |
73 | 92 | methods: { |
74 | 93 | preferences() { |
|
0 commit comments