-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpopup.html
174 lines (153 loc) · 4.16 KB
/
popup.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Miro: ChatGPT Notification Extension</title>
<style>
:root {
--primary-color: #4a90e2;
--background-light: #ffffff;
--background-dark: #1e1e1e;
--text-light: #333333;
--text-dark: #f5f5f5;
--switch-light: #d8dbe0;
--switch-dark: #28292c;
}
body {
width: 300px;
height: 400px;
margin: 0;
padding: 20px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--background-light);
color: var(--text-light);
transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark-mode {
background-color: var(--background-dark);
color: var(--text-dark);
}
.container {
display: flex;
flex-direction: column;
height: 100%;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
h1 {
font-size: 1.3rem;
margin: 0;
color: var(--primary-color);
}
.tagline {
font-size: 0.9rem;
margin-bottom: 20px;
font-style: italic;
}
.toggle-switch {
position: relative;
width: 50px;
height: 24px;
}
.switch-label {
position: absolute;
width: 100%;
height: 100%;
background-color: var(--switch-dark);
border-radius: 12px;
cursor: pointer;
border: 2px solid var(--switch-dark);
}
.checkbox {
position: absolute;
display: none;
}
.slider {
position: absolute;
width: 100%;
height: 100%;
border-radius: 12px;
transition: 0.3s;
}
.checkbox:checked ~ .slider {
background-color: var(--switch-light);
}
.slider::before {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: 50%;
box-shadow: inset 6px -2px 0px 0px var(--switch-light);
background-color: var(--switch-dark);
transition: 0.3s;
}
.checkbox:checked ~ .slider::before {
transform: translateX(26px);
background-color: var(--switch-dark);
box-shadow: none;
}
/* Dark mode styles for the toggle */
body.dark-mode .switch-label {
background-color: var(--switch-light);
border-color: var(--switch-light);
}
body.dark-mode .checkbox:checked ~ .slider {
background-color: var(--switch-dark);
}
body.dark-mode .slider::before {
box-shadow: inset 6px -2px 0px 0px var(--switch-dark);
background-color: var(--switch-light);
}
body.dark-mode .checkbox:checked ~ .slider::before {
background-color: var(--switch-light);
}
.content {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
p {
font-size: 1rem;
line-height: 1.5;
}
.footer {
margin-top: auto;
text-align: center;
font-size: 0.8rem;
color: #888;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Miro: ChatGPT Notifier</h1>
<div class="toggle-switch">
<label class="switch-label">
<input type="checkbox" class="checkbox" id="darkModeToggle">
<span class="slider"></span>
</label>
</div>
</div>
<div class="tagline">Stay in the loop, effortlessly.</div>
<div class="content">
<p>Miro keeps you informed when ChatGPT has a response ready, allowing you to multitask efficiently without missing a beat.</p>
<p>Simply enable notifications and let Miro handle the rest. Focus on your work while staying connected to your AI assistant.</p>
</div>
<div class="footer">
© 2024 Miro Extension. All rights reserved.
</div>
</div>
<!-- Load the script from external file -->
<script src="popup.js"></script>
</body>
</html>