Skip to content

一分钟搭建影视站,支持Docker等部署方式

优化首页按钮样式,调整搜索框布局,增强用户体验

developer8c3fd6c61f2a
diff --git a/index.html b/index.html
index a110593..cb39dfc 100644
--- a/index.html
+++ b/index.html
@@ -203,21 +203,18 @@
<h2 class="text-3xl font-bold gradient-text mb-8">视频搜索</h2>
<div class="w-full max-w-2xl">
<div class="flex items-center mb-3">
-
- <button onclick="resetToHome()" class="mr-2 bg-[#222] hover:bg-[#333] text-gray-300 hover:text-white border border-[#333] rounded-lg px-3 py-2 transition-colors flex items-center gap-1" aria-label="返回首页" title="返回首页">
- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
- </svg>
- <span class="hidden sm:inline">首页</span>
- </button>
- <div class="flex flex-1">
- <input type="text"
- id="searchInput"
- class="w-full bg-[#111] border border-[#333] text-white px-6 py-4 rounded-l-lg focus:outline-none focus:border-white transition-colors"
+ <div class="flex w-full max-w-2xl">
+ <button onclick="resetToHome()"
+ class="px-4 py-4 bg-white text-black font-medium hover:bg-gray-200 transition-colors border border-gray-300 rounded-l-lg"
+ aria-label="返回首页" title="返回首页">
+ <!-- ...existing SVG icon... -->
+ </button>
+ <input type="text" id="searchInput"
+ class="flex-1 bg-[#111] border-t border-b border-gray-300 text-white px-6 py-4 focus:outline-none focus:border-white transition-colors"
placeholder="搜索你喜欢的视频..."
aria-label="视频搜索框">
- <button onclick="search()"
- class="px-8 py-4 bg-white text-black font-medium rounded-r-lg hover:bg-gray-200 transition-colors"
+ <button onclick="search()"
+ class="px-8 py-4 bg-white text-black font-medium hover:bg-gray-200 transition-colors border border-gray-300 rounded-r-lg"
aria-label="搜索按钮">
搜索
</button>