6 changed files with 674 additions and 432 deletions
			
			
		
								
									
										File diff suppressed because it is too large
									
								
							
						
					@ -0,0 +1 @@ | 
				
			|||
https://drive.google.com/file/d/1nCPlMsC2-PSnR2IX3HnWyXd5zyKrSWNU/view?usp=sharing | 
				
			|||
								
									Binary file not shown.
								
							
						
					@ -0,0 +1,107 @@ | 
				
			|||
<template> | 
				
			|||
    <div class="kolotoc"> | 
				
			|||
       <button v-on:click="dopredu">(====</button> | 
				
			|||
       <button v-on:click="dozadu">===)</button> | 
				
			|||
       <br> | 
				
			|||
        <div class="obraz"> | 
				
			|||
            <img :src="images[index].src" alt="" /> | 
				
			|||
            <br> | 
				
			|||
            <h1><span>{{ images[index].title }}</span></h1> | 
				
			|||
       | 
				
			|||
            <h1><span>{{ images[index].text }}</span></h1> | 
				
			|||
        </div> | 
				
			|||
    </div> | 
				
			|||
</template> | 
				
			|||
<script> | 
				
			|||
export default { | 
				
			|||
  props: { | 
				
			|||
    images: { default: () => []} | 
				
			|||
  }, | 
				
			|||
 | 
				
			|||
     | 
				
			|||
    data: function() { | 
				
			|||
        return { | 
				
			|||
            index: 0, | 
				
			|||
        } | 
				
			|||
    }, | 
				
			|||
methods: { | 
				
			|||
     | 
				
			|||
    dozadu: function () {       | 
				
			|||
      this.index -= 1; | 
				
			|||
      if (this.index < 0) { | 
				
			|||
        this.index = this.images.length - 1; | 
				
			|||
      } | 
				
			|||
    }, | 
				
			|||
    dopredu: function () { | 
				
			|||
      this.index += 1; | 
				
			|||
      if (this.index > this.images.length - 1) { | 
				
			|||
        this.index = 0; | 
				
			|||
      } | 
				
			|||
    }, | 
				
			|||
  }, | 
				
			|||
     | 
				
			|||
} | 
				
			|||
</script> | 
				
			|||
 | 
				
			|||
<style> | 
				
			|||
img { | 
				
			|||
  width: 60%; | 
				
			|||
  display: block; | 
				
			|||
  margin: 0px auto; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
span{ | 
				
			|||
  font-family: 'Courier New', Courier, monospace; | 
				
			|||
} | 
				
			|||
button{ | 
				
			|||
  background-color: rgb(86, 166, 219); | 
				
			|||
  width: 20%; | 
				
			|||
  height: 30px; | 
				
			|||
  display: block; | 
				
			|||
  margin: 0px auto; | 
				
			|||
   | 
				
			|||
   | 
				
			|||
} | 
				
			|||
#app{ | 
				
			|||
  margin: 0 auto; | 
				
			|||
  width: 50%; | 
				
			|||
  background-color: chocolate; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
h1{ | 
				
			|||
  text-align: center; | 
				
			|||
} | 
				
			|||
@media (max-width: 500px) { | 
				
			|||
   img { | 
				
			|||
  width: 100%; | 
				
			|||
  display: block; | 
				
			|||
  margin: 0px auto; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
span{ | 
				
			|||
  font-family: 'Courier New', Courier, monospace; | 
				
			|||
} | 
				
			|||
button{ | 
				
			|||
  background-color: rgb(86, 166, 219); | 
				
			|||
  width: 50%; | 
				
			|||
  height: 30px; | 
				
			|||
  display: block; | 
				
			|||
  margin: 0px auto; | 
				
			|||
   | 
				
			|||
   | 
				
			|||
} | 
				
			|||
#app{ | 
				
			|||
  margin: 0 auto; | 
				
			|||
  width: 50%; | 
				
			|||
  background-color: chocolate; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
h1{ | 
				
			|||
  text-align: center; | 
				
			|||
} | 
				
			|||
     | 
				
			|||
} | 
				
			|||
 | 
				
			|||
 | 
				
			|||
</style> | 
				
			|||
 | 
				
			|||
					Loading…
					
					
				
		Reference in new issue