|
1 | 1 | <template>
|
2 | 2 | <!-- Header Start -->
|
3 |
| - <nav id="nav" class="container mx-auto bg-white"> |
4 |
| - <div class="md:flex items-center justify-between px-4 py-5"> |
5 |
| - <div class="flex justify-between items-center"> |
6 |
| - <div class="text-2xl font-bold text-gray-800 md:text-3xl"> |
7 |
| - <router-link to="/">Logo</router-link> |
8 |
| - </div> |
9 |
| - <div class="md:hidden"> |
10 |
| - <button type="button" class="block text-gray-800 hover:text-gray-700 focus:text-gray-700 focus:outline-none"> |
11 |
| - <svg class="h-6 w-6 fill-current" viewBox="0 0 24 24"> |
12 |
| - <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"/> |
13 |
| - <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"/> |
14 |
| - </svg> |
15 |
| - </button> |
16 |
| - </div> |
17 |
| - </div> |
18 |
| - <div class="flex justify-between items-center flex-col md:flex-row"> |
19 |
| - <router-link to="/projects" class="text-lg font-medium text-gray-400 uppercase md:mx-6 mb-2 sm:py-2">Projects</router-link> |
20 |
| - <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> |
21 |
| - <div class="sm:-mt-3 sm:ml-10 bg-gray-50 p-2 rounded-lg shadow-sm cursor-pointer"> |
22 |
| - <a href="#"><i data-feather="moon" class="text-gray-600 hover:text-gray-400"></i></a> |
23 |
| - </div> |
24 |
| - </div> |
25 |
| - |
26 |
| - </div> |
27 |
| - </nav> |
28 |
| - <!-- Header End --> |
| 3 | + <Header></Header> |
29 | 4 |
|
30 | 5 | <!-- Render Active Component Contents Start -->
|
31 | 6 | <router-view/>
|
32 |
| - <!-- Render Active Component Contents End --> |
33 | 7 |
|
34 | 8 | <!-- Footer Start -->
|
35 |
| - <div class="container mx-auto bg-white px-4"> |
36 |
| - <div class="md:flex items-center justify-between py-5"> |
37 |
| - <div class="flex justify-between items-center"> |
38 |
| - <div class="text-lg text-gray-500"> |
39 |
| - © Copyright 2021. <a href="https://stoman.me" target="__blank" class="text-gray-600 font-medium">Stoman</a> |
40 |
| - </div> |
41 |
| - </div> |
42 |
| - <div> |
43 |
| - <ul class="flex gap-4"> |
44 |
| - <li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="twitter"></i></li> |
45 |
| - <li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="instagram"></i></li> |
46 |
| - <li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="github"></i></li> |
47 |
| - </ul> |
48 |
| - </div> |
49 |
| - </div> |
50 |
| - </div> |
51 |
| - <!-- Footer End --> |
| 9 | + <Footer></Footer> |
52 | 10 |
|
53 | 11 | </template>
|
54 | 12 |
|
55 | 13 | <script>
|
56 | 14 | import feather from 'feather-icons'
|
| 15 | + import Header from './components/shared/Header'; |
| 16 | + import Footer from './components/shared/Footer'; |
| 17 | +
|
57 | 18 | export default {
|
58 |
| - mounted() { |
59 |
| - feather.replace(); |
60 |
| - }, |
61 |
| - updated() { |
62 |
| - feather.replace(); |
63 |
| - } |
| 19 | + components: { |
| 20 | + Header, |
| 21 | + Footer |
| 22 | + }, |
| 23 | + mounted() { |
| 24 | + feather.replace(); |
| 25 | + }, |
| 26 | + updated() { |
| 27 | + feather.replace(); |
| 28 | + } |
64 | 29 | }
|
65 | 30 | </script>
|
66 | 31 |
|
|
72 | 37 | text-align: center;
|
73 | 38 | color: #2c3e50;
|
74 | 39 | }
|
75 |
| -
|
76 |
| - #nav a.router-link-exact-active { |
77 |
| - @apply text-gray-700; |
78 |
| - } |
79 | 40 | </style>
|
0 commit comments