forked from jremo25/Brazils3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (177 loc) · 5.6 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html>
<head>
<title>Passport Bro's Gallery</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Montserrat', sans-serif;
margin: 0;
padding: 0;
transition: background-color 2s; /* Smooth transition for background color change */
color: #333;
}
.slider {
width: 100%;
margin: auto;
overflow: hidden;
}
.slides {
display: flex;
transition: transform 2s ease;
}
.slides img {
width: auto;
max-height: 550px;
object-fit: cover;
}
.slide-arrow {
cursor: pointer;
position: absolute;
top: 150%;
transform: translateY(-50%);
padding: 10px;
color: white;
font-weight: bold;
font-size: 18px;
background-color: rgba(0, 0, 0, 0.5);
border: none;
z-index: 100;
}
.prev-arrow {
left: 10px;
}
.next-arrow {
right: 10px;
}
.hero {
text-align: left;
background: url('pic.png') no-repeat center center;
background-size: cover;
padding: 230px 20px;
}
.hero h1 {
color: #ddd;
font-size: 2.5em;
margin-bottom: 0.5em;
}
.hero h1, .hero h2 {
padding-left: 5px;
position: relative;
top: 95px;
color: #ddd;
}
.hero h2 {
color: #ddd;
font-size: 1.2em;
}
.main {
margin: 35px ;
padding: 51px;
text-align: center;
}
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.gallery img {
max-width: 100%;
height: auto;
padding: 10px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.gallery img:hover {
transform: scale(1.1);
box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
z-index: 10;
}
.video {
margin: 40px 0;
}
iframe {
width: 80%;
height: 300px;
}
.footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px 0;
font-weight: 300;
}
@media screen and (max-width: 600px) {
iframe { width: 100%; }
}
</style>
</head>
<body>
<div class="hero">
<h1>Passport Bro's</h1>
<h2>Brasileira Beleza</h2>
</div>
<div class="main">
<div class="slider">
<div class="slides">
<img src="pic1.png" alt="Photo 1">
<img src="pic2.png" alt="Photo 2">
<img src="pic3.png" alt="Photo 3">
<img src="pic4.png" alt="Photo 4">
<img src="pic5.png" alt="Photo 5">
<img src="pic6.png" alt="Photo 6">
<img src="pic7.png" alt="Photo 7">
<img src="pic8.png" alt="Photo 8">
<img src="pic9.png" alt="Photo 9">
<img src="pic10.png" alt="Photo 10">
<img src="pic11.png" alt="Photo 11">
<img src="pic12.png" alt="Photo 12">
<img src="pic13.png" alt="Photo 13">
<img src="pic14.png" alt="Photo 14">
</div>
<button class="slide-arrow prev-arrow">❮</button>
<button class="slide-arrow next-arrow">❯</button>
</div>
<div class="video">
<iframe src="https://www.youtube.com/embed/ocjaskWvcTM" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div class="footer">
<p>Powered by Revan</p>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
var slides = document.querySelector('.slides');
var slideIndex = 0;
var totalSlides = slides.children.length;
document.querySelector('.next-arrow').addEventListener('click', function() {
nextSlide();
});
document.querySelector('.prev-arrow').addEventListener('click', function() {
prevSlide();
});
function nextSlide() {
slideIndex = (slideIndex + 1) % totalSlides;
slides.style.transform = 'translateX(' + (-slideIndex * 100) + '%)';
}
function prevSlide() {
slideIndex = (slideIndex - 1 + totalSlides) % totalSlides;
slides.style.transform = 'translateX(' + (-slideIndex * 100) + '%)';
}
// Initialize background color change
function changeBackgroundColor() {
var red = Math.floor(Math.random() * 256);
var green = Math.floor(Math.random() * 256);
var blue = Math.floor(Math.random() * 256);
var bgColor = "rgb(" + red + "," + green + "," + blue + ")";
document.body.style.backgroundColor = bgColor;
}
// Change background color every 3 seconds
setInterval(changeBackgroundColor, 3000);
});
</script>
</body>
</html>