feat: media result page

This commit is contained in:
2025-04-21 11:30:18 -05:00
parent fb4b7dc71e
commit 77907601f8
24 changed files with 844 additions and 19 deletions

View File

@@ -15,7 +15,7 @@
<body class="bg-neutral-700 flex flex-col">
<twig:Header />
<div class="flex flex-row w-full">
<div class="flex flex-row mx-w-lg">
<twig:NavBar />
{% block body %}{% endblock %}
</div>

View File

@@ -10,7 +10,7 @@
</p>
</div>
<a class="h-9 rounded-md py-1 px-2 bg-green-600 text-gray-50"
href="/results/{{ mediaType }}/{{ imdbId }}/"
href="{{ url('app_search_result', {mediaType: mediaType, tmdbId: tmdbId}) }}"
>choose</a>
</div>
</div>

View File

@@ -0,0 +1,14 @@
{% extends 'base.html.twig' %}
{% block title %}Search Results &mdash - Torsearch{% endblock %}
{% block body %}
<div class="p-4 flex flex-col grow gap-4">
<h2 class="mb-2 text-3xl font-bold text-gray-50">Search Results</h2>
<div class="flex flex-row w-full gap-2">
<twig:Card title="{{ result.media.title }}" contentClass="flex flex-col gap-4 justify-between w-full">
</twig:Card>
</div>
</div>
{% endblock %}

View File

@@ -17,6 +17,7 @@
description="{{ result.description }}"
poster="{{ result.poster }}"
imdbId="{{ result.imdbId }}"
tmdbId="{{ result.tmdbId }}"
/>
</li>
</ul>