update search page icons
This commit is contained in:
parent
5f095b5631
commit
4210913277
|
@ -1,6 +1,4 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { faFilter } from "@fortawesome/free-solid-svg-icons";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
setSearchFilter: Function;
|
setSearchFilter: Function;
|
||||||
|
@ -24,11 +22,9 @@ export default function FilterSearchDropdown({
|
||||||
role="button"
|
role="button"
|
||||||
className="btn btn-sm btn-square btn-ghost"
|
className="btn btn-sm btn-square btn-ghost"
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon
|
<i
|
||||||
icon={faFilter}
|
className="bi-funnel text-neutral text-2xl"
|
||||||
id="sort-dropdown"
|
></i>
|
||||||
className="w-5 h-5 text-neutral"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<ul className="dropdown-content z-[30] menu shadow bg-base-200 border border-neutral-content rounded-box w-44 mt-1">
|
<ul className="dropdown-content z-[30] menu shadow bg-base-200 border border-neutral-content rounded-box w-44 mt-1">
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -6,7 +6,7 @@ export default function PageHeader({
|
||||||
icon,
|
icon,
|
||||||
}: {
|
}: {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description?: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -14,14 +14,9 @@ export default function SortDropdown({ sortBy, setSort }: Props) {
|
||||||
role="button"
|
role="button"
|
||||||
className="btn btn-sm btn-square btn-ghost"
|
className="btn btn-sm btn-square btn-ghost"
|
||||||
>
|
>
|
||||||
<svg
|
<i
|
||||||
className="w-5 h-5 text-neutral"
|
className="bi-filter text-neutral text-2xl"
|
||||||
viewBox="0 0 24 24"
|
></i>
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
>
|
|
||||||
<path d="M3 6H12H21M6 12H18M9 18H15" stroke="currentColor"></path>
|
|
||||||
</svg>
|
|
||||||
</div>
|
</div>
|
||||||
<ul className="dropdown-content z-[30] menu shadow bg-base-200 border border-neutral-content rounded-xl w-52 mt-1">
|
<ul className="dropdown-content z-[30] menu shadow bg-base-200 border border-neutral-content rounded-xl w-52 mt-1">
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
import FilterSearchDropdown from "@/components/FilterSearchDropdown";
|
import FilterSearchDropdown from "@/components/FilterSearchDropdown";
|
||||||
import LinkCard from "@/components/LinkViews/LinkComponents/LinkCard";
|
|
||||||
import SortDropdown from "@/components/SortDropdown";
|
import SortDropdown from "@/components/SortDropdown";
|
||||||
import useLinks from "@/hooks/useLinks";
|
import useLinks from "@/hooks/useLinks";
|
||||||
import MainLayout from "@/layouts/MainLayout";
|
import MainLayout from "@/layouts/MainLayout";
|
||||||
import useLinkStore from "@/store/links";
|
import useLinkStore from "@/store/links";
|
||||||
import { Sort, ViewMode } from "@/types/global";
|
import { Sort, ViewMode } from "@/types/global";
|
||||||
import { faFilter, faSearch, faSort } from "@fortawesome/free-solid-svg-icons";
|
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import ViewDropdown from "@/components/ViewDropdown";
|
import ViewDropdown from "@/components/ViewDropdown";
|
||||||
import DefaultView from "@/components/LinkViews/DefaultView";
|
import DefaultView from "@/components/LinkViews/DefaultView";
|
||||||
import GridView from "@/components/LinkViews/GridView";
|
import GridView from "@/components/LinkViews/GridView";
|
||||||
import ListView from "@/components/LinkViews/ListView";
|
import ListView from "@/components/LinkViews/ListView";
|
||||||
|
import PageHeader from "@/components/PageHeader";
|
||||||
|
|
||||||
export default function Search() {
|
export default function Search() {
|
||||||
const { links } = useLinkStore();
|
const { links } = useLinkStore();
|
||||||
|
@ -56,19 +54,9 @@ export default function Search() {
|
||||||
return (
|
return (
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
<div className="p-5 flex flex-col gap-5 w-full">
|
<div className="p-5 flex flex-col gap-5 w-full">
|
||||||
<div className="flex gap-3 items-center justify-between">
|
<PageHeader icon={'bi-search'} title={'Search Results'}/>
|
||||||
<div className="flex gap-3 items-center">
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<FontAwesomeIcon
|
|
||||||
icon={faSearch}
|
|
||||||
className="sm:w-8 sm:h-8 w-8 h-8 text-primary drop-shadow"
|
|
||||||
/>
|
|
||||||
<p className="sm:text-4xl text-3xl capitalize font-thin">
|
|
||||||
Search Results
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div className="flex gap-3 items-center justify-end">
|
||||||
<div className="flex gap-2 items-center mt-2">
|
<div className="flex gap-2 items-center mt-2">
|
||||||
<FilterSearchDropdown
|
<FilterSearchDropdown
|
||||||
searchFilter={searchFilter}
|
searchFilter={searchFilter}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue