Style Modal and SchoolSearchModal with warm editorial palette
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 34s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m9s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 0s

- Modal: Warm overlay, rounded corners, Playfair Display title,
  coral close button hover, warm scrollbar colors
- SchoolSearchModal: Coral focus states, gold warning banner,
  coral add buttons, warm result item styling with hover effects

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Tudor
2026-02-03 11:17:06 +00:00
parent 53e11aca82
commit 51b081d9e0
2 changed files with 74 additions and 43 deletions

View File

@@ -1,7 +1,7 @@
.overlay { .overlay {
position: fixed; position: fixed;
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.5); background: rgba(26, 22, 18, 0.6);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -20,14 +20,15 @@
} }
.modal { .modal {
background: white; background: var(--bg-card, white);
border-radius: 12px; border-radius: 16px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); box-shadow: 0 20px 40px rgba(26, 22, 18, 0.2);
max-height: 90vh; max-height: 90vh;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
animation: slideIn 0.3s ease; animation: slideIn 0.3s ease;
border: 1px solid var(--border-color, #e5dfd5);
} }
@keyframes slideIn { @keyframes slideIn {
@@ -61,23 +62,24 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 1.5rem; padding: 1.5rem;
border-bottom: 1px solid #e5e7eb; border-bottom: 1px solid var(--border-color, #e5dfd5);
} }
.title { .title {
margin: 0; margin: 0;
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
color: #1f2937; color: var(--text-primary, #1a1612);
font-family: var(--font-playfair), 'Playfair Display', serif;
} }
.closeButton { .closeButton {
padding: 0.5rem; padding: 0.5rem;
background: transparent; background: transparent;
border: none; border: none;
color: #6b7280; color: var(--text-muted, #8a847a);
cursor: pointer; cursor: pointer;
border-radius: 6px; border-radius: 8px;
transition: all 0.2s ease; transition: all 0.2s ease;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -85,8 +87,8 @@
} }
.closeButton:hover { .closeButton:hover {
background: #f3f4f6; background: var(--bg-secondary, #f3ede4);
color: #1f2937; color: var(--accent-coral, #e07256);
} }
.content { .content {
@@ -101,16 +103,16 @@
} }
.content::-webkit-scrollbar-track { .content::-webkit-scrollbar-track {
background: #f3f4f6; background: var(--bg-secondary, #f3ede4);
} }
.content::-webkit-scrollbar-thumb { .content::-webkit-scrollbar-thumb {
background: #d1d5db; background: var(--border-color, #e5dfd5);
border-radius: 4px; border-radius: 4px;
} }
.content::-webkit-scrollbar-thumb:hover { .content::-webkit-scrollbar-thumb:hover {
background: #9ca3af; background: var(--text-muted, #8a847a);
} }
@media (max-width: 640px) { @media (max-width: 640px) {

View File

@@ -6,17 +6,18 @@
.title { .title {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 600; font-weight: 700;
color: var(--text-primary); color: var(--text-primary, #1a1612);
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
font-family: var(--font-playfair), 'Playfair Display', serif;
} }
.warning { .warning {
background: #fef3c7; background: rgba(201, 162, 39, 0.15);
border: 1px solid #fde047; border: 1px solid var(--accent-gold, #c9a227);
color: #92400e; color: var(--text-primary, #1a1612);
padding: 1rem; padding: 1rem;
border-radius: var(--radius-md); border-radius: 8px;
margin-bottom: 1rem; margin-bottom: 1rem;
font-size: 0.9375rem; font-size: 0.9375rem;
} }
@@ -30,15 +31,21 @@
width: 100%; width: 100%;
padding: 0.875rem 1rem; padding: 0.875rem 1rem;
font-size: 1rem; font-size: 1rem;
border: 2px solid var(--border-medium); border: 2px solid var(--border-color, #e5dfd5);
border-radius: var(--radius-md); border-radius: 8px;
transition: all var(--transition); background: var(--bg-card, white);
color: var(--text-primary, #1a1612);
transition: all 0.2s ease;
}
.searchInput::placeholder {
color: var(--text-muted, #8a847a);
} }
.searchInput:focus { .searchInput:focus {
outline: none; outline: none;
border-color: var(--primary); border-color: var(--accent-coral, #e07256);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); box-shadow: 0 0 0 3px rgba(224, 114, 86, 0.15);
} }
.searchSpinner { .searchSpinner {
@@ -48,9 +55,9 @@
transform: translateY(-50%); transform: translateY(-50%);
width: 1.25rem; width: 1.25rem;
height: 1.25rem; height: 1.25rem;
border: 2px solid rgba(59, 130, 246, 0.3); border: 2px solid rgba(224, 114, 86, 0.3);
border-radius: 50%; border-radius: 50%;
border-top-color: var(--primary); border-top-color: var(--accent-coral, #e07256);
animation: spin 0.6s linear infinite; animation: spin 0.6s linear infinite;
} }
@@ -68,21 +75,41 @@
gap: 0.75rem; gap: 0.75rem;
} }
/* Scrollbar styles */
.results::-webkit-scrollbar {
width: 8px;
}
.results::-webkit-scrollbar-track {
background: var(--bg-secondary, #f3ede4);
border-radius: 4px;
}
.results::-webkit-scrollbar-thumb {
background: var(--border-color, #e5dfd5);
border-radius: 4px;
}
.results::-webkit-scrollbar-thumb:hover {
background: var(--text-muted, #8a847a);
}
.resultItem { .resultItem {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
padding: 1rem; padding: 1rem;
background: var(--bg-secondary); background: var(--bg-secondary, #f3ede4);
border: 1px solid var(--border-light); border: 1px solid var(--border-color, #e5dfd5);
border-radius: var(--radius-md); border-radius: 10px;
transition: all var(--transition); transition: all 0.2s ease;
} }
.resultItem:hover { .resultItem:hover {
background: white; background: var(--bg-card, white);
box-shadow: var(--shadow-sm); border-color: var(--accent-coral, #e07256);
box-shadow: var(--shadow-soft, 0 2px 8px rgba(26, 22, 18, 0.06));
} }
.schoolInfo { .schoolInfo {
@@ -93,7 +120,7 @@
.schoolName { .schoolName {
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
color: var(--text-primary); color: var(--text-primary, #1a1612);
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
@@ -104,7 +131,7 @@
display: flex; display: flex;
gap: 1rem; gap: 1rem;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-secondary); color: var(--text-secondary, #5c564d);
} }
.schoolMeta span { .schoolMeta span {
@@ -116,37 +143,39 @@
.addButton { .addButton {
padding: 0.625rem 1.25rem; padding: 0.625rem 1.25rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 600;
border: none; border: none;
border-radius: var(--radius-md); border-radius: 8px;
cursor: pointer; cursor: pointer;
transition: all var(--transition); transition: all 0.2s ease;
white-space: nowrap; white-space: nowrap;
background: var(--primary); background: var(--accent-coral, #e07256);
color: white; color: white;
} }
.addButton:hover:not(:disabled) { .addButton:hover:not(:disabled) {
background: var(--primary-dark); background: var(--accent-coral-dark, #c45a3f);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(224, 114, 86, 0.3);
} }
.addButton:disabled { .addButton:disabled {
background: var(--secondary); background: var(--bg-secondary, #f3ede4);
color: var(--text-muted, #8a847a);
cursor: not-allowed; cursor: not-allowed;
opacity: 0.6;
} }
.noResults { .noResults {
text-align: center; text-align: center;
padding: 2rem; padding: 2rem;
color: var(--text-secondary); color: var(--text-secondary, #5c564d);
font-size: 0.9375rem; font-size: 0.9375rem;
} }
.hint { .hint {
text-align: center; text-align: center;
padding: 2rem; padding: 2rem;
color: var(--text-tertiary); color: var(--text-muted, #8a847a);
font-size: 0.9375rem; font-size: 0.9375rem;
} }