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