While working on my project using next.js and Tailwind, I encountered an issue with placing a logo in the upper right corner of the viewport. Interestingly, I was successful when using simple text for the logo.
However, when I attempted to display the logo using an img or svg tag, it failed to appear on the screen.
Even stranger, when I removed the text ('a' tag) from the code, the logo disappeared as well.
I'm puzzled by this behavior and can't figure out what could be causing it.
This works (but I prefer not to use text for the logo):
<div className="fixed top-0 right-0 p-4">
<a className="transition duration-200 filter drop-shadow">
luna
</a>
<img
alt="logo"
srcset="svg/logo_white.svg"/>
</div>
This doesn't work (the logo doesn't show - only the 'a' tag has been removed):
<div className="fixed top-0 right-0 p-4">
<img
alt="logo"
srcset="svg/logo_white.svg"/>
</div>
I am at a loss here. Can someone shed some light on this situation? Thank you!