-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
120 lines (102 loc) · 3.32 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
<!-- popup.html -->
<!DOCTYPE html>
<html>
<head>
<title>HackFocus Popup</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.16/tailwind.min.css">
<style>
body {
font-family: 'Roboto', sans-serif;
text-align: center;
padding: 20px;
background-color: #f5f7fa;
}
.popup-container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
h2 {
text-align: left;
font-size: 16px;
font-weight: 500;
margin-bottom: 4px;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid #e2e8f0;
}
.blocklist-item i {
cursor: pointer;
}
#addSiteButton {
padding: 10px 20px;
background-color: #63b3ed;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
#addSiteButton i {
margin-right: 8px;
}
#siteInput {
padding: 8px;
border: 1px solid #cbd5e0;
border-radius: 5px;
}
#pointsDisplay {
font-size: 16px;
font-weight: bold;
}
.focus-health-message {
margin-top: 15px;
font-size: 15px;
}
</style>
</head>
<body>
<div class="popup-container">
<div class=" mb-3 flex items-center justify-center">
<img class="w-12" src="/icons/logo.png" alt="">
<span class="text-xl text-blue-400 font-bold block">Procrasti<span class="text-red-400">Nope!</span></span>
</div>
<h2>Blocklist</h2>
<ul id="blocklist">
<!-- Blocked sites will be dynamically added here -->
<li class="blocklist-item">
<span>example.com</span>
<i class="fas fa-times text-red-500 remove-icon cursor-pointer"></i>
</li>
</ul>
<div class="mt-4 text-left">
<label for="siteInput">Add Site to Blocklist:</label>
<div class="flex items-center">
<input type="text" id="siteInput" placeholder="example.com" class="mr-2 flex-1">
<button id="addSiteButton" class="flex items-center">
<i class="fas fa-check"></i> Add
</button>
</div>
</div>
<div class="mt-4 mb-1 text-left">
<input id="alarmToggle" type="checkbox" class="mr-1">
<label for="alarmToggle" class="text-sm text-gray-500 font-bold">Meme Break <i
class="fa-regular fa-hourglass-half"></i></label>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>