-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
74 lines (65 loc) · 3.03 KB
/
popup.html
File metadata and controls
74 lines (65 loc) · 3.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body { width: 250px; padding: 15px; font-family: 'Segoe UI', sans-serif; text-align: center; }
h3 { margin: 0 0 15px 0; color: #202124; font-size: 18px; }
/* বাটন ডিজাইন */
button {
background-color: #f8f9fa; color: #3c4043; border: 1px solid #dadce0;
padding: 12px 15px; border-radius: 8px; cursor: pointer; width: 100%;
font-size: 13px; margin-bottom: 10px; display: flex; align-items: center;
transition: all 0.2s;
}
button:hover { background-color: #f1f3f4; transform: translateY(-1px); }
button:active { transform: scale(0.98); }
.icon { margin-right: 12px; font-size: 18px; }
#btnVisible { border-left: 5px solid #4285F4; }
#btnArea { border-left: 5px solid #EA4335; }
#btnFull { border-left: 5px solid #34A853; }
/* টগল সুইচ সেকশন */
.switch-container {
display: flex; align-items: center; justify-content: space-between;
background: #e8f0fe; padding: 8px 12px; border-radius: 6px;
margin-bottom: 15px; border: 1px solid #d2e3fc;
}
.switch-label { font-size: 12px; font-weight: 600; color: #1967d2; }
/* টগল সুইচ ডিজাইন */
.switch { position: relative; display: inline-block; width: 34px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px;
background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: #4285F4; }
input:checked + .slider:before { transform: translateX(14px); }
/* ফুটার */
.footer { margin-top: 15px; padding-top: 10px; border-top: 1px solid #eee; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #666; }
.profile-img { width: 24px; height: 24px; border-radius: 50%; margin-right: 6px; }
</style>
</head>
<body>
<h3>My Capture</h3>
<div class="switch-container">
<span id="modeText" class="switch-label">Save to: Cloud ☁️</span>
<label class="switch">
<input type="checkbox" id="storageToggle" checked>
<span class="slider"></span>
</label>
</div>
<button id="btnVisible"><span class="icon">📸</span> Visible Part</button>
<button id="btnArea"><span class="icon">✂️</span> Selected Area</button>
<button id="btnFull"><span class="icon">🌍</span> Full Page</button>
<p id="status" style="font-size:11px; color:#666;"></p>
<div class="footer">
<img src="profile.png" class="profile-img"> <span>Dev by <b>Imran Hasan</b></span>
</div>
<script src="popup.js"></script>
</body>
</html>