Skip to content

Commit b160141

Browse files
committed
Footer layout and import
1 parent c35b912 commit b160141

File tree

2 files changed

+49
-26
lines changed

2 files changed

+49
-26
lines changed

src/App.vue

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,31 @@
11
<template>
22
<!-- Header Start -->
3-
4-
<!-- Header End -->
3+
<Header></Header>
54

65
<!-- Render Active Component Contents Start -->
76
<router-view/>
8-
<!-- Render Active Component Contents End -->
97

108
<!-- Footer Start -->
11-
<div class="container mx-auto bg-white px-4">
12-
<div class="md:flex items-center justify-between py-5">
13-
<div class="flex justify-between items-center">
14-
<div class="text-lg text-gray-500">
15-
&copy; Copyright 2021. <a href="https://stoman.me" target="__blank" class="text-gray-600 font-medium">Stoman</a>
16-
</div>
17-
</div>
18-
<div>
19-
<ul class="flex gap-4">
20-
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="twitter"></i></li>
21-
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="instagram"></i></li>
22-
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="github"></i></li>
23-
</ul>
24-
</div>
25-
</div>
26-
</div>
27-
<!-- Footer End -->
9+
<Footer></Footer>
2810

2911
</template>
3012

3113
<script>
3214
import feather from 'feather-icons'
15+
import Header from './components/shared/Header';
16+
import Footer from './components/shared/Footer';
17+
3318
export default {
34-
mounted() {
35-
feather.replace();
36-
},
37-
updated() {
38-
feather.replace();
39-
}
19+
components: {
20+
Header,
21+
Footer
22+
},
23+
mounted() {
24+
feather.replace();
25+
},
26+
updated() {
27+
feather.replace();
28+
}
4029
}
4130
</script>
4231

src/components/shared/Footer.vue

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<template>
2+
<div class="container mx-auto bg-white px-4">
3+
<div class="md:flex items-center justify-between py-5">
4+
<div class="flex justify-between items-center">
5+
<div class="text-lg text-gray-500">
6+
&copy; Copyright 2021. <a href="https://stoman.me" target="__blank" class="text-gray-600 font-medium">Stoman</a>
7+
</div>
8+
</div>
9+
<div>
10+
<ul class="flex gap-4">
11+
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="twitter"></i></li>
12+
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="instagram"></i></li>
13+
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="github"></i></li>
14+
</ul>
15+
</div>
16+
</div>
17+
</div>
18+
</template>
19+
20+
<script>
21+
import feather from 'feather-icons'
22+
export default {
23+
mounted() {
24+
feather.replace();
25+
},
26+
updated() {
27+
feather.replace();
28+
}
29+
}
30+
</script>
31+
32+
<style scoped>
33+
34+
</style>

0 commit comments

Comments
 (0)