index.html
1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!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>