diff --git a/prototype/travelleader-mobile/assets/css/style.css b/prototype/travelleader-mobile/assets/css/style.css new file mode 100644 index 0000000..28f83cf --- /dev/null +++ b/prototype/travelleader-mobile/assets/css/style.css @@ -0,0 +1,1063 @@ +:root { + --primary: #5c60f5; + --primary-hover: #484cdb; + --primary-light: #eff0fe; + --primary-border: #dadafa; + --secondary: #6c757d; + --dark-navy: #1f2244; + --text-body: #3c4262; + --text-muted: #858da3; + --text-light: #b4bac9; + --bg-page: #f5f6fb; + --bg-card: #ffffff; + --border-color: #eaedf7; + --radius-sm: 10px; + --radius-md: 16px; + --radius-lg: 22px; + --radius-full: 9999px; + --shadow-subtle: 0 4px 18px rgba(92, 96, 245, 0.06); + --shadow-card: 0 4px 18px rgba(31, 34, 68, 0.05); + --shadow-elevated: 0 10px 30px rgba(92, 96, 245, 0.12); + --bottom-nav-height: 64px; +} + +* { + box-sizing: border-box; +} + +html, body { + margin: 0; + padding: 0; + font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; + color: var(--text-body); + -webkit-font-smoothing: antialiased; + background-color: #e5e8f2; +} + +/* Container & Phone Frame */ +.phone-viewport-wrapper { + min-height: 100vh; + display: flex; + justify-content: center; + align-items: center; + padding: 24px 10px; +} + +.phone-screen { + width: 100%; + max-width: 440px; + height: 860px; + max-height: calc(100vh - 48px); + background-color: var(--bg-page); + border-radius: 36px; + box-shadow: 0 20px 60px rgba(25, 28, 62, 0.18), 0 0 0 10px #1e2133; + overflow: hidden; + display: flex; + flex-direction: column; + position: relative; +} + +/* Mobile & DevTools Mobile View: Native full-screen feel */ +@media (max-width: 540px) { + .phone-viewport-wrapper { + padding: 0; + min-height: 100%; + height: 100%; + align-items: flex-start; + } + + .phone-screen { + max-width: 100%; + height: 100dvh; + max-height: 100dvh; + border-radius: 0; + box-shadow: none; + } + + .phone-status-bar { + display: none !important; + } +} + +/* Status Bar (desktop frame only) */ +.phone-status-bar { + display: flex; + justify-content: space-between; + align-items: center; + padding: 12px 20px 6px; + font-size: 0.8rem; + font-weight: 600; + color: var(--dark-navy); + background-color: var(--bg-page); + flex-shrink: 0; + z-index: 20; +} + +.phone-status-bar .icons { + display: flex; + gap: 8px; + align-items: center; + font-size: 0.95rem; +} + +/* App Header */ +.app-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 12px 18px 10px; + background-color: var(--bg-page); + flex-shrink: 0; + border-bottom: 1px solid rgba(234, 237, 247, 0.6); +} + +.brand-logo-area { + display: flex; + align-items: center; + gap: 10px; + text-decoration: none; +} + +.brand-icon-box { + width: 38px; + height: 38px; + background: linear-gradient(135deg, #5c60f5, #777bfb); + border-radius: 11px; + display: flex; + align-items: center; + justify-content: center; + color: white; + font-size: 1.4rem; + box-shadow: 0 4px 10px rgba(92, 96, 245, 0.3); +} + +.brand-name { + font-size: 1.35rem; + font-weight: 800; + color: var(--primary); + letter-spacing: -0.5px; +} + +.header-user-profile { + display: flex; + align-items: center; + gap: 10px; + text-decoration: none; +} + +.header-user-info { + text-align: right; + line-height: 1.25; +} + +.header-user-email { + font-size: 0.82rem; + font-weight: 700; + color: var(--dark-navy); +} + +.header-user-role { + font-size: 0.72rem; + color: var(--text-muted); +} + +.header-avatar { + width: 36px; + height: 36px; + border-radius: 50%; + background-color: #5a6479; + color: white; + display: flex; + align-items: center; + justify-content: center; + font-size: 1.2rem; + border: 2px solid white; + box-shadow: 0 2px 6px rgba(0,0,0,0.1); +} + +/* Scrollable Content Area */ +.app-content { + flex: 1; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + padding: 14px 16px calc(var(--bottom-nav-height) + 16px); +} + +/* System Ribbon Bar (Opcja 3: Wstążka systemowa pod nagłówkiem na pełną szerokość) */ +.system-ribbon-bar { + background: linear-gradient(90deg, #4f53e8 0%, #686cf7 100%); + color: white; + padding: 8px 18px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + flex-shrink: 0; + box-shadow: 0 2px 8px rgba(79, 83, 232, 0.18); + position: relative; + z-index: 10; +} + +.ribbon-badge { + background: rgba(255, 255, 255, 0.22); + color: white; + font-size: 0.72rem; + font-weight: 800; + padding: 2px 7px; + border-radius: 99px; + border: 1px solid rgba(255, 255, 255, 0.35); + line-height: 1.2; +} + +.ribbon-text { + font-size: 0.78rem; + line-height: 1.25; + color: rgba(255, 255, 255, 0.95); +} + +.ribbon-sub { + color: rgba(255, 255, 255, 0.82); + font-size: 0.72rem; +} + +.btn-ribbon-action { + background: rgba(255, 255, 255, 0.95); + color: #4f53e8; + padding: 4px 12px; + border-radius: var(--radius-full); + font-size: 0.72rem; + font-weight: 700; + text-decoration: none; + white-space: nowrap; + display: inline-flex; + align-items: center; + gap: 3px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); + transition: all 0.2s ease; +} + +.btn-ribbon-action:hover { + background: white; + color: #383cc7; + transform: scale(1.03); +} + +.btn-ribbon-close { + background: transparent; + border: none; + color: rgba(255, 255, 255, 0.75); + font-size: 1.2rem; + padding: 0; + line-height: 1; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: color 0.2s ease; +} + +.btn-ribbon-close:hover { + color: white; +} + +/* Search Card */ +.search-filter-card { + background: white; + border-radius: var(--radius-md); + padding: 12px 16px; + display: flex; + align-items: center; + gap: 14px; + box-shadow: var(--shadow-card); + margin-bottom: 14px; + border: 1px solid var(--border-color); +} + +.search-filter-icon { + width: 42px; + height: 42px; + background-color: var(--primary-light); + color: var(--primary); + border-radius: 12px; + display: flex; + align-items: center; + justify-content: center; + font-size: 1.25rem; +} + +.search-filter-text h6 { + margin: 0; + font-size: 0.95rem; + font-weight: 700; + color: var(--dark-navy); +} + +.search-filter-text small { + color: var(--text-muted); + font-size: 0.76rem; + display: flex; + align-items: center; + gap: 4px; +} + +/* Tabs & Switchers */ +.trips-tabs-bar { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 14px; +} + +.nav-pills-custom { + display: flex; + gap: 6px; +} + +.nav-pill-item { + border: none; + background: transparent; + padding: 7px 12px; + font-size: 0.85rem; + font-weight: 600; + color: var(--text-muted); + border-radius: var(--radius-full); + display: flex; + align-items: center; + gap: 6px; + cursor: pointer; + transition: all 0.2s; + text-decoration: none; +} + +.nav-pill-item.active { + color: var(--primary); + background-color: rgba(92, 96, 245, 0.09); +} + +.nav-pill-item .badge-count { + background: #e9ebf6; + color: var(--text-muted); + font-size: 0.72rem; + padding: 2px 7px; + border-radius: 99px; +} + +.nav-pill-item.active .badge-count { + background: var(--primary); + color: white; +} + +.view-toggle-group { + background: white; + border-radius: var(--radius-full); + padding: 3px; + display: flex; + border: 1px solid var(--border-color); +} + +.view-toggle-btn { + border: none; + background: transparent; + width: 32px; + height: 32px; + border-radius: 50%; + color: var(--text-muted); + display: flex; + align-items: center; + justify-content: center; + font-size: 1.1rem; + cursor: pointer; + text-decoration: none; +} + +.view-toggle-btn.active { + background-color: var(--primary-light); + color: var(--primary); +} + +/* Trip Card */ +.trip-card { + background: white; + border-radius: var(--radius-md); + padding: 16px; + box-shadow: var(--shadow-card); + margin-bottom: 14px; + border: 1px solid var(--border-color); + position: relative; + transition: transform 0.2s, box-shadow 0.2s; +} + +.trip-card:hover { + transform: translateY(-2px); + box-shadow: var(--shadow-elevated); +} + +.trip-card-header { + display: flex; + justify-content: space-between; + align-items: flex-start; + margin-bottom: 12px; +} + +.trip-id-badge { + width: 36px; + height: 36px; + background: linear-gradient(135deg, #5c60f5, #7579f6); + color: white; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-weight: 800; + font-size: 0.92rem; + flex-shrink: 0; +} + +.trip-title-area { + margin-left: 10px; + flex-grow: 1; +} + +.trip-title { + font-size: 1rem; + font-weight: 800; + color: var(--dark-navy); + margin: 0 0 2px; +} + +.trip-status-pill { + text-align: right; +} + +.badge-status { + background-color: #edeefe; + color: var(--primary); + font-size: 0.72rem; + font-weight: 700; + padding: 4px 10px; + border-radius: 6px; + display: inline-block; +} + +.status-subtext { + font-size: 0.72rem; + color: var(--text-muted); + margin-top: 3px; +} + +.trip-info-row { + display: flex; + align-items: center; + gap: 8px; + font-size: 0.84rem; + color: var(--text-body); + margin-bottom: 8px; +} + +.trip-info-row i { + font-size: 1.05rem; + color: #ef4444; +} + +.trip-info-row i.bx-group { + color: #3b82f6; +} + +.trip-info-row i.bx-map { + color: #10b981; +} + +.trip-card-footer { + display: flex; + justify-content: space-between; + align-items: center; + border-top: 1px solid #f0f2f8; + padding-top: 10px; + margin-top: 10px; +} + +.trip-code { + font-size: 0.8rem; + color: var(--text-muted); + display: flex; + align-items: center; + gap: 6px; +} + +.btn-details { + border: 1px solid var(--primary); + color: var(--primary); + background: transparent; + padding: 5px 14px; + border-radius: var(--radius-sm); + font-size: 0.8rem; + font-weight: 700; + text-decoration: none; + display: inline-flex; + align-items: center; + gap: 4px; + transition: all 0.2s; +} + +.btn-details:hover { + background: var(--primary); + color: white; +} + +/* Fixed Bottom Navigation Bar */ +.bottom-nav-bar { + position: absolute; + bottom: 0; + left: 0; + right: 0; + height: var(--bottom-nav-height); + background: white; + border-top: 1px solid var(--border-color); + display: flex; + justify-content: space-around; + align-items: center; + z-index: 1000; + padding: 2px 10px 4px; + flex-shrink: 0; +} + +@media (max-width: 540px) { + .bottom-nav-bar { + position: fixed; + bottom: 0; + left: 0; + right: 0; + width: 100%; + padding-bottom: max(4px, env(safe-area-inset-bottom)); + box-shadow: 0 -4px 16px rgba(0,0,0,0.06); + } +} + +.bottom-nav-item { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + text-decoration: none; + color: var(--text-muted); + font-size: 0.72rem; + font-weight: 600; + padding: 4px 10px; + border-radius: 12px; + transition: all 0.2s; + position: relative; + flex: 1; + text-align: center; +} + +.bottom-nav-item i { + font-size: 1.45rem; + margin-bottom: 2px; + transition: transform 0.2s; + display: block; + line-height: 1; +} + +.bottom-nav-item.active { + color: var(--primary); +} + +.bottom-nav-item.active i { + transform: translateY(-2px); +} + +.bottom-nav-item .nav-indicator { + position: absolute; + top: 4px; + right: calc(50% - 14px); + width: 6px; + height: 6px; + background-color: #ef4444; + border-radius: 50%; +} + +/* Profile Specific Components */ +.profile-hero { + background: linear-gradient(180deg, #ffffff 0%, #f6f7fd 100%); + border-radius: var(--radius-lg); + padding: 20px 16px 16px; + text-align: center; + border: 1px solid var(--border-color); + margin-bottom: 14px; + box-shadow: var(--shadow-card); + position: relative; +} + +.profile-avatar-container { + position: relative; + width: 90px; + height: 90px; + margin: 0 auto 12px; +} + +.profile-avatar-img { + width: 90px; + height: 90px; + border-radius: 50%; + object-fit: cover; + border: 3px solid white; + box-shadow: 0 4px 14px rgba(92, 96, 245, 0.25); +} + +.profile-verified-badge { + position: absolute; + bottom: 2px; + right: 2px; + background: #10b981; + color: white; + width: 26px; + height: 26px; + border-radius: 50%; + border: 2px solid white; + display: flex; + align-items: center; + justify-content: center; + font-size: 0.9rem; +} + +.profile-name { + font-size: 1.3rem; + font-weight: 800; + color: var(--dark-navy); + margin-bottom: 2px; +} + +.profile-tagline { + font-size: 0.82rem; + color: var(--text-muted); + margin-bottom: 10px; +} + +.rating-badge-pill { + display: inline-flex; + align-items: center; + gap: 6px; + background-color: #fff9e6; + color: #b45309; + border: 1px solid #fef3c7; + padding: 4px 12px; + border-radius: var(--radius-full); + font-size: 0.82rem; + font-weight: 700; + margin-bottom: 12px; +} + +.rating-badge-pill i { + color: #f59e0b; + font-size: 1rem; +} + +.visibility-toggle-bar { + display: flex; + align-items: center; + justify-content: space-between; + background: white; + border: 1px solid var(--border-color); + border-radius: var(--radius-md); + padding: 10px 14px; + margin-bottom: 14px; + box-shadow: var(--shadow-subtle); +} + +/* Nowoczesny przełącznik widoczności w edycji profilu */ +.visibility-status-pill-card { + background: white; + border: 1px solid var(--border-color); + border-radius: var(--radius-md); + padding: 11px 16px; + display: flex; + align-items: center; + justify-content: space-between; + box-shadow: var(--shadow-subtle); +} + +.status-indicator-dot { + width: 9px; + height: 9px; + border-radius: 50%; + background-color: #cbd5e1; + display: inline-block; + transition: all 0.2s ease; +} + +.status-indicator-dot.active { + background-color: #10b981; + box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); +} + +.section-card { + background: white; + border-radius: var(--radius-md); + padding: 16px; + margin-bottom: 14px; + box-shadow: var(--shadow-card); + border: 1px solid var(--border-color); +} + +.section-title { + font-size: 0.92rem; + font-weight: 800; + color: var(--dark-navy); + margin-bottom: 10px; + display: flex; + justify-content: space-between; + align-items: center; +} + +.chip-tag { + display: inline-flex; + align-items: center; + gap: 6px; + background-color: #f1f3fa; + color: var(--text-body); + font-size: 0.8rem; + font-weight: 600; + padding: 5px 12px; + border-radius: var(--radius-full); + margin: 3px; + border: 1px solid transparent; + cursor: pointer; + user-select: none; +} + +.chip-tag.primary { + background-color: var(--primary-light); + color: var(--primary); + border-color: var(--primary-border); +} + +/* Media Gallery */ +.media-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 8px; +} + +.media-thumbnail { + width: 100%; + aspect-ratio: 1; + border-radius: 12px; + object-fit: cover; + background-color: #e9ebf6; + position: relative; + overflow: hidden; +} + +.video-card-preview { + width: 100%; + height: 130px; + border-radius: var(--radius-md); + background: linear-gradient(135deg, #1f2244, #3a3f70); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + color: white; + margin-bottom: 10px; + position: relative; + cursor: pointer; + box-shadow: 0 4px 14px rgba(31, 34, 68, 0.2); +} + +.video-play-btn { + width: 42px; + height: 42px; + background: white; + color: var(--primary); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 1.4rem; + box-shadow: 0 4px 12px rgba(0,0,0,0.3); + margin-bottom: 6px; +} + +/* Kalendarz Wycieczek w widoku głównym (odtworzony ze zrzutów ekranu) */ +.trips-calendar-container { + background: white; + border-radius: var(--radius-md); + border: 1px solid var(--border-color); + box-shadow: var(--shadow-card); + padding: 16px 12px; + margin-bottom: 16px; +} + +.month-title-header { + text-align: center; + font-size: 0.92rem; + font-weight: 800; + color: var(--dark-navy); + letter-spacing: 0.5px; + margin-bottom: 14px; +} + +.calendar-table { + width: 100%; + border-collapse: collapse; +} + +.calendar-table th { + text-align: center; + font-size: 0.74rem; + font-weight: 700; + color: var(--text-muted); + padding: 6px 2px; +} + +.calendar-table td { + height: 52px; + vertical-align: top; + text-align: center; + padding: 3px 1px; + font-size: 0.78rem; + color: var(--dark-navy); + border: 1px solid #f1f3f9; + position: relative; + cursor: pointer; +} + +.calendar-table td.other-month { + color: var(--text-light); + background-color: #fafbfe; +} + +.calendar-table td:hover { + background-color: #f6f8ff; +} + +.day-number { + display: inline-block; + font-weight: 600; + margin-bottom: 2px; +} + +/* Ciągła fioletowa wstęga wycieczki jak na zrzucie */ +.trip-ribbon-bar { + background-color: #5c60f5; + color: white; + font-size: 0.64rem; + font-weight: 700; + padding: 3px 4px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: block; + margin: 1px -1px; + cursor: pointer; +} + +.trip-ribbon-start { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} + +.trip-ribbon-end { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +/* Bottom Sheet Modal jak na zrzucie */ +.bottom-sheet-backdrop { + position: absolute; + inset: 0; + background: rgba(15, 23, 42, 0.45); + backdrop-filter: blur(2px); + z-index: 1050; + opacity: 0; + pointer-events: none; + transition: opacity 0.25s ease; +} + +.bottom-sheet-backdrop.active { + opacity: 1; + pointer-events: auto; +} + +.bottom-sheet-content { + position: absolute; + bottom: 0; + left: 0; + right: 0; + background: white; + border-top-left-radius: 26px; + border-top-right-radius: 26px; + padding: 14px 20px 24px; + box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15); + z-index: 1060; + transform: translateY(100%); + transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1); +} + +.bottom-sheet-content.active { + transform: translateY(0); +} + +.sheet-drag-handle { + width: 36px; + height: 4px; + background-color: #d1d5db; + border-radius: 99px; + margin: 0 auto 12px; +} + +.calendar-grid { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 5px; + text-align: center; +} + +.calendar-day-header { + font-size: 0.74rem; + font-weight: 700; + color: var(--text-muted); + padding-bottom: 4px; +} + +.calendar-day-cell { + aspect-ratio: 1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + border-radius: 9px; + font-size: 0.8rem; + font-weight: 600; + background: #f8f9fd; + border: 1px solid transparent; + cursor: pointer; + position: relative; +} + +.calendar-day-cell.other-month { + color: var(--text-light); + opacity: 0.5; +} + +.calendar-day-cell.trip-day { + background-color: #eff0fe; + color: var(--primary); + border-color: #c7caff; + font-weight: 800; +} + +.calendar-day-cell.blocked-day { + background-color: #fee2e2; + color: #ef4444; + border-color: #fecaca; + font-weight: 800; +} + +.calendar-day-cell.free-day { + background-color: #f0fdf4; + color: #15803d; + border-color: #bbf7d0; +} + +.calendar-day-dot { + width: 5px; + height: 5px; + border-radius: 50%; + position: absolute; + bottom: 3px; +} + +.calendar-legend { + display: flex; + flex-wrap: wrap; + gap: 12px; + margin-top: 12px; + padding-top: 12px; + border-top: 1px solid var(--border-color); + font-size: 0.74rem; + color: var(--text-muted); +} + +.legend-item { + display: flex; + align-items: center; + gap: 5px; +} + +.legend-color-box { + width: 11px; + height: 11px; + border-radius: 3px; +} + +/* Form Controls */ +.form-label-custom { + font-size: 0.8rem; + font-weight: 700; + color: var(--dark-navy); + margin-bottom: 5px; + display: block; +} + +.form-control-custom { + width: 100%; + padding: 9px 13px; + border-radius: var(--radius-sm); + border: 1px solid var(--border-color); + background-color: #fafbfe; + font-size: 0.86rem; + color: var(--text-body); + transition: border-color 0.2s; +} + +.form-control-custom:focus { + outline: none; + border-color: var(--primary); + background-color: white; +} + +/* Action Buttons */ +.btn-primary-custom { + background: linear-gradient(135deg, #5c60f5, #6c70fc); + border: none; + color: white; + font-weight: 700; + padding: 11px 18px; + border-radius: var(--radius-md); + box-shadow: 0 4px 14px rgba(92, 96, 245, 0.35); + display: inline-flex; + align-items: center; + justify-content: center; + gap: 8px; + width: 100%; + text-decoration: none; + cursor: pointer; + transition: all 0.2s; +} + +.btn-primary-custom:hover { + background: linear-gradient(135deg, #4d51ec, #5c60f5); + color: white; + transform: translateY(-1px); +} + +.btn-secondary-custom { + background: #f1f3fa; + border: 1px solid var(--border-color); + color: var(--text-body); + font-weight: 700; + padding: 9px 14px; + border-radius: var(--radius-md); + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + text-decoration: none; + cursor: pointer; +} + +.btn-secondary-custom:hover { + background: #e4e7f3; + color: var(--dark-navy); +} diff --git a/prototype/travelleader-mobile/availability.php b/prototype/travelleader-mobile/availability.php new file mode 100644 index 0000000..8c3ac46 --- /dev/null +++ b/prototype/travelleader-mobile/availability.php @@ -0,0 +1,188 @@ + + +
+ Wyszukiwarka w aplikacji webowej pozwala pracownikowi biura wybrać np. „Termin: 05-15 Wrz 2027 + Kraj: Włochy”. Twój profil pojawi się na szczycie wyników, ponieważ zaznaczyłeś te dni jako wolne! +
++ Prowadzący: Janek. Warsztaty z logistyki autokarowej, stref ZTL i nowych szlaków. +
+ ++ Szkolenie produktowe biura podróży dla pilotów szukających kontraktów na sezon. +
+ ++ Procedury awaryjne, ubezpieczenia i rozwiązywanie trudnych sytuacji z turystami. +
+ +