@@ -53,104 +53,101 @@ export default function Search(props) {
57− <div className="fixed w-screen h-screen bg-black bg-opacity-30 z-50 flex flex-col">
56+ <div className="fixed w-screen h-screen bg-black bg-opacity-30 z-50 flex flex-col">
58− <div className="p-12 w-100 flex flex-col min-h-0">
57+ <div className="p-12 w-100 flex flex-col min-h-0">
59− <div className="relative flex flex-col" ref={searchRef}>
58+ <div className="relative flex flex-col" ref={searchRef}>
61− className="bg-white type-ui text-green rounded-xl border-transparent p-2 outline-none relative"
60+ className="bg-white type-ui text-green rounded-xl border-transparent p-2 outline-none relative"
62− onChange={onChange}
61+ onChange={onChange}
63− onFocus={onFocus}
62+ onFocus={onFocus}
64− placeholder="Search..."
63+ placeholder="Search..."
65− type="text"
64+ type="text"
66− value={query}
65+ value={query}
67− autoFocus={true}
66+ autoFocus={true}
69− {query.length > 0 && (
68+ {query.length > 0 && (
71− onClick={clear}
70+ onClick={clear}
72− className="absolute right-3"
71+ className="absolute right-3"
73− style={{ top: 13 }}
72+ style={{ top: 13 }}
79+ xmlns="http://www.w3.org/2000/svg"
80− xmlns="http://www.w3.org/2000/svg"
83− fill-rule="evenodd"
82+ fill-rule="evenodd"
84− clip-rule="evenodd"
83+ clip-rule="evenodd"
85− d="M0.39382 13.7045C-0.131273 14.2296 -0.131274 15.081 0.39382 15.6061C0.918913 16.1312 1.77026 16.1312 2.29535 15.6061L7.99999 9.90142L13.7047 15.6061C14.2297 16.1312 15.0811 16.1312 15.6062 15.6061C16.1313 15.081 16.1313 14.2296 15.6062 13.7046L9.90152 7.99989L15.6061 2.29535C16.1311 1.77026 16.1312 0.918913 15.6061 0.39382C15.081 -0.131273 14.2296 -0.131273 13.7045 0.39382L7.99999 6.09836L2.29548 0.393844C1.77038 -0.131249 0.919038 -0.131249 0.393945 0.393844C-0.131148 0.918937 -0.131148 1.77028 0.393945 2.29537L6.09846 7.99989L0.39382 13.7045Z"
84+ d="M0.39382 13.7045C-0.131273 14.2296 -0.131274 15.081 0.39382 15.6061C0.918913 16.1312 1.77026 16.1312 2.29535 15.6061L7.99999 9.90142L13.7047 15.6061C14.2297 16.1312 15.0811 16.1312 15.6062 15.6061C16.1313 15.081 16.1313 14.2296 15.6062 13.7046L9.90152 7.99989L15.6061 2.29535C16.1311 1.77026 16.1312 0.918913 15.6061 0.39382C15.081 -0.131273 14.2296 -0.131273 13.7045 0.39382L7.99999 6.09836L2.29548 0.393844C1.77038 -0.131249 0.919038 -0.131249 0.393945 0.393844C-0.131148 0.918937 -0.131148 1.77028 0.393945 2.29537L6.09846 7.99989L0.39382 13.7045Z"
86− fill="black"
85+ fill="black"
87− fill-opacity="0.6"
86+ fill-opacity="0.6"
94− className={
93+ className={
95− "bg-white overflow-scroll min-h-0 rounded-xl border-transparent mt-2 " +
94+ "bg-white overflow-scroll min-h-0 rounded-xl border-transparent mt-2 " +
96− (query.length > 0 ? "" : "hidden")
95+ (query.length > 0 ? "" : "hidden")
99− {active && glossaryResults.length > 0 && (
98+ {active && glossaryResults.length > 0 && (
101− {glossaryResults.map(({ name, link, desc, symbol }) => {
100+ {glossaryResults.map(({ name, link, desc, symbol }) => {
102+ <div className="border-b border-gray">
103+ <p className="font-semibold text-sm pb-4 text-gray pl-3 pt-2">
106+ <li key={link} className="cursor-pointer hover:bg-wall">
107+ <Link href={link} as={link}>
108+ <div className="font-semibold px-3">
109+ {symbol.length > 0 && (
110+ <code className="mr-1">{symbol}</code>
113+ <p className="font-normal text-base pt-1 pb-4">
124+ {active && results.length > 0 && (
125+ <ul className="p-2">
127+ <p className="font-semibold text-sm pb-4 text-gray">
128+ {results.length} results for "{query}"
132+ .filter((e) => e.parent !== "Glossary")
133+ .map(({ title, slug, content, parent }) => {
103− <div className="border-b border-gray">
104− <p className="font-semibold text-sm pb-4 text-gray pl-3 pt-2">
107− <li key={link} className="cursor-pointer hover:bg-wall">
135+ <li key={slug} className="cursor-pointer hover:bg-wall">
108− <Link href={link} as={link}>
136+ <Link href={slug} as={slug}>
109− <div className="font-semibold px-3">
138+ <p className="font-medium text-base">
110− {symbol.length > 0 && (
139+ {parent} / {title}
111− <code className="mr-1">{symbol}</code>
140+ </p>
114− <p className="font-normal text-base pt-1 pb-4">
141+ <p className="text-base font-regular">{content}</p>
125− {active && results.length > 0 && (
126− <ul className="p-2">
128− <p className="font-semibold text-sm pb-4 text-gray">
129− {results.length} results for "{query}"
133− .filter((e) => e.parent !== "Glossary")
134− .map(({ title, slug, content, parent }) => {
136− <li key={slug} className="cursor-pointer hover:bg-wall">
137− <Link href={slug} as={slug}>
139− <p className="font-medium text-base">
142− <p className="text-base font-regular">{content}</p>
153− {props.children}
151+ </div>