157 lines
2.4 KiB
CSS
157 lines
2.4 KiB
CSS
/* 页眉导航栏 */
|
|
.navbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: #2575fc;
|
|
padding: 10px 30px;
|
|
color: white;
|
|
border-radius: 10px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.navbar .logo h1 {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.navbar-links a {
|
|
color: white;
|
|
text-decoration: none;
|
|
margin: 0 15px;
|
|
font-size: 16px;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.navbar-links a:hover {
|
|
color: #f1c40f;
|
|
}
|
|
|
|
.navbar .avatar img {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
border: 2px solid white;
|
|
}
|
|
/* General reset */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
/* Body & Page Background */
|
|
body {
|
|
font-family: 'Arial', sans-serif;
|
|
background-color: #f5f5f5;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Header styles */
|
|
header {
|
|
background-color: #2575fc;
|
|
padding: 20px;
|
|
color: white;
|
|
}
|
|
|
|
.header-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.site-name h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.nav ul {
|
|
list-style-type: none;
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.nav ul li {
|
|
display: inline;
|
|
}
|
|
|
|
.nav ul li a {
|
|
color: white;
|
|
text-decoration: none;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.user-avatar img {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* Main content styles */
|
|
main {
|
|
padding: 20px;
|
|
}
|
|
|
|
.course-selection h2 {
|
|
font-size: 28px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.course-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.course-card {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
width: 300px;
|
|
height: 400px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.course-card img {
|
|
width: 100%;
|
|
height: 261px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.course-card h3 {
|
|
padding: 15px;
|
|
font-size: 20px;
|
|
color: #2575fc;
|
|
}
|
|
|
|
.course-card p {
|
|
padding: 0 15px;
|
|
font-size: 14px;
|
|
color: #555;
|
|
}
|
|
|
|
.select-button {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 10px;
|
|
background-color: #2575fc;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.select-button:hover {
|
|
background-color: #113c86;
|
|
}
|
|
|
|
/* Footer styles */
|
|
footer {
|
|
background-color: #333;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 10px;
|
|
margin-top: 20px;
|
|
}
|