Skip to content

Commit a91896e

Browse files
committed
feat: v0.3.1: ui improvements
1 parent 110e912 commit a91896e

File tree

5 files changed

+69
-39
lines changed

5 files changed

+69
-39
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "doomscroll-blocker",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "A chrome extension to block doom scrolling and help you touch grass!",
55
"private": true,
66
"scripts": {

public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Doomscroll Blocker",
4-
"version": "0.3.0",
4+
"version": "0.3.1",
55
"permissions": ["storage"],
66
"description": "A chrome extension to block doom scrolling and help you touch grass!",
77
"icons": {

public/popup.html

Lines changed: 65 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,96 @@
66
<title>Edit Blocked Sites</title>
77
<style>
88
body {
9-
font-family: Arial, sans-serif;
10-
width: 300px;
11-
padding: 10px;
9+
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
10+
width: 320px;
11+
padding: 16px;
12+
margin: 0;
13+
background-color: #f8f9fa;
1214
}
15+
16+
h3 {
17+
margin: 0 0 16px 0;
18+
color: #1a1a1a;
19+
font-size: 18px;
20+
}
21+
22+
#siteInput {
23+
width: 100%;
24+
padding: 8px 12px;
25+
margin-bottom: 12px;
26+
border: 1px solid #dee2e6;
27+
border-radius: 6px;
28+
box-sizing: border-box;
29+
font-size: 14px;
30+
}
31+
32+
#siteInput:focus {
33+
outline: none;
34+
border-color: #2a9d8f;
35+
box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
36+
}
37+
1338
#siteList {
1439
list-style-type: none;
1540
padding: 0;
41+
margin: 16px 0;
42+
max-height: 200px;
43+
overflow-y: auto;
1644
}
45+
1746
#siteList li {
1847
display: flex;
1948
justify-content: space-between;
20-
padding: 5px 0;
21-
border-bottom: 1px solid #ddd;
49+
align-items: center;
50+
padding: 8px 12px;
51+
background: white;
52+
border-radius: 6px;
53+
margin-bottom: 8px;
54+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
2255
}
23-
#siteList li button {
24-
background-color: #f94144;
25-
color: white;
56+
57+
button {
58+
padding: 8px 16px;
2659
border: none;
27-
border-radius: 3px;
60+
border-radius: 6px;
2861
cursor: pointer;
29-
padding: 3px 5px;
30-
}
31-
#siteInput {
32-
width: calc(100% - 24px);
33-
padding: 5px;
34-
margin-bottom: 10px;
62+
font-size: 14px;
63+
font-weight: 500;
64+
transition: all 0.2s ease;
3565
}
36-
button {
37-
padding: 5px 10px;
38-
margin: 5px 0;
39-
cursor: pointer;
40-
border: none;
41-
border-radius: 3px;
66+
67+
button:hover {
68+
transform: translateY(-1px);
69+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
4270
}
71+
4372
#addSiteBtn {
44-
background-color: #8ac926;
73+
background-color: #2a9d8f;
4574
color: white;
75+
width: 100%;
4676
}
47-
#saveSites,
48-
#cancelSites {
49-
width: 45%;
50-
}
51-
#saveSites {
52-
background-color: #2a9d8f;
77+
78+
#siteList li button {
79+
background-color: #ef476f;
5380
color: white;
81+
padding: 4px 8px;
82+
font-size: 12px;
5483
}
55-
#cancelSites {
56-
background-color: #f94144;
84+
85+
#closeButton {
86+
background-color: #6c757d;
5787
color: white;
88+
width: 100%;
89+
margin-top: 8px;
5890
}
5991
</style>
6092
</head>
6193
<body>
62-
<h3>Edit Blocked Sites</h3>
63-
<input type="text" id="siteInput" placeholder="Add new site" />
94+
<h3>Blocked Sites</h3>
95+
<input type="text" id="siteInput" placeholder="Enter website URL..." />
6496
<button id="addSiteBtn">Add Site</button>
6597
<ul id="siteList"></ul>
66-
<div>
67-
<button id="closeButton">Close</button>
68-
</div>
98+
<button id="closeButton">Close</button>
6999
<script src="popup.js"></script>
70100
</body>
71101
</html>

store/ui.png

60.2 KB
Loading

0 commit comments

Comments
 (0)