/
aliyyyada
/
FrontendAdminPanel
Обзор
Документация
Войти
/
aliyyyada
/
FrontendAdminPanel
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/pages/instructor/instructor.module.css
1 072 строки
20 KB
Алина
initial commit
15 июн 2026, 18:49
15 июн 2026, 18:49
7512c1b
Код
Авторство
О чём код?
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap'); .app { --blue: #2D3CC0; --blue-dark: #1E2D9E; --orange: #F5A623; --white: #FFFFFF; --gray-bg: #EBEBEB; --gray-card: #F5F5F5; --gray-border: #E0E0E0; --gray-text: #8A8A8A; --dark: #1A1A1A; --error: #E53E3E; --font: 'Montserrat', sans-serif; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill:20px; max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--gray-bg); display: flex; flex-direction: column; font-family: var(--font); position: relative; overflow: hidden; } .content { flex: 1; overflow-y: auto; padding-bottom: 80px; -webkit-overflow-scrolling: touch; } .bottomNav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: var(--white); border-top: 1px solid var(--gray-border); display: flex; align-items: center; justify-content: space-around; padding: 10px 0 24px; z-index: 50; } .navItem { display: flex; align-items: center; justify-content: center; padding: 8px 24px; color: #BDBDBD; border-radius: var(--r-sm); background: none; border: none; cursor: pointer; transition: color 0.15s; } .navActive { color: var(--blue); } .schedulePage { padding: 48px 20px 20px; display: flex; flex-direction: column; gap: 0; } .pageTitle { font-size: 24px; font-weight: 600; color: var(--dark); margin: 0 0 20px; letter-spacing: -0.3px; } .calendarCard { background: var(--white); border-radius: var(--r-lg); padding: 18px 16px 14px; margin-bottom: 24px; } .calendarHeader { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } .navBtn { width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; transition: opacity 0.15s; } .navBtn:hover { opacity: 0.8; } .monthLabel { font-size: 14px; font-weight: 600; color: var(--dark); letter-spacing: 0.5px; } .weekRow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; } .dayName { text-align: center; font-size: 11px; font-weight: 500; color: var(--gray-text); padding: 3px 0; letter-spacing: 0.3px; } .daysRow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; } .dayBtn { width: 100%; min-height: 34px; aspect-ratio: 1; border-radius: 50%; font-size: 15px; font-weight: 500; color: var(--dark); background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--font); transition: background 0.12s; } .dayBtn:hover { background: var(--gray-bg); } .dayToday { color: var(--blue); } .daySelected { background: var(--blue) !important; color: var(--white) !important; border-radius: 50%; } .dayHeader { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .dayDate { font-size: 14px; color: var(--gray-text); font-weight: 500; } .addBtn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; flex-shrink: 0; align-self: center; background: var(--blue); color: var(--white); border-radius: 50%; border: none; cursor: pointer; font-size: 26px; font-weight: 300; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(45,60,192,0.35); transition: transform 0.15s; line-height: 1; padding-bottom: 2px; } .addBtn:hover { transform: scale(1.08); } .slotList { display: flex; flex-direction: column; } .slotList > * + * { margin-top: 14px; } .slot { border-radius: var(--r-xl); padding: 18px 22px; display: flex; flex-direction: column; cursor: pointer; transition: opacity 0.12s; } .slot > * + * { margin-top: 5px; } .slot:active { opacity: 0.88; } .slotBlue { background: var(--blue); } .slotWhite { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.06); } .slotTime { font-size: 22px; font-weight: 500; line-height: 1.1; letter-spacing: -0.5px; } .slotBlue .slotTime { color: var(--white); } .slotWhite .slotTime { color: var(--dark); } .slotTitle { font-size: 14px; font-weight: 400; } .slotBlue .slotTitle { color: rgba(255,255,255,0.9); } .slotWhite .slotTitle { color: var(--dark); } .slotLoc { font-size: 12px; display: flex; align-items: center; margin-top: 2px; } .slotLoc > * + * { margin-left: 4px; } .slotBlue .slotLoc { color: rgba(255,255,255,0.7); } .slotWhite .slotLoc { color: var(--gray-text); } .overlay { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: rgba(0,0,0,0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 200; display: flex; flex-direction: column; justify-content: flex-end; } .sheet { background: var(--gray-bg); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 90px); animation: sheetUp 0.28s cubic-bezier(0.32,0.72,0,1) both; max-height: 92dvh; overflow-y: auto; } @keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } } .sheetHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; } .sheetTitle { font-size: 20px; font-weight: 600; color: var(--dark); } .sheetClose { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-border); border: none; cursor: pointer; font-size: 14px; color: var(--gray-text); display: flex; align-items: center; justify-content: center; line-height: 1; transition: background 0.12s; } .sheetClose:hover { background: #d0d0d0; } .fieldLabel { font-size: 14px; font-weight: 500; color: var(--dark); margin-bottom: 8px; display: block; } .fieldInput { width: 100%; height: 52px; padding: 0 16px; border: none; border-radius: var(--r-md); background: var(--white); font-size: 15px; font-family: var(--font); color: var(--dark); outline: none; box-sizing: border-box; transition: box-shadow 0.15s; display: flex; align-items: center; } .fieldInput:focus { box-shadow: 0 0 0 2px rgba(45,60,192,0.2); } .fieldInput::placeholder { color: #C0C0C0; } .fieldInput:disabled { color: var(--gray-text); cursor: default; } .fieldInputMuted { composes: fieldInput; color: #9A9A9A; } .fieldGroup { margin-bottom: 16px; } .timeHeader { font-size: 14px; font-weight: 500; color: var(--dark); text-align: center; margin-bottom: 10px; } .timeRow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .timeCol { display: flex; flex-direction: column; } .timeCol > * + * { margin-top: 6px; } .timeColLabel { font-size: 13px; font-weight: 500; color: var(--dark); } .bookedRow { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; } .bookedLabel { font-size: 13px; color: var(--gray-text); } .toggleTrack { width: 38px; height: 22px; background: var(--blue); border-radius: 11px; position: relative; flex-shrink: 0; } .toggleThumb { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; background: white; border-radius: 50%; } .durationToggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .durationBtn { padding: 12px; border-radius: var(--r-md); border: 1.5px solid var(--gray-border); background: var(--white); font-size: 14px; font-weight: 500; color: var(--dark); cursor: pointer; font-family: var(--font); transition: all 0.15s; } .durationBtnActive { background: var(--blue); border-color: var(--blue); color: white; } .btnPill { width: 100%; padding: 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; font-family: var(--font); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 46px; letter-spacing: 0.2px; transition: opacity 0.15s, transform 0.1s; } .btnPill:active:not(:disabled) { transform: scale(0.98); } .btnPill:disabled { opacity: 0.55; cursor: not-allowed; } .btnBlue { composes: btnPill; background: var(--blue); color: white; } .btnBlue:hover:not(:disabled) { background: var(--blue-dark); } .btnOrange { composes: btnPill; background: var(--orange); color: white; } .btnOrange:hover:not(:disabled) { background: #D4891A; } .btnGray { composes: btnPill; background: #E0E0E0; color: var(--dark); } .btnGray:hover:not(:disabled) { background: #D0D0D0; } .btnGap { margin-top: 12px; } .err { font-size: 13px; color: var(--error); margin: 4px 0 8px; text-align: center; } .profilePage { padding: 48px 20px 0; display: flex; flex-direction: column; min-height: calc(100dvh - 80px); box-sizing: border-box; } .profileBottom { margin-top: auto; padding: 16px 0 8px; } .profileHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; } .notifBtn { background: none; border: none; cursor: pointer; padding: 4px; position: relative; } .avatar { width: 112px; height: 112px; border-radius: 50%; background: #D8DAE5; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 auto 14px; } .profileName { font-size: 17px; font-weight: 500; color: var(--dark); text-align: center; margin-bottom: 20px; } .infoCard { background: var(--white); border-radius: var(--r-xl); padding: 18px 20px; margin-bottom: 12px; cursor: pointer; transition: opacity 0.12s; } .infoCard:active { opacity: 0.85; } .infoCardRow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .infoCardTitle { font-size: 15px; font-weight: 450; color: var(--dark); } .editIcon { font-size: 16px; color: var(--gray-text); } .infoCardValue { font-size: 14px; color: var(--dark); line-height: 1.4; } .infoCardValueMuted { font-size: 13px; color: var(--gray-text); line-height: 1.5; } .legalDocs { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; text-align: center; } .legalDocLink { font-size: 11px; color: var(--gray-text); text-decoration: underline; text-underline-offset: 2px; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font); transition: color 0.15s; text-align: center; line-height: 1.4; } .legalDocLink:hover { color: var(--blue); } .legalDocDot { font-size: 11px; color: var(--gray-text); } .logoutBtn { composes: btnPill btnBlue; margin-top: 24px; } .limitRow { display: flex; align-items: center; justify-content: center; margin: 8px 0 4px; } .limitRow > * + * { margin-left: 32px; } .limitVal { font-size: 40px; font-weight: 500; color: var(--dark); min-width: 52px; text-align: center; } .limitBtn { width: 46px; height: 46px; border-radius: 50%; background: var(--gray-bg); border: 2px solid var(--gray-border); font-size: 24px; font-weight: 800; color: var(--dark); cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--font); transition: all 0.15s; } .limitBtn:hover { background: var(--gray-border); border-color: var(--blue); color: var(--blue); } .notifSheet { composes: sheet; padding-bottom: 32px; } .notifList { display: flex; flex-direction: column; } .notifList > * + * { margin-top: 10px; } .notifCard { background: var(--white); border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: flex-start; justify-content: space-between; } .notifCard > * + * { margin-left: 12px; } .notifBody { flex: 1; } .notifType { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 4px; } .notifText { font-size: 13px; color: var(--gray-text); line-height: 1.4; } .notifTime { font-size: 11px; color: #ADADAD; margin-top: 6px; } .notifDot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 4px; } .requestsPage { padding: 48px 20px 20px; display: flex; flex-direction: column; gap: 0; } .studentCard { background: var(--white); border-radius: var(--r-xl); padding: 18px 20px; margin-bottom: 12px; display: flex; align-items: center; } .studentCard > * + * { margin-left: 14px; } .studentName { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; } .loading { display: flex; justify-content: center; align-items: center; padding: 48px; } .spinner { width: 24px; height: 24px; border: 2.5px solid rgba(45,60,192,0.15); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .empty { text-align: center; padding: 32px 20px; font-size: 14px; color: var(--gray-text); } .dayCell { display: flex; flex-direction: column; align-items: center; background: none; border: none; cursor: pointer; padding: 0; } .dayCell > * + * { margin-top: 3px; } .dayDot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; } .navBtnDisabled { background: #C0C0C0 !important; cursor: not-allowed; } .toggleOn { width: 42px; height: 24px; background: var(--blue); border-radius: 12px; position: relative; transition: background 0.2s; flex-shrink: 0; } .toggleOff { width: 42px; height: 24px; background: #D0D0D0; border-radius: 12px; position: relative; transition: background 0.2s; flex-shrink: 0; } .toggleThumb { position: absolute; top: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left 0.2s, right 0.2s; } .toggleOn .toggleThumb { right: 3px; left: auto; } .toggleOff .toggleThumb { left: 3px; right: auto; } .bookedRow { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; padding: 10px 14px; background: var(--gray-card, #F5F5F5); border-radius: var(--r-md); cursor: pointer; user-select: none; } .bookedLabel { font-size: 14px; color: var(--gray-text); font-weight: 500; } .autoNote { font-size: 11px; color: var(--gray-text); margin-top: 6px; text-align: center; } .fieldInputReadonly { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-md); background: var(--white); font-size: 15px; font-family: var(--font); color: #9A9A9A; box-sizing: border-box; display: flex; align-items: center; } .avatarWrap { position: relative; width: 96px; margin: 0 auto 14px; cursor: pointer; } .cameraBadge { position: absolute; bottom: 2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.2); border: 2px solid white; } .infoCard { background: var(--white); border-radius: var(--r-xl); padding: 18px 20px; margin-bottom: 12px; cursor: pointer; transition: opacity 0.12s; } .infoCard:active { opacity: 0.85; } .sheetNote { font-size: 13px; color: var(--gray-text); margin-bottom: 16px; line-height: 1.5; } .dayPast { color: #BDBDBD !important; } .slotPast { opacity: 0.55; cursor: default !important; } .slotPast:active { opacity: 0.55 !important; } .spinnerSm { width: 12px; height: 12px; border: 1.5px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; } .searchWrap { position: relative; display: flex; align-items: center; margin-bottom: 16px; } .searchIcon { position: absolute; left: 14px; pointer-events: none; flex-shrink: 0; } .searchInput { width: 100%; height: 46px; padding: 0 36px 0 40px; border: none; border-radius: var(--r-pill); background: var(--white); font-size: 14px; font-family: var(--font); color: var(--dark); outline: none; box-sizing: border-box; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.15s; } .searchInput:focus { box-shadow: 0 0 0 2px rgba(45,60,192,0.18); } .searchInput::placeholder { color: #B0B0B0; } .searchClear { position: absolute; right: 12px; background: none; border: none; cursor: pointer; color: #ADADAD; font-size: 13px; padding: 4px; line-height: 1; display: flex; align-items: center; } .searchClear:hover { color: var(--dark); } .studentAvatar { width: 46px; height: 46px; border-radius: 50%; background: #D8DAE5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; } .phoneLink { color: var(--blue); text-decoration: none; font-weight: 450; } .phoneLink:hover { text-decoration: underline; } .metaDot { margin: 0 4px; color: var(--gray-text); } .studentMeta { font-size: 12px; color: var(--gray-text); display: flex; align-items: center; flex-wrap: wrap; margin-top: 3px; } .studentMeta > * + * { margin-left: 4px; } .editBanner { display: flex; align-items: center; background: rgba(45, 60, 192, 0.08); border: 1.5px solid rgba(45, 60, 192, 0.2); color: var(--blue); font-size: 13px; font-weight: 500; border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 12px; } .editBanner > * + * { margin-left: 8px; } .navLocked { pointer-events: none; opacity: 0.45; } .fieldInputError { box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.35) !important; } .fieldErrText { font-size: 12px; color: var(--error); margin: 4px 0 0; line-height: 1.4; } .slotDraft { background: rgba(45, 60, 192, 0.08); border: 2px dashed rgba(45, 60, 192, 0.35); } .slotDraft .slotTime { color: var(--blue); } .slotDraft .slotTitle { color: var(--blue); } .slotDraft .slotLoc { color: rgba(45, 60, 192, 0.55); } .notifBtn { background: none; border: none; cursor: pointer; padding: 4px; position: relative; flex-shrink: 0; } .notifBadge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--error); color: white; font-size: 10px; font-weight: 700; font-family: var(--font); display: flex; align-items: center; justify-content: center; padding: 0 4px; box-sizing: border-box; line-height: 1; } .dayHeaderBtns { display: flex; align-items: center; } .dayHeaderBtns > * + * { margin-left: 8px; } .copyLinkBtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-size: 13px; font-family: var(--font); color: var(--blue); padding: 0; margin-bottom: 14px; white-space: nowrap; text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; } .copyLinkBtn:active { opacity: 0.6; } .actionBtn { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 500; font-family: var(--font); border: none; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; transition: opacity 0.15s; letter-spacing: 0.1px; min-width: 0; } .actionBtn:active:not(:disabled) { opacity: 0.75; } .actionBtn:disabled { opacity: 0.5; cursor: not-allowed; } .actionBtnGray { background: #E0E0E0; color: var(--dark); } .actionBtnOrange { background: var(--orange); color: #fff; } .actionBtnBlue { background: var(--blue); color: #fff; } .editActionBar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; } .editActionBarBtn { height: 46px; border-radius: 14px; font-size: 14px; font-weight: 500; font-family: var(--font); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.15s; letter-spacing: 0.1px; } .editActionBarBtn:active:not(:disabled) { opacity: 0.8; } .editActionBarBtn:disabled { opacity: 0.5; cursor: not-allowed; } .editActionBarBtnGray { background: #E0E0E0; color: var(--dark); } .editActionBarBtnOrange { background: var(--orange); color: #fff; }