-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
164 lines (152 loc) · 4.94 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
<!DOCTYPE html>
<html>
<head>
<title>Minimalist Landing Page</title>
<link href="https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap" rel="stylesheet">
<style>
body {
font-family: Georgia, 'Times New Roman', Times, serif;;
margin: 0;
padding: 0;
text-align: center;
background-color: #f6f1eb;
}
#websiteForm {
max-width: 400px;
margin: 0px auto 50px auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#websiteInput {
width: 60%;
padding: 5px;
margin-right: 10px;
}
#addWebsiteBtn {
display: inline-block;
padding: 5px 10px;
margin: 5px
}
#websiteList {
list-style-type: none;
padding: 0;
text-align: left;
margin-top: 10px;
}
.websiteItem {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 5px;
padding: 5px 10px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 5px;
}
#helpfulWebsiteForm {
max-width: 400px;
margin: 0px auto 50px auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#helpfulWebsiteInput {
width: 60%;
padding: 5px;
margin-right: 10px;
}
#addHelpfulWebsiteBtn {
display: inline-block;
padding: 5px 10px;
margin: 5px;
}
#helpfulWebsiteList {
list-style-type: none;
padding: 0;
text-align: left;
margin-top: 10px;
}
.helpfulWebsiteItem {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 5px;
padding: 5px 10px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 5px;
}
.removeBtn {
background-color: #f44336;
color: white;
border: none;
border-radius: 3px;
padding: 3px 8px;
cursor: pointer;
}
h1 {
font-size: 100px;
font-family: great vibes;
}
p {
font-size: 30px;
font-family: Georgia, 'Times New Roman', Times, serif;
}
h3 {
font-size: 30px;
font-family: Georgia, 'Times New Roman', Times, serif;
}
#quote {
font-family: great vibes;
font-size: 45px;
}
span {
font-size: 16px;
font-weight: bold;
}
#countdownTimer {
width: 50px;
height: 30px;
font-size: 30px;
font-family: Georgia, 'Times New Roman', Times, serif;
}
#countdownHeading {
margin: 0;
}
</style>
</head>
<body>
<div class="container">
<h1>Have a Second</h1>
<p>Your time is important, let's have a brief pause before entering time consuming websites.</p>
<!-- <p>Use this to take a breather and dictate your time more wisely.</p> -->
<br>
<h3 id="countdownHeading">How long do you want to wait before entering a site:</h3>
<input type="number" id="countdownTimer"></input>
<h3>Enter your list of naughty websites here:</h3>
<form id="websiteForm">
<label for="websiteInput">Website:</label>
<input type="text" id="websiteInput" name="websiteInput">
<button type="button" id="addWebsiteBtn">Add Website</button>
<ul id="websiteList"></ul>
<!-- <input type="submit" value="Submit"> -->
</form>
<h3>Enter some websites you rather spend your time on:</h3>
<form id="helpfulWebsiteForm">
<label for="helpfulWebsiteInput">Website:</label>
<input type="text" id="helpfulWebsiteInput" name="helpfulWebsiteInput">
<button type="button" id="addHelpfulWebsiteBtn">Add Website</button>
<ul id="helpfulWebsiteList"></ul>
<!-- <input type="submit" value="Submit"> -->
</form>
<br>
<p id="quote">Remember, how we spend our time is how we spend our lives</p>
</div>
<script type="module" src="script.js"></script>
<script type="module" src="background.js"></script>
<!-- <script type="module" src="./background.js"></script> -->
</body>
</html>