/
mishmark
/
api-axum-postgres
Обзор
Документация
Войти
/
mishmark
/
api-axum-postgres
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
frontend/style.css
251 строка
3 KB
hvmsp34
refactor: frontend
23 май 2026, 13:13
23 май 2026, 13:13
24b111c
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; } main { max-width: 1400px; margin: 0 auto; } h1 { text-align: center; color: white; margin-bottom: 30px; font-size: 2.5em; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; margin-bottom: 30px; } .card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); } .card h2 { color: #667eea; margin-bottom: 20px; font-size: 1.5em; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; } .form-group { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; color: #333; font-weight: 500; } input, button { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; } input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 5px rgba(102, 126, 234, 0.3); } button { background: #667eea; color: white; border: none; cursor: pointer; transition: background 0.3s; font-weight: 500; margin-top: 10px; } button:hover { background: #5a67d8; } button:active { transform: scale(0.98); } .delete-btn { background: #e53e3e; } .delete-btn:hover { background: #c53030; } .users-list { max-height: 400px; overflow-y: auto; } .user-item { background: #f7f7f7; padding: 15px; margin-bottom: 10px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; transition: transform 0.2s; } .user-item:hover { transform: translateX(5px); background: #eef2ff; } .user-info { flex: 1; } .user-name { font-weight: bold; color: #333; font-size: 1.1em; } .user-email { color: #666; font-size: 0.9em; margin-top: 5px; } .user-id { color: #999; font-size: 0.8em; margin-top: 3px; } .user-actions { display: flex; gap: 10px; } .user-actions button { width: auto; padding: 8px 15px; margin: 0; font-size: 12px; } .get-user-form { display: flex; gap: 10px; } .get-user-form input { flex: 1; } .get-user-form button { width: auto; margin: 0; } .response { margin-top: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #667eea; } .response h3 { margin-bottom: 10px; color: #667eea; } .response pre { background: #fff; padding: 10px; border-radius: 4px; overflow-x: auto; font-size: 12px; font-family: 'Courier New', monospace; } .loading { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .status { padding: 10px; margin-top: 10px; border-radius: 6px; display: none; } .status.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; } .status.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; } @media (max-width: 768px) { .grid { grid-template-columns: 1fr; } } #getAllUsersBtn { width: auto; margin-bottom: 15px; } #usersList p { color: #999; text-align: center; } #getUserResult { display: none; }