beatify the page

This commit is contained in:
bob.rao
2023-04-21 13:28:52 +08:00
parent a582bd1120
commit 0dc063bbae
3 changed files with 76 additions and 8 deletions

View File

@@ -2,13 +2,69 @@ body {
width: 200px;
padding: 15px;
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
}
.header {
margin-bottom: 10px;
width: 100%;
border-bottom: 1px solid #ccc;
padding-bottom: 10px;
}
.header h1 {
font-size: 16px;
font-weight: bold;
text-align: center;
margin: 0;
}
.buttons-row {
display: flex;
justify-content: space-between;
width: 100%;
margin-bottom: 10px;
}
button {
display: block;
margin-bottom: 10px;
width: 100%;
padding: 5px;
padding: 8px 12px;
font-size: 14px;
cursor: pointer;
background-color: #1ABC9C;
color: white;
border: 1px solid #16A085;
border-radius: 6px;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition-duration: 0.4s;
}
button:hover {
background-color: #16A085;
border-color: #14967F;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
button#bulk-delete {
width: 100%;
font-size: 16px;
background-color: #e74c3c;
border-color: #c0392b;
margin-top: 10px;
}
button#bulk-delete:hover {
background-color: #c0392b;
border-color: #a93226;
}
.footer {
margin-top: 10px;
width: 100%;
font-size: 12px;
text-align: center;
border-top: 1px solid #ccc;
padding-top: 10px;
}

View File

@@ -7,9 +7,17 @@
<link rel="stylesheet" href="popup.css">
</head>
<body>
<button id="add-checkboxes">添加复选框</button>
<button id="bulk-delete">批量删除</button>
<button id="remove-checkboxes">取消复选框</button>
<div class="header">
<h1>bulk-delete-chatGPT</h1>
</div>
<div class="buttons-row">
<button id="add-checkboxes">添加复选框</button>
<button id="remove-checkboxes">去掉复选框</button>
</div>
<button id="bulk-delete">批量删除对话</button>
<div class="footer">
<p id="copyright"></p>
</div>
<script src="popup.js"></script>
</body>
</html>

View File

@@ -8,4 +8,8 @@ document.getElementById('bulk-delete').addEventListener('click', () => {
document.getElementById('remove-checkboxes').addEventListener('click', () => {
chrome.tabs.executeScript({ file: 'removeCheckboxes.js' });
});
});
// Update copyright year
const currentYear = new Date().getFullYear();
document.getElementById('copyright').innerHTML = '&copy; ' + currentYear + ' @qcrao';