show completed trips on profiles
All checks were successful
pedestrian-simulator / build (push) Successful in 59s

This commit is contained in:
2026-01-14 16:55:49 -07:00
parent bf75e10399
commit f0172afb1e
6 changed files with 556 additions and 18 deletions

View File

@@ -1057,4 +1057,190 @@ body {
width: 95%;
padding: 1.5rem;
}
}
}
/* Celebration Overlay */
.celebration-card {
background: var(--bg-card);
padding: 3rem;
border-radius: 20px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
max-width: 500px;
width: 90%;
border: 2px solid var(--primary);
position: relative;
text-align: center;
overflow: hidden;
animation: celebrate-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes celebrate-pop {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.celebration-icon {
font-size: 4rem;
margin-bottom: 1.5rem;
animation: bounce 1s infinite;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.celebration-content h2 {
font-size: 2rem;
margin-bottom: 1rem;
background: linear-gradient(135deg, var(--primary), var(--secondary), var(--success));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.celebration-stats {
display: flex;
justify-content: center;
gap: 2rem;
margin: 2rem 0;
padding: 1.5rem;
background: rgba(15, 23, 42, 0.4);
border-radius: 12px;
border: 1px solid var(--border);
}
.celebration-stats .stat-item {
display: flex;
flex-direction: column;
align-items: center;
}
/* Confetti Animation */
.confetti-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}
.confetti {
position: absolute;
width: 10px;
height: 10px;
opacity: 0.8;
}
@keyframes confetti-fall {
from { transform: translateY(-100%) rotate(0deg); opacity: 1; }
to { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
/* Updated User Profile Styles */
.user-profile-card {
background: var(--bg-card);
border-radius: 16px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
max-width: 600px;
width: 90%;
border: 1px solid var(--border);
overflow: hidden;
display: flex;
flex-direction: column;
max-height: 90vh;
}
.user-profile-header {
padding: 1rem 1.5rem;
display: flex;
justify-content: flex-end;
}
.user-profile-info {
text-align: center;
padding: 0 2rem 2rem;
border-bottom: 2px solid var(--border);
}
.profile-avatar-large {
width: 100px;
height: 100px;
border-radius: 50%;
border: 4px solid var(--primary);
margin-bottom: 1rem;
object-fit: cover;
box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.profile-fitbit-id {
color: var(--primary);
font-weight: 500;
margin-top: 0.25rem;
opacity: 0.8;
}
.user-profile-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
padding: 1.5rem 2rem;
}
.profile-tabs {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--border);
}
.profile-tab {
background: none;
border: none;
color: var(--text-secondary);
padding: 0.75rem 1rem;
cursor: pointer;
font-weight: 600;
font-size: 0.9rem;
border-bottom: 2px solid transparent;
transition: all 0.2s ease;
}
.profile-tab.active {
color: var(--primary);
border-bottom-color: var(--primary);
}
.profile-tab:hover {
color: var(--text-primary);
}
.profile-pane {
display: none;
flex: 1;
overflow-y: auto;
}
.profile-pane.active {
display: block;
}
.small-btn {
padding: 0.5rem 1rem;
font-size: 0.8rem;
}
.trip-date {
font-size: 0.75rem;
color: var(--text-secondary);
opacity: 0.8;
}
.pagination-controls.small {
padding-top: 1rem;
border-top: 1px solid var(--border);
background: transparent;
}