mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 16:51:09 -05:00
- Add complete backend/ directory with full Django application - Add frontend/ directory with Vite + TypeScript setup ready for Next.js - Add comprehensive shared/ directory with: - Complete documentation and memory-bank archives - Media files and avatars (letters, park/ride images) - Deployment scripts and automation tools - Shared types and utilities - Add architecture/ directory with migration guides - Configure pnpm workspace for monorepo development - Update .gitignore to exclude .django_tailwind_cli/ build artifacts - Preserve all historical documentation in shared/docs/memory-bank/ - Set up proper structure for full-stack development with shared resources
26 lines
1.4 KiB
HTML
26 lines
1.4 KiB
HTML
{% if suggestions %}
|
|
<div class="py-2">
|
|
{% for suggestion in suggestions %}
|
|
<button class="block w-full px-4 py-2 text-left text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 focus:outline-hidden focus:bg-gray-100 dark:focus:bg-gray-700"
|
|
@click="selectSuggestion('{{ suggestion.text }}')"
|
|
@keydown.enter="selectSuggestion('{{ suggestion.text }}')"
|
|
@keydown.esc="showSuggestions = false"
|
|
data-text="{{ suggestion.text }}"
|
|
tabindex="0">
|
|
<div class="flex items-center">
|
|
{% if suggestion.type == 'park' %}
|
|
<i class="w-6 mr-2 text-gray-400 fa fa-map-marker-alt"></i>
|
|
{% elif suggestion.type == 'category' %}
|
|
<i class="w-6 mr-2 text-gray-400 fa fa-ticket-alt"></i>
|
|
{% else %}
|
|
<i class="w-6 mr-2 text-gray-400 fa fa-search"></i>
|
|
{% endif %}
|
|
<span>{{ suggestion.text }}</span>
|
|
{% if suggestion.subtext %}
|
|
<span class="ml-2 text-sm text-gray-500 dark:text-gray-400">{{ suggestion.subtext }}</span>
|
|
{% endif %}
|
|
</div>
|
|
</button>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %} |