137137 </div >
138138 </router-link >
139139 <div class =" header_panel-right" >
140- <modal
141- :name =" 'modal'"
142- v-if =" showModal"
143- @close =" showModal = false"
144- :title =" 'Test'"
145- :body =" 'Body'"
146- >
147- <template #header ><h3 >{{ $t('invitarAmigos') }}</h3 ></template >
148- <template #body ><div class =" social-share" >
149- <a
150- :href =" 'https://www.facebook.com/sharer/sharer.php?u=' + shareUrl"
151- target =" _blank"
152- aria-label =" Compartir en Facebook"
153- class =" lnk lnk-social-network lnk-facebook"
154- >
155- <i class =" fa fa-facebook" aria-hidden =" true" ></i >
156- </a >
157- <a
158- :href =" 'https://twitter.com/intent/tweet/?text=' + encodeURIComponent(this.$t('compartirPlataforma')) + '&url=' + shareUrl + '&via=' + config.name_app.toLowerCase() + '&hashtags=carpooling'"
159- target =" _blank"
160- aria-label =" Compartir en Twitter"
161- class =" lnk lnk-social-network lnk-twitter"
162- >
163- <i class =" fa fa-twitter" aria-hidden =" true" ></i >
164- </a >
165- <a
166- :href =" 'whatsapp://send?text=' + encodeURIComponent(this.$t('compartirPlataforma')) + '%20' + shareUrl"
167- target =" _blank"
168- aria-label =" Compartir en Whats App"
169- class =" lnk lnk-social-network lnk-whatsapp"
170- v-if =" isMobile"
171- >
172- <i class =" fa fa-whatsapp" aria-hidden =" true" ></i >
173- </a >
174- </div ></template >
175- </modal >
176- <button
177- v-if =" config.trip_card_design !== 'light'"
178- @click =" share"
179- type =" button"
180- class =" btn btn-link"
181- >
182- {{ $t('invitarAmigos') }}
183- </button >
140+ <div class =" header-social-links" >
141+ <a
142+ href =" https://www.instagram.com/carpoolear/?hl=en"
143+ target =" _blank"
144+ rel =" noopener noreferrer"
145+ class =" header-social-link"
146+ aria-label =" Instagram Carpoolear"
147+ >
148+ <img :src =" instagram_logo" alt =" " />
149+ </a >
150+ <a
151+ href =" https://www.facebook.com/Carpoolear"
152+ target =" _blank"
153+ rel =" noopener noreferrer"
154+ class =" header-social-link"
155+ aria-label =" Facebook Carpoolear"
156+ >
157+ <img :src =" facebook_logo" alt =" " />
158+ </a >
159+ </div >
184160 <router-link
185161 v-if =" config.trip_card_design !== 'light'"
186162 class =" btn btn-link trips-link"
@@ -314,7 +290,6 @@ import { useTripsStore } from '../../stores/trips';
314290import dropdown from ' ../Dropdown' ;
315291import router from ' ../../router' ;
316292import bus from ' ../../services/bus-event.js' ;
317- import modal from ' ../Modal' ;
318293import IdentityValidationCountdownBanner from ' ../IdentityValidationCountdownBanner.vue' ;
319294import { shouldHideDonationOnIOSCapacitor } from ' ../../services/capacitor.js' ;
320295
@@ -338,8 +313,8 @@ export default {
338313 ' img/' +
339314 process .env .TARGET_APP +
340315 ' _logo.png' ,
341- showModal : false ,
342- shareUrl : encodeURIComponent ( new URL ( process .env .WEB_URL ). origin )
316+ facebook_logo : process . env . ROUTE_BASE + ' img/fb_logo.png ' ,
317+ instagram_logo : process .env .ROUTE_BASE + ' img/instagram-logo.png '
343318 };
344319 },
345320
@@ -403,17 +378,6 @@ export default {
403378 shouldHideDonationOnIOSCapacitor (user ) {
404379 return shouldHideDonationOnIOSCapacitor (user);
405380 },
406- share () {
407- // dialogs.message('Message example');
408- /* if (window && window.plugins && window.plugins.socialsharing && window.plugins.socialsharing.shareWithOptions) {
409- socialShare.share();
410- } else {
411- this.showModal = true;
412- } */
413- // Primero necesito ver cuando estoy en App y cuando en Web
414- this .showModal = true ;
415- },
416-
417381 logout () {
418382 useAuthStore ().logout ();
419383 },
@@ -446,7 +410,6 @@ export default {
446410 },
447411 components: {
448412 dropdown,
449- modal,
450413 IdentityValidationCountdownBanner
451414 }
452415};
@@ -456,6 +419,24 @@ export default {
456419.trips-link {
457420 font-weight : bold ;
458421}
422+ .header-social-links {
423+ display : inline-flex ;
424+ align-items : center ;
425+ gap : 0.45rem ;
426+ margin-right : 3rem ;
427+ vertical-align : middle ;
428+ }
429+ .header-social-link img {
430+ width : 22px ;
431+ height : 22px ;
432+ display : block ;
433+ object-fit : contain ;
434+ vertical-align : middle ;
435+ margin-right : 1rem ;
436+ }
437+ .header-social-link :hover img {
438+ opacity : 0.85 ;
439+ }
459440.actionbar_icon img {
460441 margin-bottom : 2px ;
461442 width : 26px ;
0 commit comments