booking-flow-finalized-design kindaaaa #7

Merged
jare2473 merged 20 commits from booking-flow-finalized-design into main 2025-09-30 10:50:54 +02:00
2 changed files with 31 additions and 21 deletions
Showing only changes of commit c8178b14bc - Show all commits

View File

@@ -8,9 +8,15 @@
justify-content: space-between;
box-shadow: var(--shadow-lg);
position: sticky;
top: 5rem;
z-index: 100;
width: 100%;
top: 1rem;
}
@media screen and (max-width: 1023px) {
.banner {
top: 5rem;
}
}
.bannerContent {
@@ -197,4 +203,4 @@
opacity: 1;
transform: translateY(0);
}
}
}

View File

@@ -289,25 +289,29 @@ export function ParticipantsSelector({ compact = false, hideLabel = false }) {
{/* Selected Participants */}
<div className={styles.selectedParticipants}>
{/* Default User (Non-deletable) */}
<div className={`${styles.participantChip} ${styles.defaultUserChip}`}>
<span className={styles.participantName}>{getCurrentUser().name}</span>
</div>
{/* Additional Participants (Deletable) */}
{booking.participants.map((participant, index) => (
<button
key={index}
className={`${styles.participantChip} ${styles.clickableChip}`}
onClick={() => handleRemoveParticipant(participant)}
type="button"
title={`Remove ${participant.name}`}
aria-label={`Remove ${participant.name} from participants`}
>
<span className={styles.participantName}>{participant.name}</span>
<span className={styles.removeIcon}>×</span>
</button>
))}
{booking.participants.map((participant, index) => {
const isCurrentUser = participant.id === getCurrentUser().id;
return isCurrentUser ? (
/* Current user appears as non-removable pill */
<div key={index} className={`${styles.participantChip} ${styles.defaultUserChip}`}>
<span className={styles.participantName}>{participant.name}</span>
</div>
) : (
/* Other participants are removable */
<button
key={index}
className={`${styles.participantChip} ${styles.clickableChip}`}
onClick={() => handleRemoveParticipant(participant)}
type="button"
title={`Remove ${participant.name}`}
aria-label={`Remove ${participant.name} from participants`}
>
<span className={styles.participantName}>{participant.name}</span>
<span className={styles.removeIcon}>×</span>
</button>
);
})}
</div>
</div>
);