Header base component without styles
This commit is contained in:
19
components/Header.vue
Normal file
19
components/Header.vue
Normal 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>
|
||||||
@@ -1,9 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<Header />
|
||||||
|
<main>
|
||||||
<Nuxt />
|
<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",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<main>
|
<section>
|
||||||
<h1>Ghibli movies</h1>
|
<h1>Ghibli movies</h1>
|
||||||
{{ films }}
|
{{ films }}
|
||||||
</main>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user