FEAT(pg): redesign payment gateway screens with a shared design system
Introduce templates/pg/pg_base.html holding the common layout, Vazirmatn typography, colour tokens and reusable components (buttons, rows, dividers, gateway cards, alerts). All four payer-facing screens now extend it for a consistent, mobile-first UI matching the approved UI/UX design: - payment_request: card layout with amount row + gateway picker cards - payment_confirm: restyled "in review" state - payment_success: extends base, adds tracking-code row - payment_failure: extends base, keeps refund notice Mobile: full-bleed white screen, centred content, primary action pinned to the bottom with safe-area padding. >=480px: floated centred card on a grey canvas. No view/logic changes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
77c42ebe2a
commit
ecaa4bfa43
5 changed files with 339 additions and 385 deletions
|
|
@ -1,33 +1,33 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "pg/pg_base.html" %}
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% load jalali_tags %}
|
||||
|
||||
{% block title %}بازگشت{% endblock %}
|
||||
{% block page_title %}بازگشت{% endblock %}
|
||||
{% block title %}بازگشت به برنامه{% endblock %}
|
||||
|
||||
{% block pg_content %}
|
||||
<div class="pg-body">
|
||||
<p class="pg-title">پرداخت شما در حال بررسی است</p>
|
||||
<p class="pg-subtitle">وضعیت تراکنش: {{ object.get_state_display }}</p>
|
||||
|
||||
{% block content %}
|
||||
مبلغ {{ object.amount }} ریال با وضعیت {{ object.get_state_display }}<br>
|
||||
<form action="{{ request.get_full_path }}" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<div class="row g-3">
|
||||
<div class="col-md-12 col-lg-12" id="formset">
|
||||
{# <div class="card">#}
|
||||
{# <div class="card-body">#}
|
||||
{{ form|crispy }}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
</div>
|
||||
<h6 class="h6">بازگشت به برنامه</h6>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<button type="submit" name="redirect-to-app" value="true" class="btn mx-auto d-block">
|
||||
<img class="img-thumbnail" width="128" height="128" src="{% static "image/icon.png" %}"/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="pg-divider">
|
||||
|
||||
<div class="pg-row">
|
||||
<span class="label">مبلغ</span>
|
||||
<span class="value">{{ object.splited_amount|default:object.amount }} ریال</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% if object.reference_number %}
|
||||
<div class="pg-row">
|
||||
<span class="label">کد پیگیری</span>
|
||||
<span class="value">{{ object.reference_number }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block pg_actions %}
|
||||
<form action="{{ request.get_full_path }}" method="post">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="pg-btn pg-btn--primary" name="redirect-to-app" value="true">
|
||||
بازگشت به وینسو
|
||||
</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
@ -1,168 +1,33 @@
|
|||
{% extends "pg/pg_base.html" %}
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% load jalali_tags %}
|
||||
|
||||
{% block title %}پرداخت ناموفق{% endblock %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa" dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Payment Unsuccessful</title>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Vazirmatn', sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
|
||||
.screen-content {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
|
||||
.message-section {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background-color: #e53935; /* Red for error */
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
color: #e53935;
|
||||
font-size: 1.1rem;
|
||||
font-weight: bold;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: #eeeeee;
|
||||
border: none;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.details-text {
|
||||
color: #757575;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.details-text .code {
|
||||
color: #424242;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.placeholder-link {
|
||||
color: #bdbdbd;
|
||||
font-size: 0.9rem;
|
||||
text-decoration: underline;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
|
||||
.button-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
padding: 14px;
|
||||
border-radius: 8px;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
font-family: 'Vazirmatn', sans-serif;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease-in-out;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.btn-retry {
|
||||
background-color: #ffffff;
|
||||
border: 2px solid #6931c9;
|
||||
color: #6931c9;
|
||||
}
|
||||
|
||||
.btn-retry:hover {
|
||||
background-color: #f9f7fd;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #3B604B;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #3B604B;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="mobile-frame">
|
||||
<div class="screen-content">
|
||||
|
||||
<div class="message-section">
|
||||
<div ><img src="{% static "image/pg/fail.png" %}" alt="fail"></div>
|
||||
{% if message %}
|
||||
<p class="error-text">{{ message }}</p>
|
||||
{% else %}
|
||||
<p class="error-text">پرداخت ناموفق </p>
|
||||
{% endif %}
|
||||
<hr class="divider">
|
||||
<div class="details-text">
|
||||
<p>کد پیگیری تراکنش شما: <span class="code">{{ object.reference_number }}</span></p>
|
||||
<p>در صورت کسر از موجودی، مبلغ پرداختی طی یک تا 72 ساعت آینده به حساب شما بازگردانده خواهد شد.</p>
|
||||
</div>
|
||||
<a href="https://winsoo.ir" class="placeholder-link">winsoo</a>
|
||||
{% block pg_content %}
|
||||
<div class="pg-body">
|
||||
<div class="pg-status-icon">
|
||||
<img src="{% static 'image/pg/fail.png' %}" alt="پرداخت ناموفق">
|
||||
</div>
|
||||
|
||||
<div class="button-container">
|
||||
<form action="{{ request.get_full_path }}" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<button class="btn btn-primary" name="redirect-to-app" value="true">بازگشت به صفحه اصلی</button>
|
||||
</form>
|
||||
<p class="pg-title is-danger">{{ message|default:"پرداخت ناموفق" }}</p>
|
||||
|
||||
<hr class="pg-divider">
|
||||
|
||||
<div class="pg-note">
|
||||
کد پیگیری تراکنش شما:
|
||||
<span class="code">{{ object.reference_number }}</span>
|
||||
</div>
|
||||
<div class="pg-note">
|
||||
در صورت کسر از موجودی، مبلغ پرداختی طی یک تا ۷۲ ساعت آینده به حساب شما بازگردانده خواهد شد.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% block pg_actions %}
|
||||
<form action="{{ request.get_full_path }}" method="post">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="pg-btn pg-btn--primary" name="redirect-to-app" value="true">
|
||||
بازگشت به صفحه اصلی
|
||||
</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,35 +1,35 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "pg/pg_base.html" %}
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% load jalali_tags %}
|
||||
|
||||
{% block title %}افزایش موجودی{% endblock %}
|
||||
{% block page_title %}افزایش موجودی{% endblock %}
|
||||
|
||||
{% block pg_content %}
|
||||
<div class="pg-body">
|
||||
<p class="pg-title">افزایش موجودی</p>
|
||||
<p class="pg-subtitle">درگاه پرداخت را انتخاب کنید</p>
|
||||
|
||||
{% block content %}
|
||||
مبلغ {{ object.amount }} ریال <br>
|
||||
<form action="{{ request.get_full_path }}" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<div class="row g-3">
|
||||
<div class="col-md-12 col-lg-12" id="formset">
|
||||
{# <div class="card">#}
|
||||
{# <div class="card-body">#}
|
||||
{{ form|crispy }}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
</div>
|
||||
<h6 class="h6">پرداخت با:</h6>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col">
|
||||
{% for gateway_tool in object.get_preferred_gateway_classes %}
|
||||
<button type="submit" class="btn mx-auto center-block" name="{{ gateway_tool.label }}">
|
||||
<img class="img-thumbnail" width="128" height="128" src="{% static gateway_tool.image %}"/>
|
||||
</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<hr class="pg-divider">
|
||||
|
||||
<div class="pg-row">
|
||||
<span class="label">مبلغ قابل پرداخت</span>
|
||||
<span class="value">{{ object.splited_amount|default:object.amount }} ریال</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<hr class="pg-divider">
|
||||
|
||||
<form action="{{ request.get_full_path }}" method="post" id="pg-gateway-form">
|
||||
{% csrf_token %}
|
||||
<div class="pg-gateways">
|
||||
{% for gateway_tool in object.get_preferred_gateway_classes %}
|
||||
<button type="submit" class="pg-gateway-btn" name="{{ gateway_tool.label }}" value="1">
|
||||
<img src="{% static gateway_tool.image %}" alt="{{ gateway_tool.label }}">
|
||||
</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block pg_actions %}
|
||||
<p class="pg-note">پرداخت از طریق درگاه امن بانکی انجام میشود.</p>
|
||||
{% endblock %}
|
||||
|
|
@ -1,162 +1,37 @@
|
|||
{% extends "pg/pg_base.html" %}
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% load jalali_tags %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa" dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Payment Successful</title>
|
||||
{% block title %}پرداخت موفق{% endblock %}
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap" rel="stylesheet">
|
||||
{% block pg_content %}
|
||||
<div class="pg-body">
|
||||
<div class="pg-status-icon">
|
||||
<img src="{% static 'image/pg/tik.png' %}" alt="پرداخت موفق">
|
||||
</div>
|
||||
|
||||
<style>
|
||||
<p class="pg-title is-success">{{ message|default:"پرداخت موفق" }}</p>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Vazirmatn', sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
<hr class="pg-divider">
|
||||
|
||||
.screen-content {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
<div class="pg-row">
|
||||
<span class="label">مبلغ شارژ</span>
|
||||
<span class="value is-success">{{ object.splited_amount|default:object.amount }} ریال</span>
|
||||
</div>
|
||||
|
||||
|
||||
.message-section {
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.success-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background-color: #4CAF50;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: white;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.title {
|
||||
color: #333;
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: #757575;
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: #eeeeee;
|
||||
border: none;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.amount-row {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.amount-label {
|
||||
color: #757575;
|
||||
}
|
||||
|
||||
.amount-value {
|
||||
color: #4CAF50;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.placeholder-link {
|
||||
color: #bdbdbd;
|
||||
font-size: 0.9rem;
|
||||
text-decoration: underline;
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
|
||||
.button-container {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 1.1rem;
|
||||
font-weight: bold;
|
||||
font-family: 'Vazirmatn', sans-serif;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #3B604B;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #3B604B;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="mobile-frame">
|
||||
<div class="screen-content">
|
||||
|
||||
<div class="message-section">
|
||||
<div ><img src="{% static "image/pg/tik.png" %}" alt="success"></div>
|
||||
<p class="title">پرداخت موفق</p>
|
||||
<hr class="divider">
|
||||
<div class="amount-row">
|
||||
<span class="amount-label">مبلغ شارژ</span>
|
||||
<span class="amount-value">{{ object.amount }} ریال</span>
|
||||
{% if object.reference_number %}
|
||||
<div class="pg-row">
|
||||
<span class="label">کد پیگیری</span>
|
||||
<span class="value">{{ object.reference_number }}</span>
|
||||
</div>
|
||||
<a href="https://winsoo.ir" class="placeholder-link">winsoo</a>
|
||||
</div>
|
||||
|
||||
<div class="button-container">
|
||||
<form action="{{ request.get_full_path }}" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<button class="btn btn-primary" name="redirect-to-app" value="true">بازگشت به وینسو</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% block pg_actions %}
|
||||
<form action="{{ request.get_full_path }}" method="post">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="pg-btn pg-btn--primary" name="redirect-to-app" value="true">
|
||||
بازگشت به وینسو
|
||||
</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
214
templates/pg/pg_base.html
Normal file
214
templates/pg/pg_base.html
Normal file
|
|
@ -0,0 +1,214 @@
|
|||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa" dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}وینسو | درگاه پرداخت{% endblock %}</title>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--pg-bg: #f0f0f2;
|
||||
--pg-card: #ffffff;
|
||||
--pg-text: #2b2b33;
|
||||
--pg-muted: #8a8a94;
|
||||
--pg-border: #ececef;
|
||||
--pg-primary: #2f3e5c;
|
||||
--pg-primary-hover: #26334d;
|
||||
--pg-accent: #6931c9;
|
||||
--pg-success: #3aa76d;
|
||||
--pg-danger: #e0483d;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body { height: 100%; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background-color: var(--pg-card);
|
||||
font-family: 'Vazirmatn', Tahoma, sans-serif;
|
||||
color: var(--pg-text);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.pg-card {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
background: var(--pg-card);
|
||||
padding: 28px 22px calc(24px + env(safe-area-inset-bottom));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Tablet / desktop: float the card on the grey canvas */
|
||||
@media (min-width: 480px) {
|
||||
body {
|
||||
background-color: var(--pg-bg);
|
||||
align-items: center;
|
||||
padding: 24px 16px;
|
||||
}
|
||||
.pg-card {
|
||||
max-width: 400px;
|
||||
min-height: 580px;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 8px 32px rgba(20, 20, 40, 0.08);
|
||||
}
|
||||
}
|
||||
|
||||
.pg-body {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 16px 0;
|
||||
}
|
||||
|
||||
.pg-status-icon {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.pg-status-icon img { width: 100%; height: 100%; object-fit: contain; }
|
||||
|
||||
.pg-title {
|
||||
font-size: 1.15rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 6px;
|
||||
}
|
||||
.pg-title.is-success { color: var(--pg-success); }
|
||||
.pg-title.is-danger { color: var(--pg-danger); }
|
||||
|
||||
.pg-subtitle {
|
||||
color: var(--pg-muted);
|
||||
font-size: 0.9rem;
|
||||
margin: 0 0 20px;
|
||||
}
|
||||
|
||||
.pg-divider {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: var(--pg-border);
|
||||
border: none;
|
||||
margin: 8px 0 20px;
|
||||
}
|
||||
|
||||
.pg-row {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 0.95rem;
|
||||
padding: 6px 0;
|
||||
}
|
||||
.pg-row .label { color: var(--pg-muted); }
|
||||
.pg-row .value { font-weight: 700; }
|
||||
.pg-row .value.is-success { color: var(--pg-success); }
|
||||
|
||||
.pg-note {
|
||||
color: var(--pg-muted);
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.9;
|
||||
margin: 4px 0;
|
||||
}
|
||||
.pg-note .code { color: var(--pg-text); font-weight: 600; }
|
||||
|
||||
.pg-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.pg-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
padding: 14px 16px;
|
||||
border-radius: 10px;
|
||||
font-family: inherit;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
border: 1.5px solid transparent;
|
||||
transition: filter 0.15s ease, background 0.15s ease;
|
||||
text-decoration: none;
|
||||
}
|
||||
.pg-btn:hover { filter: brightness(0.96); }
|
||||
|
||||
.pg-btn--primary { background: var(--pg-primary); color: #fff; }
|
||||
.pg-btn--outline { background: #fff; border-color: var(--pg-accent); color: var(--pg-accent); }
|
||||
|
||||
.pg-gateways {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
.pg-gateway-btn {
|
||||
flex: 1 1 120px;
|
||||
max-width: 150px;
|
||||
background: #fff;
|
||||
border: 1.5px solid var(--pg-border);
|
||||
border-radius: 12px;
|
||||
padding: 14px;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.pg-gateway-btn:hover {
|
||||
border-color: var(--pg-accent);
|
||||
box-shadow: 0 4px 16px rgba(105, 49, 201, 0.12);
|
||||
}
|
||||
.pg-gateway-btn img { width: 64px; height: 64px; object-fit: contain; }
|
||||
|
||||
.pg-messages { width: 100%; margin-bottom: 12px; }
|
||||
.pg-alert {
|
||||
width: 100%;
|
||||
border-radius: 10px;
|
||||
padding: 10px 14px;
|
||||
font-size: 0.85rem;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.pg-alert--error { background: #fdecea; color: var(--pg-danger); }
|
||||
.pg-alert--info { background: #eef2fb; color: var(--pg-primary); }
|
||||
.pg-alert--success { background: #e8f6ee; color: var(--pg-success); }
|
||||
|
||||
.pg-hidden-form { display: none; }
|
||||
</style>
|
||||
{% block extra_head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="pg-card">
|
||||
{% if messages %}
|
||||
<div class="pg-messages">
|
||||
{% for message in messages %}
|
||||
<div class="pg-alert pg-alert--{{ message.tags|default:'info' }}">{{ message }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% block pg_content %}{% endblock %}
|
||||
|
||||
<div class="pg-actions">
|
||||
{% block pg_actions %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Reference in a new issue