-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
240 lines (226 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
body {
width: 600px;
padding: 20px;
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-direction: column;
gap: 15px;
}
.file-info {
margin-top: 10px;
padding: 15px;
background-color: #f0f0f0;
border-radius: 4px;
display: none;
}
.button {
background-color: #4CAF50;
color: white;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.button:hover {
background-color: #45a049;
}
.button-small {
padding: 5px 10px;
font-size: 0.9em;
}
.button-red {
background-color: #f44336;
}
.button-red:hover {
background-color: #da190b;
}
.button-blue {
background-color: #2196F3;
}
.button-blue:hover {
background-color: #0b7dda;
}
.button-yellow {
background-color: #FFC107;
}
.button-yellow:hover {
background-color: #FFA000;
}
.queue-container {
margin-top: 20px;
max-height: 600px;
overflow-y: auto;
}
.queue-item {
padding: 15px;
margin-bottom: 15px;
background-color: #f8f9fa;
border-radius: 4px;
border-left: 4px solid #4CAF50;
}
.queue-item h4 {
margin: 0 0 10px 0;
font-size: 1.1em;
}
.queue-item p {
margin: 8px 0;
font-size: 0.95em;
line-height: 1.4;
}
.status {
color: #666;
font-style: italic;
}
.timestamp {
color: #999;
font-size: 0.85em;
}
.site-name {
color: #0066cc;
}
#cvFile {
display: none;
}
.analysis {
margin-top: 15px;
padding: 15px;
background-color: #e8f5e9;
border-radius: 4px;
}
.analysis h4 {
color: #2e7d32;
margin: 0 0 10px 0;
}
.analysis p {
white-space: pre-line;
line-height: 1.5;
}
.button-container {
display: flex;
gap: 10px;
margin-top: 15px;
}
.save-options {
display: none;
margin-top: 10px;
padding: 10px;
background-color: #f5f5f5;
border-radius: 4px;
}
.save-options button {
margin-right: 10px;
}
/* Tab styles */
.tabs {
display: flex;
margin-bottom: 20px;
border-bottom: 2px solid #e0e0e0;
}
.tab {
padding: 10px 20px;
cursor: pointer;
border: none;
background: none;
font-size: 1.1em;
color: #666;
}
.tab.active {
color: #2196F3;
border-bottom: 2px solid #2196F3;
margin-bottom: -2px;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* Notification styles */
.notification-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;
}
.notification {
background-color: #4CAF50;
color: white;
padding: 12px 24px;
border-radius: 4px;
margin-bottom: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
animation: slideIn 0.5s ease-out forwards;
opacity: 0;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
/* Warning message styles */
.warning-message {
color: #856404;
background-color: #fff3cd;
border: 1px solid #ffeeba;
padding: 10px 15px;
border-radius: 4px;
margin-bottom: 15px;
display: none;
}
.warning-message.show {
display: block;
}
</style>
</head>
<body>
<div class="notification-container" id="notificationContainer"></div>
<div class="container">
<h3>CV Karşılaştırma Aracı</h3>
<div class="tabs">
<button class="tab active" data-tab="queue">İnceleme Kuyruğu</button>
<button class="tab" data-tab="favorites">Favoriler</button>
</div>
<div class="tab-content active" id="queueTab">
<div id="warningMessage" class="warning-message"></div>
<input type="file" id="cvFile" accept=".txt,.pdf">
<button class="button" id="selectFile">CV Dosyası Seç</button>
<div id="fileInfo" class="file-info">
<strong>Seçili Dosya:</strong>
<p id="fileName"></p>
</div>
<div class="queue-container" id="queueContainer">
<h3>İnceleme Kuyruğu</h3>
<div id="queueItems"></div>
</div>
</div>
<div class="tab-content" id="favoritesTab">
<div class="queue-container">
<h3>Favori İlanlar</h3>
<div id="favoriteItems"></div>
</div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>