feat: media result page
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
14
templates/search/result.html.twig
Normal file
14
templates/search/result.html.twig
Normal 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 %}
|
||||
@@ -17,6 +17,7 @@
|
||||
description="{{ result.description }}"
|
||||
poster="{{ result.poster }}"
|
||||
imdbId="{{ result.imdbId }}"
|
||||
tmdbId="{{ result.tmdbId }}"
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user