new: Added friends page and adjust page style

This commit is contained in:
yv1ing
2024-12-19 15:21:36 +08:00
parent 3e0fff662a
commit a068c22839
16 changed files with 240 additions and 148 deletions

View File

@@ -16,9 +16,10 @@ tr, th, td {
color: var(--primary-text-color);
}
.about-title-wrap {
text-align: center;
.root-container {
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}
.about-title {
@@ -27,7 +28,6 @@ tr, th, td {
.about-content {
line-height: 1.6;
max-width: 1000px;
color: var(--primary-text-color);
}

View File

@@ -0,0 +1,43 @@
.friend-title {
color: var(--primary-color);
}
.friend-item {
margin-top: 20px;
padding: 10px;
display: flex;
align-items: center;
color: var(--primary-text-color);
border: var(--secondary-text-color) 1px dashed;
border-radius: 4px;
}
.friend-item:hover {
cursor: pointer;
border: var(--primary-color) 1px solid;
}
.friend-avatar {
width: 64px;
height: 64px;
object-fit: cover;
border-radius: 50%;
}
.friend-info-wrap {
padding-left: 10px;
}
.friend-name {
font-size: 18px;
font-weight: bolder;
}
.friend-description {
width: 200px;
font-size: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--secondary-text-color);
}

View File

@@ -40,8 +40,8 @@
width: 100%;
height: 100%;
opacity: 0.4;
mask-image: radial-gradient(at 100% 0%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
-webkit-mask-image: radial-gradient(at 100% 0%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
mask-image: radial-gradient(at 100% 100%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
-webkit-mask-image: radial-gradient(at 100% 100%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}
.tag-word-cloud-canvas * {

View File

@@ -1,25 +1,4 @@
function search() {
const keyword = document.getElementById("index-search-input").value;
window.location.href = "/search?keyword=" + keyword;
}
function typeWriter(element_id, text) {
const element = document.getElementById(element_id);
let i = 0;
element.innerHTML = '';
function type() {
if (i < text.length) {
const minSpeed = 50;
const maxSpeed = 200;
const randomSpeed = Math.floor(Math.random() * (maxSpeed - minSpeed + 1)) + minSpeed;
element.innerHTML += text.charAt(i);
i++;
setTimeout(type, randomSpeed);
}
}
type();
}