fix: collapse header mobile
This commit is contained in:
parent
546f1d4aad
commit
f79c2f5031
@ -22,6 +22,7 @@
|
|||||||
v-else
|
v-else
|
||||||
:key="index"
|
:key="index"
|
||||||
:label="nav.title"
|
:label="nav.title"
|
||||||
|
collapsible
|
||||||
>
|
>
|
||||||
<b-navbar-item
|
<b-navbar-item
|
||||||
v-for="(sub, i) in nav.subMenu"
|
v-for="(sub, i) in nav.subMenu"
|
||||||
@ -104,7 +105,13 @@ export default class TheHeader extends Vue {
|
|||||||
link: '/'
|
link: '/'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Contact Us',
|
||||||
|
link: '/contact-us',
|
||||||
|
subMenu: []
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
1
components/templates/contact-us/ContactForm.vue
Normal file
1
components/templates/contact-us/ContactForm.vue
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
13
components/templates/contact-us/FormContact.vue
Normal file
13
components/templates/contact-us/FormContact.vue
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
<section class="hero is-fullheight">
|
||||||
|
sdsdfsd
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Vue, Component } from 'nuxt-property-decorator'
|
||||||
|
|
||||||
|
@Component
|
||||||
|
export default class ContactForm extends Vue {
|
||||||
|
}
|
||||||
|
</script>
|
44
components/templates/home/Banner.vue
Normal file
44
components/templates/home/Banner.vue
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
<template>
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="container has-text-centered">
|
||||||
|
<div class="columns is-vcentered">
|
||||||
|
<div class="column is-5">
|
||||||
|
<figure class="image is-5by3">
|
||||||
|
<img
|
||||||
|
class="main-image"
|
||||||
|
src="~assets/images/logo.png"
|
||||||
|
alt="Description"
|
||||||
|
>
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
<div class="column is-6 is-offset-1">
|
||||||
|
<h1 class="title is-2">
|
||||||
|
Superhero Scaffolding
|
||||||
|
</h1>
|
||||||
|
<h2 class="subtitle is-4">
|
||||||
|
Let this cover page describe a product or service.
|
||||||
|
</h2>
|
||||||
|
<br>
|
||||||
|
<p class="has-text-centered">
|
||||||
|
<a class="button is-medium is-info is-outlined">
|
||||||
|
Learn more
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { Vue, Component } from 'nuxt-property-decorator'
|
||||||
|
|
||||||
|
@Component
|
||||||
|
export default class Banner extends Vue {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.main-image {
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
</style>
|
13
pages/contact-us.vue
Normal file
13
pages/contact-us.vue
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
Contact
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Vue, Component } from 'nuxt-property-decorator'
|
||||||
|
|
||||||
|
@Component
|
||||||
|
export default class ContactUs extends Vue {
|
||||||
|
}
|
||||||
|
</script>
|
@ -1,12 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<banner />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Vue, Component } from 'nuxt-property-decorator'
|
||||||
|
import Banner from '@/components/templates/home/Banner'
|
||||||
|
|
||||||
export default {
|
@Component({
|
||||||
name: 'HomePage'
|
components: {
|
||||||
|
Banner
|
||||||
|
}
|
||||||
|
})
|
||||||
|
export default class Index extends Vue {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user