/
RoditelevVV
/
web-static-labs
Обзор
Документация
Войти
/
RoditelevVV
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/styles.css
244 строки
4 KB
karpov
finish lab3, lab4
12 мар 2026, 08:19
12 мар 2026, 08:19
74cd197
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-areas: "header header" "menu personal" "menu progress" "menu progress" "footer footer"; grid-template-columns: 2fr 1fr; grid-template-rows: auto 1fr auto; gap: 20px; min-height: 100vh; } .header { grid-area: header; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; } .header h1 { color: #2c3e50; margin-bottom: 10px; font-size: 2.2rem; } .header p { color: #7f8c8d; font-size: 1.1rem; } .main-menu { grid-area: menu; background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .main-menu h2 { color: #2c3e50; margin-bottom: 20px; border-bottom: 2px solid #3498db; padding-bottom: 10px; } .main-menu ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; } .main-menu a { display: block; padding: 15px; background: #ecf0f1; color: #2c3e50; text-decoration: none; border-radius: 5px; transition: all 0.3s ease; font-weight: 500; } .main-menu a:hover { background: #3498db; color: white; transform: translateY(-2px); } .personal-info { grid-area: personal; background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .personal-info h3 { color: #2c3e50; margin-bottom: 15px; border-bottom: 2px solid #e74c3c; padding-bottom: 5px; } .personal-info p { margin-bottom: 10px; color: #555; } .personal-info a { color: #3498db; text-decoration: none; } .personal-info a:hover { text-decoration: underline; } .progress-info { grid-area: progress; background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .progress-info h3 { color: #2c3e50; margin-bottom: 15px; border-bottom: 2px solid #2ecc71; padding-bottom: 5px; } .progress-bar { width: 100%; height: 20px; background: #ecf0f1; border-radius: 10px; margin-bottom: 10px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, #2ecc71, #27ae60); border-radius: 10px; transition: width 0.3s ease; } .progress-text { font-size: 1.1rem; color: #7f8c8d; text-align: center; margin-bottom: 20px; } .hackerrank-scores h4 { color: #2c3e50; margin-bottom: 15px; } .scores { display: grid; gap: 10px; } .score-item { display: flex; justify-content: space-between; padding: 10px; background: #f8f9fa; border-radius: 5px; } .language { font-weight: bold; color: #2c3e50; } .points { color: #e74c3c; font-weight: bold; } .footer { grid-area: footer; background: #2c3e50; color: white; padding: 20px; border-radius: 10px; text-align: center; margin-top: 20px; } .footer p { margin-bottom: 5px; } @media (max-width: 768px) { .container { grid-template-areas: "header" "menu" "personal" "progress" "footer"; grid-template-columns: 1fr; padding: 15px; } .header h1 { font-size: 1.8rem; } .main-menu ul { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } } @media (max-width: 480px) { .container { padding: 10px; gap: 15px; } .header, .main-menu, .personal-info, .progress-info { padding: 20px; } .header h1 { font-size: 1.5rem; } .main-menu ul { grid-template-columns: 1fr; } .progress-text { font-size: 1rem; } }