Files
galerie/gallery.html
2022-12-08 18:02:07 +01:00

110 lines
4.1 KiB
HTML

<html>
<head>
<title>Galerie Dieter oder so</title>
<!-- vue -->
<!--dev-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!--prod-->
<!--script src="https://cdn.jsdelivr.net/npm/vue@2"></script-->
<!-- bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<!-- fa icons -->
<link href="fontawesome-free-6.0.0-web/css/all.min.css" rel="stylesheet">
</head>
<body style="width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh">
<!-- templates -->
<div>
<!-- gallery-component -->
<script id="gallery-component" type="text/x-template">
<div class="container">
<div id="carouselExampleControls" class="carousel slide h-100 w-100" data-ride="carousel">
<div class="carousel-inner h-100 w-100 d-flex flex-column">
<div v-for="item in items" ref="carouselitem" class="carousel-item h-100 w-100 m-auto">
<img class="d-block h-100 w-100" style="object-fit: scale-down" :src="item" :alt="item">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev"><!-- style="color: #ff00ff" -->
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</script>
<script>
Vue.component('gallery-component', {
template: '#gallery-component',
data: () => {
return {
items: [
'https://blog.hootsuite.com/wp-content/uploads/2020/02/Image-copyright.png.webp',
'https://www.google.com/logos/doodles/2022/seasonal-holidays-2022-6753651837109831.4-s.png',
'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg',
],
};
},
mounted: function () {
//set first carousel item .active
if (this.$refs.carouselitem) {
this.$refs.carouselitem[0].classList.add("active");
}
}
});
</script>
<!-- main-component -->
<script id="main-component" type="text/x-template">
<div class="w-100 h-100 d-flex flex-column text-center">
<!-- header -->
<div>
Galerie Dieter oder so
</div>
<!-- gallery -->
<gallery-component class="h-100" style="min-height: 0"/>
<!-- footer -->
<div>
adresse oder so
</div>
</div>
</script>
<script>
Vue.component('main-component', {
template: '#main-component',
data: () => {
return {
items: [
'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg',
'https://blog.hootsuite.com/wp-content/uploads/2020/02/Image-copyright.png.webp',
'https://www.google.com/logos/doodles/2022/seasonal-holidays-2022-6753651837109831.4-s.png',
],
};
},
});
</script>
</div>
<!-- app -->
<div id="app" class="w-100 h-100">
<main-component></main-component>
</div>
<script>
var app = new Vue({
el: '#app',
});
</script>
</body>
</html>