use bs5; use crossfade carousel
This commit is contained in:
63
gallery.html
63
gallery.html
@@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Galerie Dieter oder so</title>
|
<title>Galerie Dieter</title>
|
||||||
|
|
||||||
<!-- vue -->
|
<!-- vue -->
|
||||||
<!--dev-->
|
<!--dev-->
|
||||||
@@ -10,13 +10,12 @@
|
|||||||
<!--script src="https://cdn.jsdelivr.net/npm/vue@2"></script-->
|
<!--script src="https://cdn.jsdelivr.net/npm/vue@2"></script-->
|
||||||
|
|
||||||
<!-- bootstrap -->
|
<!-- bootstrap -->
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" 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://code.jquery.com/jquery-3.6.1.slim.min.js" integrity="sha256-w8CvhFs7iHNVUtnSP0YKEg00p9Ih13rlL9zGqvLdePA=" 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/@popperjs/core@2.11.6/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" 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>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
|
||||||
<!-- fa icons -->
|
|
||||||
<link href="fontawesome-free-6.0.0-web/css/all.min.css" rel="stylesheet">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh">
|
<body style="width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh">
|
||||||
@@ -25,20 +24,24 @@
|
|||||||
<!-- gallery-component -->
|
<!-- gallery-component -->
|
||||||
<script id="gallery-component" type="text/x-template">
|
<script id="gallery-component" type="text/x-template">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div id="carouselExampleControls" class="carousel slide h-100 w-100" data-ride="carousel">
|
<div id="carouselExampleFade" class="carousel slide carousel-fade w-100 h-100" data-bs-ride="carousel">
|
||||||
<div class="carousel-inner h-100 w-100 d-flex flex-column">
|
<div class="carousel-indicators">
|
||||||
<div v-for="item in items" ref="carouselitem" class="carousel-item h-100 w-100 m-auto">
|
<button v-for="(item, index) in items" type="button" data-bs-target="#carouselExampleFade" :data-bs-slide-to="index"
|
||||||
<img class="d-block h-100 w-100" style="object-fit: scale-down" :src="item" :alt="item">
|
:class="{'active': index === 0}" :aria-current="index === 0" :aria-label="'Slide ' + index"></button>
|
||||||
|
</div>
|
||||||
|
<div class="carousel-inner w-100 h-100">
|
||||||
|
<div v-for="(item, index) in items" class="carousel-item w-100 h-100" :class="{'active':index===0}">
|
||||||
|
<img :src="item" class="d-block w-100 h-100" style="object-fit: scale-down" :alt="item">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev"><!-- style="color: #ff00ff" -->
|
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleFade" data-bs-slide="prev">
|
||||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||||
<span class="sr-only">Previous</span>
|
<span class="visually-hidden">Previous</span>
|
||||||
</a>
|
</button>
|
||||||
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
|
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleFade" data-bs-slide="next">
|
||||||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||||
<span class="sr-only">Next</span>
|
<span class="visually-hidden">Next</span>
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
@@ -48,18 +51,12 @@
|
|||||||
data: () => {
|
data: () => {
|
||||||
return {
|
return {
|
||||||
items: [
|
items: [
|
||||||
'https://blog.hootsuite.com/wp-content/uploads/2020/02/Image-copyright.png.webp',
|
'1.jpg',
|
||||||
'https://www.google.com/logos/doodles/2022/seasonal-holidays-2022-6753651837109831.4-s.png',
|
'2.jpg',
|
||||||
'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg',
|
'3.jpg',
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted: function () {
|
|
||||||
//set first carousel item .active
|
|
||||||
if (this.$refs.carouselitem) {
|
|
||||||
this.$refs.carouselitem[0].classList.add("active");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -68,7 +65,7 @@
|
|||||||
<div class="w-100 h-100 d-flex flex-column text-center">
|
<div class="w-100 h-100 d-flex flex-column text-center">
|
||||||
<!-- header -->
|
<!-- header -->
|
||||||
<div>
|
<div>
|
||||||
Galerie Dieter oder so
|
<h1>Galerie Dieter</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- gallery -->
|
<!-- gallery -->
|
||||||
@@ -76,7 +73,12 @@
|
|||||||
|
|
||||||
<!-- footer -->
|
<!-- footer -->
|
||||||
<div>
|
<div>
|
||||||
adresse oder so
|
<p>
|
||||||
|
GALERIE DIETER<br>
|
||||||
|
PFARRGASSE 18<br>
|
||||||
|
74354 BESIGHEIM<br>
|
||||||
|
TEL 07143/34293 FAX 07143/31130
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
@@ -85,11 +87,6 @@
|
|||||||
template: '#main-component',
|
template: '#main-component',
|
||||||
data: () => {
|
data: () => {
|
||||||
return {
|
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',
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user