|
1 | 1 | <template>
|
2 | 2 | <nav id="nav" class="container mx-auto">
|
| 3 | + <!-- Header start --> |
3 | 4 | <div
|
4 | 5 | class="z-10 max-w-screen-lg xl:max-w-screen-xl block sm:flex sm:justify-between sm:items-center my-6"
|
5 | 6 | >
|
| 7 | + <!-- Header menu links and small screen humberger menu start --> |
6 | 8 | <div class="flex justify-between items-center">
|
| 9 | + <!-- Header logos start --> |
7 | 10 | <div>
|
8 | 11 | <router-link to="/"
|
9 | 12 | ><img
|
|
20 | 23 | />
|
21 | 24 | </router-link>
|
22 | 25 | </div>
|
| 26 | + <!-- Header logos end --> |
23 | 27 |
|
| 28 | + <!-- Theme switcher small screen start --> |
24 | 29 | <theme-switcher
|
25 | 30 | :theme="theme"
|
26 | 31 | @themeChanged="updateTheme"
|
27 | 32 | class="block sm:hidden bg-ternary-light dark:bg-ternary-dark hover:bg-hover-light dark:hover:bg-hover-dark hover:shadow-sm px-2.5 py-2 rounded-lg ml-10"
|
28 | 33 | />
|
| 34 | + <!-- Theme switcher small screen end --> |
29 | 35 |
|
| 36 | + <!-- Small screen humberger menu start --> |
30 | 37 | <div class="sm:hidden">
|
31 | 38 | <button
|
32 | 39 | @click="isOpen = !isOpen"
|
|
52 | 59 | </svg>
|
53 | 60 | </button>
|
54 | 61 | </div>
|
| 62 | + <!-- Small screen humberger menu end --> |
55 | 63 | </div>
|
| 64 | + <!-- Header menu links and small screen humberger menu end --> |
56 | 65 |
|
| 66 | + <!-- Header links start --> |
57 | 67 | <div
|
58 | 68 | :class="isOpen ? 'block' : 'hidden'"
|
59 | 69 | class="ml-3 sm:ml-4 mt-5 sm:mt-3 sm:flex justify-center items-center"
|
|
74 | 84 | >Contact</router-link
|
75 | 85 | >
|
76 | 86 | </div>
|
| 87 | + <!-- Header links end --> |
| 88 | + |
| 89 | + <!-- Header right section buttons start --> |
77 | 90 | <div
|
78 | 91 | class="hidden sm:flex justify-between items-center flex-col md:flex-row"
|
79 | 92 | >
|
| 93 | + <!-- Hire me button start --> |
80 | 94 | <div>
|
81 | 95 | <button
|
82 | 96 | class="text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-lg px-5 py-2.5"
|
|
85 | 99 | Hire Me
|
86 | 100 | </button>
|
87 | 101 | </div>
|
88 |
| - <!-- Theme switcher start --> |
| 102 | + <!-- Hire me button end --> |
| 103 | + |
| 104 | + <!-- Theme switcher largr screen start --> |
89 | 105 | <theme-switcher
|
90 | 106 | :theme="theme"
|
91 | 107 | @themeChanged="updateTheme"
|
92 | 108 | class="ml-8 bg-primary-light dark:bg-ternary-dark px-3 py-2 shadow-sm rounded-xl cursor-pointer"
|
93 | 109 | />
|
94 |
| - <!-- Theme switcher end --> |
| 110 | + <!-- Theme switcher largr screen end --> |
95 | 111 | </div>
|
| 112 | + <!-- Header right section buttons stendart --> |
96 | 113 | </div>
|
| 114 | + <!-- Header end --> |
97 | 115 |
|
98 | 116 | <!-- Hire me modal start -->
|
99 | 117 | <transition name="fade">
|
@@ -254,7 +272,7 @@ export default {
|
254 | 272 | },
|
255 | 273 | showModal() {
|
256 | 274 | if (this.modal) {
|
257 |
| - //stop screen scrolling |
| 275 | + // Stop screen scrolling |
258 | 276 | document
|
259 | 277 | .getElementsByTagName('html')[0]
|
260 | 278 | .classList.remove('overflow-y-hidden');
|
|
0 commit comments