frontend error management enhancement
This commit is contained in:
41
app/templates/shop/errors/429.html
Normal file
41
app/templates/shop/errors/429.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{% extends "shop/errors/base.html" %}
|
||||
|
||||
{% block icon %}⏱️{% endblock %}
|
||||
|
||||
{% block title %}429 - Please Slow Down{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if vendor and theme and theme.branding and theme.branding.logo %}
|
||||
<img src="{{ theme.branding.logo }}" alt="{{ vendor.name }}" class="vendor-logo">
|
||||
{% endif %}
|
||||
|
||||
<div class="error-icon">⏱️</div>
|
||||
<div class="status-code">429</div>
|
||||
<div class="status-name">Please Slow Down</div>
|
||||
<div class="error-message">
|
||||
You're browsing a bit too fast! Please wait a moment before continuing.
|
||||
</div>
|
||||
|
||||
{% if details and details.retry_after %}
|
||||
<div style="margin: 1.5rem 0; padding: 1rem; background: #fef3c7; border-radius: 0.75rem;">
|
||||
<p style="color: #92400e; font-weight: 600;">
|
||||
Please wait {{ details.retry_after }} seconds
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="action-buttons">
|
||||
<a href="javascript:location.reload()" class="btn btn-primary">Try Again</a>
|
||||
<a href="/" class="btn btn-secondary">Go to Home</a>
|
||||
</div>
|
||||
|
||||
<div class="support-link">
|
||||
Questions? <a href="/contact">Contact us</a>
|
||||
</div>
|
||||
|
||||
{% if vendor %}
|
||||
<div class="vendor-info">
|
||||
{{ vendor.name }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user