Skip to content

Commit 8854137

Browse files
anurag2787arkid15r
andauthored
Fix #2020: Mentioned Algolia in Search (#2022)
* Mentioned Algolia in Search * link algolia logo to its official site * Update code --------- Co-authored-by: Arkadii Yakovets <[email protected]>
1 parent 8721b0e commit 8854137

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

frontend/src/components/MultiSearch.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { faAlgolia } from '@fortawesome/free-brands-svg-icons'
12
import {
23
faSearch,
34
faTimes,
@@ -284,6 +285,16 @@ const MultiSearchBar: React.FC<MultiSearchBarProps> = ({
284285
</ul>
285286
</div>
286287
))}
288+
<a
289+
aria-label="Search by Algolia (opens in a new tab)"
290+
className="flex items-center justify-center gap-2 bg-white py-2 text-gray-500 hover:text-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:text-gray-200"
291+
href="https://www.algolia.com"
292+
rel="noopener noreferrer"
293+
target="_blank"
294+
>
295+
<FontAwesomeIcon icon={faAlgolia} className="h-3 w-3" aria-hidden="true" />
296+
<span className="text-xs">Search by Algolia</span>
297+
</a>
287298
</div>
288299
)}
289300
</div>

0 commit comments

Comments
 (0)