| <!DOCTYPE html>
|
| <html>
|
|
|
| <head>
|
| <title>Rename File - {{site_id}} | h by Xlnk</title>
|
| <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| <link
|
| href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap"
|
| rel="stylesheet">
|
| <style>
|
| * {
|
| margin: 0;
|
| padding: 0;
|
| box-sizing: border-box;
|
| }
|
|
|
| body {
|
| background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0d0d1f 100%);
|
| min-height: 100vh;
|
| font-family: 'Inter', system-ui, sans-serif;
|
| color: #e2e8f0;
|
| }
|
|
|
| .navbar {
|
| background: rgba(15, 23, 42, 0.9);
|
| backdrop-filter: blur(20px);
|
| border-bottom: 1px solid rgba(99, 102, 241, 0.2);
|
| padding: 16px 30px;
|
| display: flex;
|
| justify-content: space-between;
|
| align-items: center;
|
| position: sticky;
|
| top: 0;
|
| z-index: 100;
|
| }
|
|
|
| .nav-brand {
|
| font-size: 1.5rem;
|
| font-weight: 700;
|
| background: linear-gradient(135deg, #818cf8, #c084fc);
|
| -webkit-background-clip: text;
|
| -webkit-text-fill-color: transparent;
|
| background-clip: text;
|
| text-decoration: none;
|
| }
|
|
|
| .nav-links {
|
| display: flex;
|
| gap: 20px;
|
| align-items: center;
|
| }
|
|
|
| .nav-links a {
|
| color: #94a3b8;
|
| text-decoration: none;
|
| font-size: 0.9rem;
|
| transition: color 0.3s ease;
|
| }
|
|
|
| .nav-links a:hover {
|
| color: #818cf8;
|
| }
|
|
|
| .container {
|
| max-width: 600px;
|
| margin: 0 auto;
|
| padding: 40px 20px;
|
| }
|
|
|
| .breadcrumb {
|
| margin-bottom: 20px;
|
| color: #64748b;
|
| }
|
|
|
| .breadcrumb a {
|
| color: #818cf8;
|
| text-decoration: none;
|
| transition: color 0.3s ease;
|
| }
|
|
|
| .breadcrumb a:hover {
|
| color: #a5b4fc;
|
| }
|
|
|
| .page-header {
|
| margin-bottom: 30px;
|
| }
|
|
|
| .page-header h1 {
|
| font-size: 1.8rem;
|
| font-weight: 700;
|
| background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
|
| -webkit-background-clip: text;
|
| -webkit-text-fill-color: transparent;
|
| background-clip: text;
|
| }
|
|
|
| .page-header p {
|
| color: #94a3b8;
|
| margin-top: 8px;
|
| }
|
|
|
| .flash-messages {
|
| margin-bottom: 20px;
|
| }
|
|
|
| .flash {
|
| padding: 12px 16px;
|
| border-radius: 12px;
|
| font-size: 0.9rem;
|
| margin-bottom: 10px;
|
| animation: slideIn 0.3s ease;
|
| }
|
|
|
| @keyframes slideIn {
|
| from {
|
| opacity: 0;
|
| transform: translateY(-10px);
|
| }
|
|
|
| to {
|
| opacity: 1;
|
| transform: translateY(0);
|
| }
|
| }
|
|
|
| .flash.error {
|
| background: rgba(239, 68, 68, 0.15);
|
| border: 1px solid rgba(239, 68, 68, 0.3);
|
| color: #fca5a5;
|
| }
|
|
|
| .flash.success {
|
| background: rgba(34, 197, 94, 0.15);
|
| border: 1px solid rgba(34, 197, 94, 0.3);
|
| color: #86efac;
|
| }
|
|
|
| .card {
|
| background: rgba(15, 23, 42, 0.8);
|
| backdrop-filter: blur(20px);
|
| border: 1px solid rgba(99, 102, 241, 0.15);
|
| border-radius: 16px;
|
| padding: 30px;
|
| }
|
|
|
| .current-name {
|
| background: rgba(30, 41, 59, 0.6);
|
| border-radius: 12px;
|
| padding: 16px 20px;
|
| margin-bottom: 24px;
|
| }
|
|
|
| .current-name-label {
|
| color: #64748b;
|
| font-size: 0.8rem;
|
| text-transform: uppercase;
|
| letter-spacing: 0.5px;
|
| margin-bottom: 6px;
|
| }
|
|
|
| .current-name-value {
|
| color: #f1f5f9;
|
| font-family: 'Fira Code', monospace;
|
| font-size: 1rem;
|
| }
|
|
|
| .form-group {
|
| margin-bottom: 24px;
|
| }
|
|
|
| label {
|
| display: block;
|
| color: #e2e8f0;
|
| font-size: 0.9rem;
|
| font-weight: 500;
|
| margin-bottom: 10px;
|
| }
|
|
|
| input[type="text"] {
|
| width: 100%;
|
| padding: 14px 16px;
|
| background: rgba(30, 41, 59, 0.8);
|
| border: 1px solid rgba(148, 163, 184, 0.2);
|
| border-radius: 12px;
|
| color: #f1f5f9;
|
| font-size: 1rem;
|
| font-family: 'Fira Code', monospace;
|
| transition: all 0.3s ease;
|
| }
|
|
|
| input[type="text"]:focus {
|
| outline: none;
|
| border-color: #818cf8;
|
| box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
|
| }
|
|
|
| input::placeholder {
|
| color: #64748b;
|
| }
|
|
|
| .hint {
|
| color: #64748b;
|
| font-size: 0.8rem;
|
| margin-top: 8px;
|
| }
|
|
|
| .actions {
|
| display: flex;
|
| gap: 12px;
|
| margin-top: 30px;
|
| }
|
|
|
| .btn {
|
| padding: 12px 24px;
|
| border-radius: 12px;
|
| border: none;
|
| cursor: pointer;
|
| font-weight: 600;
|
| font-family: inherit;
|
| font-size: 0.95rem;
|
| transition: all 0.3s ease;
|
| text-decoration: none;
|
| display: inline-flex;
|
| align-items: center;
|
| gap: 8px;
|
| }
|
|
|
| .btn-primary {
|
| background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
| color: white;
|
| }
|
|
|
| .btn-primary:hover {
|
| transform: translateY(-2px);
|
| box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
|
| }
|
|
|
| .btn-secondary {
|
| background: rgba(100, 116, 139, 0.2);
|
| border: 1px solid rgba(100, 116, 139, 0.3);
|
| color: #94a3b8;
|
| }
|
|
|
| .btn-secondary:hover {
|
| background: rgba(100, 116, 139, 0.3);
|
| color: #e2e8f0;
|
| }
|
|
|
| .glow-orb {
|
| position: fixed;
|
| width: 400px;
|
| height: 400px;
|
| border-radius: 50%;
|
| filter: blur(100px);
|
| opacity: 0.15;
|
| pointer-events: none;
|
| z-index: -1;
|
| }
|
|
|
| .orb-1 {
|
| background: #6366f1;
|
| top: 20%;
|
| right: -100px;
|
| }
|
|
|
| .orb-2 {
|
| background: #c084fc;
|
| bottom: 20%;
|
| left: -100px;
|
| }
|
| </style>
|
| </head>
|
|
|
| <body>
|
| <div class="glow-orb orb-1"></div>
|
| <div class="glow-orb orb-2"></div>
|
|
|
| <nav class="navbar">
|
| <a href="/my-sites" class="nav-brand">h by Xlnk</a>
|
| <div class="nav-links">
|
| <a href="/files/{{site_id}}">Back to Files</a>
|
| <a href="/my-sites">My Sites</a>
|
| </div>
|
| </nav>
|
|
|
| <div class="container">
|
| <div class="breadcrumb">
|
| <a href="/my-sites">My Sites</a> / <a href="/manage/{{site_id}}">{{site_id}}</a> / <a
|
| href="/files/{{site_id}}">Files</a> /
|
| <strong>Rename</strong>
|
| </div>
|
|
|
| <div class="page-header">
|
| <h1>✏️ Rename File</h1>
|
| <p>Change the name or location of this file</p>
|
| </div>
|
|
|
| {% with messages = get_flashed_messages(with_categories=true) %}
|
| {% if messages %}
|
| <div class="flash-messages">
|
| {% for category, message in messages %}
|
| <div class="flash {{ category }}">{{ message }}</div>
|
| {% endfor %}
|
| </div>
|
| {% endif %}
|
| {% endwith %}
|
|
|
| <div class="card">
|
| <div class="current-name">
|
| <div class="current-name-label">Current Name</div>
|
| <div class="current-name-value">{{file}}</div>
|
| </div>
|
|
|
| <form method="post">
|
| <div class="form-group">
|
| <label for="new_name">New Name</label>
|
| <input type="text" id="new_name" name="new_name" placeholder="Enter new filename"
|
| value="{{ new_name or file }}" required autofocus>
|
| <p class="hint">💡 You can move the file to a subfolder by including a path like "css/styles.css"
|
| </p>
|
| </div>
|
|
|
| <div class="actions">
|
| <a href="/files/{{site_id}}" class="btn btn-secondary">Cancel</a>
|
| <button type="submit" class="btn btn-primary">📝 Rename File</button>
|
| </div>
|
| </form>
|
| </div>
|
| </div>
|
| </body>
|
|
|
| </html> |