mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
083373a24f
- Add Redis architecture implementation - Update browser extension functionality - Clean up deprecated files and documentation - Enhance backend handlers for auth, messages, search - Add new configuration options and settings - Update Docker and deployment configurations
1001 lines
24 KiB
HTML
1001 lines
24 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-kb-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Trackeep Saver</title>
|
|
<style>
|
|
/* Modern Inter Font */
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
|
|
/* Modern CSS Variables - Proton Pass Inspired */
|
|
:root {
|
|
--bg-primary: #0f0f0f;
|
|
--bg-secondary: #1a1a1a;
|
|
--bg-tertiary: #262626;
|
|
--bg-hover: #2a2a2a;
|
|
--bg-active: #333333;
|
|
--border-primary: #2a2a2a;
|
|
--border-secondary: #333333;
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #a3a3a3;
|
|
--text-tertiary: #737373;
|
|
--accent-primary: #3b82f6;
|
|
--accent-hover: #2563eb;
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
--error: #ef4444;
|
|
--gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
|
|
--gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
|
|
--radius-sm: 6px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--radius-xl: 16px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
min-width: 400px;
|
|
max-width: 440px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
font-size: 14px;
|
|
color-scheme: dark;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
background: var(--gradient-secondary);
|
|
padding: 20px 20px 16px;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: var(--gradient-primary);
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.logo-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Icon Definitions */
|
|
.icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
fill: white;
|
|
stroke: white;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.icon-sm {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.icon-lg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.icon-xl {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
/* External SVG Icons */
|
|
img.icon {
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
img.icon-sm {
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
img.icon-xl {
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
.logo {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--gradient-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
box-shadow: var(--shadow-md);
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.logo:hover {
|
|
transform: scale(1.05) rotate(5deg);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.logo::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -50%;
|
|
left: -50%;
|
|
width: 200%;
|
|
height: 200%;
|
|
background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
|
|
transform: rotate(45deg);
|
|
animation: shimmer 3s infinite;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
|
|
100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
|
|
}
|
|
|
|
/* Enhanced options button */
|
|
.options-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
font-size: 14px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.options-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 0;
|
|
height: 0;
|
|
background: var(--accent-primary);
|
|
border-radius: 50%;
|
|
transform: translate(-50%, -50%);
|
|
transition: all 0.3s ease;
|
|
opacity: 0.1;
|
|
}
|
|
|
|
.options-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--accent-primary);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.options-btn:hover::before {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Status Bar */
|
|
.status-bar {
|
|
padding: 8px 20px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-primary);
|
|
min-height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.status-indicator {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--text-tertiary);
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.status-indicator.connected {
|
|
background: var(--success);
|
|
}
|
|
|
|
.status-indicator.error {
|
|
background: var(--error);
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
.status-text {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
flex: 1;
|
|
}
|
|
|
|
/* Main Content */
|
|
.content {
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 20px;
|
|
background: var(--bg-secondary);
|
|
padding: 4px;
|
|
border-radius: var(--radius-lg);
|
|
border: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius-md);
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tab:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.tab.active {
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid var(--border-secondary);
|
|
}
|
|
|
|
.tab-icon {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Tab Content */
|
|
.tab-content {
|
|
display: none;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* Form Sections */
|
|
.form-section {
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
padding: 20px;
|
|
border: 1px solid var(--border-primary);
|
|
margin-bottom: 16px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.form-section:hover {
|
|
border-color: var(--border-secondary);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--gradient-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Form Elements */
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
position: relative;
|
|
}
|
|
|
|
.form-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
margin-bottom: 6px;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.form-group:focus-within label {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="url"],
|
|
input[type="file"],
|
|
textarea {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-primary);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
font-family: 'Inter', sans-serif;
|
|
font-weight: 400;
|
|
transition: all 0.2s ease;
|
|
outline: none;
|
|
position: relative;
|
|
}
|
|
|
|
input[type="text"]:hover,
|
|
input[type="url"]:hover,
|
|
textarea:hover {
|
|
border-color: var(--border-secondary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
input[type="url"]:focus,
|
|
textarea:focus {
|
|
border-color: var(--accent-primary);
|
|
background: var(--bg-hover);
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
input[type="file"] {
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
input[type="file"]:hover {
|
|
border-color: var(--accent-primary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/* Input field icons */
|
|
.input-icon {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-tertiary);
|
|
font-size: 14px;
|
|
pointer-events: none;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.form-group:focus-within .input-icon {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
/* Checkbox */
|
|
.checkbox-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-primary);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.checkbox-group:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-secondary);
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
accent-color: var(--accent-primary);
|
|
}
|
|
|
|
.checkbox-label {
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
font-weight: 400;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 12px 20px;
|
|
border-radius: var(--radius-md);
|
|
border: none;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
font-family: 'Inter', sans-serif;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
outline: none;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
|
|
transition: left 0.5s;
|
|
}
|
|
|
|
.btn:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
/* Enhanced Header Styles */
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.quick-save-btn {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.quick-save-btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md);
|
|
background: linear-gradient(135deg, #059669 0%, #047857 100%);
|
|
}
|
|
|
|
.content-type-indicator {
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
margin: 8px 0;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Tags Suggestions */
|
|
.tags-container {
|
|
position: relative;
|
|
}
|
|
|
|
.suggested-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
padding: 8px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.suggested-tag {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.suggested-tag:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.tags-help {
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
margin-top: 4px;
|
|
font-style: italic;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-secondary);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.btn-block {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-group {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* Enhanced status bar animations */
|
|
.status-bar {
|
|
padding: 8px 20px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-primary);
|
|
min-height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.status-bar:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Enhanced tab animations */
|
|
.tab {
|
|
flex: 1;
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius-md);
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
position: relative;
|
|
}
|
|
|
|
.tab::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
width: 0;
|
|
height: 2px;
|
|
background: var(--accent-primary);
|
|
transition: all 0.3s ease;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.tab:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.tab:hover::after {
|
|
width: 30%;
|
|
}
|
|
|
|
.tab.active {
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid var(--border-secondary);
|
|
}
|
|
|
|
.tab.active::after {
|
|
width: 60%;
|
|
}
|
|
|
|
/* Status Messages */
|
|
.status-message {
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
margin-top: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.status-message.success {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: var(--success);
|
|
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
}
|
|
|
|
.status-message.error {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: var(--error);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.status-message.info {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
color: var(--accent-primary);
|
|
border: 1px solid rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
/* Icon System */
|
|
.icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.icon-sm {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.icon-lg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.icon-xl {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
/* Icon animations */
|
|
.icon-spin {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
.icon-pulse {
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50% { opacity: 0.8; transform: scale(1.05); }
|
|
}
|
|
|
|
/* Enhanced button icons */
|
|
.btn .icon {
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.btn:hover .icon {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.btn:active .icon {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Tab icon enhancements */
|
|
.tab .icon {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.tab:hover .icon {
|
|
transform: translateY(-1px) scale(1.1);
|
|
}
|
|
|
|
.tab.active .icon {
|
|
color: var(--accent-primary);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Section icon enhancements */
|
|
.section-icon {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-section:hover .section-icon {
|
|
transform: scale(1.05);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
/* Status indicator enhancements */
|
|
.status-indicator {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.status-indicator.connected {
|
|
box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
|
|
}
|
|
|
|
.status-indicator.error {
|
|
box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 420px) {
|
|
body {
|
|
min-width: 360px;
|
|
}
|
|
|
|
.content {
|
|
padding: 16px;
|
|
}
|
|
|
|
.form-section {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Enhanced Header with Smart Detection -->
|
|
<div class="header">
|
|
<div class="header-content">
|
|
<div class="logo-container">
|
|
<div class="logo">
|
|
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/trackeep.svg" alt="Trackeep" class="icon-xl" style="width: 24px; height: 24px; fill: white;" />
|
|
</div>
|
|
<div>
|
|
<div class="title">Trackeep Saver</div>
|
|
<div id="statusIndicator" class="status-indicator"></div>
|
|
</div>
|
|
</div>
|
|
<div class="header-actions">
|
|
<button id="quickSaveBtn" class="quick-save-btn" title="Quick Save (Ctrl+Shift+S)">
|
|
<img src="https://www.svgrepo.com/show/521819/save.svg" alt="Save" class="icon-sm" style="width: 14px; height: 14px;" />
|
|
<span>Quick Save</span>
|
|
</button>
|
|
<button id="openOptions" class="options-btn" title="Options">
|
|
<img src="https://www.svgrepo.com/show/505495/settings.svg" alt="Settings" class="icon" style="width: 16px; height: 16px;" />
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div id="statusText" class="status-text">Loading...</div>
|
|
<div id="contentTypeIndicator" class="content-type-indicator" style="display: none;"></div>
|
|
</div>
|
|
|
|
<!-- Status Bar -->
|
|
<div class="status-bar">
|
|
</div>
|
|
|
|
<!-- Main Content -->
|
|
<main class="content">
|
|
<!-- Tabs -->
|
|
<div class="tabs">
|
|
<button class="tab active" data-tab="bookmark">
|
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/>
|
|
</svg>
|
|
<span>Bookmark</span>
|
|
</button>
|
|
<button class="tab" data-tab="file">
|
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
|
|
</svg>
|
|
<span>File</span>
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Bookmark Tab -->
|
|
<div class="tab-content active" id="bookmark-tab">
|
|
<div class="form-section">
|
|
<div class="section-header">
|
|
<div class="section-icon">
|
|
<img src="https://www.svgrepo.com/show/447845/website-click.svg" alt="Website" class="icon-xl" style="width: 24px; height: 24px;" />
|
|
</div>
|
|
<h2 class="section-title">Save Current Page</h2>
|
|
</div>
|
|
|
|
<!-- Enhanced Bookmark Form with Smart Suggestions -->
|
|
<div class="form-group">
|
|
<label for="bookmarkTitle">Title</label>
|
|
<input type="text" id="bookmarkTitle" placeholder="Page title..." class="form-input" />
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="bookmarkUrl">URL</label>
|
|
<input type="url" id="bookmarkUrl" placeholder="https://..." class="form-input" />
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="bookmarkDescription">Description</label>
|
|
<textarea id="bookmarkDescription" placeholder="Optional description..." rows="3" class="form-input"></textarea>
|
|
</div>
|
|
|
|
<!-- Smart Tags Suggestions -->
|
|
<div class="form-group">
|
|
<label for="bookmarkTags">Tags</label>
|
|
<div class="tags-container">
|
|
<input type="text" id="bookmarkTags" placeholder="comma-separated tags..." class="form-input" />
|
|
<div id="suggestedTags" class="suggested-tags" style="display: none;"></div>
|
|
</div>
|
|
<div class="tags-help">Click suggested tags to add them automatically</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="checkbox-group">
|
|
<input id="bookmarkPublic" type="checkbox" />
|
|
<label for="bookmarkPublic" class="checkbox-label">Make this bookmark public</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="btn-group">
|
|
<div></div>
|
|
<button class="btn btn-primary" id="saveBookmarkBtn">
|
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/>
|
|
<polyline points="17,21 17,13 7,13 7,21"/>
|
|
<polyline points="7,3 7,8 15,8"/>
|
|
</svg>
|
|
<span>Save Bookmark</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- File Tab -->
|
|
<div class="tab-content" id="file-tab">
|
|
<div class="form-section">
|
|
<div class="section-header">
|
|
<div class="section-icon">
|
|
<img src="https://www.svgrepo.com/show/532805/file-shredder.svg" alt="File" class="icon-xl" style="width: 24px; height: 24px;" />
|
|
</div>
|
|
<h2 class="section-title">Upload File</h2>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="fileInput">Choose File</label>
|
|
<input id="fileInput" type="file" />
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="fileDescription">Description</label>
|
|
<textarea id="fileDescription" placeholder="Describe this file..." rows="3"></textarea>
|
|
</div>
|
|
|
|
<button class="btn btn-primary btn-block" id="uploadFileBtn">
|
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M21 15v4a2 2 0 0 1-2h-4a2 2 0 0 0 1 2 2v4"/>
|
|
<polyline points="17,8 12,8 8,8"/>
|
|
<line x1="16" y1="13" x2="8" y2="13"/>
|
|
<line x1="16" y1="17" x2="8" y2="17"/>
|
|
<polyline points="10,9 9,9 8,9"/>
|
|
</svg>
|
|
<span>Upload File</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Status Message -->
|
|
<div id="statusMessage" class="status-message" style="display: none;"></div>
|
|
</main>
|
|
|
|
<script src="popup.js"></script>
|
|
</body>
|
|
</html>
|