-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
110 lines (101 loc) · 4.59 KB
/
popup.html
File metadata and controls
110 lines (101 loc) · 4.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stash</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
<div class="app">
<!-- Glassmorphic Background -->
<div class="bg-gradient"></div>
<div class="bg-blur"></div>
<!-- Header -->
<header class="header">
<div class="header-brand">
<div class="logo-container">
<svg class="logo-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 10C3 8.34315 4.34315 7 6 7H9C9.55228 7 10 7.44772 10 8V9.5C10 10.3284 10.6716 11 11.5 11H12.5C13.3284 11 14 10.3284 14 9.5V8C14 7.44772 14.4477 7 15 7H18C19.6569 7 21 8.34315 21 10V18C21 19.1046 19.6569 20 18 20H6C4.34315 20 3 18.6569 3 17V10Z" fill="currentColor"/>
<rect x="10.5" y="4.5" width="3" height="6" rx="1.5" fill="url(#accentGradient)"/>
<defs>
<linearGradient id="accentGradient" x1="12" y1="4.5" x2="12" y2="10.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#f59e0b"/>
<stop offset="1" stop-color="#d97706"/>
</linearGradient>
</defs>
</svg>
</div>
<div class="brand-text">
<span class="logo-text">Stash</span>
<span class="logo-badge" id="activeTabCount">0</span>
</div>
</div>
<button class="header-action-btn" id="openDashboard" data-i18n-title="fullscreen">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2"/>
<path d="M9 3v18"/>
</svg>
</button>
</header>
<!-- Save Action Card -->
<div class="save-section">
<button class="save-btn" id="saveAllTabs">
<div class="save-btn-glow"></div>
<div class="save-btn-content">
<div class="save-icon-wrapper">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 5v14M5 12h14"/>
</svg>
</div>
<div class="save-text-wrapper">
<span class="save-text-main" data-i18n="saveAll">Save All Tabs</span>
<span class="save-text-sub" id="tabCountHint">Ready to save</span>
</div>
</div>
<svg class="save-arrow" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M5 12h14M12 5l7 7-7 7"/>
</svg>
</button>
</div>
<!-- Search Bar -->
<div class="search-section">
<div class="search-container">
<svg class="search-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/>
<path d="M21 21l-4.35-4.35"/>
</svg>
<input type="text" id="searchInput" class="search-input" data-i18n-placeholder="searchPlaceholder" placeholder="Search saved tabs...">
</div>
</div>
<!-- Groups List -->
<div class="groups-wrapper">
<div class="groups-container" id="groupsContainer">
<div class="empty-state" id="emptyState">
<div class="empty-icon-wrapper">
<div class="empty-icon-bg"></div>
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 10C3 8.34315 4.34315 7 6 7H9C9.55228 7 10 7.44772 10 8V9C10 10.1046 10.8954 11 12 11C13.1046 11 14 10.1046 14 9V8C14 7.44772 14.4477 7 15 7H18C19.6569 7 21 8.34315 21 10V18C21 19.1046 19.6569 20 18 20H6C4.34315 20 3 18.6569 3 17V10Z" fill="currentColor" opacity="0.5"/>
<rect x="10" y="5" width="4" height="6" rx="2" fill="currentColor" opacity="0.7"/>
</svg>
</div>
<h3 class="empty-title" data-i18n="noTabsYet">No tabs yet</h3>
<p class="empty-subtitle" data-i18n="noTabsDescription">Click save to stash your open tabs</p>
</div>
</div>
</div>
<!-- Toast -->
<div class="toast" id="toast">
<div class="toast-icon">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<polyline points="20 6 9 17 4 12"/>
</svg>
</div>
<span id="toastMessage"></span>
</div>
</div>
<script src="i18n.js"></script>
<script src="popup.js"></script>
</body>
</html>