Browse Source

pridani komponenty

master
Stanislav Platil 4 years ago
parent
commit
9eda4ebb2a
  1. 44
      src/App.vue

44
src/App.vue

@ -1,28 +1,46 @@
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
<Carousel :images="images" />
</div>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
import Carousel from './components/Carousel';
export default {
name: 'App',
components: {
HelloWorld
Carousel
},
data: function() {
return {
images: [
{
src: "/img/image_01.jpg",
title: "Obrázek 1"
},
{
src: "/img/image_02.jpg",
title: "Obrázek 2"
},
{
src: "/img/image_03.jpg",
title: "Obrázek 3"
},
{
src: "/img/image_04.jpg",
title: "Obrázek 4"
},
{
src: "/img/image_05.jpg",
title: "Obrázek 5"
}
],
}
}
}
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
</style>
Loading…
Cancel
Save