[+] Add home component
This commit is contained in:
@@ -3,6 +3,7 @@ import {Component, Vue} from 'vue-property-decorator';
|
||||
import config from '@/content/config.json';
|
||||
import Responsive from "@/responsive";
|
||||
import PhotoSwipper from "@/PhotoSwipper.vue";
|
||||
import {homeContent} from "@/content/home.js"
|
||||
|
||||
/**
|
||||
* Data class for artworks
|
||||
@@ -81,6 +82,9 @@ export default class App extends Vue
|
||||
// Create variable from imported config
|
||||
config = config;
|
||||
|
||||
// Home
|
||||
home = homeContent;
|
||||
|
||||
// Parsed artworks
|
||||
artworks: Artwork[] = [];
|
||||
|
||||
|
||||
@@ -29,6 +29,10 @@
|
||||
|
||||
<photo-swipper ref="ps"/>
|
||||
|
||||
<div id="home" v-if="selectedType === 'Home'">
|
||||
{{home}}
|
||||
</div>
|
||||
|
||||
<div id="footer" :style="footerStyle">
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user