You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
4.8 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div
  3. class="cookie-bottom-modal d-flex justify-center"
  4. v-if="isCookieHasBeenClicked"
  5. style="z-index: 999"
  6. >
  7. <div class="computer hidden-sm-and-down">
  8. <v-card
  9. flat
  10. max-width="1306"
  11. min-height="80"
  12. class="border-radius-20 py-5 px-8 d-flex justify-space-between mx-5"
  13. style="background-color: rgba(0, 0, 0, 0.75)"
  14. >
  15. <v-card
  16. flat
  17. class="d-flex flex-column tw-mr-[10px]"
  18. color="transparent"
  19. >
  20. <v-card
  21. flat
  22. color="transparent"
  23. class="white--text px-3"
  24. style="font-size: 14px; letter-spacing: 0.02em"
  25. >
  26. {{
  27. $t(
  28. "We use cookies to ensure that we give you the best experience on our website. We also use cookies to ensure we show you advertising that is relevant to you."
  29. )
  30. }}
  31. </v-card>
  32. <v-card
  33. flat
  34. color="transparent"
  35. class="primary--text px-3 tw-body-4"
  36. style="text-decoration: underline"
  37. ><nuxt-link :to="localePath('/cookiePolicy')">
  38. {{ $t("Learn More") }}</nuxt-link
  39. ></v-card
  40. >
  41. </v-card>
  42. <v-btn
  43. class="remove-upper primary white--text border-radius-16"
  44. width="140"
  45. height="40"
  46. @click="closeCookie()"
  47. >
  48. {{ $t("Got it") }}
  49. </v-btn>
  50. </v-card>
  51. </div>
  52. <div class="tablet d-none d-sm-flex d-md-none">
  53. <v-card
  54. flat
  55. max-width="708"
  56. min-height="171"
  57. class="border-radius-20 py-5 px-7 mx-5 d-flex flex-column justify-space-between"
  58. style="background-color: rgba(0, 0, 0, 0.75)"
  59. >
  60. <v-card flat class="d-flex flex-column" color="transparent">
  61. <v-card
  62. flat
  63. color="transparent"
  64. class="white--text"
  65. style="font-size: 14px; letter-spacing: 0.02em"
  66. >
  67. {{
  68. $t(
  69. "We use cookies to ensure that we give you the best experience on our website. We also use cookies to ensure we show you advertising that is relevant to you."
  70. )
  71. }}
  72. </v-card>
  73. <v-card
  74. flat
  75. color="transparent"
  76. class="primary--text tw-body-4"
  77. style="text-decoration: underline"
  78. ><nuxt-link :to="localePath('/cookiePolicy')">
  79. {{ $t("Learn More") }}</nuxt-link
  80. ></v-card
  81. >
  82. </v-card>
  83. <v-btn
  84. class="remove-upper primary white--text border-radius-16"
  85. max-width="648"
  86. height="40"
  87. @click="closeCookie()"
  88. >
  89. {{ $t("Got it") }}
  90. </v-btn>
  91. </v-card>
  92. </div>
  93. <div class="phone hidden-sm-and-up">
  94. <v-card
  95. flat
  96. max-width="384"
  97. min-height="164"
  98. class="border-radius-20 py-5 px-7 mx-5 d-flex flex-column justify-space-between"
  99. style="background-color: rgba(0, 0, 0, 0.75)"
  100. >
  101. <v-card flat class="d-flex flex-column" color="transparent">
  102. <v-card
  103. flat
  104. color="transparent"
  105. class="white--text"
  106. style="font-size: 14px; letter-spacing: 0.02em; line-height: 16px"
  107. >
  108. {{
  109. $t(
  110. "We use cookies to ensure that we give you the best experience on our website. We also use cookies to ensure we show you advertising that is relevant to you."
  111. )
  112. }}
  113. </v-card>
  114. <v-card
  115. flat
  116. color="transparent"
  117. class="primary--text tw-body-4 tw-mb-[20px]"
  118. style="text-decoration: underline"
  119. ><nuxt-link :to="localePath('/cookiePolicy')">
  120. {{ $t("Learn More") }}</nuxt-link
  121. ></v-card
  122. >
  123. </v-card>
  124. <v-btn
  125. class="remove-upper primary white--text border-radius-16"
  126. max-width="344"
  127. height="40"
  128. @click="closeCookie()"
  129. >
  130. {{ $t("Got it") }}
  131. </v-btn>
  132. </v-card>
  133. </div>
  134. </div>
  135. </template>
  136. <script>
  137. export default {
  138. data() {
  139. return {
  140. privacyPolicy: true,
  141. isCookieHasBeenClicked: true,
  142. };
  143. },
  144. created(){
  145. if(process.client){
  146. let storeCache = this.$cookies.get("storeCache");
  147. if(storeCache!=undefined){
  148. this.isCookieHasBeenClicked = JSON.parse(storeCache);
  149. }
  150. }
  151. },
  152. methods:{
  153. closeCookie(){
  154. if(process.client){
  155. this.isCookieHasBeenClicked = false;
  156. this.$cookies.set("storeCache",JSON.stringify(false),1);
  157. }
  158. }
  159. }
  160. };
  161. </script>
  162. <style>
  163. .cookie-bottom-modal {
  164. position: fixed;
  165. bottom: 40px;
  166. width: 100%;
  167. }
  168. </style>