Files
BIU_System_Rezerwacji/src/components/MyReservations.module.scss
Krzysztof Cieślik f436d87ca5 Inicjalna wersja systemu zarządzania rezerwacjami (RMS)
SPA zbudowane w React 19 + Vite 8 z pełnym zestawem funkcjonalności:
autentykacja z 2FA, kreator rezerwacji, panel admina, analityka,
GraphQL (Apollo Client + SchemaLink), React Query, Storybook,
testy jednostkowe (Vitest + RTL) i e2e (Playwright).
2026-06-21 06:08:47 +02:00

142 lines
3.1 KiB
SCSS

@use '../styles/variables' as *;
.my-res {
background: var(--clr-surface);
border: 1px solid var(--clr-border);
border-radius: $radius-xl;
box-shadow: $shadow-sm;
overflow: hidden;
height: fit-content;
&__header {
display: flex;
align-items: center;
gap: $spacing-3;
padding: $spacing-4 $spacing-5;
background: linear-gradient(135deg, $accent-700, $accent-500);
color: #fff;
}
&__header-icon { opacity: 0.9; flex-shrink: 0; }
&__title {
font-size: $font-size-base;
font-weight: $font-weight-semibold;
color: #fff;
flex: 1;
}
&__count {
background: rgba(255,255,255,0.25);
color: #fff;
font-size: $font-size-xs;
font-weight: $font-weight-semibold;
padding: 2px $spacing-2;
border-radius: $radius-full;
}
&__msg {
padding: $spacing-8 $spacing-5;
font-size: $font-size-sm;
color: var(--clr-text-muted);
text-align: center;
line-height: $line-height-relaxed;
}
&__list { list-style: none; padding: 0; margin: 0; }
&__item {
display: flex;
flex-direction: column;
gap: 0;
border-bottom: 1px solid var(--clr-border);
&:last-child { border-bottom: none; }
}
&__item-link {
display: flex;
flex-direction: column;
gap: $spacing-2;
padding: $spacing-4 $spacing-5;
text-decoration: none;
color: inherit;
transition: background $transition-fast;
&:hover {
background: var(--clr-surface-raised, #{$gray-50});
.my-res__chevron { opacity: 1; transform: translateX(2px); }
}
}
&__item-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: $spacing-2;
}
&__item-top-right {
display: flex;
align-items: center;
gap: $spacing-2;
flex-shrink: 0;
}
&__chevron {
color: var(--clr-text-muted, #{$color-text-muted});
opacity: 0.4;
transition: opacity $transition-fast, transform $transition-fast;
}
&__service-name {
font-size: $font-size-sm;
font-weight: $font-weight-semibold;
color: var(--clr-text);
}
&__item-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: $font-size-xs;
color: var(--clr-text-secondary);
}
&__price {
font-weight: $font-weight-medium;
color: var(--clr-text-secondary);
}
&__item-req {
font-size: $font-size-xs;
color: var(--clr-text-muted);
font-style: italic;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__cancel-btn {
align-self: flex-start;
display: inline-flex;
align-items: center;
gap: $spacing-1;
margin: 0 $spacing-5 $spacing-3;
padding: $spacing-1 $spacing-3;
background: transparent;
border: 1px solid #fecaca;
border-radius: $radius-full;
font-size: $font-size-xs;
font-weight: $font-weight-medium;
font-family: $font-family-base;
color: $color-error;
cursor: pointer;
transition: background $transition-fast;
&:hover:not(:disabled) { background: #fef2f2; }
&:disabled { opacity: 0.5; cursor: not-allowed; }
}
}