Download index.html from maomaobj/lab7: direct link, hf CLI and curl.
- Browser
- Download file 26.3 kB
-
https://huggingface.co/spaces/maomaobj/lab7/resolve/main/index.html
- Command line
-
hf download hf://spaces/maomaobj/lab7/index.html
-
curl -L -o index.html https://huggingface.co/spaces/maomaobj/lab7/resolve/main/index.html
26.3 kB
| <html lang="zh-CN"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>实验场地管理子系统 - 实验室管理系统</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 50: '#eef5ff', | |
| 100: '#dae8ff', | |
| 500: '#1a73e8', | |
| 600: '#0d61d9' | |
| }, | |
| darkblue: '#0b3d6f', | |
| status: { | |
| active: '#10b981', | |
| free: '#9ca3af', | |
| maintenance: '#ef4444', | |
| disabled: '#1f2937' | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| .dashboard { | |
| transition: all 0.3s ease; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| .status-dot { | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| display: inline-block; | |
| margin-right: 6px; | |
| } | |
| .nav-link:hover { | |
| background-color: #edf2f7; | |
| } | |
| .layout-grid { | |
| display: grid; | |
| grid-template-columns: 240px 1fr; | |
| grid-template-rows: 64px 1fr; | |
| height: 100vh; | |
| } | |
| .status-tag { | |
| padding: 3px 8px; | |
| border-radius: 12px; | |
| font-size: 12px; | |
| font-weight: 500; | |
| } | |
| .card-shadow { | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); | |
| } | |
| @media (max-width: 1024px) { | |
| .layout-grid { | |
| grid-template-columns: 180px 1fr; | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| .layout-grid { | |
| grid-template-columns: 70px 1fr; | |
| } | |
| .main-title { | |
| font-size: 1rem; | |
| } | |
| .mobile-hidden { | |
| display: none; | |
| } | |
| .card-grid { | |
| grid-template-columns: repeat(2, minmax(0, 1fr)) ; | |
| } | |
| } | |
| @media (max-width: 640px) { | |
| .filter-section { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| } | |
| .card-grid { | |
| grid-template-columns: 1fr ; | |
| } | |
| .action-buttons { | |
| flex-direction: column; | |
| gap: 8px; | |
| align-items: flex-end; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 text-gray-800 antialiased font-sans"> | |
| <div class="layout-grid"> | |
| <!-- 顶部页头 --> | |
| <header class="bg-darkblue col-span-2 flex items-center justify-between px-6 py-3"> | |
| <div class="flex items-center space-x-4"> | |
| <div class="text-white font-bold text-xl flex items-center"> | |
| <i class="fas fa-flask mr-3 text-blue-300"></i> | |
| 实验室管理系统 | |
| </div> | |
| <div class="h-6 w-px bg-blue-400"></div> | |
| <div class="text-blue-100 font-semibold text-lg"> | |
| <i class="fas fa-map-marker-alt mr-2"></i> | |
| 实验场地管理子系统 | |
| </div> | |
| </div> | |
| <div class="relative"> | |
| <button class="flex items-center focus:outline-none" id="user-menu-button"> | |
| <div class="h-9 w-9 rounded-full bg-blue-200 flex items-center justify-center text-blue-800 font-bold shadow-inner"> | |
| A | |
| </div> | |
| <span class="text-white ml-3 font-medium">admin</span> | |
| <i class="fas fa-chevron-down text-blue-200 ml-2 text-xs"></i> | |
| </button> | |
| <div class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10" id="user-menu"> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"> | |
| <i class="fas fa-user mr-2 text-gray-500"></i>个人中心 | |
| </a> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"> | |
| <i class="fas fa-cog mr-2 text-gray-500"></i>系统设置 | |
| </a> | |
| <div class="border-t my-1"></div> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"> | |
| <i class="fas fa-sign-out-alt mr-2 text-red-500"></i>退出登录 | |
| </a> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- 左侧导航栏 --> | |
| <nav class="bg-gray-100 col-start-1 row-start-2 px-4 py-6"> | |
| <div class="space-y-1 mb-8"> | |
| <div class="px-4 py-1 text-xs font-medium text-gray-500 uppercase tracking-wider mobile-hidden">实验管理系统</div> | |
| <a href="#" class="nav-link block px-4 py-3 text-gray-600 rounded-lg hover:text-blue-600"> | |
| <i class="far fa-calendar-alt mr-3 text-gray-500 text-base"></i> | |
| <span class="mobile-hidden">实验计划管理</span> | |
| </a> | |
| <a href="#" class="nav-link block px-4 py-3 text-gray-600 rounded-lg hover:text-blue-600"> | |
| <i class="fas fa-tasks mr-3 text-gray-500 text-base"></i> | |
| <span class="mobile-hidden">实验任务管理</span> | |
| </a> | |
| <a href="#" class="nav-link block px-4 py-3 text-gray-600 rounded-lg hover:text-blue-600"> | |
| <i class="fas fa-microchip mr-3 text-gray-500 text-base"></i> | |
| <span class="mobile-hidden">实验设备管理</span> | |
| </a> | |
| <a href="#" class="nav-link block px-4 py-3 bg-blue-50 text-blue-600 rounded-lg font-medium"> | |
| <i class="fas fa-map-marked-alt mr-3 text-blue-600 text-base"></i> | |
| <span class="mobile-hidden">实验场地管理</span> | |
| </a> | |
| <a href="#" class="nav-link block px-4 py-3 text-gray-600 rounded-lg hover:text-blue-600"> | |
| <i class="fas fa-cog mr-3 text-gray-500 text-base"></i> | |
| <span class="mobile-hidden">系统设置</span> | |
| </a> | |
| </div> | |
| </nav> | |
| <!-- 主内容区 --> | |
| <main class="col-start-2 row-start-2 p-5 overflow-y-auto"> | |
| <!-- 标题栏和操作按钮 --> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h1 class="main-title text-2xl font-bold text-gray-800 flex items-center"> | |
| <i class="fas fa-building mr-3 text-primary-500"></i> | |
| 实验场地资源总览 | |
| </h1> | |
| <div class="action-buttons flex items-center space-x-3"> | |
| <div class="relative"> | |
| <input type="text" placeholder="搜索场地..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary-200 focus:border-primary-200"> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| <button class="px-4 py-2 rounded-lg border border-gray-300 bg-white hover:bg-gray-50 text-gray-600 flex items-center"> | |
| <i class="fas fa-list-alt mr-2"></i>维护申请记录 | |
| </button> | |
| <button class="px-4 py-2 rounded-lg border border-gray-300 bg-white hover:bg-gray-50 text-gray-600 flex items-center"> | |
| <i class="fas fa-file-export mr-2"></i>导出场地列表 | |
| </button> | |
| <button class="px-4 py-2 rounded-lg bg-primary-500 text-white hover:bg-primary-600 flex items-center"> | |
| <i class="fas fa-plus mr-2"></i>新增实验场地 | |
| </button> | |
| </div> | |
| </div> | |
| <!-- 筛选区 --> | |
| <div class="bg-white filter-section rounded-lg shadow-sm p-5 mb-6 card-shadow flex flex-wrap gap-4"> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-medium mb-2">场地类别</label> | |
| <select class="w-48 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-200 focus:border-primary-200"> | |
| <option>全部类别</option> | |
| <option>高温室</option> | |
| <option>电磁屏蔽间</option> | |
| <option>静压舱</option> | |
| <option>风洞实验室</option> | |
| <option>恒温恒湿室</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-medium mb-2">所在区域/楼层</label> | |
| <input type="text" class="w-48 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-200 focus:border-primary-200" placeholder="如:科研楼5层"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-medium mb-2">当前状态</label> | |
| <div class="flex space-x-3"> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-primary-500 border-gray-300"> | |
| <span class="ml-2 text-gray-700">在用</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-primary-500 border-gray-300"> | |
| <span class="ml-2 text-gray-700">空闲</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-primary-500 border-gray-300"> | |
| <span class="ml-2 text-gray-700">维护中</span> | |
| </label> | |
| <label class="flex items-center"> | |
| <input type="checkbox" class="rounded text-primary-500 border-gray-300"> | |
| <span class="ml-2 text-gray-700">禁用</span> | |
| </label> | |
| </div> | |
| </div> | |
| <div class="flex items-end"> | |
| <button class="h-10 px-5 bg-primary-500 text-white rounded-md hover:bg-primary-600"> | |
| 搜索 <i class="ml-2 fas fa-search"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- 场地卡片展示区 --> | |
| <div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5 card-grid"> | |
| <!-- 卡片1 --> | |
| <div class="bg-white card-hover rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-all duration-300 card-shadow"> | |
| <div class="h-48 bg-white relative overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=500&h=300&auto=format&fit=crop" alt="高温实验室图片" class="w-full h-full object-cover"> | |
| <div class="bg-green-500 absolute top-3 right-3 px-3 py-1 status-tag text-white"> | |
| <div class="status-dot bg-white"></div> 在用 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <h3 class="font-bold text-lg flex-1 truncate mr-2">高温实验室A区</h3> | |
| <div class="w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-fire text-orange-500 text-xs"></i> | |
| </div> | |
| </div> | |
| <div class="mt-2 flex items-center text-gray-600"> | |
| <i class="fas fa-map-marker-alt mr-2 text-blue-500"></i> | |
| <span>科研楼 5层 / B5实验区</span> | |
| </div> | |
| <div class="mt-4 border rounded-lg px-3 py-2 bg-blue-50"> | |
| <div class="text-indigo-800 font-medium truncate"> | |
| <i class="fas fa-tasks mr-2"></i>TASK-EMC-78 电磁干扰测试 | |
| </div> | |
| <div class="text-xs text-gray-500 mt-1"> | |
| <i class="far fa-clock mr-2"></i>2025-07-21 09:00 至 18:00 | |
| </div> | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <button class="text-sm text-blue-500 hover:text-blue-700"> | |
| <i class="far fa-eye mr-1"></i>查看 | |
| </button> | |
| <button class="text-sm text-amber-500 hover:text-amber-700"> | |
| <i class="fas fa-tools mr-1"></i>维护 | |
| </button> | |
| <button class="text-sm text-green-500 hover:text-green-700"> | |
| <i class="far fa-edit mr-1"></i>编辑 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- 卡片2 --> | |
| <div class="bg-white card-hover rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-all duration-300 card-shadow"> | |
| <div class="h-48 bg-white relative overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1518562180175-34a163b1c930?q=80&w=500&h=300&auto=format&fit=crop" alt="恒温恒湿舱图片" class="w-full h-full object-cover"> | |
| <div class="bg-gray-500 text-white absolute top-3 right-3 px-3 py-1 status-tag"> | |
| <div class="status-dot bg-blue-100"></div> 空闲 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <h3 class="font-bold text-lg flex-1 truncate mr-2">恒温恒湿舱C1</h3> | |
| <div class="w-6 h-6 bg-green-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-temperature-low text-green-500 text-xs"></i> | |
| </div> | |
| </div> | |
| <div class="mt-2 flex items-center text-gray-600"> | |
| <i class="fas fa-map-marker-alt mr-2 text-blue-500"></i> | |
| <span>实验中心 2层 / 0204室</span> | |
| </div> | |
| <div class="mt-4 border rounded-lg px-3 py-2 border-dashed text-gray-400 text-center"> | |
| <i class="far fa-calendar mr-1"></i>当前无任务 | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <button class="text-sm text-blue-500 hover:text-blue-700"> | |
| <i class="far fa-eye mr-1"></i>查看 | |
| </button> | |
| <button class="text-sm text-amber-500 hover:text-amber-700"> | |
| <i class="fas fa-tools mr-1"></i>维护 | |
| </button> | |
| <button class="text-sm text-green-500 hover:text-green-700"> | |
| <i class="far fa-edit mr-1"></i>编辑 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- 卡片3 --> | |
| <div class="bg-white card-hover rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-all duration-300 card-shadow"> | |
| <div class="h-48 bg-white relative overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1536242918817-db5e93c7a9e3?q=80&w=500&h=300&auto=format&fit=crop" alt="电磁屏蔽室图片" class="w-full h-full object-cover"> | |
| <div class="bg-red-500 text-white absolute top-3 right-3 px-3 py-1 status-tag"> | |
| <div class="status-dot bg-yellow-200"></div> 维护中 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <h3 class="font-bold text-lg flex-1 truncate mr-2">电磁屏蔽室7号</h3> | |
| <div class="w-6 h-6 bg-purple-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-bolt text-purple-500 text-xs"></i> | |
| </div> | |
| </div> | |
| <div class="mt-2 flex items-center text-gray-600"> | |
| <i class="fas fa-map-marker-alt mr-2 text-blue-500"></i> | |
| <span>电磁大楼 B1层 / EM07室</span> | |
| </div> | |
| <div class="mt-4 border rounded-lg px-3 py-2 bg-yellow-50 border-yellow-200"> | |
| <div class="text-amber-800 font-medium"> | |
| <i class="fas fa-tools mr-2"></i>设备维护中 | |
| </div> | |
| <div class="text-xs text-gray-500 mt-1"> | |
| <i class="far fa-clock mr-2"></i>预计恢复: 2025-07-25 | |
| </div> | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <button class="text-sm text-blue-500 hover:text-blue-700"> | |
| <i class="far fa-eye mr-1"></i>查看 | |
| </button> | |
| <button class="text-sm text-green-500 hover:text-green-700"> | |
| <i class="far fa-edit mr-1"></i>编辑 | |
| </button> | |
| <button class="text-sm text-red-500 hover:text-red-700"> | |
| <i class="fas fa-ban mr-1"></i>禁用 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- 卡片4 --> | |
| <div class="bg-white card-hover rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-all duration-300 card-shadow"> | |
| <div class="h-48 bg-white relative overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1573166578296-d2e81395e6ef?q=80&w=500&h=300&auto=format&fit=crop" alt="静压舱图片" class="w-full h-full object-cover"> | |
| <div class="bg-gray-800 text-gray-200 absolute top-3 right-3 px-3 py-1 status-tag"> | |
| <div class="status-dot bg-gray-100"></div> 禁用 | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <h3 class="font-bold text-lg flex-1 truncate mr-2">静压舱D-202</h3> | |
| <div class="w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-wind text-blue-500 text-xs"></i> | |
| </div> | |
| </div> | |
| <div class="mt-2 flex items-center text-gray-600"> | |
| <i class="fas fa-map-marker-alt mr-2 text-blue-500"></i> | |
| <span>风洞实验楼 4层 / 0411室</span> | |
| </div> | |
| <div class="mt-4 border rounded-lg px-3 py-2 bg-gray-100 text-gray-400"> | |
| <i class="fas fa-lock mr-2"></i>场地已禁用 | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <button class="text-sm text-blue-500 hover:text-blue-700"> | |
| <i class="far fa-eye mr-1"></i>查看详情 | |
| </button> | |
| <button class="text-sm text-green-500 hover:text-green-700"> | |
| <i class="fas fa-power-off mr-1"></i>启用 | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- 分页器 --> | |
| <div class="mt-8 flex flex-col sm:flex-row justify-between items-center"> | |
| <div class="flex items-center mb-4 sm:mb-0"> | |
| <span class="text-gray-600">每页显示:</span> | |
| <select class="ml-2 border rounded px-3 py-1 bg-white focus:outline-none"> | |
| <option>6</option> | |
| <option selected>12</option> | |
| <option>24</option> | |
| </select> | |
| <span class="ml-4 text-gray-600">第1页 / 共12页</span> | |
| </div> | |
| <div class="flex space-x-1"> | |
| <button class="w-10 h-10 rounded flex items-center justify-center text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-chevron-left"></i> | |
| </button> | |
| <button class="w-10 h-10 rounded bg-primary-500 text-white">1</button> | |
| <button class="w-10 h-10 rounded hover:bg-gray-100">2</button> | |
| <button class="w-10 h-10 rounded hover:bg-gray-100">3</button> | |
| <span class="h-10 px-4 flex items-center">...</span> | |
| <button class="w-10 h-10 rounded hover:bg-gray-100">12</button> | |
| <button class="w-10 h-10 rounded flex items-center justify-center text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-chevron-right"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script> | |
| // 用户下拉菜单交互 | |
| document.getElementById('user-menu-button').addEventListener('click', function() { | |
| const menu = document.getElementById('user-menu'); | |
| menu.classList.toggle('hidden'); | |
| }); | |
| // 关闭菜单当点击其他区域 | |
| document.addEventListener('click', function(event) { | |
| const menu = document.getElementById('user-menu'); | |
| const button = document.getElementById('user-menu-button'); | |
| if (!menu.contains(event.target) && !button.contains(event.target)) { | |
| menu.classList.add('hidden'); | |
| } | |
| }); | |
| // 卡片交互效果 | |
| const cards = document.querySelectorAll('.card-hover'); | |
| cards.forEach(card => { | |
| card.addEventListener('mouseenter', () => { | |
| card.style.transform = 'translateY(-5px)'; | |
| card.style.boxShadow = '0 10px 25px -5px rgba(0,0,0,0.1)'; | |
| }); | |
| card.addEventListener('mouseleave', () => { | |
| card.style.transform = ''; | |
| card.style.boxShadow = ''; | |
| }); | |
| }); | |
| </script> | |
| <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=maomaobj/lab7" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |