Closed VincentLu91 closed 11 months ago
Hi @VincentLu91
You could try these options:
If your logo is an SVG file type (ex: my-logo.svg) and not a png or jpg, you could add your my-logo.svg file to the public folder in vscode, click to open it so you can view the SVG code, copy the code within the <path/>
tag and replace the <path/>
tag in the Logo.js file.
If it is a PNG or JPG, you could try adding your my-logo.png or my-logo.jpg to the public folder in vscode, go to the Logo.js file, and replace the code there with something like the below:
import Image from "next/image";
const Logo = ({ className = '', ...props }) => (
<Image
src=/my-logo.png
alt=""
className={className}
{...props}
quality={100}
width={32}
height={32}
priority
/>
);
export default Logo;
I haven't done this in the codebase of this repo as I am coding my own UI components from scratch but thought this might steer you in the right direction.
I'd also research Next Image in their docs for more details.
works for me. Thanks @nate-oo !
works for me. Thanks @nate-oo !
at least for the
I'm rather new to this but I'm looking to replace the logo on the site. From the Logo.js code, I am looking to figure out how and where to replace the logo but I don't see any file referenced that sets the logo. The code from Logo.js is:
Could someone show me how to modify the codebase that allows for a new logo to be replaced?