Delete 'src/my-online-judge-master/MYOJ/OJ_server/template_html/all_questions.html'

master
pk4wt2yal 2 weeks ago
parent 14da5c9f91
commit c3a14de15f

@ -1,173 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>在线OJ - 题目列表</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
/* 全局样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f0f2f5;
color: #333;
}
/* 容器样式 */
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* 导航栏样式 */
.navbar {
background-color: #ffffff;
padding: 15px 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar a {
color: #3c3c3c;
text-decoration: none;
margin-right: 20px;
font-size: 16px;
transition: color 0.3s ease;
}
.navbar a:hover {
color: #1890ff;
}
.navbar .login {
background-color: #1890ff;
color: white;
padding: 8px 16px;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.navbar .login:hover {
background-color: #40a9ff;
}
/* 题目列表区域样式 */
.question-list-container {
padding: 40px;
flex: 1;
}
.question-list-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.question-list-title {
font-size: 24px;
font-weight: 600;
color: #2c3e50;
}
.question-list-table {
width: 100%;
border-collapse: collapse;
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.question-list-table th,
.question-list-table td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid #e8e8e8;
}
.question-list-table th {
background-color: #f5f5f5;
font-weight: 600;
}
.question-list-table td a {
color: #1890ff;
text-decoration: none;
transition: color 0.3s ease;
}
.question-list-table td a:hover {
color: #40a9ff;
}
/* 页脚样式 */
.footer {
background-color: #ffffff;
padding: 15px 20px;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
text-align: center;
font-size: 14px;
color: #666;
}
.nav-left {
display: flex; /* 左侧元素也使用 flexbox */
align-items: center; /* 垂直居中 */
}
</style>
</head>
<body>
<div class="container">
<!-- 导航栏 -->
<div class="navbar">
<div class="nav-left">
<a href="/"><i class="fas fa-home"></i> 首页</a>
<a href="/all_questions"><i class="fas fa-list"></i> 题库</a>
<a href="#"><i class="fas fa-trophy"></i> 竞赛</a>
<a href="#"><i class="fas fa-comments"></i> 讨论</a>
<a href="#"><i class="fas fa-briefcase"></i> 求职</a>
</div>
<a class="login" href="#"><i class="fas fa-user"></i> 登录</a>
</div>
<!-- 题目列表区域 -->
<div class="question-list-container">
<div class="question-list-header">
<h1 class="question-list-title">Online Judge 题目列表</h1>
</div>
<table class="question-list-table">
<thead>
<tr>
<th>编号</th>
<th>标题</th>
<th>难度</th>
</tr>
</thead>
<tbody>
{{#question_list}}
<tr>
<td>{{number}}</td>
<td><a href="/question/{{number}}">{{title}}</a></td>
<td>{{star}}</td>
</tr>
{{/question_list}}
</tbody>
</table>
</div>
<!-- 页脚 -->
<!-- <div class="footer">
&copy; 2024 zzy33989. All rights reserved.
</div> -->
</div>
</body>
</html>
Loading…
Cancel
Save