").text(text);
+ $("body").append($i);
+ var x = e.pageX - $i.outerWidth() / 2,
+ y = e.pageY - $i.outerHeight() - 1;
+ $i.css({
+ "position": "absolute",
+ "z-index": "10000",
+ "top": y,
+ "left": x,
+ "color": "red",
+ "font-size": "14px",
+ "font-weight": "bold",
+ });
+ $i.animate({
+ "top": y - 60,
+ "left": x,
+ "opacity": "0"
+ }, 600, function() {
+ $i.remove();
+ });
+ e.stopPropagation();
+}
\ No newline at end of file
diff --git a/bookshelfplus-frontend/routes/index.js b/bookshelfplus-frontend/routes/index.js
index 70e09a7..ce42ea7 100644
--- a/bookshelfplus-frontend/routes/index.js
+++ b/bookshelfplus-frontend/routes/index.js
@@ -60,6 +60,13 @@ router.get('/about', function (req, res) {
});
});
+router.get('/feedback', function (req, res) {
+ res.render('feedback', {
+ title: getPageTitle("用户反馈"),
+ headText: "用户反馈"
+ });
+});
+
router.get('/login', function (req, res) {
res.render('login', {
title: getPageTitle("用户登录"),
diff --git a/bookshelfplus-frontend/views/book.html b/bookshelfplus-frontend/views/book.html
index 252ba01..7273e96 100644
--- a/bookshelfplus-frontend/views/book.html
+++ b/bookshelfplus-frontend/views/book.html
@@ -78,7 +78,7 @@
.file-item {
text-align: left;
background-color: #e6e6e6;
- padding: 10px 20px;
+ padding: 15px 20px;
border-radius: 5px;
transition: all 0.3s;
}
@@ -96,20 +96,84 @@
.file-object {
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
place-items: center;
gap: 10px;
}
.file-object>.file-object-item {
+ border: solid 2px #c6c6c6;
+ border-radius: 5px;
+ padding: 5px 8px;
+ min-width: 135px;
+ /* max-width: 150px; */
+ width: 80%;
+ height: 60px;
+ position: relative;
font-size: 14px;
display: inline-block;
transition: all 0.2s;
+ user-select: none;
}
.file-object>.file-object-item:hover {
- transform: scale(1.03);
- font-weight: bold;
+ /* transform: scale(1.03); */
+ border-color: #5e5e5e;
+ }
+
+ .file-object>.file-object-item>.file-object-item-title {
+ height: 20px;
+ }
+ .file-object>.file-object-item>.file-object-item-title>* {
+ vertical-align: middle;
+ }
+
+ .file-object>.file-object-item img {
+ width: 18px;
+ height: 18px;
+ }
+
+ .file-object>.file-object-item .outdated-feedback {
+ width: 20px;
+ height: 20px;
+ position: absolute;
+ right: 2px;
+ top: 2px;
+ cursor: pointer;
+ }
+ .file-object>.file-object-item .outdated-feedback>.outdated-feedback-tip {
+ display: none;
+ position: absolute;
+ width: max-content;
+ background: aliceblue;
+ padding: 3px 5px;
+ border: 2px solid grey;
+ border-radius: 4px;
+ z-index: 99999;
+ margin-left: 5px;
+ font-family: initial;
+ }
+ .file-object>.file-object-item .outdated-feedback:hover .outdated-feedback-tip {
+ display: initial;
+ }
+ .file-object>.file-object-item .outdated-feedback img {
+ opacity: 0.5;
+ transition: all 0.18s;
+ }
+ .file-object>.file-object-item .outdated-feedback:hover img {
+ opacity: 1;
+ }
+
+ .file-object>.file-object-item>.file-object-item-content {
+ height: 20px;
+ display: grid;
+ place-items: center;
+ }
+
+ .file-object>.file-object-item>.file-object-item-link {
+ height: 20px;
+ display: grid;
+ place-items: center;
}
/* 统一 */
@@ -151,7 +215,7 @@
@@ -184,6 +261,8 @@
+
+
+
+
+
+
+