diff --git a/core/urls.py b/core/urls.py index dce4432..6a0ed1b 100644 --- a/core/urls.py +++ b/core/urls.py @@ -8,5 +8,6 @@ urlpatterns = [ path('digital-branding/', views.digital_branding_view, name='digital_branding'), path('pricing/', views.pricing_view, name='pricing'), path('contact/', views.contact_form_view, name='contact_form'), + path('event/', views.event_view, name='event'), path('health/', views.health_check_view, name='health_check'), ] \ No newline at end of file diff --git a/core/views.py b/core/views.py index c2ad7f4..b105fe4 100644 --- a/core/views.py +++ b/core/views.py @@ -214,6 +214,22 @@ def contact_form_view(request): }, status=500) +@ratelimit(key='ip', rate='60/m', method='GET', block=False) +def event_view(request): + """Event page view""" + # Check if rate limited + if getattr(request, 'limited', False): + logger.warning(f"Event page rate limit exceeded for IP {request.META.get('REMOTE_ADDR')}") + messages.warning(request, 'Too many requests. Please wait a moment before refreshing.') + + context = { + 'form_url': 'https://form.jotform.com/252214924850455', + 'user_balance': request.user.wallet_balance if request.user.is_authenticated else 0, + } + + return render(request, 'core/event.html', context) + + @ratelimit(key='ip', rate='60/m', method='GET', block=False) def health_check_view(request): """Simplified health check endpoint - no database dependency for startup""" diff --git a/static/img/apple-touch-icon.png b/static/img/apple-touch-icon.png new file mode 100644 index 0000000..f847055 Binary files /dev/null and b/static/img/apple-touch-icon.png differ diff --git a/static/img/favicon-16x16.png b/static/img/favicon-16x16.png new file mode 100644 index 0000000..3e38caf Binary files /dev/null and b/static/img/favicon-16x16.png differ diff --git a/static/img/favicon-32x32.png b/static/img/favicon-32x32.png new file mode 100644 index 0000000..2c1fd2b Binary files /dev/null and b/static/img/favicon-32x32.png differ diff --git a/static/img/favicon.ico b/static/img/favicon.ico new file mode 100644 index 0000000..6bd6180 Binary files /dev/null and b/static/img/favicon.ico differ diff --git a/static/img/og-image.png b/static/img/og-image.png new file mode 100644 index 0000000..842dfcc Binary files /dev/null and b/static/img/og-image.png differ diff --git a/templates/base.html b/templates/base.html index 42299cf..2261e3d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,6 +6,35 @@