Spaces:
Running
Running
Add 2 files
Browse files- index.html +152 -15
- prompts.txt +2 -1
index.html
CHANGED
|
@@ -92,6 +92,60 @@
|
|
| 92 |
opacity: 0;
|
| 93 |
}
|
| 94 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
</style>
|
| 96 |
</head>
|
| 97 |
<body>
|
|
@@ -124,21 +178,44 @@
|
|
| 124 |
</div>
|
| 125 |
</nav>
|
| 126 |
|
| 127 |
-
<!-- 封面 -->
|
| 128 |
-
<header class="relative h-screen
|
| 129 |
-
<div class="
|
| 130 |
-
|
| 131 |
-
<div class="
|
| 132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
</div>
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
<
|
| 137 |
-
|
| 138 |
-
<
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
</div>
|
| 143 |
</div>
|
| 144 |
</header>
|
|
@@ -336,7 +413,7 @@
|
|
| 336 |
<div class="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition">
|
| 337 |
<div class="flex items-center mb-2">
|
| 338 |
<span class="text-rose-600 font-bold text-lg">2024.05.20</span>
|
| 339 |
-
|
| 340 |
</div>
|
| 341 |
<h3 class="text-xl font-semibold text-gray-800 mb-2">第一个520</h3>
|
| 342 |
<p class="text-gray-600">这是我们在一起的第一个520,我制作了这个相册,记录我们的点点滴滴。未来的每一天,我都想和你一起度过。</p>
|
|
@@ -563,6 +640,66 @@
|
|
| 563 |
}
|
| 564 |
});
|
| 565 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 566 |
</script>
|
| 567 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=NJU-Jet/time-album" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 568 |
</html>
|
|
|
|
| 92 |
opacity: 0;
|
| 93 |
}
|
| 94 |
}
|
| 95 |
+
|
| 96 |
+
/* 新增的轮播样式 */
|
| 97 |
+
.carousel-container {
|
| 98 |
+
position: relative;
|
| 99 |
+
width: 100%;
|
| 100 |
+
height: 100%;
|
| 101 |
+
overflow: hidden;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
.carousel-slide {
|
| 105 |
+
position: absolute;
|
| 106 |
+
top: 0;
|
| 107 |
+
left: 0;
|
| 108 |
+
width: 100%;
|
| 109 |
+
height: 100%;
|
| 110 |
+
opacity: 0;
|
| 111 |
+
transition: opacity 1.5s ease-in-out;
|
| 112 |
+
background-size: cover;
|
| 113 |
+
background-position: center;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
.carousel-slide.active {
|
| 117 |
+
opacity: 0.3;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
.carousel-content {
|
| 121 |
+
position: relative;
|
| 122 |
+
z-index: 10;
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
.carousel-indicators {
|
| 126 |
+
position: absolute;
|
| 127 |
+
bottom: 20px;
|
| 128 |
+
left: 0;
|
| 129 |
+
right: 0;
|
| 130 |
+
display: flex;
|
| 131 |
+
justify-content: center;
|
| 132 |
+
gap: 10px;
|
| 133 |
+
z-index: 20;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
.carousel-indicator {
|
| 137 |
+
width: 12px;
|
| 138 |
+
height: 12px;
|
| 139 |
+
border-radius: 50%;
|
| 140 |
+
background-color: rgba(255, 255, 255, 0.5);
|
| 141 |
+
cursor: pointer;
|
| 142 |
+
transition: all 0.3s ease;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.carousel-indicator.active {
|
| 146 |
+
background-color: #fff;
|
| 147 |
+
transform: scale(1.2);
|
| 148 |
+
}
|
| 149 |
</style>
|
| 150 |
</head>
|
| 151 |
<body>
|
|
|
|
| 178 |
</div>
|
| 179 |
</nav>
|
| 180 |
|
| 181 |
+
<!-- 封面 - 新增轮播功能 -->
|
| 182 |
+
<header class="relative h-screen overflow-hidden">
|
| 183 |
+
<div class="carousel-container">
|
| 184 |
+
<!-- 轮播图片1 -->
|
| 185 |
+
<div class="carousel-slide" style="background-image: url('https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1350&q=80')"></div>
|
| 186 |
+
|
| 187 |
+
<!-- 轮播图片2 -->
|
| 188 |
+
<div class="carousel-slide" style="background-image: url('https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1350&q=80')"></div>
|
| 189 |
+
|
| 190 |
+
<!-- 轮播图片3 -->
|
| 191 |
+
<div class="carousel-slide" style="background-image: url('https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1350&q=80')"></div>
|
| 192 |
+
|
| 193 |
+
<!-- 轮播图片4 -->
|
| 194 |
+
<div class="carousel-slide" style="background-image: url('https://images.unsplash.com/photo-1531427186611-ecfd6d936c79?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D3D&auto=format&fit=crop&w=1350&q=80')"></div>
|
| 195 |
+
|
| 196 |
+
<!-- 轮播图片5 -->
|
| 197 |
+
<div class="carousel-slide" style="background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1350&q=80')"></div>
|
| 198 |
+
|
| 199 |
+
<!-- 轮播指示器 -->
|
| 200 |
+
<div class="carousel-indicators" id="carousel-indicators"></div>
|
| 201 |
</div>
|
| 202 |
+
|
| 203 |
+
<div class="absolute inset-0 bg-gradient-to-br from-rose-100/70 to-pink-200/70">
|
| 204 |
+
<div class="absolute inset-0 opacity-20">
|
| 205 |
+
<div class="absolute top-1/4 left-1/4 w-32 h-32 rounded-full bg-pink-300 blur-xl"></div>
|
| 206 |
+
<div class="absolute top-1/3 right-1/4 w-40 h-40 rounded-full bg-rose-300 blur-xl"></div>
|
| 207 |
+
<div class="absolute bottom-1/4 right-1/3 w-28 h-28 rounded-full bg-red-300 blur-xl"></div>
|
| 208 |
+
</div>
|
| 209 |
+
|
| 210 |
+
<div class="carousel-content text-center h-full flex flex-col items-center justify-center px-4">
|
| 211 |
+
<h1 class="text-4xl md:text-6xl font-bold text-rose-700 mb-4 title-font">520快乐,我的爱人</h1>
|
| 212 |
+
<p class="text-xl md:text-2xl text-rose-800 mb-8">记录我们美好的每一刻</p>
|
| 213 |
+
<div class="animate-bounce">
|
| 214 |
+
<a href="#photos" class="bg-rose-600 hover:bg-rose-700 text-white px-6 py-3 rounded-full shadow-lg transition flex items-center justify-center space-x-2 mx-auto w-max">
|
| 215 |
+
<span>开始回忆</span>
|
| 216 |
+
<i class="fas fa-arrow-down"></i>
|
| 217 |
+
</a>
|
| 218 |
+
</div>
|
| 219 |
</div>
|
| 220 |
</div>
|
| 221 |
</header>
|
|
|
|
| 413 |
<div class="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition">
|
| 414 |
<div class="flex items-center mb-2">
|
| 415 |
<span class="text-rose-600 font-bold text-lg">2024.05.20</span>
|
| 416 |
+
<span class="ml-4 px-2 py-1 bg-rose-100 text-rose-800 rounded-full text-xs">520</span>
|
| 417 |
</div>
|
| 418 |
<h3 class="text-xl font-semibold text-gray-800 mb-2">第一个520</h3>
|
| 419 |
<p class="text-gray-600">这是我们在一起的第一个520,我制作了这个相册,记录我们的点点滴滴。未来的每一天,我都想和你一起度过。</p>
|
|
|
|
| 640 |
}
|
| 641 |
});
|
| 642 |
});
|
| 643 |
+
|
| 644 |
+
// 新增的轮播功能
|
| 645 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 646 |
+
const slides = document.querySelectorAll('.carousel-slide');
|
| 647 |
+
const indicatorsContainer = document.getElementById('carousel-indicators');
|
| 648 |
+
let currentSlide = 0;
|
| 649 |
+
|
| 650 |
+
// 创建指示器
|
| 651 |
+
slides.forEach((slide, index) => {
|
| 652 |
+
const indicator = document.createElement('div');
|
| 653 |
+
indicator.className = 'carousel-indicator';
|
| 654 |
+
if (index === 0) indicator.classList.add('active');
|
| 655 |
+
indicator.addEventListener('click', () => {
|
| 656 |
+
goToSlide(index);
|
| 657 |
+
});
|
| 658 |
+
indicatorsContainer.appendChild(indicator);
|
| 659 |
+
});
|
| 660 |
+
|
| 661 |
+
const indicators = document.querySelectorAll('.carousel-indicator');
|
| 662 |
+
|
| 663 |
+
// 初始化第一张幻灯片
|
| 664 |
+
slides[0].classList.add('active');
|
| 665 |
+
|
| 666 |
+
// 自动轮播
|
| 667 |
+
const slideInterval = setInterval(nextSlide, 5000);
|
| 668 |
+
|
| 669 |
+
function nextSlide() {
|
| 670 |
+
slides[currentSlide].classList.remove('active');
|
| 671 |
+
indicators[currentSlide].classList.remove('active');
|
| 672 |
+
|
| 673 |
+
currentSlide = (currentSlide + 1) % slides.length;
|
| 674 |
+
|
| 675 |
+
slides[currentSlide].classList.add('active');
|
| 676 |
+
indicators[currentSlide].classList.add('active');
|
| 677 |
+
}
|
| 678 |
+
|
| 679 |
+
function goToSlide(index) {
|
| 680 |
+
slides[currentSlide].classList.remove('active');
|
| 681 |
+
indicators[currentSlide].classList.remove('active');
|
| 682 |
+
|
| 683 |
+
currentSlide = index;
|
| 684 |
+
|
| 685 |
+
slides[currentSlide].classList.add('active');
|
| 686 |
+
indicators[currentSlide].classList.add('active');
|
| 687 |
+
|
| 688 |
+
// 重置自动轮播计时器
|
| 689 |
+
clearInterval(slideInterval);
|
| 690 |
+
setInterval(nextSlide, 5000);
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
// 鼠标悬停暂停轮播
|
| 694 |
+
const carousel = document.querySelector('.carousel-container');
|
| 695 |
+
carousel.addEventListener('mouseenter', () => {
|
| 696 |
+
clearInterval(slideInterval);
|
| 697 |
+
});
|
| 698 |
+
|
| 699 |
+
carousel.addEventListener('mouseleave', () => {
|
| 700 |
+
setInterval(nextSlide, 5000);
|
| 701 |
+
});
|
| 702 |
+
});
|
| 703 |
</script>
|
| 704 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=NJU-Jet/time-album" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 705 |
</html>
|
prompts.txt
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
-
马上要到520了,我想给我女朋友做一个时光相册
|
|
|
|
|
|
| 1 |
+
马上要到520了,我想给我女朋友做一个时光相册
|
| 2 |
+
我想加一个功能,主界面在匀速滑动显示照片
|