mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 05:11:09 -05:00
feat: Add detailed park and ride pages with HTMX integration
- Implemented park detail page with dynamic content loading for rides and weather. - Created park list page with filters and search functionality. - Developed ride detail page showcasing ride stats, reviews, and similar rides. - Added ride list page with filtering options and dynamic loading. - Introduced search results page with tabs for parks, rides, and users. - Added HTMX tests for global search functionality.
This commit is contained in:
26
templates/components/ui/card.html
Normal file
26
templates/components/ui/card.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<div class="border rounded-lg shadow-sm bg-card text-card-foreground">
|
||||
{% if header or title %}
|
||||
<div class="flex flex-col space-y-1.5 p-6">
|
||||
{% if title %}
|
||||
<h3 class="text-2xl font-semibold leading-none tracking-tight">{{ title }}</h3>
|
||||
{% endif %}
|
||||
{% if description %}
|
||||
<p class="text-sm text-muted-foreground">{{ description }}</p>
|
||||
{% endif %}
|
||||
{% if header %}
|
||||
{{ header|safe }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="p-6 pt-0">
|
||||
{{ content|safe }}
|
||||
{% block card_content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{% if footer %}
|
||||
<div class="flex items-center p-6 pt-0">
|
||||
{{ footer|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user