Repository navigation
Expand file tree
/
Copy pathcontact.html
More file actions
168 lines (145 loc) · 4.48 KB
/
Copy pathcontact.html
File metadata and controls
168 lines (145 loc) · 4.48 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>联系方式</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f7f7f7;
margin: 0;
padding: 0;
}
.container {
width: 90%;
max-width: 900px;
margin: 50px auto;
padding: 30px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
}
.contact-info {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-bottom: 30px;
}
.contact-info div {
flex: 1;
min-width: 250px;
margin: 10px;
}
.contact-info h2 {
color: #007bff;
margin-bottom: 15px;
}
.contact-info p {
font-size: 1rem;
color: #555;
line-height: 1.6;
}
.social-media {
display: flex;
justify-content: center;
margin-top: 30px;
}
.social-media a {
font-size: 2rem;
margin: 0 15px;
color: #333;
text-decoration: none;
}
.social-media a:hover {
color: #007bff;
}
.contact-form input, .contact-form textarea {
width: 100%;
padding: 12px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
box-sizing: border-box;
}
.contact-form textarea {
height: 150px; /* 调整文本框高度 */
}
.contact-form input {
height: 40px; /* 调整输入框高度 */
}
.contact-form button {
background-color: #007bff;
color: white;
border: none;
padding: 12px 20px;
border-radius: 5px;
cursor: pointer;
width: 100%;
font-size: 1.1rem;
}
.contact-form button:hover {
background-color: #0056b3;
}
footer {
text-align: center;
margin-top: 40px;
color: #777;
}
/* 响应式设计 */
@media screen and (max-width: 768px) {
.contact-info {
flex-direction: column;
align-items: center;
}
.social-media a {
font-size: 1.5rem;
margin: 0 10px;
}
}
</style>
</head>
<body>
<div class="container">
<h1>联系方式</h1>
<div class="contact-info">
<div>
<h2>我的地址</h2>
<p>山东省青岛市山东大学青岛校区</p>
</div>
<div>
<h2>电子邮件</h2>
<p>dingjiangxxx@163.com</p>
</div>
<div>
<h2>电话</h2>
<p>+86 17860766793</p>
</div>
</div>
<div class="social-media">
<a href="https://github.com/yuked" target="_blank" title="GitHub"><i class="fab fa-github"></i></a>
<a href="https://www.linkedin.com/in/yuked" target="_blank" title="LinkedIn"><i class="fab fa-linkedin"></i></a>
<a href="https://twitter.com/yuked" target="_blank" title="Twitter"><i class="fab fa-twitter"></i></a>
<a href="mailto:dingjiangxxx@163.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a>
</div>
<div class="contact-form">
<h2>发送信息</h2>
<form action="your-server-endpoint" method="post">
<input type="text" name="name" placeholder="您的姓名" required>
<input type="email" name="email" placeholder="您的电子邮件" required>
<textarea name="message" rows="4" placeholder="留言内容" required></textarea>
<button type="submit">发送信息</button>
</form>
</div>
</div>
<footer>
<p>© 2025 Yuked. All rights reserved.</p>
</footer>
</body>
</html>