index.html 1.92 KB
<!DOCTYPE html>
<html lang="en-us">

<head>
  <meta charset="utf-8">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>自助报警系统</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      background-image: url('assets/image/bg.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .content-wrapper {
      display: flex;
      align-items: center;
      gap: 40px;
      position: relative;
    }

    .container {
      background-color: rgba(255, 255, 255, 0.85);
      padding: 30px;
      border-radius: 15px;
      width: 500px;
      height: 400px;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .image-container {
      width: 320px;
      height: 672px;
      border-radius: 15px;
      overflow: hidden;
      position: absolute;
      left: -320px;
      top: 50%;
      transform: translateY(-50%);
    }

    .image-container img {
      width: 100%;
    }

    h1 {
      color: #2175df;
      margin-bottom: 30px;
      font-size: 48px;
    }

    .alarm-btn {
      background-color: #2175df;
      color: white;
      border: none;
      padding: 25px 30px;
      font-size: 32px;
      cursor: pointer;
      margin-top: 20px;
      transition: all 0.3s;
    }

    .alarm-btn:hover {
      transform: scale(1.05);
    }
  </style>
</head>

<body>
  <div class="content-wrapper">
    <div class="container">
      <h1>自助报警系统</h1>
      <button class="alarm-btn" onclick="window.location.href='chat.html'">我要报案</button>
      <div class="image-container">
        <img src="assets/image/output.webp" alt="示例图片">
      </div>
    </div>
  </div>
</body>

</html>