-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
146 lines (128 loc) · 3.65 KB
/
popup.html
File metadata and controls
146 lines (128 loc) · 3.65 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
:root {
--primary-color: #409eff;
--primary-hover: #337ecc;
--success-color: #67c23a;
--warning-color: #e6a23c;
--danger-color: #f56c6c;
--text-color: #303133;
--border-color: #dcdfe6;
--bg-color: #ffffff;
--card-bg: #f5f7fa;
--shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body {
width: 300px;
padding: 16px;
background-color: var(--bg-color);
color: var(--text-color);
}
.header {
display: flex;
align-items: center;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border-color);
}
.header h1 {
font-size: 18px;
font-weight: 600;
color: var(--text-color);
margin-left: 8px;
}
.logo {
width: 24px;
height: 24px;
}
.btn {
display: block;
width: 100%;
padding: 10px 16px;
margin-bottom: 12px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
position: relative;
overflow: hidden;
}
.btn i {
margin-right: 6px;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-hover);
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.btn-danger {
background-color: var(--danger-color);
color: white;
}
.btn-danger:hover {
background-color: #f78989;
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.footer {
margin-top: 20px;
padding-top: 12px;
border-top: 1px solid var(--border-color);
font-size: 12px;
color: #909399;
text-align: center;
}
.card {
background: var(--card-bg);
border-radius: 8px;
padding: 12px;
margin-bottom: 12px;
}
.card-title {
font-size: 13px;
color: #606266;
margin-bottom: 8px;
font-weight: 500;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<div class="header">
<img src="icons/icon48.png" alt="JC Tools" class="logo">
<h1>JC 插件工具</h1>
</div>
<div class="card">
<div class="card-title">书签工具</div>
<button id="syncBtn" class="btn btn-primary">
<i class="fas fa-sync-alt"></i>同步 Chrome 书签
</button>
</div>
<div class="card">
<div class="card-title">网站数据管理</div>
<button id="cleanAppBtn" class="btn btn-danger">
<i class="fas fa-trash-alt"></i>清除网站数据
</button>
</div>
<div class="footer">
JC Tools v1.0.0
</div>
<script src="popup.js"></script>
</body>
</html>