提交页面

lzx_branch
lzx 1 year ago
parent 25972d4f5f
commit 280d1d67d3

@ -0,0 +1,115 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>失物招领系统 - 图片匹配</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: #f7f7f7;
}
.navbar {
background-color: #fff;
border-bottom: 1px solid #ddd;
display: flex;
justify-content: center;
align-items: center;
padding: 20px 0;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar a {
color: #333;
text-decoration: none;
margin: 0 20px;
font-size: 18px;
font-weight: bold;
transition: color 0.3s;
}
.navbar a:hover {
color: #555;
}
.content {
max-width: 800px;
margin: 0 auto;
padding: 30px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
text-align: center;
margin-top: 20px;
position: relative;
}
.upload-text {
font-size: 28px;
margin-bottom: 30px;
color: #333;
}
.drop-box {
border: 2px dashed #ddd;
padding: 40px;
text-align: center;
cursor: pointer;
position: relative;
min-height: 200px;
border-radius: 10px;
}
.drop-box-text {
font-size: 24px;
color: #777;
margin-top: 10px;
}
/* 修改按钮颜色为绿色 */
.start-button {
background-color: #4CAF50; /* 绿色 */
color: #fff;
padding: 15px 30px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 20px;
font-weight: bold;
transition: background-color 0.3s;
margin-top: 20px;
}
.start-button:hover {
background-color: #45a049; /* 按钮悬停时的颜色 */
}
</style>
</head>
<body>
<div class="navbar">
<nav>
<a href="#">失物</a>
<a href="#">失物发布</a>
<a href="#">招领</a>
<a href="#">招领发布</a>
<a href="#">失物导航</a>
<a href="#">图片在线匹配</a>
</nav>
</div>
<div class="content">
<div class="upload-text">
<p>图片上传</p>
</div>
<div class="drop-box">
<p class="drop-box-text">点击此处或将图片拖拽放到此处</p>
<!-- 这里可以添加一个文件上传input也可以使用JavaScript来处理文件上传 -->
</div>
<button class="start-button">开始匹配</button>
</div>
</body>
</html>

@ -0,0 +1,180 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>模仿微信的聊天界面</title>
<style>
/* CSS样式用于页面布局和样式 */
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
.chat-container {
max-width: 800px; /* 增加最大宽度 */
margin: 20px auto;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
padding: 20px;
}
.message {
display: flex;
margin-bottom: 20px;
}
.user-avatar {
width: 40px;
height: 40px;
background-color: #4caf50;
border-radius: 50%;
margin-right: 10px;
}
.message-content {
background-color: #e0e0e0;
border-radius: 10px;
padding: 10px;
max-width: 70%;
}
.user-message {
align-self: flex-end;
background-color: #c4ffd2;
}
.other-user-message {
align-self: flex-start;
background-color: #cfd8dc;
}
.nickname {
font-weight: bold;
margin-bottom: 5px;
}
/* 输入框样式,与微信相似 */
.input-container {
display: flex;
align-items: center;
background-color: #fff;
border-radius: 25px;
border: 1px solid #ccc;
padding: 10px;
margin-top: 20px;
}
.input-container input[type="text"] {
flex-grow: 1;
border: none;
outline: none;
padding: 10px;
font-size: 16px;
}
.input-container button {
background-color: #4caf50;
color: #fff;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
}
/* 添加更多消息 */
.message-time {
font-size: 12px;
color: #888;
align-self: flex-end;
margin-left: 10px;
}
/* 更多用户头像和昵称 */
.user-avatar.friend {
background-color: #2196F3;
}
.nickname.friend {
color: #2196F3;
}
/* 返回按钮样式 */
.back-button {
background-color: #4caf50; /* 修改背景颜色为绿色 */
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
margin: 20px; /* 修改位置为上下左右各20px */
cursor: pointer;
position: absolute; /* 设置为绝对定位 */
top: 0; /* 距离顶部距离为0 */
left: 0; /* 距离左侧距离为0 */
}
/* CSS结束 */
</style>
</head>
<body>
<div class="chat-container">
<div class="message other-user-message">
<div class="user-avatar friend"></div>
<div>
<div class="nickname friend">好友的昵称</div>
<div class="message-content">你好,这是好友的消息。</div>
<div class="message-time">09:30 AM</div>
</div>
</div>
<div class="message user-message">
<div class="user-avatar"></div>
<div>
<div class="nickname">您的昵称</div>
<div class="message-content">你好,这是您的消息。</div>
<div class="message-time">09:35 AM</div>
</div>
</div>
<!-- 添加更多消息 -->
<div class="message other-user-message">
<div class="user-avatar friend"></div>
<div>
<div class="nickname friend">好友的昵称</div>
<div class="message-content">这是好友的另一条消息。</div>
<div class="message-time">09:40 AM</div>
</div>
</div>
<!-- 更多用户消息 -->
<div class="message user-message">
<div class="user-avatar"></div>
<div>
<div class="nickname">您的昵称</div>
<div class="message-content">这是您的另一条消息,稍微长一些,用于测试消息框的自动调整长度。</div>
<div class="message-time">09:45 AM</div>
</div>
</div>
<!-- 输入框 -->
<div class="input-container">
<input type="text" placeholder="在这里输入消息">
<button>&#9658;</button>
</div>
</div>
<!-- 返回按钮 -->
<button class="back-button" onclick="goBack()">返回</button>
<script>
// 返回按钮的点击事件
function goBack() {
window.history.back();
}
</script>
</body>
</html>
Loading…
Cancel
Save