diff --git a/app/templates/edit_links.html b/app/templates/edit_links.html index 45beef8..cef312d 100755 --- a/app/templates/edit_links.html +++ b/app/templates/edit_links.html @@ -135,20 +135,41 @@ margin-bottom: 20px; } + .links-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 15px; + margin-top: 20px; + } + .link-item { background: white; border: 1px solid #e9ecef; - border-radius: 8px; + border-radius: 12px; padding: 20px; - margin-bottom: 15px; + margin-bottom: 0; display: flex; - justify-content: space-between; - align-items: flex-start; + flex-direction: column; gap: 15px; + transition: all 0.3s ease; + box-shadow: 0 2px 8px rgba(0,0,0,0.05); + } + + .link-item:hover { + transform: translateY(-2px); + box-shadow: 0 4px 15px rgba(0,0,0,0.1); + border-color: #667eea; } .link-item.editing { border-color: #667eea; + box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2); + } + + .link-header { + display: flex; + align-items: flex-start; + gap: 12px; } .link-content { @@ -156,9 +177,25 @@ } .link-logo { - width: 32px; - height: 32px; - border-radius: 6px; + width: 40px; + height: 40px; + border-radius: 8px; + flex-shrink: 0; + object-fit: cover; + background: #f8f9fa; + border: 1px solid #e9ecef; + } + + .link-icon-placeholder { + width: 40px; + height: 40px; + border-radius: 8px; + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + display: flex; + align-items: center; + justify-content: center; + color: white; + font-size: 18px; flex-shrink: 0; } @@ -253,12 +290,93 @@ } @media (max-width: 768px) { + body { + padding: 10px; + } + + .container { + border-radius: 10px; + } + + .header { + padding: 20px 15px; + } + + .header h1 { + font-size: 1.8em; + } + .main-content { grid-template-columns: 1fr; + gap: 20px; + padding: 20px 15px; + } + + .form-section { + padding: 20px 15px; + } + + .links-grid { + grid-template-columns: 1fr; + gap: 12px; + } + + .link-item { + padding: 15px; + } + + .link-header { + gap: 10px; + } + + .link-logo, + .link-icon-placeholder { + width: 35px; + height: 35px; + } + + .link-title { + font-size: 1.1em; + } + + .link-actions { + flex-direction: column; + gap: 8px; + } + + .link-actions .btn-small { + width: 100%; + text-align: center; } .page-actions { flex-direction: column; + padding: 15px; + gap: 10px; + } + + .page-actions .btn { + width: 100%; + text-align: center; + margin-right: 0; + } + } + + @media (min-width: 769px) and (max-width: 1024px) { + .links-grid { + grid-template-columns: repeat(2, 1fr); + } + } + + @media (min-width: 1025px) { + .links-grid { + grid-template-columns: repeat(3, 1fr); + } + } + + @media (min-width: 1400px) { + .links-grid { + grid-template-columns: repeat(4, 1fr); } } @@ -310,28 +428,35 @@