-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (111 loc) · 3.11 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-15BE3046RV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-15BE3046RV');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>bartokstudio</title>
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<link rel="stylesheet" href="styles/styles.css">
<script defer src="scripts/main.js"></script>
<script defer src="scripts/fade.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
// Initialize Swiper
var swiper = new Swiper('.swiper-container', {
slidesPerView: 'auto',
spaceBetween: 0,
scrollbar: {
el: '.swiper-scrollbar',
hide: true,
},
mousewheel: false,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
loop: true, // Enable looping
autoplay: {
delay: 5000, // Autoplay every 5 seconds
disableOnInteraction: false, // Keep autoplaying even when user interacts with swiper
},
});
// Make images fullscreen
var swiperImages = document.querySelectorAll('.swiper-slide img');
swiperImages.forEach(function (image) {
image.style.objectFit = 'cover';
image.style.height = '100vh';
});
});
</script>
<style>
.navbar-container-main {
height: 0;
}
a:hover{
cursor: pointer
}
.swiper-container {
z-index: -1;
width: 100%;
top: 0 !important;
padding: none !important;
}
.swiper-slide img {
width: 100%;
height: auto;
object-fit: cover;
}
/* For smaller screens (mobile phones) */
@media screen and (max-width: 767px) {
.swiper-slide img {
height: 100vh,
}
.swiper-container {
height: 100vh;
}
}
.swiper-button-next,
.swiper-button-prev {
color: #333;
display: none;
}
/* Hide swiper scrollbar */
.swiper-scrollbar {
display: none;
}
/* Hide horizontal overflow */
body {
overflow: hidden;
}
.navbar a {
color: white;
}
.circle-text text {
fill: white;
}
</style>
</head>
<body>
<div class="navbar-container-main"></div>
<div class="swiper-container">
<div class="swiper-wrapper">
<!-- Insert images here -->
<div class="swiper-slide"><img src="assets/img/slide-1.png" alt="Image 1"></div>
<div class="swiper-slide"><img src="assets/img/slide-2.png" alt="Image 2"></div>
<div class="swiper-slide"><img src="assets/img/bg-3.png" alt="Image 3"></div>
</div>
<div class="swiper-scrollbar"></div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
</body>
</html>