Implement user profile and pastes retrieval features: add user.html and user.js for user display, create API endpoints for user data, and enhance UI with new styles and elements.

### Copilot Message
This commit is contained in:
whoswhip
2025-05-19 15:12:51 -04:00
parent 1382fb9f07
commit 2126c3a078
9 changed files with 634 additions and 10 deletions
+27 -3
View File
@@ -1,6 +1,8 @@
.main-container {
max-width: 80%;
max-height: 80vh;
margin: 2rem auto;
margin-top: calc(2rem + 55px);
padding: 1.5rem;
background-color: var(--neutral-900);
border-radius: 8px;
@@ -123,7 +125,7 @@
}
.paste-actions button {
padding: 0.6rem 1.2rem;
padding: 0.4rem 0.8rem;
border-radius: 6px;
border: 1px solid var(--neutral-700);
background-color: var(--neutral-800);
@@ -131,7 +133,7 @@
cursor: pointer;
transition: all 0.2s ease;
font-size: 1rem;
min-width: 100px;
min-width: 75px;
display: flex;
align-items: center;
justify-content: center;
@@ -183,7 +185,7 @@
@media (max-width: 480px) {
.main-container {
padding: 1rem;
margin: 1rem;
max-width: 95%;
}
#archive-header {
@@ -202,4 +204,26 @@
min-width: 60px;
font-size: 0.9rem;
}
}
#next-button-svg {
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>');
color: white;
width: 1.5em;
height: 1.5em;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
filter: invert(100%);
}
#previous-button-svg {
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l169.3-169.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>');
color: white;
width: 1.5em;
height: 1.5em;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
filter: invert(100%);
}