mirror of
https://github.com/shadoll/mebli.git
synced 2025-12-20 05:28:51 +00:00
63 lines
1.9 KiB
HTML
63 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>meb.li</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
html, body { height: 100%; font-family: Arial, sans-serif; }
|
|
.slider {
|
|
display: grid;
|
|
grid-template-rows: 1fr auto;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
.slides {
|
|
position: relative;
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.slide {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-size: cover;
|
|
background-position: center;
|
|
opacity: 0;
|
|
transition: opacity 1s ease-in-out;
|
|
}
|
|
.slide.active { opacity: 1; }
|
|
.footer {
|
|
text-align: center;
|
|
padding: 10px;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
color: white;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="slider">
|
|
<div class="slides">
|
|
<div class="slide active" style="background-image: url('wall1.jpg');"></div>
|
|
<div class="slide" style="background-image: url('wall2.jpg');"></div>
|
|
<div class="slide" style="background-image: url('wall3.jpg');"></div>
|
|
<div class="slide" style="background-image: url('wall4.jpg');"></div>
|
|
</div>
|
|
<div class="footer">© 2025 <a href="email:headway-appeals-3z@icloud.com">sHa</a></div>
|
|
</div>
|
|
<script>
|
|
let index = 0;
|
|
const slides = document.querySelectorAll('.slide');
|
|
|
|
function nextSlide() {
|
|
slides[index].classList.remove('active');
|
|
index = (index + 1) % slides.length;
|
|
slides[index].classList.add('active');
|
|
}
|
|
setInterval(nextSlide, 3000);
|
|
</script>
|
|
</body>
|
|
</html>
|