chores
fix
This commit is contained in:
@ -4,9 +4,9 @@ import { A } from "@solidjs/router";
|
|||||||
|
|
||||||
export const ImageComponent: Component<{ ID: string }> = (props) => {
|
export const ImageComponent: Component<{ ID: string }> = (props) => {
|
||||||
return (
|
return (
|
||||||
<A href={`/image/${props.ID}`} class="w-full flex justify-center">
|
<A href={`/image/${props.ID}`} class="w-full flex justify-center h-[300px]">
|
||||||
<img
|
<img
|
||||||
class="w-full object-contain rounded-xl max-w-[700px] max-h-[400px]"
|
class="flex w-full object-contain rounded-xl"
|
||||||
src={`${base}/image/${props.ID}`}
|
src={`${base}/image/${props.ID}`}
|
||||||
/>
|
/>
|
||||||
</A>
|
</A>
|
||||||
|
@ -3,6 +3,7 @@ import { Search } from "@kobalte/core/search";
|
|||||||
import { IconSearch } from "@tabler/icons-solidjs";
|
import { IconSearch } from "@tabler/icons-solidjs";
|
||||||
import { useSearch } from "./search";
|
import { useSearch } from "./search";
|
||||||
import { JustTheImageWhatAreTheseNames } from "@network/index";
|
import { JustTheImageWhatAreTheseNames } from "@network/index";
|
||||||
|
import { ImageComponent } from "@components/image";
|
||||||
|
|
||||||
export const SearchPage: Component = () => {
|
export const SearchPage: Component = () => {
|
||||||
const fuse = useSearch();
|
const fuse = useSearch();
|
||||||
@ -37,7 +38,7 @@ export const SearchPage: Component = () => {
|
|||||||
<Search.Content class="container relative w-full rounded-xl bg-white p-4 grid grid-cols-3 gap-4">
|
<Search.Content class="container relative w-full rounded-xl bg-white p-4 grid grid-cols-3 gap-4">
|
||||||
<Search.Arrow />
|
<Search.Arrow />
|
||||||
<For each={searchItems()}>
|
<For each={searchItems()}>
|
||||||
{(item) => <div>{item.Image.Description}</div>}
|
{(item) => <ImageComponent ID={item.ImageID} />}
|
||||||
</For>
|
</For>
|
||||||
<Search.NoResult>No result found</Search.NoResult>
|
<Search.NoResult>No result found</Search.NoResult>
|
||||||
</Search.Content>
|
</Search.Content>
|
||||||
|
Reference in New Issue
Block a user