index.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>自定义起始页</title>
  7. <style>
  8. body {
  9. margin: 0;
  10. padding: 0;
  11. background-image: url('https://bing.img.run/uhd.php');
  12. background-size: cover;
  13. background-repeat: no-repeat;
  14. background-attachment: fixed;
  15. font-family: Arial, sans-serif;
  16. }
  17. .header {
  18. background-color: rgba(255, 255, 255, 0.8);
  19. padding: 10px 20px;
  20. display: flex;
  21. justify-content: space-between;
  22. align-items: center;
  23. position: relative;
  24. }
  25. .logo {
  26. width: auto;
  27. height: auto;
  28. }
  29. .nav-item {
  30. margin-left: 20px;
  31. color: #333;
  32. text-decoration: none;
  33. font-size: 16px;
  34. }
  35. .search-container {
  36. display: flex;
  37. justify-content: center;
  38. align-items: center;
  39. margin-top: 50px;
  40. }
  41. .search-input {
  42. width: 60%;
  43. padding: 10px;
  44. font-size: 16px;
  45. }
  46. .search-button {
  47. padding: 10px 20px;
  48. font-size: 16px;
  49. cursor: pointer;
  50. }
  51. </style>
  52. </head>
  53. <body>
  54. <div class="header">
  55. <img src="https://www.lykns.com.cn/wp-content/uploads/2025/01/pinwheel_48px.png" alt="Logo" class="logo">
  56. <div>
  57. <a href="https://www.lykns.com.cn" class="nav-item">LYKNS 主站</a>
  58. <a href="https://its.lykns.com.cn" class="nav-item">云服务</a>
  59. <a href="https://dev.lykns.com.cn" class="nav-item">Git 服务</a>
  60. <a href="https://survey.lykns.com.cn" class="nav-item">问卷考试系统</a>
  61. </div>
  62. </div>
  63. <div class="search-container">
  64. <input type="text" id="search-input" class="search-input" placeholder="搜索...">
  65. <button onclick="search()" class="search-button">搜索</button>
  66. </div>
  67. <script>
  68. function search() {
  69. var query = document.getElementById('search-input').value;
  70. window.location.href = 'https://cn.bing.com/search?q=' + encodeURIComponent(query);
  71. }
  72. </script>
  73. </body>
  74. </html>