mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 00:55:54 +00:00
Implement algolia logo
This commit is contained in:
parent
33ca103c10
commit
ac497964b0
1 changed files with 28 additions and 15 deletions
|
|
@ -1,19 +1,32 @@
|
|||
"use client";
|
||||
// import { useWindowSize } from "../../skin-museum-client/src/hooks";
|
||||
// import AlgoliaLogo from "../../skin-museum-client/src/searchByAlgoliaDarkbBackground.svg";
|
||||
// import algoliaLogoSmallUrl from "../../skin-museum-client/src/searchByAlgoliaSmall.png";
|
||||
import { useWindowSize } from "../../skin-museum-client/src/hooks";
|
||||
import AlgoliaLogo from "../../skin-museum-client/src/searchByAlgoliaDarkbBackground.svg";
|
||||
import algoliaLogoSmallUrl from "../../skin-museum-client/src/searchByAlgoliaSmall.png";
|
||||
|
||||
export default function SearchLogo() {
|
||||
return null;
|
||||
// const { windowWidth } = useWindowSize();
|
||||
// if (windowWidth > 500) {
|
||||
// return <AlgoliaLogo.ReactComponent />;
|
||||
// }
|
||||
// return (
|
||||
// <img
|
||||
// alt="Search by Algolia"
|
||||
// style={{ width: 25, height: 25, paddingTop: 4 }}
|
||||
// src={algoliaLogoSmallUrl}
|
||||
// />
|
||||
// );
|
||||
const { windowWidth } = useWindowSize();
|
||||
if (windowWidth > 500) {
|
||||
return (
|
||||
<img
|
||||
alt="Search by Algolia"
|
||||
style={{
|
||||
width: AlgoliaLogo.width,
|
||||
height: AlgoliaLogo.height,
|
||||
paddingTop: 4,
|
||||
}}
|
||||
src={AlgoliaLogo.src}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<img
|
||||
alt="Search by Algolia"
|
||||
style={{
|
||||
width: 25,
|
||||
height: 25,
|
||||
paddingTop: 4,
|
||||
}}
|
||||
src={algoliaLogoSmallUrl.src}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue