<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>管理员登录</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(to bottom, #007BFF, #0056b3);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.login-container {
background-color: #fff;
padding: 40px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
width: 350px;
}
.login-heading {
text-align: center;
color: #333;
margin-bottom: 30px;
}
.login-form label {
display: block;
margin-bottom: 8px;
color: #666;
}
.login-form input {
width: 100%;
padding: 12px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
.login-form input:focus {
outline: none;
border-color: #007BFF;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
.login-form button {
width: 100%;
padding: 12px;
background-color: #007BFF;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.login-form button:hover {
background-color: #0056b3;
}
.login-reason {
text-align: center;
color: #999;
font-size: 14px;
margin-top: 20px;
}
</style>
</head>
<body>
<div class="login-container">
<h2 class="login-heading">管理员登录</h2>
<form class="login-form">
<label for="username">账户</label>
<input type="text" id="username" placeholder="请输入账户">
<label for="password">密码</label>
<input type="password" id="password" placeholder="请输入密码">
<button type="submit">登录</button>
</form>
<p class="login-reason">请使用管理员账户登录以管理系统。</p>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
}
body {
font-size: 63.5%;
display: flex;
}
.container {
height: 100%;
width: 200px;
background-color: #565c63;
display: flex;
flex-direction: column;
gap: 20px;
}
.box {
width: 100px;
height: 20px;
color: white;
text-align: center;
line-height: 20px;
}
.right-content {
flex: 1;
display: flex;
flex-direction: column;
}
.nav-bar {
height: 50px;
background-color: #333;
display: flex;
align-items: center;
padding: 0 20px;
}
.nav-bar a {
color: white;
text-decoration: none;
margin-right: 20px;
font-size: 16px;
}
.frames-container {
flex: 1;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 10px;
padding: 10px;
}
.frame {
background-color: #e0e0e0;
}
.frame:nth-child(1) {
grid-column: 1 / 2;
grid-row: 1 / 2;
}
.frame:nth-child(2) {
grid-column: 2 / 4;
grid-row: 1 / 2;
}
.frame:nth-child(3) {
grid-column: 1 / 3;
grid-row: 2 / 3;
}
.frame:nth-child(4) {
grid-column: 3 / 4;
grid-row: 2 / 3;
}
.frame:nth-child(5) {
grid-column: 1 / 2;
grid-row: 2 / 3;
}
.frame:nth-child(6) {
grid-column: 2 / 4;
grid-row: 2 / 3;
}
</style>
</head>
<body>
<div class="container">
<div class="box">首页</div>
<div class="box">人员管理</div>
<div class="box">系统管理</div>
<div class="box">日志管理</div>
</div>
<div class="right-content">
<div class="nav-bar">
<a href="#">首页</a>
<a href="#">关于我们</a>
<a href="#">联系我们</a>
</div>
<div class="frames-container">
<div class="frame"></div>
<div class="frame"></div>
<div class="frame"></div>
<div class="frame"></div>
<div class="frame"></div>
<div class="frame"></div>
</div>
</div>
</body>
</html>
image.png
image.png