diff --git a/static/css/customer-dock.css b/static/css/customer-dock.css new file mode 100644 index 0000000..0c50725 --- /dev/null +++ b/static/css/customer-dock.css @@ -0,0 +1,24 @@ +/* Shared Chaharsu navigation. Composer changes are confined to the dock. */ +.customer-mobile-dock.chaharsu-dock { + grid-template-columns: repeat(3, minmax(0, 1fr)); + bottom: calc(12px + env(safe-area-inset-bottom)); +} +.customer-mobile-dock.chaharsu-dock a { + min-height: 52px; + gap: 4px; + font-size: 12px; + color: #cadbea; +} +.customer-mobile-dock.chaharsu-dock svg { + width: 20px; + height: 20px; + flex-shrink: 0; +} +.customer-mobile-dock.chaharsu-dock a.active { + background: #0b4c8c; + color: #fff; +} +.customer-mobile-dock.chaharsu-dock a:focus-visible { + outline: 3px solid #fff; + outline-offset: -3px; +} diff --git a/static/css/customer-profile.css b/static/css/customer-profile.css new file mode 100644 index 0000000..34e8447 --- /dev/null +++ b/static/css/customer-profile.css @@ -0,0 +1,36 @@ +/* Chaharsu profile: scoped rules preserve the ticket composer and other forms. */ +.profile-breadcrumb { display: inline-flex; align-items: center; min-height: 44px; } +.profile-heading { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; } +.profile-heading .service-icon { flex-shrink: 0; } +.profile-heading h1 { margin: 0; } +.customer-profile .profile-heading p { margin: 6px 0 0; } +.customer-profile-form.pay-form { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; } +.customer-profile-form .pay-card { margin: 0 0 20px; padding: 22px; border-radius: 22px; } +.customer-profile-form h2 { margin: 0 0 12px; } +.profile-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; } +.profile-card-heading h2 { margin: 0; } +.profile-mobile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #526c86; font-size: .875rem; } +.profile-mobile bdi { color: #08376b; font-weight: 700; } +.profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; } +.customer-profile-form .pay-field { margin: 0; min-width: 0; } +.customer-profile-form .pay-field label { font-size: .875rem; } +.customer-profile-form input:not([type=hidden]),.customer-profile-form select { min-height: 48px; padding: 10px 12px; font-size: 1rem; box-shadow: none; } +.customer-profile-form input[type=password] { direction: ltr; text-align: right; } +.customer-profile .profile-guidance { margin: 8px 0 16px; color: #526c86; font-size: .875rem; line-height: 1.8; } +.customer-profile [data-location-hint] { margin: 12px 0 0; } +.customer-profile .is-error,.customer-profile .errorlist { color: #9f1f1f; font-size: .875rem; line-height: 1.8; } +.customer-profile .errorlist { list-style: none; padding: 0; margin: 6px 0 0; } +.customer-profile-form [aria-invalid=true] { border-color: #9f1f1f; } +.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; } +.profile-actions .pay-button { min-width: 160px; } +@media (max-width: 639px) { + .profile-heading { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px 12px; align-items: center; } + .profile-heading > div { display: contents; } + .profile-heading h1 { grid-column: 1; grid-row: 1; } + .profile-heading .service-icon { grid-column: 2; grid-row: 1; width: 40px; height: 40px; border-radius: 12px; } + .customer-profile .profile-heading p { grid-column: 1 / -1; grid-row: 2; margin: 0; } + .customer-profile-form .pay-card { padding: 16px; border-radius: 20px; margin-bottom: 16px; } + .profile-field-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } + .profile-actions { flex-direction: column; gap: 8px; margin-top: 20px; } + .profile-actions .pay-button { width: 100%; } +} diff --git a/static/css/customer-tickets.css b/static/css/customer-tickets.css new file mode 100644 index 0000000..bd8cdc9 --- /dev/null +++ b/static/css/customer-tickets.css @@ -0,0 +1,42 @@ +/* Ticket history follows the Chaharsu shell; no composer selectors. */ +.customer-tickets .chaharsu-heading h1 { margin: 4px 0 0; } +.customer-tickets .tickets-breadcrumb { display: inline-flex; align-items: center; min-height: 44px; } +.customer-tickets .tickets-intro { margin-bottom: 20px; } +.customer-tickets .tickets-intro-kicker { margin: 0 0 8px; font-size: 12px; color: #cadbea; } +.customer-tickets .tickets-intro .service-actions { padding-top: 16px; } +.customer-tickets .service-actions a { white-space: normal; text-align: center; } +.tickets-profile-note { display: flex; gap: 12px; padding: 16px; border: 1px solid #cde6f7; border-radius: 20px; background: #f6fbff; } +.tickets-profile-note > div { min-width: 0; } +.customer-tickets .tickets-profile-note h2 { font-size: 16px; margin: 0; } +.tickets-profile-note p { color: #526c86; font-size: 14px; line-height: 1.8; } +.tickets-profile-note .service-icon { width: 36px; height: 36px; flex-shrink: 0; } +.tickets-profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; } +.customer-tickets .tickets-text-link { display: inline-flex; align-items: center; min-height: 44px; color: #08376b; text-decoration: underline; text-underline-offset: 4px; } +.customer-tickets .customer-list-heading { scroll-margin-top: 100px; flex-wrap: wrap; } +.tickets-list-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } +.tickets-list-card { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid #dce5ed; border-radius: 20px; background: #fff; color: #08376b; transition: border-color .18s, transform .18s, box-shadow .18s; } +.tickets-card-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; } +.tickets-status { padding: 4px 12px; border-radius: 20px; background: #e5f4ff; color: #08376b; font-size: 12px; font-weight: 700; } +.tickets-number { color: #526c86; font-size: 12px; } +.customer-tickets .tickets-list-card h3 { margin: 16px 0; font-size: 18px; font-weight: 800; line-height: 1.7; } +.tickets-card-meta { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid #e7edf2; color: #526c86; font-size: 14px; } +.tickets-card-meta time { font-size: 12px; margin-top: 4px; } +.tickets-card-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; font-size: 14px; font-weight: 700; } +.tickets-card-link svg { width: 18px; height: 18px; } +.tickets-list-card:hover { border-color: #91bfdd; transform: translateY(-3px); box-shadow: 0 15px 35px -25px #08376b70; } +.tickets-empty { grid-column: 1 / -1; margin: 0; } +.customer-tickets .tickets-empty h3 { font-size: 18px; margin: 12px 0 0; } +.tickets-empty .pay-button { margin-top: 12px; } +@media (min-width: 640px) { + .tickets-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } + .tickets-list-card { padding: 22px; border-radius: 22px; } +} +@media (max-width: 639px) { + .customer-tickets .tickets-intro .service-actions { padding-top: 10px; } + .tickets-profile-note { padding: 14px; } + .tickets-profile-note > .service-icon { display: none; } +} +@media (prefers-reduced-motion: reduce) { + .tickets-list-card { transition: none; } + .tickets-list-card:hover { transform: none; } +} diff --git a/templates/accounts/profile.html b/templates/accounts/profile.html index 969edb2..6120a18 100644 --- a/templates/accounts/profile.html +++ b/templates/accounts/profile.html @@ -1,20 +1,37 @@ -{% extends 'base.html' %}{% load static %} +{% extends 'payments/base.html' %}{% load static %} {% block title %}{{ page_title }}{% endblock %} +{% block extra_head %}{{ block.super }}{% endblock %} {% block content %} -
تنظیمات حساب
اطلاعات شما به کارشناس کمک میکند پاسخ دقیقتری ارائه کند.