This commit is contained in:
ManjaroOne666 2019-01-03 14:06:28 +00:00
parent 750799248b
commit 2878bf41b4
7 changed files with 99 additions and 12 deletions

View File

@ -1,3 +1,8 @@
* {
outline: 1px dotted red;
}
html { html {
overflow: hidden; overflow: hidden;
} }

View File

@ -1,5 +1,8 @@
$bp__m: 40em; $bp__m: 40em;
// layout optomised for larger screens
$bp__layout: $bp__m;
$site-menu__header-width: 3em; $site-menu__header-width: 3em;
$site-menu__header-height: 3em; $site-menu__header-height: 3em;

View File

@ -0,0 +1,68 @@
<template>
<div class="content-page">
<div class="background">
</div>
<h1>{{ heading }}</h1>
<section class="content-container">
<slot></slot>
</section>
</div>
</template>
<script>
export default {
props: {
bgLoading: {
type: String,
required: false,
default: function () {
return 'linear-gradient(to top, orange, yellow)'
}
},
img: {
type: String,
required: false,
default: function () {
return 'url(https://via.placeholder.com/1920x1080)'
}
},
heading: {
type: String,
required: true
}
},
data () {
return {
}
},
computed: {
loadingStyle () {
return {
backgroundcolor: 'rgba(red, .5)'
}
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.content-page {
position: relative;
width: 100%;
height: 100%;
padding: $site-menu__header-width 0 0 0;
@media (min-width: $bp__layout) {
padding: 0 0 0 $site-menu__header-width;
}
background-color: rgba(black, .1); // TEMP
}
</style>

View File

@ -32,8 +32,6 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$bp-layout: $bp__m;
.menu-drawer { .menu-drawer {
position: absolute; position: absolute;
width: 100%; width: 100%;
@ -51,7 +49,7 @@ $bp-layout: $bp__m;
transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0);
} }
@media (min-width: $bp-layout) { @media (min-width: $bp__layout) {
max-width: 30em; max-width: 30em;
top: 0; top: 0;
right: 100%; right: 100%;
@ -67,7 +65,7 @@ $bp-layout: $bp__m;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@media (min-width: $bp-layout) { @media (min-width: $bp__layout) {
flex-direction: row; flex-direction: row;
} }
} }
@ -82,7 +80,7 @@ $bp-layout: $bp__m;
position: relative; position: relative;
flex: 0 0 $site-menu__header-height; flex: 0 0 $site-menu__header-height;
@media (min-width: $bp-layout) { @media (min-width: $bp__layout) {
max-width: $site-menu__header-width; max-width: $site-menu__header-width;
} }
@ -95,7 +93,7 @@ $bp-layout: $bp__m;
background-color: rgba(green, .5); background-color: rgba(green, .5);
@media (min-width: $bp-layout) { @media (min-width: $bp__layout) {
position: absolute; position: absolute;
top: 0; top: 0;
right: 100%; right: 100%;

View File

@ -1,12 +1,12 @@
<template> <template>
<div class="page-container"> <div class="page-container">
<div class="page">
<nuxt />
</div>
<SiteMenu <SiteMenu
:is-open="isMenuOpen" :is-open="isMenuOpen"
@toggleMenu="toggleMenu" @toggleMenu="toggleMenu"
/> />
<div class="page-content">
<nuxt />
</div>
</div> </div>
</template> </template>
@ -43,4 +43,10 @@ export default {
background-color: orange; // TEMP background-color: orange; // TEMP
} }
.page {
position: relative;
width: 100%;
height: 100%;
}
</style> </style>

View File

@ -1,12 +1,19 @@
<template> <template>
<section class="index"> <ContentPage heading="The Index Page Heading">
index <p>The Index Page Content ...</p>
</section> </ContentPage>
</template> </template>
<script> <script>
import ContentPage from '@/components/ContentPage'
export default { export default {
name: 'HomePage', name: 'HomePage',
components: {
ContentPage
},
data() { data() {
return { return {
} }