/
Cooolprogrammers
/
web-nodejs-labs
Обзор
Документация
Войти
/
Cooolprogrammers
/
web-nodejs-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
public/lab9/task3/style.css
761 строка
14 KB
darkvoid6@mail.ru
ЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫЫ
18 дек 2025, 07:59
18 дек 2025, 07:59
f2c4f06
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', system-ui, sans-serif; background: linear-gradient(135deg, #0a0e14 0%, #161b22 100%); color: #b0bec5; line-height: 1.6; min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } .header { background: linear-gradient(135deg, #1e272e 0%, #161b22 100%); color: #7ee787; padding: 30px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); border: 1px solid #30363d; } .header h1 { font-size: 2.3em; margin-bottom: 8px; font-weight: 400; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .header p { font-size: 1.1em; opacity: 0.95; margin-bottom: 20px; color: #8b949e; } .header-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; } .cart-link { display: inline-block; background: linear-gradient(135deg, #238636 0%, #2ea043 100%); color: #f0f6fc; padding: 10px 20px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; border: 1px solid #3fb950; font-weight: 500; font-size: 1em; } .cart-link:hover { background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46, 160, 67, 0.4); } .cart-info { background: rgba(46, 160, 67, 0.15); padding: 8px 16px; border-radius: 8px; color: #7ee787; font-weight: 500; border: 1px solid #238636; } .back-btn { display: inline-block; background: linear-gradient(135deg, #238636 0%, #2ea043 100%); color: #f0f6fc; padding: 8px 16px; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; border: 1px solid #3fb950; font-weight: 500; } .back-btn:hover { background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46, 160, 67, 0.4); } /* API Section */ .api-section { background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); padding: 20px; border-radius: 10px; margin-bottom: 25px; border: 1px solid #30363d; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); } .api-section h2 { color: #7ee787; margin-bottom: 15px; font-weight: 500; font-size: 1.3em; } .api-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; } .api-link { display: inline-block; background: linear-gradient(135deg, #238636 0%, #2ea043 100%); color: #f0f6fc; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 0.85em; transition: all 0.3s ease; border: 1px solid #3fb950; font-weight: 500; } .api-link:hover { background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46, 160, 67, 0.4); } /* Task Sections */ .task-section { background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); padding: 25px; border-radius: 10px; margin-bottom: 25px; border: 1px solid #30363d; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); } .task-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #30363d; flex-wrap: wrap; gap: 12px; } .task-header h2 { color: #7ee787; margin-bottom: 0; font-weight: 500; font-size: 1.4em; } .endpoint-info { background: rgba(46, 160, 67, 0.1); padding: 12px; border-radius: 6px; border-left: 4px solid #3fb950; font-family: 'Courier New', monospace; font-size: 0.9em; line-height: 1.4; color: #8b949e; } /* Buttons */ .btn { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.95em; transition: all 0.3s ease; margin: 4px; font-weight: 500; border: 1px solid; } .btn-primary { background: linear-gradient(135deg, #238636 0%, #2ea043 100%); color: #f0f6fc; border-color: #3fb950; } .btn-primary:hover { background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46, 160, 67, 0.4); } .btn-secondary { background: linear-gradient(135deg, #21262d 0%, #161b22 100%); color: #8b949e; border-color: #30363d; } .btn-secondary:hover { background: linear-gradient(135deg, #30363d 0%, #21262d 100%); transform: translateY(-2px); } .btn-success { background: linear-gradient(135deg, #238636 0%, #2ea043 100%); color: #f0f6fc; border-color: #3fb950; } .btn-success:hover { background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%); transform: translateY(-2px); } .btn-warning { background: linear-gradient(135deg, #e3b341 0%, #d79f1e 100%); color: #0a0e14; border-color: #e3b341; } .btn-warning:hover { background: linear-gradient(135deg, #d79f1e 0%, #c08c0f 100%); transform: translateY(-2px); } .btn-danger { background: linear-gradient(135deg, #da3633 0%, #f85149 100%); color: #f0f6fc; border-color: #f85149; } .btn-sm { padding: 6px 12px; font-size: 0.85em; } .btn-large { padding: 12px 24px; font-size: 1em; font-weight: 500; } /* Search Controls */ .search-controls { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .search-input { padding: 10px 15px; border: 1px solid #30363d; border-radius: 6px; font-size: 0.95em; width: 280px; transition: all 0.3s ease; background: #0d1117; color: #b0bec5; } .search-input:focus { outline: none; border-color: #3fb950; box-shadow: 0 0 0 2px rgba(63, 185, 80, 0.1); } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 18px; } .stat-item { background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #30363d; transition: all 0.3s ease; } .stat-item:hover { transform: translateY(-2px); border-color: #3fb950; } .stat-value { font-size: 2em; font-weight: bold; color: #7ee787; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(126, 231, 135, 0.3); } .stat-label { color: #8b949e; font-size: 0.9em; font-weight: 500; } /* Products */ .products-container { display: grid; gap: 16px; margin-top: 18px; } .product-card { background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); padding: 20px; border-radius: 8px; border: 1px solid #30363d; transition: all 0.3s ease; position: relative; overflow: hidden; } .product-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #3fb950; } .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(63, 185, 80, 0.15); border-color: #3fb950; } .product-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 12px; } .product-title { flex: 1; font-size: 1.2em; font-weight: 600; color: #7ee787; } .product-actions { display: flex; gap: 8px; flex-wrap: wrap; } .product-details { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; color: #8b949e; font-size: 0.9em; } .price { font-weight: bold; color: #3fb950; font-size: 1.1em; text-shadow: 0 2px 8px rgba(63, 185, 80, 0.3); } .availability { font-size: 0.85em; padding: 3px 6px; border-radius: 3px; font-weight: 500; border: 1px solid; } .available { background: rgba(46, 160, 67, 0.15); color: #7ee787; border-color: #238636; } .low-stock { background: rgba(227, 179, 65, 0.15); color: #e3b341; border-color: #e3b341; } .out-of-stock { background: rgba(248, 81, 73, 0.15); color: #f85149; border-color: #da3633; } /* Cart Styles */ .cart-items { display: grid; gap: 12px; margin: 18px 0; } .cart-item { background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); padding: 16px; border-radius: 8px; border: 1px solid #30363d; display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: center; } .cart-item-info h4 { color: #7ee787; margin-bottom: 4px; font-size: 1.1em; } .cart-item-price { color: #3fb950; font-weight: bold; font-size: 1em; } .quantity-controls { display: flex; align-items: center; gap: 8px; } .quantity-select { padding: 6px 10px; border: 1px solid #3fb950; border-radius: 4px; background: #0d1117; font-size: 0.9em; width: 70px; color: #b0bec5; } .cart-summary { background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); padding: 20px; border-radius: 8px; border: 1px solid #30363d; margin-top: 18px; } .summary-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #30363d; font-size: 0.95em; } .summary-item:last-child { border-bottom: none; } .total-price { color: #7ee787; font-size: 1.2em; font-weight: bold; text-shadow: 0 2px 8px rgba(126, 231, 135, 0.3); } /* Order Actions */ .order-actions { display: flex; gap: 16px; margin: 20px 0; flex-wrap: wrap; } .check-results { background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); padding: 16px; border-radius: 8px; border: 1px solid #30363d; margin-top: 18px; } .check-result-item { padding: 8px; margin: 4px 0; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; border: 1px solid; } .check-success { background: rgba(46, 160, 67, 0.15); color: #7ee787; border-color: #238636; } .check-error { background: rgba(248, 81, 73, 0.15); color: #f85149; border-color: #da3633; } /* Empty Cart */ .empty-cart { text-align: center; padding: 50px 20px; } .empty-icon { font-size: 3.5em; margin-bottom: 16px; color: #7ee787; } .empty-cart h2 { color: #7ee787; margin-bottom: 8px; font-weight: 500; } .empty-cart p { color: #8b949e; margin-bottom: 25px; font-size: 1em; } /* Features Grid */ .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 18px; } .feature-item { background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #30363d; transition: all 0.3s ease; } .feature-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(63, 185, 80, 0.15); border-color: #3fb950; } .feature-icon { font-size: 2.2em; margin-bottom: 12px; color: #7ee787; } .feature-item h4 { color: #7ee787; margin-bottom: 8px; font-weight: 600; font-size: 1.1em; } .feature-item p { color: #8b949e; line-height: 1.5; font-size: 0.9em; } /* Process Steps */ .process-steps { display: grid; gap: 16px; margin-top: 18px; } .step { display: flex; align-items: flex-start; gap: 16px; padding: 16px; background: linear-gradient(145deg, #161b22 0%, #0d1117 100%); border-radius: 8px; border: 1px solid #30363d; } .step-number { background: linear-gradient(135deg, #238636 0%, #3fb950 100%); color: #f0f6fc; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1em; flex-shrink: 0; } .step-content h4 { color: #7ee787; margin-bottom: 4px; font-size: 1em; } .step-content p { color: #8b949e; font-size: 0.9em; } /* Messages */ .message-container { margin: 18px 0; } .message { padding: 12px 16px; border-radius: 6px; margin: 8px 0; font-weight: 500; border: 1px solid; background: transparent; } .message-success { background: rgba(46, 160, 67, 0.15); color: #7ee787; border-color: #238636; } .message-error { background: rgba(248, 81, 73, 0.15); color: #f85149; border-color: #da3633; } .message-info { background: rgba(46, 160, 67, 0.15); color: #7ee787; border-color: #238636; } /* Utility Classes */ .hidden { display: none; } /* Responsive */ @media (max-width: 768px) { .container { padding: 15px; } .header { padding: 20px; } .header h1 { font-size: 1.8em; } .header-actions { flex-direction: column; align-items: flex-start; } .task-section { padding: 18px; } .task-header { flex-direction: column; align-items: flex-start; } .search-input { width: 100%; } .api-links { flex-direction: column; } .stats-grid { grid-template-columns: 1fr; } .product-details { grid-template-columns: 1fr; gap: 10px; } .product-header { flex-direction: column; align-items: flex-start; } .product-actions { width: 100%; justify-content: flex-start; } .features-grid { grid-template-columns: 1fr; } .cart-item { grid-template-columns: 1fr; gap: 8px; } .order-actions { flex-direction: column; } .step { flex-direction: column; text-align: center; gap: 12px; } .step-number { align-self: center; } } /* Анимация для успешной покупки */ @keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4); } 70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(63, 185, 80, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); } } .purchase-success-badge { animation: pulse 2s infinite; border-color: #3fb950 !important; }