Skip to content

Commit

Permalink
adding clickable phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
atheer0998 committed Jan 20, 2025
1 parent 6c630ce commit c7a2f91
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
3 changes: 2 additions & 1 deletion components/_Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
<li class="nav-item"><a :href="localePath('/#about')" class="nav-link">{{ $t('About') }}</a></li>
<li class="nav-item"><a :href="localePath('/#services')" class="nav-link">{{ $t('Services') }}</a></li>
<li class="nav-item"><a :href="localePath('/#works')" class="nav-link">{{ $t('Works') }}</a></li>

</ul>

<ul class="navbar-nav nav nav-pills ms-auto justify-content-end order-md-3 text-center mt-3 mt-md-0">
<li class="nav-item mb-3 mb-md-0">
<a :href="localePath('/#contact')" class="btn btn-sm btn-primary px-4">{{ $t('contactus') }}</a>
<a :href="localePath('/contact')" class="btn btn-sm btn-primary px-4">{{ $t('contactus') }}</a>
</li>
<li class="nav-item mb-3 mb-md-0 mx-md-3">
<nuxt-link href="#" class="btn btn-sm btn-light px-2" v-if="$i18n.locale !== 'en'" :to="`${switchLocalePath('en')}`">English</nuxt-link>
Expand Down
28 changes: 21 additions & 7 deletions components/sections/Contact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,28 @@
<h3 class="fw-bold">{{ $t('orsimplyusethese') }}</h3>
<div class="contact-info ps-4">
<h6 class="mt-4"><i class="bi bi-phone"></i> {{ $t('phonenumber') }}:</h6>
<a @click="trackPhoneNumberClick">+966 56 664 2220</a>
<!-- <a dir="ltr" href="tel:+966-566642220">+966 56 664 2220</a> -->
<a
dir="ltr"
href="tel:+966566642220"
@click="trackPhoneNumberClick"
class="text-decoration-none text-dark">
+966 56 664 2220
</a>
<h6 class="mt-4"><i class="bi bi-envelope"></i> {{ $t('emailaddress') }}:</h6>
<a dir="ltr" href="mailto:[email protected]">[email protected]</a>
<a
dir="ltr"
href="mailto:[email protected]"
class="text-decoration-none text-dark">
[email protected]
</a>
<h6 class="mt-4"><i class="bi bi-globe"></i> {{ $t('address') }}:</h6>
<p v-html="$t('address_details')"></p>
<iframe class="w-100" src="https://snazzymaps.com/embed/281438" height="300px" style="border: none"></iframe>
<p v-html="$t('address_details')"></p>
<iframe
class="w-100"
src="https://snazzymaps.com/embed/281438"
height="300px"
style="border: none">
</iframe>
</div>
</div>
</div>
Expand Down Expand Up @@ -56,6 +71,5 @@
</script>

<style>
/* Add your custom styles here */
</style>


3 changes: 2 additions & 1 deletion lang/ar-SA.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ export default {
citiesreached: 'مدينة نخدم عملائنا فيها',
countries: 'دول',
pageUnderMaintenance: 'عذراً، الصفحة تحت الصيانة',
pageUnderMaintenanceDescription: 'الرجاء المحاولة لاحقاً'
pageUnderMaintenanceDescription: 'الرجاء المحاولة لاحقاً',
contacts:'تواصل معنا'
}
3 changes: 2 additions & 1 deletion lang/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ export default {
citiesreached: 'Cities Reached',
countries: 'Countries',
pageUnderMaintenance: 'Sorry, the page is under maintenance',
pageUnderMaintenanceDescription: 'Please, try again later.'
pageUnderMaintenanceDescription: 'Please, try again later.',
contacts:'Contact Us'
}
3 changes: 3 additions & 0 deletions pages/contact.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>

</template>

0 comments on commit c7a2f91

Please sign in to comment.