7 changed files with 47 additions and 14 deletions
After Width: | Height: | Size: 826 KiB |
After Width: | Height: | Size: 259 KiB |
After Width: | Height: | Size: 477 KiB |
After Width: | Height: | Size: 269 KiB |
@ -1,26 +1,33 @@ |
|||||
<template> |
<template> |
||||
<img alt="Vue logo" src="./assets/logo.png"> |
|
||||
<HelloWorld msg="Welcome to Your Vue.js App"/> |
|
||||
|
<div> |
||||
|
<h1>Knihkupectví</h1> |
||||
|
<div class="row"> |
||||
|
<div class="col"> |
||||
|
<h2>Knihy</h2> |
||||
|
<div v-for="kniha, i in knihy" :key="i"> |
||||
|
{{ kniha.nazev }} |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<h2>Košík</h2> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import HelloWorld from './components/HelloWorld.vue' |
|
||||
|
import data from "./assets/knihy.json" |
||||
|
|
||||
export default { |
export default { |
||||
name: 'App', |
name: 'App', |
||||
components: { |
|
||||
HelloWorld |
|
||||
} |
|
||||
|
data: function() { |
||||
|
return { |
||||
|
knihy: data, |
||||
|
} |
||||
|
}, |
||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
<style> |
<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> |
||||
|
@ -0,0 +1,24 @@ |
|||||
|
[ |
||||
|
{ |
||||
|
"nazev": "Tělo sčítá rány", |
||||
|
"obrazek": "/img/telo-scita-rany.png", |
||||
|
"autor": "", |
||||
|
"stran": 0, |
||||
|
"cena": 0, |
||||
|
"typy": [ |
||||
|
{ |
||||
|
"nazev": "papír", |
||||
|
"ikona": "fa-book", |
||||
|
"formaty": "" |
||||
|
}, |
||||
|
{ |
||||
|
"nazev": "e-book", |
||||
|
"ikona": "fa-tablet-alt", |
||||
|
"formaty": "pdf mobi" |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
{ |
||||
|
"nazev": "Hardcore historie" |
||||
|
} |
||||
|
] |
Loading…
Reference in new issue