Lectures/assets/css/admin.css

140 lines
2.1 KiB
CSS

body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f5f5f5;
}
/* Login Page */
.login-page {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: #2c1810;
}
.login-container {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
.login-form .form-group {
margin-bottom: 1rem;
}
.login-form label {
display: block;
margin-bottom: 0.5rem;
color: #333;
}
.login-form input {
width: 100%;
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
}
.login-form button {
width: 100%;
padding: 0.75rem;
background-color: #8b4513;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.login-form button:hover {
background-color: #703610;
}
.error-message {
background-color: #ffebee;
color: #c62828;
padding: 0.75rem;
border-radius: 4px;
margin-bottom: 1rem;
}
/* Admin Dashboard */
.admin-nav {
background-color: #2c1810;
color: white;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-brand {
font-size: 1.25rem;
font-weight: bold;
}
.nav-menu {
display: flex;
gap: 1rem;
}
.button {
padding: 0.5rem 1rem;
background-color: #8b4513;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
}
.button:hover {
background-color: #703610;
}
.admin-main {
padding: 2rem;
}
.stories-list {
display: grid;
gap: 1rem;
margin-top: 2rem;
}
.story-item {
background: white;
padding: 1rem;
border-radius: 8px;
display: flex;
align-items: center;
gap: 1rem;
}
.story-cover {
width: 100px;
height: 150px;
object-fit: cover;
border-radius: 4px;
}
.story-info {
flex: 1;
}
.story-actions {
display: flex;
gap: 0.5rem;
}
.delete-story {
background-color: #c62828;
}
.delete-story:hover {
background-color: #b71c1c;
}