Header base component without styles

This commit is contained in:
2020-12-16 13:53:02 +01:00
parent 1278e23aec
commit 2b2528054a
3 changed files with 33 additions and 3 deletions

19
components/Header.vue Normal file
View File

@@ -0,0 +1,19 @@
<template>
<header id="header">
<router-link to="/">
<img
src="https://avatars2.githubusercontent.com/u/1080062?s=200&v=4"
alt="PeopleDoc - Icon"
/>
<h1>Ghibli</h1>
</router-link>
</header>
</template>
<script>
export default {
name: "Header"
};
</script>
<style></style>

View File

@@ -1,9 +1,20 @@
<template> <template>
<div> <div>
<Nuxt /> <Header />
<main>
<Nuxt />
</main>
</div> </div>
</template> </template>
<script>
import Header from "@/components/Header";
export default {
components: { Header }
};
</script>
<style> <style>
html { html {
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",

View File

@@ -1,8 +1,8 @@
<template> <template>
<main> <section>
<h1>Ghibli movies</h1> <h1>Ghibli movies</h1>
{{ films }} {{ films }}
</main> </section>
</template> </template>
<script> <script>