frontend/src/scss/components/_assignment.scss

238 lines
4.2 KiB
SCSS
Raw Normal View History

2025-04-22 09:33:55 -07:00
.assignment-page {
max-width: 600px;
margin: auto;
padding: 20px;
form {
margin-bottom: 20px;
div {
margin-bottom: 15px;
label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
input[type="text"],
textarea,
input[type="file"] {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
textarea {
height: 80px;
resize: vertical;
}
}
button {
padding: 8px 16px;
background-color: #4285f4;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
&:hover {
background-color: #3367d6;
}
}
}
.project-list {
2025-04-22 12:05:41 -07:00
margin-top: 2rem;
2025-04-22 12:29:12 -07:00
h3 {
color: #4a90e2;
}
2025-04-22 12:05:41 -07:00
2025-04-22 09:33:55 -07:00
.project-item {
2025-04-22 12:05:41 -07:00
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
// &:hover {
// transform: translateY(-2px);
// box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
// }
.project-meta {
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
flex-wrap: wrap;
strong {
color: #34495e;
}
}
2025-04-22 09:33:55 -07:00
h4 {
2025-04-22 12:05:41 -07:00
margin: 0.5rem 0;
font-size: 1.2rem;
color: #2d3436;
2025-04-22 09:33:55 -07:00
}
2025-04-22 12:05:41 -07:00
p {
margin: 0.25rem 0;
color: #555;
line-height: 1.4;
strong {
color: #2d3436;
2025-04-22 09:33:55 -07:00
}
2025-04-22 12:05:41 -07:00
}
.action-buttons {
display: flex;
gap: 0.5rem;
margin-top: 0.75rem;
button {
background-color: #f4f4f4;
border: 1px solid #ddd;
border-radius: 6px;
padding: 0.4rem 0.8rem;
cursor: pointer;
font-size: 0.9rem;
transition: background-color 0.2s ease;
2025-04-22 09:33:55 -07:00
&:hover {
2025-04-22 12:05:41 -07:00
background-color: #e9ecef;
}
&:nth-child(1) {
color: #2c3e50;
}
&:nth-child(2) {
color: #c0392b;
}
&:nth-child(3) {
color: #16a085;
2025-04-22 09:33:55 -07:00
}
}
}
}
}
2025-04-22 12:05:41 -07:00
2025-04-22 09:33:55 -07:00
.modal-overlay {
position: fixed;
top: 0;
left: 0;
2025-04-22 12:05:41 -07:00
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
2025-04-22 09:33:55 -07:00
display: flex;
align-items: center;
justify-content: center;
2025-04-22 12:05:41 -07:00
z-index: 1000;
}
.modal {
background: #fff;
padding: 2rem;
border-radius: 12px;
max-width: 500px;
width: 100%;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
animation: fadeIn 0.3s ease;
}
.modal h3 {
margin-bottom: 1rem;
font-size: 1.5rem;
font-weight: 600;
color: #333;
}
.modal form > div {
margin-bottom: 1rem;
}
.modal label {
display: block;
font-size: 0.9rem;
font-weight: 500;
margin-bottom: 0.4rem;
color: #555;
}
.modal input[type="text"],
.modal input[type="password"],
.modal input[type="file"],
.modal textarea {
width: 100%;
padding: 0.6rem 0.8rem;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 0.95rem;
transition: border-color 0.2s ease;
&:focus {
border-color: #007bff;
outline: none;
}
}
.modal textarea {
resize: vertical;
min-height: 80px;
}
.modal-buttons {
display: flex;
justify-content: flex-end;
gap: 1rem;
margin-top: 1.5rem;
}
.modal-buttons button {
padding: 0.6rem 1.2rem;
font-size: 0.95rem;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.2s ease;
}
.modal-buttons button[type="submit"] {
background-color: #ff4b2b;
color: #fff;
&:hover {
background-color: #FF2600;
}
}
.modal-buttons button[type="button"] {
background-color: #e0e0e0;
color: #333;
&:hover {
background-color: #cfcfcf;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
2025-04-22 09:33:55 -07:00
}
}
2025-04-22 12:05:41 -07:00
}