chore: style updates
This commit is contained in:
@@ -34,24 +34,18 @@ final class SearchController extends AbstractController
|
|||||||
#[Route('/result/{mediaType}/{tmdbId}', name: 'app_search_result')]
|
#[Route('/result/{mediaType}/{tmdbId}', name: 'app_search_result')]
|
||||||
public function result(
|
public function result(
|
||||||
GetMediaInfoInput $input,
|
GetMediaInfoInput $input,
|
||||||
CacheInterface $cache
|
|
||||||
): Response {
|
): Response {
|
||||||
$cacheId = sprintf("page.%s.%s", $input->mediaType, $input->tmdbId);
|
$result = $this->getMediaInfoHandler->handle($input->toCommand());
|
||||||
|
return $this->render('search/result.html.twig', [
|
||||||
// return $cache->get($cacheId, function (ItemInterface $item) use ($input) {
|
'results' => $result,
|
||||||
// $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0));
|
'filter' => [
|
||||||
$result = $this->getMediaInfoHandler->handle($input->toCommand());
|
'resolution' => '',
|
||||||
return $this->render('search/result.html.twig', [
|
'codec' => '',
|
||||||
'results' => $result,
|
'provider' => '',
|
||||||
'filter' => [
|
'language' => '',
|
||||||
'resolution' => '',
|
'season' => 1,
|
||||||
'codec' => '',
|
'episode' => ''
|
||||||
'provider' => '',
|
]
|
||||||
'language' => '',
|
]);
|
||||||
'season' => 1,
|
|
||||||
'episode' => ''
|
|
||||||
]
|
|
||||||
]);
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,15 +12,14 @@
|
|||||||
{% block importmap %}{{ importmap('app') }}{% endblock %}
|
{% block importmap %}{{ importmap('app') }}{% endblock %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-neutral-700 flex flex-col">
|
<body class="bg-neutral-700 flex flex-col backdrop-filter backdrop-blur-sm bg-opacity-100">
|
||||||
<twig:Header />
|
|
||||||
|
|
||||||
<div class="grid grid-cols-6">
|
<div class="grid grid-cols-6">
|
||||||
<div class="col-span-1">
|
<div class="col-span-1 h-screen">
|
||||||
<twig:NavBar />
|
<twig:NavBar />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-span-5">
|
<div class="col-span-5 h-screen overflow-y-scroll">
|
||||||
<h2 class="p-4 mb-2 text-3xl font-bold text-gray-50">{% block h2 %}{% endblock %}</h2>
|
<twig:Header />
|
||||||
|
<h2 class="px-2 mb-2 text-3xl font-bold text-gray-50">{% block h2 %}{% endblock %}</h2>
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
<li {{ attributes }} id="alert_{{ alert_id }}" class="alert p-4 text-green-800 border border-green-300 rounded-lg bg-green-50 dark:bg-gray-800 dark:text-green-400 dark:border-green-800" role="alert">
|
<li {{ attributes }} id="alert_{{ alert_id }}" class="
|
||||||
|
text-white bg-green-950 text-sm min-w-[250px]
|
||||||
|
hover:bg-green-900 border border-green-500 px-4 py-3
|
||||||
|
rounded-md z-40"
|
||||||
|
role="alert"
|
||||||
|
>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<svg class="shrink-0 w-4 h-4 me-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
|
<svg class="shrink-0 w-4 h-4 me-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
|
||||||
<path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
|
<path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<div{{ attributes }}>
|
<div{{ attributes }}>
|
||||||
<div class="flex flex-col bg-white border border-gray-200 border-t-4 border-t-orange-500 shadow-2xs rounded-xl dark:bg-slate-600 dark:border-neutral-700 dark:border-t-orange-500 dark:shadow-neutral-700/70">
|
<div class="flex flex-col bg-white border border-gray-200 border-t-4 border-t-orange-500 shadow-2xs rounded-xl dark:bg-sky-950 dark:border-neutral-700 dark:border-t-orange-500 dark:shadow-neutral-700/70
|
||||||
|
dark:backdrop-filter dark:backdrop-blur-md dark:bg-opacity-40
|
||||||
|
">
|
||||||
<div class="p-4 md:p-5">
|
<div class="p-4 md:p-5">
|
||||||
<h3 class="mb-4 text-lg font-bold text-gray-800 dark:text-white">
|
<h3 class="mb-4 text-lg font-bold text-gray-800 dark:text-white">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<header {{ attributes }} class="bg-cyan-950">
|
<header {{ attributes }} class="bg-cyan-950 z-40">
|
||||||
<div class="px-4 sm:px-6 lg:px-8">
|
<div class="px-4 sm:px-6 lg:px-8">
|
||||||
<div class="h-16 flex flex-row items-center justify-between">
|
<div class="h-16 flex flex-row items-center justify-between">
|
||||||
<h1 class="text-3xl font-extrabold text-orange-500">Torsearch</h1>
|
|
||||||
<twig:SearchBar />
|
<twig:SearchBar />
|
||||||
<div class="md:flex md:items-center md:gap-12">
|
<div class="md:flex md:items-center md:gap-12">
|
||||||
<nav aria-label="Global" class="md:block">
|
<nav aria-label="Global" class="md:block">
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<nav {{ attributes }} {{ stimulus_controller('navbar') }} {{ stimulus_action('navbar', 'setActive')}} class="flex h-screen flex-col justify-between bg-cyan-950">
|
<nav {{ attributes }} {{ stimulus_controller('navbar') }} {{ stimulus_action('navbar', 'setActive')}} class="flex h-screen flex-col justify-between bg-cyan-950">
|
||||||
<div class="px-4 py-6">
|
<div class="px-4 py-4 flex flex-col gap-12">
|
||||||
<ul class="mt-6 space-y-1">
|
<h1 class="text-3xl font-extrabold text-orange-500 mb-3">Torsearch</h1>
|
||||||
|
<ul class="space-y-1">
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('app_index') }}"
|
<a href="{{ path('app_index') }}"
|
||||||
class="block rounded-lg
|
class="block rounded-lg
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{% block title %}Dashboard — Torsearch{% endblock %}
|
{% block title %}Dashboard — Torsearch{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="p-4 flex flex-col grow gap-4">
|
<div class="p-4 flex flex-col grow gap-4 z-30">
|
||||||
<h2 class="mb-2 text-3xl font-bold text-gray-50">Dashboard</h2>
|
<h2 class="mb-2 text-3xl font-bold text-gray-50">Dashboard</h2>
|
||||||
<div class="flex flex-row gap-4">
|
<div class="flex flex-row gap-4">
|
||||||
<twig:Card title="Active Downloads" class="w-full">
|
<twig:Card title="Active Downloads" class="w-full">
|
||||||
|
|||||||
Reference in New Issue
Block a user