1
1
<template >
2
- <nav id =" nav" class =" container mx-auto bg-white" >
3
- <div class =" md:flex items-center justify-between px-4 py-5" >
4
- <div class =" flex justify-between items-center" >
5
- <div class =" text-2xl font-bold text-gray-800 md:text-3xl" >
6
- <router-link to =" /" >Logo</router-link >
7
- </div >
8
- <div class =" md:hidden" >
9
- <button type =" button" class =" block text-gray-800 hover:text-gray-700 focus:text-gray-700 focus:outline-none" >
10
- <svg class =" h-6 w-6 fill-current" viewBox =" 0 0 24 24" >
11
- <path class =" hidden" d =" M16.24 14.83a1 1 0 0 1-1.41 1.41L12 13.41l-2.83 2.83a1 1 0 0 1-1.41-1.41L10.59 12 7.76 9.17a1 1 0 0 1 1.41-1.41L12 10.59l2.83-2.83a1 1 0 0 1 1.41 1.41L13.41 12l2.83 2.83z" />
12
- <path d =" M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z" />
13
- </svg >
14
- </button >
15
- </div >
16
- </div >
17
- <div class =" flex justify-between items-center flex-col md:flex-row" >
18
- <router-link to =" /projects" class =" text-lg font-medium text-gray-400 uppercase md:mx-6 mb-2 sm:py-2" >Projects</router-link >
19
- <router-link to =" /about" class =" text-lg font-medium text-gray-400 uppercase md:mx-2 mb-2 sm:py-2" >About Me</router-link >
20
- <div class =" sm:-mt-3 sm:ml-10 bg-gray-50 p-2 rounded-lg shadow-sm cursor-pointer" >
21
- <a href =" #" ><i data-feather =" moon" class =" text-gray-600 hover:text-gray-400" ></i ></a >
22
- </div >
23
- </div >
24
-
25
- </div >
26
- </nav >
2
+ <nav id =" nav" class =" container mx-auto bg-white" >
3
+ <div class =" md:flex items-center justify-between px-4 py-5" >
4
+ <div class =" flex justify-between items-center" >
5
+ <div class =" text-2xl font-bold text-gray-800 md:text-3xl" >
6
+ <router-link to =" /" >Logo</router-link >
7
+ </div >
8
+ <div class =" md:hidden" >
9
+ <button
10
+ type =" button"
11
+ class =" block text-gray-800 hover:text-gray-700 focus:text-gray-700 focus:outline-none"
12
+ >
13
+ <svg class =" h-6 w-6 fill-current" viewBox =" 0 0 24 24" >
14
+ <path
15
+ class =" hidden"
16
+ d =" M16.24 14.83a1 1 0 0 1-1.41 1.41L12 13.41l-2.83 2.83a1 1 0 0 1-1.41-1.41L10.59 12 7.76 9.17a1 1 0 0 1 1.41-1.41L12 10.59l2.83-2.83a1 1 0 0 1 1.41 1.41L13.41 12l2.83 2.83z"
17
+ />
18
+ <path
19
+ d =" M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"
20
+ />
21
+ </svg >
22
+ </button >
23
+ </div >
24
+ <div class =" sm:ml-4 mt-3" >
25
+ <router-link
26
+ to =" /projects"
27
+ class =" text-lg font-medium text-gray-400 uppercase md:mx-6 mb-2 sm:py-2"
28
+ >Projects</router-link
29
+ >
30
+ <router-link
31
+ to =" /about"
32
+ class =" text-lg font-medium text-gray-400 uppercase md:mx-2 mb-2 sm:py-2"
33
+ >About Me</router-link
34
+ >
35
+ </div >
36
+ </div >
37
+ <div class =" flex justify-between items-center flex-col md:flex-row" >
38
+ <div >
39
+ <button
40
+ class =" text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-lg px-5 py-2.5"
41
+ >
42
+ Hire Me
43
+ </button >
44
+ </div >
45
+ <div
46
+ class =" sm:ml-10 bg-gray-50 p-2 rounded-lg shadow-sm cursor-pointer"
47
+ >
48
+ <a href =" #"
49
+ ><i
50
+ data-feather =" moon"
51
+ class =" text-gray-600 hover:text-gray-400"
52
+ ></i
53
+ ></a >
54
+ </div >
55
+ </div >
56
+ </div >
57
+ </nav >
27
58
</template >
28
59
29
60
<script >
30
- import feather from ' feather-icons'
31
- export default {
32
- mounted () {
33
- feather .replace ();
34
- },
35
- updated () {
36
- feather .replace ();
37
- }
38
- }
61
+ import feather from ' feather-icons' ;
62
+ export default {
63
+ mounted () {
64
+ feather .replace ();
65
+ },
66
+ updated () {
67
+ feather .replace ();
68
+ },
69
+ };
39
70
</script >
40
71
41
72
<style scoped>
42
- #nav a .router-link-exact-active {
43
- @apply text-gray- 700;
44
- }
45
- </style >
73
+ #nav a .router-link-exact-active {
74
+ @apply text-gray- 700;
75
+ }
76
+ </style >
0 commit comments