Add user authentication and dashboard features

- Implemented login and registration forms with validation.
- Created dashboard layout to display user account information and pastes.
- Added JavaScript functionality for fetching account data and pastes.
- Styled authentication and dashboard pages with CSS.
- Introduced modals for logout and account deletion confirmation.
- Included error handling for user actions and API responses.

### Copilot generated commit message
This commit is contained in:
whoswhip
2025-05-17 22:20:07 -04:00
parent 94fb936b32
commit 2a25ab1ab8
20 changed files with 2185 additions and 299 deletions
+114 -64
View File
@@ -2,101 +2,151 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
padding: 0.75rem 2rem;
background-color: var(--neutral-900);
color: #fff;
position: fixed;
width: 100%;
top: 0;
left: 0;
right: 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.nav-link {
.nav-brand {
flex: 0 0 auto;
z-index: 15;
}
.brand-link {
font-size: 1.5rem;
font-weight: 700;
color: #fff;
text-decoration: none;
font-size: 1.2rem;
transition: color 0.3s;
}
.nav-link:hover {
color: var(--neutral-300);
letter-spacing: 0.5px;
transition: transform 0.2s ease;
}
.nav-links .nav-link {
width: auto;
padding: 0 1rem;
border-bottom: none;
.brand-link:hover {
transform: scale(1.05);
}
.nav-links .nav-link:last-child {
border-bottom: none;
}
.hamburger {
display: none;
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
margin: 0 auto;
.nav-center {
position: absolute;
left: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
}
.nav-links {
display: flex;
flex-direction: row;
position: static;
background-color: transparent;
padding: 0;
max-height: none;
transition: none;
align-items: center;
justify-content: center;
gap: 1rem;
}
.nav-links.show {
display: flex;
.nav-link {
color: rgba(255, 255, 255, 0.85);
text-decoration: none;
font-size: 1.1rem;
padding: 0.6rem 1.2rem;
border-radius: 6px;
transition: all 0.3s ease;
font-weight: 500;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-link:hover {
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}
#nav-bar-selected {
color: #fff;
background-color: rgba(255, 255, 255, 0.15);
font-weight: 500;
}
.hamburger {
display: none;
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: var(--neutral-900);
padding: 1rem 2rem;
max-height: 500px;
transition: max-height 0.3s ease-out;
overflow: hidden;
justify-content: space-between;
width: 30px;
height: 21px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
z-index: 15;
}
.hamburger-line {
display: block;
height: 3px;
width: 100%;
border-radius: 10px;
background: #fff;
transition: all 0.3s ease;
}
@media (max-width: 800px) {
.nav-center {
position: static;
}
.nav-links {
display: none;
flex-direction: column;
width: 100%;
position: absolute;
top: 100%;
position: fixed;
top: 60px;
left: 0;
right: 0;
border-top: 1px solid var(--neutral-800);
background-color: var(--neutral-900);
padding: 1rem 2rem;
max-height: 0;
transition: max-height 0.3s ease-out;
overflow: hidden;
}
.nav-link{
width: 100% !important;
padding: 1rem 0 !important;
text-align: center;
border-bottom: 1px solid var(--neutral-800) !important;
}
.nav-links.show {
display: flex;
max-height: 500px;
flex-direction: column;
align-items: center;
padding: 0;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out, padding 0.3s ease;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.nav-links.show {
max-height: 300px;
padding: 1rem 0;
}
.nav-link {
width: 90%;
text-align: center;
padding: 1rem;
border-bottom: 1px solid var(--neutral-800);
}
.home-link {
border: none;
border-bottom: 1px solid var(--neutral-800);
order: -1;
}
.nav-link:last-child {
border-bottom: none;
}
.hamburger {
display: block;
margin: 0 auto;
display: flex;
}
.nav-bar {
justify-content: center;
.hamburger.active .hamburger-line:nth-child(1) {
transform: translateY(9px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}
}