Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<header class="flex justify-around items-center pt-3.5 text-white">
<LogoSvg
class="flex-auto basis-[28.57%] h-[46px]"
></LogoSvg>
<nav class="flex justify-around flex-auto basis-[42.86%] text-xl">
<router-link to="/home" :class="currentPage === 'home' ? 'font-bold' : ''"
>Home</router-link
>
<router-link
to="/home"
:class="currentPage === 'services' ? 'font-bold' : ''"
>Services</router-link
>
<router-link
to="/home"
:class="currentPage === 'about us' ? 'font-bold' : ''"
>About us</router-link
>
<router-link to="/home" :class="currentPage === 'team' ? 'font-bold' : ''"
>Team</router-link
>
<router-link
to="/home"
:class="currentPage === 'contact' ? 'font-bold' : ''"
>Contact</router-link
>
<router-link to="/home" :class="currentPage === 'blog' ? 'font-bold' : ''"
>Blog</router-link
>
</nav>
<div class="flex-auto basis-[28.57%] flex justify-center">
<button class="rounded bg-blue text-white py-3.5 px-[42px] font-medium hover:bg-blue-700 transition-colors">
Book an online
</button>
</div>
</header>
</template>
<script>
import LogoSvg from "./LogoSvg.vue";
export default {
name: "HeaderComponent",
props: {
currentPage: {
type: String,
},
},
components: { LogoSvg },
};
</script>