mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 22:15:36 +05:00
anix/feat: add new stats
anix/fix: search links from release page
This commit is contained in:
parent
b93aeeed04
commit
c636c843ed
3 changed files with 102 additions and 44 deletions
|
@ -1,19 +1,11 @@
|
|||
import Link from "next/link";
|
||||
|
||||
// const searchBy = {
|
||||
// title: 0,
|
||||
// studio: 1,
|
||||
// director: 2,
|
||||
// author: 3,
|
||||
// genre: 4
|
||||
// }
|
||||
|
||||
// TODO: сделать какую-нибудь анимацию на ссылке при наведении и фокусе
|
||||
export const ReleaseInfoSearchLink = (props: { title: string, searchBy: string | number | null }) => {
|
||||
export const ReleaseInfoSearchLink = (props: { title: string, searchBy: string }) => {
|
||||
return (
|
||||
<Link
|
||||
className="underline"
|
||||
href={`/search?q=${props.title}&searchBy=${props.searchBy}`}
|
||||
className="text-gray-700 transition-colors duration-300 hover:text-black dark:text-gray-300 hover:dark:text-white"
|
||||
href={`/search?query=${props.title}¶ms={"where"%3A"releases"%2C"searchBy"%3A"${props.searchBy}"}`}
|
||||
>
|
||||
{props.title}
|
||||
</Link>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue